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

Messages are moved here (should anyone ever want to see them again) once they are no longer applicable to the current version (e.g. suggestions that have been implemented or bugs that have been fixed).

Moderator: George Gilbert

Forum rules
Please read the Forum rules and policies before posting.
Post Reply
User avatar
Big-J-Q
Adept
Posts: 215
Joined: Sat Apr 14, 2001 6:05 pm
Location: Oulu, Finland

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

Post 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.
User avatar
linflas
My other avatar is gay
Posts: 2445
Joined: Tue Nov 04, 2003 9:58 pm
Location: Lille, France
Contact:

Post 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, ...)
User avatar
Gambit37
Should eat more pies
Posts: 13766
Joined: Wed May 31, 2000 1:57 pm
Location: Location, Location
Contact:

Post 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.... ;)
User avatar
linflas
My other avatar is gay
Posts: 2445
Joined: Tue Nov 04, 2003 9:58 pm
Location: Lille, France
Contact:

Post by linflas »

oh yes... missed the '0.31' in the subject string :D
User avatar
linflas
My other avatar is gay
Posts: 2445
Joined: Tue Nov 04, 2003 9:58 pm
Location: Lille, France
Contact:

Post 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 ;) )
User avatar
Big-J-Q
Adept
Posts: 215
Joined: Sat Apr 14, 2001 6:05 pm
Location: Oulu, Finland

Post 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.
User avatar
linflas
My other avatar is gay
Posts: 2445
Joined: Tue Nov 04, 2003 9:58 pm
Location: Lille, France
Contact:

Post by linflas »

yes, looks like we just come back to the 0.28 version bug..
User avatar
linflas
My other avatar is gay
Posts: 2445
Joined: Tue Nov 04, 2003 9:58 pm
Location: Lille, France
Contact:

Post 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.
User avatar
George Gilbert
Dungeon Master
Posts: 3022
Joined: Mon Sep 25, 2000 11:04 am
Location: London, England
Contact:

Post 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...
User avatar
George Gilbert
Dungeon Master
Posts: 3022
Joined: Mon Sep 25, 2000 11:04 am
Location: London, England
Contact:

Post by George Gilbert »

Many thanks for the file. This was a separate bug and has nbow been fixed for V0.32
Post Reply