View Full Version : Help Please...
NoobOfLore
12-01-2007, 6:54 PM
What makes mods crash at certain times, and with no apparent cause?:concern:
SuiCidAl-KiSmEt
12-01-2007, 11:00 PM
For one thing, there is a cause.
geh
Here are some things that can cause a mod to crash;
• An iscript is calling on a frame that does not exist.
• Your giving a unit over the maximum sight range the game allows.
• Replacing .grps might require you to change its iscript - [rare]
• You removed\added a turret unnecessarily to a unit that originally had\hadn't own a turret.
• A .dat may been changed unproperly.
• the iscript may been changed unproperly.
In most cases, it can only take at least improperly changed one unit, that - once presence in the game - to crash.
In direct relation to:
• the iscript may been changed unproperly.
When using ICE, units' scripts load in a specific format that is not necessarily the true form. For instance, many units have their "Return to Idle After Attack" script lines be inside the basic Idle script. ICE doesn't let you know when this is the case; the result is that if you're not aware of the way that the units' script looks, you may end up ruining one section entirely by editing another in a way that would seem harmless. ICE never really "bugs" your script, it's just that it doesn't let you know if you accidentally mess it up like that.
The result is that you may unknowingly end up deleting a unit's animation entirely when only editing another animation. The lack of a whole animation will result in a crash when that animation is called, however, since you never edited that animation directly you may not be aware of which one is it, and thus the crash will be seemingly random.
NoobOfLore
12-02-2007, 7:13 PM
I am a noob modder. I added no subunits, no units are being or have been built when it crashes, sight range less than 11, no grp, iscript, flingy, or various other crap. all done with Datedit. I modified and saved only units, upgrades, and weapons. not trying to give a unit weapon a bounce attack or special effect. no ground only units given air. no animations or graphics replacements made. again, no apparent trigger for it. The same thing is never happeneing when it crashes.
Would setting a weapon attack speed to one cause a crash?
SuiCidAl-KiSmEt
12-02-2007, 7:24 PM
Would setting a weapon attack speed to one cause a crash?
Auh, yes. I forgot about that. After readin' that, I remember having my mod crash when I was new long ago. I remember giving a cool down (attack speed) like to 1 or something causes problems. A safe cooldown should be over 5, sometimes 3.
I've already given weapons a weapon.dat cooldown of "1" and they worked fine.
NoobOfLore, either you'll need to write here the exact list of changes you made so that we could maybe find out what was it, or start over your mod.
ShadowFlare
12-02-2007, 11:44 PM
There's also the fact that ICE may mess up certain opcodes. I tried to fix the opcodes list at one point with the correct settings, but it is unable to correctly support certain opcodes. In some cases this means two single byte parameters must be shown as one double byte parameter, which makes it harder to work with. In other cases, it may make it corrupt the parameters in some way.
NoobOfLore
12-03-2007, 10:51 AM
Again, ALL changes were made in Datedit. No iscripting or GRP imports. Unit, Upgrade, and weapon stats change ONLY!
And i will try to get a full list of All changes as soon as I can.
Perhaps it was changing the marine to a min harvester?
And maybe setting the cooldown speed to less than the attacking animation might cause crashing. One time, My seige was attacking. It had a small Cooldown, and perhaps the slight varience in attack speed made it so that one of the attacks were longer in animation than the cooldown rate.
Twitch6000
12-03-2007, 11:58 PM
And i will try to get a full list of All changes as soon as I can.
Perhaps it was changing the marine to a min harvester?
And maybe setting the cooldown speed to less than the attacking animation might cause crashing. One time, My seige was attacking. It had a small Cooldown, and perhaps the slight varience in attack speed made it so that one of the attacks were longer in animation than the cooldown rate.
MAking a marine harvest could be it cause it needs needs a (mode) for harvest.
Which can be done with iscripting.
ShadowFlare
12-04-2007, 2:53 AM
Again, ALL changes were made in Datedit. No iscripting or GRP imports. Unit, Upgrade, and weapon stats change ONLY!
I suppose I should have quoted AqoTrooper's post at the beginning of mine to make it clear I was replying to his post where he mentioned ICE.
NoobOfLore
12-04-2007, 6:03 PM
Well I'm glad that so many vets are trying to help me out ^^ but i guess i will try fixing the rine...
vBulletin® v3.7.2, Copyright ©2000-2008, Jelsoft Enterprises Ltd.