EDITOR: Issue with forward references in cloned items

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
Sophia
Concise and Honest
Posts: 4307
Joined: Thu Sep 12, 2002 9:50 pm
Location: Nowhere in particular
Contact:

EDITOR: Issue with forward references in cloned items

Post by Sophia »

This one is kind of tricky, and easy enough to work around (just edit the text file by hand), but I'll mention it:

If you create a cloned monster, and then create some cloned items (after creating the monster), and then set the cloned monster to carry those items, it will fail to compile.

This happens because the editor saves the cloned items to the file in the order you created them. If the monster is set to carry items that aren't defined yet, it can't handle that.

There's no way to fix it from the editor itself, as far as I can tell, which is the only reason I mention it. :)
User avatar
Gambit37
Should eat more pies
Posts: 13773
Joined: Wed May 31, 2000 1:57 pm
Location: Location, Location
Contact:

Post by Gambit37 »

I brought this up about two years ago I believe! Is it still not fixed? Tut tut, GG! ;)
User avatar
Gambit37
Should eat more pies
Posts: 13773
Joined: Wed May 31, 2000 1:57 pm
Location: Location, Location
Contact:

Post by Gambit37 »

Actually, mine was a slightly different issue. Apologies GG:

http://www.dungeon-master.com/forum/vie ... hp?t=21003
User avatar
George Gilbert
Dungeon Master
Posts: 3022
Joined: Mon Sep 25, 2000 11:04 am
Location: London, England
Contact:

Post by George Gilbert »

This is certainly a bug - Might be a bit tricky to fix, but I'll try and work out the best way to sort it out!
User avatar
Sophia
Concise and Honest
Posts: 4307
Joined: Thu Sep 12, 2002 9:50 pm
Location: Nowhere in particular
Contact:

Post by Sophia »

Monsters can't carry other monsters, so it seems like the easiest way would be to write items first, and then monsters.

Problems with CONVERT_TO could be handled by checking if the object converts to a cloned item, and making sure to write what it converts to before that item is written.
User avatar
beowuuf
Archmastiff
Posts: 20686
Joined: Sat Sep 16, 2000 2:00 pm
Location: Basingstoke, UK

Post by beowuuf »

Monsters can carry other monsters - you might have the ferocious version of a placid monster carried inside the first - so you attack it, it attacks you...
User avatar
George Gilbert
Dungeon Master
Posts: 3022
Joined: Mon Sep 25, 2000 11:04 am
Location: London, England
Contact:

Post by George Gilbert »

Fixed for V0.35
Post Reply