I just encountered a ZQuest crashing bug. Man, I thought those went extinct! I believe the cause of the crash is something pretty dumb too. Sometimes I give my scripts really long names just for the fun of it. In this case it was:
"ThisIsntRocketScienceButYouKnowWhatIs____ComboCycling"
Apparently I hit some sort of character limit for script names, because although it compiled just fine, as soon as I placed the script down on a screen, ZQuest crashed. I repeated loading and placing the script as a test. Same result.
Edit: Had a minor heart attack when overwriting the script because ZQuest hung a bit as if it was about to crash again. That'd be the dumbest thing possible to brick my quest with.
It'd probably be good to post the script itself, in the event that it isn't the script name that is causing it. That name is 53 chars long, and that doesn;t seem like a specific limit that would have been hardcoded.
Giiven that it has to do with combos, by any chance, does it do anything with LayerMap() , or any function that uses it? I know that setting LayerComboS() can cause crashes in 2.50.2, and that bug was already addressed for the next build.
@Saffith: It occurs to me that I never documented the char limit for ZScript names (script, variable, and otherwise). Do you know offhand what size is preallocated for this, maybe 255 chars, as a rule? I don;t even think there is a specific hard limit, but I could be wrong. I know the initial buffer for printLine[] is a size of 100, but charTemp[] is 512.
Edited by ZoriaRPG, 09 February 2016 - 08:37 AM.