Page 1 of 1

GAME v0.31: Crash, when loading a dungeon with cloned object

Posted: Fri Jan 07, 2005 7:27 pm
by Big-J-Q
This one is strange. DM (Original)-dungeon crashes now instead of loading. My guess was that it's got something to do with cloned objects as DM Orig's Rust Monster is actually a clone.

So, I modified the Zoo-dungeon a little, and cloned a monster. Then I compiled the dungeon and tested it. It works fine. I confront my newly created monster, kill it, and quit the game.

Then! I edit the config.txt so that it won't compile the dungeon again, and after that I load RTC casually and choose the new dungeon with cloned monster...

CRASH!

... and following log file is produced:

Code: Select all

RTC (V0.31) Diagnostic file - Fri Jan 07 20:20:15 2005

Error:
  an access violation exception.

Stack Dump:
  RTCTextFile.GetBitmapFromUniqueID(string "BITMAP_MONSTER_COUATL_FRONT");
  RTC.InitSecondary();
  RTC.ProgStateIntroContinue2();
  RTC.DoFrame(int 7);
  RTC.WinMain();
Quite weird it doesn't crash when the compile-setting is ON, only on "finished" dungeons.

P.S I don't think monster-cloning is a special case as the custom dungeon 'Sukumvit's Labyrinth' also crashes. The resulting diags-file is identical, except the bitmap it is complaining about is BITMAP_DUNGEON_RUBY.

Posted: Sat Jan 08, 2005 1:14 am
by linflas
strange... sukumvit (v1.1 for RTC0.30) doesn't crash on my machine (i wouldn't have released it if it did) but i confirm there are cloned monsters and objects in this RTC file (ruby, vexirks, ...)

Posted: Sat Jan 08, 2005 1:40 am
by Gambit37
Linflas, you've wouldn't have been able to test and release a 0.30 dungeon for a later version of RTC that wasn't released yet.... ;)

Posted: Sat Jan 08, 2005 9:38 am
by linflas
oh yes... missed the '0.31' in the subject string :D

Posted: Sun Jan 09, 2005 10:08 am
by linflas
anyway the sukumvit version for RTC 0.30 *should* be compatible with RTC 0.31 according to the email George sent us, and it doesn't.. i still haven't re-compiled the txt file in RTC 0.31 because it's located on my work office machine (yes i'm editing RTC dungeons at work ;) )

Posted: Sun Jan 09, 2005 10:13 am
by Big-J-Q
It will compile and run just fine after compiling. The crash occurs when you remove the COMPILE setting and load your dungeon from the list of dungeons.

Posted: Sun Jan 09, 2005 10:22 am
by linflas
yes, looks like we just come back to the 0.28 version bug..

Posted: Sun Jan 09, 2005 11:19 am
by linflas
testing with modules\examples\walls.txt file : first i had to complete the sand wallset with a bitmap that was missing (bitmap_wall_sand_bk.bmp), then i loaded it in the editor => no warning, then i added the COMPILE line to my config.txt and ran RTC : it compiles, saves RTC modules and... CRASH !
walls.RTC file has been created, walls.log with 0 error too and this diag file :

RTC (V0.31) Diagnostic file - Sun Jan 09 11:05:09 2005

Error:
an access violation exception.

Stack Dump:
RTC.InitSecondary();
RTC.ProgStateIntroContinue2();
RTC.DoFrame(int 7);
RTC.WinMain();

if i remove the COMPILE line and test the (maybe uncomplete) walls.RTC file, same crash, same diag file.

hope this helps.

Posted: Mon Jan 10, 2005 3:01 pm
by George Gilbert
Linflas - can you send me the dodgy RTC file and I'll look at it.

I've fixed the original problem (the crash in GetBitmapFromUniqueID) for V0.32...

Posted: Tue Jan 11, 2005 2:51 pm
by George Gilbert
Many thanks for the file. This was a separate bug and has nbow been fixed for V0.32