Page 1 of 1

DSB Teleporters

Posted: Fri Oct 18, 2013 3:43 am
by terkio
About teleporters.
I reported a RTC issue in: "Recursive teleporter/Triggers Crash"
http://www.dungeon-master.com/forum/vie ... er#p138698
Two teleporters pointing at each other should NOT crash RTC if only one of them is active at a given time.
It turns out that RTC V049 crashes when you toggle both of them to have the active become inactive and the inactive become active, to throw an objet from one tile onto the other tile.
This is a simplified version of a mechanism where I wanted to move some object when toggling teleporters.
I made sure about having no loop at anytime, but got crashes.

This bug is, I think, from the way RTC is updating teleporter states and teleported stuff. Spurious loops can happen while updating so it crashes.
To avoid such crashes: RTC should firstly update teleporter states over all tliles of the dungeon, secondly move teleported stuff. This way, no spurious loop.
Is there such an issue in DSB ?

Re: DSB Version 0.59

Posted: Fri Oct 18, 2013 4:07 am
by Sophia
The mechanics are a little complex. I think the way DSB handles queuing makes it not an issue, but I am not 100% sure.
For now I'm going to say "not an issue" and if you run afoul of something like it I'll investigate further.

Re: DSB Version 0.59

Posted: Fri Oct 18, 2013 4:17 am
by terkio
Thanks for your faster than light answer.
A quick test:
Two teleporters pointing at each other. One is active, the other one is inactive with an apple in it.
A lever toggling both teleporters.
Expected result: Usiing the lever to move the apple back and forth.
( This crashes RTC ).

Re: DSB Version 0.59

Posted: Fri Oct 18, 2013 4:20 am
by Sophia
Yes, I was actually just testing that. :)
DSB does what you are expecting.

Re: DSB Version 0.59

Posted: Fri Oct 18, 2013 4:24 am
by terkio
Thanks again, your testing is faster than my editing. :)