I successfully made a Queen with an attack. The mod is a Firegraft.exe:
Ingame Queen AttackAfter copying the Firegraft .exe file, opening it in Firegraft, and saving it again, the attack stopped working, and it says
"Unable to attack target":
Ingame Queen Attack Error Msg after Firegraft-SaveThis is the settings in PyDAT; I even compared them between the two saves to see if sth had changed, but all seems same:
PyDAT settings 1PyDAT settings 2PyDAT settings 3The 2 Mods & Test Map: LINK
I've also spent some time messing with Queens and find them to be very quirky.
In addition to giving them a weapon, I also tweaked their "Attack Unit" and "Right-Click Action" orders. They won't attack on their own, however using "A" + Click on an enemy will make them fire the weapon a single time, despite "Unable to attack target" being triggered.
"It takes far more than a simple ideology to map amazing things. Mapping requires a strong passion for SC as well as an even stronger devotion to your work. Avoid instant gratification. Set directions/goals for the map, and stick to them. Take pride in the work, be patient with it, and never settle for less."
-Tiger
The queen is set to use "infestation" as its attack order. Go to Firegraft>Exe Edits: under Infestation, change "Auto-infesting unit 1" from Queen to something else. Maybe you did that with your first exe and then forgot with the new one?
I solved the problem!
I lost patience with the Firegraft experiments, so I ended up changing "infestation.cpp" from the general plugin template project, made a plugin and imported it. This is the changed "infestation.cpp":
https://www.coh2.org/file/19211/image5.pngFor future searchers who do not know how to make SC1 Plugins: Here's step-by-step instructions on SC1 plugin creation:
link1link2The queen is set to use "infestation" as its attack order. Go to Firegraft>Exe Edits: under Infestation, change "Auto-infesting unit 1" from Queen to something else. Maybe you did that with your first exe and then forgot with the new one?
You're right, I did that in the past. Then halfway through my project, antivirus software killed firegraft, and I switched from Firegraft 0.91 (newer?) to Firegraft 1611 (older?). I noticed that 1611 does not contain the field "Auto-infesting unit 1". Could not fix it again once I had saved it with 1611, even after saving with 0.93 again.