By the look of the parser error it looks like the problem is not the flamethrower, but the dinject from PK’s rebalance main mod that the game cannot read. Every single ant monster has it.
Give it a look, it’s in attack_types.json. Check if you have the same.
{
“type”: “monster_attack”,
“attack_type”: “melee”,
“id”: “ant_dinject”,
“cooldown”: 20,
“move_cost”: 200,
“damage_max_instance”: [
{ “damage_type”: “bash”, “amount”: 9, “armor_multiplier”: 0.85 },
{ “damage_type”: “stab”, “amount”: 3, “armor_multiplier”: 0.85 }
],
“effects”: [
{ “id”: “skunk_spray”, “duration”: 600 },
{ “id”: “infection_minor”, “duration”: 5200, “chance”: 8 }
],
“hit_dmg_u”: “The %1$s stings you!”,
“hit_dmg_npc”: “The %1$s stings !”,
“no_dmg_msg_u”: “The %1$s tries to sting you, but fails to pierce your armor.”,
“no_dmg_msg_npc”: “The %1$s tries to sting , but fails.”
},