DSB Teleporters

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
terkio
Mon Master
Posts: 937
Joined: Tue Jul 10, 2012 8:24 pm

DSB Teleporters

Post 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 ?
"You can be on the right track and still get hit by a train!" Alfred E. Neuman
User avatar
Sophia
Concise and Honest
Posts: 4240
Joined: Thu Sep 12, 2002 9:50 pm
Location: Nowhere in particular
Contact:

Re: DSB Version 0.59

Post 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.
User avatar
terkio
Mon Master
Posts: 937
Joined: Tue Jul 10, 2012 8:24 pm

Re: DSB Version 0.59

Post 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 ).
Last edited by terkio on Fri Oct 18, 2013 4:22 am, edited 1 time in total.
"You can be on the right track and still get hit by a train!" Alfred E. Neuman
User avatar
Sophia
Concise and Honest
Posts: 4240
Joined: Thu Sep 12, 2002 9:50 pm
Location: Nowhere in particular
Contact:

Re: DSB Version 0.59

Post by Sophia »

Yes, I was actually just testing that. :)
DSB does what you are expecting.
User avatar
terkio
Mon Master
Posts: 937
Joined: Tue Jul 10, 2012 8:24 pm

Re: DSB Version 0.59

Post by terkio »

Thanks again, your testing is faster than my editing. :)
"You can be on the right track and still get hit by a train!" Alfred E. Neuman
Post Reply