Error crashed the game

Please post here for questions and discussion about modding for Strategic Command.
Post Reply
User avatar
mroyer
Posts: 1286
Joined: Sun Mar 06, 2016 12:27 pm

Error crashed the game

Post by mroyer »


Got this error during playtest - any ideas where I might look to fix this issue?

Thanks for any thoughts,
-Mark R.


Image
Attachments
Untitled.jpg
Untitled.jpg (15.38 KiB) Viewed 331 times
User avatar
Hubert Cater
Posts: 6098
Joined: Mon Jul 22, 2013 11:42 am
Contact:

RE: Error crashed the game

Post by Hubert Cater »

Is it possible that your UNIT event script is currently empty? This might explain it even if it should not be crashing, i.e. a fault in my code etc.

If this is the case, could you try adding a dummy unit script event to see if this resolves it?
User avatar
mroyer
Posts: 1286
Joined: Sun Mar 06, 2016 12:27 pm

RE: Error crashed the game

Post by mroyer »

I have a pile of "scripts" in unit.txt. (Terminology question: what is a "script"? Is unit.txt a script, or is it a set of scripts, i.e., each {} block is a scrip?)

I'm certain I have a mistake that touched off the exception, but I'm not sure where to look. Until your response I wasn't even sure if it was a unit.txt issue. I will search that file to see if anything obvious is out of whack.

Thanks Hubert,
-Mark R.

User avatar
Hubert Cater
Posts: 6098
Joined: Mon Jul 22, 2013 11:42 am
Contact:

RE: Error crashed the game

Post by Hubert Cater »

Apologies for not getting back sooner. I just use 'scripts' for each file, and 'events' for the events within the file, e.g. the blocks within {}, but there is no right or wrong, and essentially your file is not empty which is good to know.

If you have a crash save from the above please send it over and I'll be happy to take a look.
Post Reply

Return to “Scenario Design and Modding”