Page 1 of 1

Using [Party] to pre-define party members, (v0.17)

Posted: Fri Mar 15, 2002 1:41 pm
by Gambit37
I was testing something out in the DM.TXT file and needed a party member, so I added the following lines directly after the [Characters] section:

[Party]
CHARACTER_ZED

RTC crashed before it loaded or saved the dungeon, immediately after the Loading Dungeon message bottom left. A log file had been opened, but nothing written to it. The error generated is:

Stack Dump:
RTC.GetCharFromUniqueID(string "CHARACTER_ZED");
RTC.ParseDungeonItemWall(pointer 0x007EF510, int 2, string "002");
RTC.ParseDungeonItems(pointer 0x007EF510);
RTC.ParseDungeonTextFile(string "modules\dmtest.txt");
RTC.InitSecondary();
RTC.DoFrame(int 7);
RTC.WinMain();

Obviously this is something to do with Mirrors. Note that the string "002" is the mirror that contains ZED. If I move the [Party] section to the bottom of the file as you have done in CSB, I don't get this crash but get a DM style compilation warning stating that the Mirror character has already been used.

In my kid dungeon, I have something similar with [Party] directly after the [Characters] section, but I am using a character that ISN'T used in a mirror -- the dungeon compiles fine with no errors.

Re: Using [Party] to pre-define party members, (v0.17)

Posted: Fri Mar 15, 2002 2:26 pm
by George Gilbert
Yep - you've got it exactly right.

The mistake is in your dungeon; you can't use a character in both a mirror and your party. Having said that, the code shouldn't crash, but give you a log telling you of the problem. I'll fix this...

Re: Using [Party] to pre-define party members, (v0.17)

Posted: Mon Mar 18, 2002 10:36 am
by George Gilbert
Fixed for V0.18