The "don't ensnare robotic units" EXE edit was used in one of my mods, but I thought it wasn't fair to have something so specific in 1161.FGD. So I removed it.

Not fair? It could be useful, and it would allow others to see how you did it.

2 questions. First, I would like to be able to change the unit summoned by Spawn Broodlings, but with a plugin. Obviously the address to write to must be known, as there's an EXE Edit for it; how do I find the address in FireGraft's data files to use it in my plugin? Second, I'd like to make an edit/plugin that removes the splash from Recall, so that it only affects units it is directly cast on. (Sounds dumb, I know. >.> ) How would I go about that?

TassadarZeratul wrote:Not fair? It could be useful, and it would allow others to see how you did it.

Yeah, well, it wasn't a big deal, really. Nowadays I would use a plugin to do it.

TassadarZeratul wrote:2 questions. First, I would like to be able to change the unit summoned by Spawn Broodlings, but with a plugin. Obviously the address to write to must be known, as there's an EXE Edit for it; how do I find the address in FireGraft's data files to use it in my plugin? Second, I'd like to make an edit/plugin that removes the splash from Recall, so that it only affects units it is directly cast on. (Sounds dumb, I know. >.> ) How would I go about that?

(1) Open data.mpq and extraact the Firegraft/1161.fgd file. It's a text file (open with Notepad) that contains all of the EXE edits and their offsets. As for the Spawn Broodlings unit ID, I think you'll have to overwrite 0x004f4a0a and 0x004f49eb (both 1 byte) with the unit ID.

(2) It's hard to explain, but when I made the "remove splash from Ensnare" change, I redirected a call to EnsnareHit() with a call to EnsnareProc(). I think the same would work with Stasis Field.

The mod crashes as soon as I write to either of those addresses. >.> There's an error message, which says that it's crashing because it wrote to those addresses. ("The instruction at whatever referenced memory at 0x004f49eb" or similar.)

EDIT: Though, I did look at the file and yes it would seem that those are the correct addresses...?

Pastlemind:In your snooping around Scraft, did you happen to notice where the race selection box's default setting "random" might be?

If you recall in older versions of Starcraft, the race selection box used to be "Zerg" by default. Somewhere in a later patch it was changed to "Random". It would seem possible then, that an exe edit could change that back to Zerg or possibly even another race such as Terran.

I've attempted to look for this several times, but the answer has eluded me. Heinermann gave me good info on where to look and made a little bit of progress, but I never managed to come up with anything even w/ his help.