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

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. You may Image to help finance the hosting costs of this forum.
Post Reply
User avatar
Gambit37
Should eat more pies
Posts: 13778
Joined: Wed May 31, 2000 1:57 pm
Location: Location, Location
Contact:

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

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

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

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

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

Post by George Gilbert »

Fixed for V0.18
Post Reply