(fixed in 0.80) Esb instance ref cleaning

This forum is for the Lua scriptable clone of DM/CSB called Dungeon Strikes Back by Sophia. Use DSB to build your own highly customised games.

Moderator: Sophia

Forum rules
Please read the Forum rules and policies before posting.
Post Reply
User avatar
Joramun
Mon Master
Posts: 925
Joined: Thu May 25, 2006 7:05 pm
Location: The Universe

(fixed in 0.80) Esb instance ref cleaning

Post by Joramun »

Hello,

I noticed a few time that when erasing objects their ID is still referred to by targets and the exvar index.
An example of this is when creating a new object it got an old 'no longer' used ID, but in fact it inherited the exvar of the previously deleted object with the same ID.

I suppose this can happen only when closing and reopening esb.


It can cause trouble if some other trigger targets the newly created object.
What Is Your Quest ?
User avatar
Sophia
Concise and Honest
Posts: 4240
Joined: Thu Sep 12, 2002 9:50 pm
Location: Nowhere in particular
Contact:

Re: Esb instance ref cleaning

Post by Sophia »

This isn't "supposed" to happen, as ESB does attempt to clean up after itself, so if you have some specific instructions how to reproduce an issue I can take a closer look at it.
User avatar
Joramun
Mon Master
Posts: 925
Joined: Thu May 25, 2006 7:05 pm
Location: The Universe

Re: Esb instance ref cleaning

Post by Joramun »

I'm not 100% sure but i noticed Using the cut and paste mode, cut some tiles, not pasting them, save, reload the dungeon then start laying out objects should do the trick.
What Is Your Quest ?
Post Reply