Page 1 of 1

EDITOR: v0.29 First Crash opening a file

Posted: Tue Dec 21, 2004 8:25 pm
by Gambit37
Excitedly downloaded and extracted the new version, and the first thing I do is to load my Mixed dungeon into the editor

It crashed instantly with this debug file:

Code: Select all

RTC Editor (V0.29) Diagnostic file - Tue Dec 21 19:15:14 2004

Error:
  an integer divide by zero exception.

Stack Dump:
  RTCModule.AddModuleAnimation(pointer 0x02C01928);
  RTCModule.ParseAnimations(pointer 0x0012EF14);
  RTCModule.ParseDungeonTextFile(string "E:\\Projects\\Dungeon Master\\Games\\Clones\\RTC\\V028\\mixed\\mixed_028.txt");
  RTCEditView.LoadFile(string "E:\\Projects\\Dungeon Master\\Games\\Clones\\RTC\\V028\\mixed\\mixed_028.txt");
  RTCEditView.OnFileOpen();
I can open the files that come with the new version OK. I guess this is to do with the format change?

Can you -- pretty please -- take the time to write a summary of what's changed so that I can update my dungeon without having to keep loading and testing and seeing what the error is and adjusting accordingly....? Thank you kindly!

Posted: Wed Dec 22, 2004 11:02 am
by chburbe
Hi try this

in the set [Main Data]

add these 2 lines:
RESTRICT_SAVES=(FALSE)
MAX_PARTY_SIZE=(4)

in the set [Graphics - Wall Sets]

add this line:
WALL_BK=(BITMAP_WALL_BK_MAIN)

I had no further problems after I did it.

Regards

Posted: Wed Dec 22, 2004 11:11 am
by George Gilbert
Yep - I think chburbe has got all the changes you need.

Apologies though, I shoiuld have tested loading an old text file and it certainly shouldn't have crashed - I'll work out why it did and fix it so it doesn't happen again in future releases!

Posted: Tue Jan 04, 2005 12:07 am
by Gambit37
Same crash in version 0.30 with my old unchanged file:

Code: Select all

RTC Editor (V0.30) Diagnostic file - Mon Jan 03 23:05:18 2005

Error:
  an integer divide by zero exception.

Stack Dump:
  RTCModule.AddModuleAnimation(pointer 0x02C06ED8);
  RTCModule.ParseAnimations(pointer 0x0012EF14);
  RTCModule.ParseDungeonTextFile(string "E:\\Projects\\Dungeon Master\\Games\\Clones\\RTC\\V028\\mixed\\mixed_028.txt");
  RTCEditView.LoadFile(string "E:\\Projects\\Dungeon Master\\Games\\Clones\\RTC\\V028\\mixed\\mixed_028.txt");
  RTCEditView.OnFileOpen();
Can't you simply do a quick check of the file to see if it's an old format and warn about the elements that need to be changed?

Posted: Tue Jan 04, 2005 10:17 am
by George Gilbert
Hmm - there's something else going on here as this crash is nothing to do with the changes in format (it's attempting to load the animations which havn't changed).

Can you send me your whole txt file and I'll take a look at it again.

Posted: Thu Jan 06, 2005 9:50 am
by George Gilbert
Many thanks for the file - this has enabled me to spot the problem straight away. The issue was nothing to do with the file format, but instead due to trying to create an animation with a bitmap that hadn't loaded properly.

Now fixed for V0.31