Page 1 of 1

Make Unused Units work and not crash Starcraft

Posted: Fri May 11, 2012 8:49 pm
by phantommaelstrom
I notice that unused units such as the unused cargo ship is unstable. When I use it, it loads but it crashes after a few seconds. I already edited every stats and AI aspects of units.dat, but to no avail.

I also edited in in Firegraft and gave it the unit property, except for the debug ID, which I have no idea what it is. Although I can guess that this ID is unique for every unit.

My question is... is there a way to make it work without crashing the game?

Re: Make Unused Units work and not crash Starcraft

Posted: Sat May 19, 2012 3:53 pm
by Falchion
If you intend on making units walk, fire, turn around or fly without crashing, forget it, you'll need to use IceCC to make it work, and you'll need a VERY good understanding of the code.

Here's a basics on IceCC that Mesk wrote during his time in The Star Alliance (Samods today). Highly recommended, BTW: http://forum.samods.org/index.php?topic=5400.0

Re: Make Unused Units work and not crash Starcraft

Posted: Sat May 19, 2012 6:39 pm
by phantommaelstrom
I did tweak it's iscript. For example the cargo ship. I had it using a duplicate working iscript. It moved for awhile then crashes. I can guess it has something to do with memory... but I'm not sure.

Re: Make Unused Units work and not crash Starcraft

Posted: Sun May 20, 2012 6:27 am
by Falchion
Well, it must be hardcoded then. If so, it's hopeless, you'll have to figure out on another unit. I've tried to make the Queen attack as a different unit as well and didn't work, so I've had to move on to another unit.

Sad, but true.

Re: Make Unused Units work and not crash Starcraft

Posted: Mon May 21, 2012 12:05 pm
by Alevice
Been a while since i last touched anything sc1, but i remember needing to have a valid images.dat with rotation enabled and such.

Re: Make Unused Units work and not crash Starcraft

Posted: Mon May 21, 2012 9:58 pm
by phantommaelstrom
Yup, I already done that. It's still crashing. But I saw something if FG that may seem to be the root of the problem. The Memory ID of the unused unit is always "0". They may be sharing memory and performs illegal operations everytime they are used, thus, causing the crash.

Or it is also possible that FG forces units stored outside of the table to appear when it's not suppose to and this may also cause a crash.