-TF- found a bug in DizzyAGE v2.0 editor.
If you want to enter an undefined value (like 9 or higher) in the class property of a dynamic object, the editor will crash. This will affect advanced users, who want to use their own object classes for their games.
Here is the fix for these who need it sooner than the next DizzyAGE version update:
1. unpack the editor.pak file with the pak tool (like you do with the game's pak)
2. rename the original editor.pak file into like editor.old_pak, so the editor will load its data from the extracted folder
3. edit the editor/scripts/gamemod.gs file as follows:
at line 86 replace the "less or equal" operator with the "less" operator.
And since you are here,
so instead of
if(class>0 && class<=sizeof(*classname))
you must have
if(class>0 && class < sizeof(*classname))
why not add the new classes of your game in the editor:
at line 273 add a new string name in the list of classes:
like ......"life","waypoint","myclass"} },
The editor will display your class ("myclass") in the menus and will allow you to select it like the other classes.
You can also pack it back (the editor folder) into a new editor.pak file, like you do with the game.