Elevator with bugged doors Created 5 years ago2018-08-07 15:40:57 UTC by torekk torekk

Created 5 years ago2018-08-07 15:40:57 UTC by torekk torekk

Posted 5 years ago2018-08-07 15:40:57 UTC Post #340444
So I wrote about this in the shoutbox already, but don't want to spam it and maybe creating this thread helps someone else as well.

I followed this tutorial: https://twhl.info/wiki/page/Tutorial%3A_Elevator_Doors_that_move

And the elevator works all fine for a time and then suddenly, the doors get out of sync and the elevator stops moving.
At about 2:00 minutes in the video I switch to blood1 from Richman to show that his elevator doesn't bugs out, no matter if you move while pressing the button or not. I think this is the cause for the doors getting out of sync, but I'm not sure(well in the video the elevator works if you don't move). I know that the tutorial uses delays on the path_corners, I removed those and it still didn't change anything(well besides I had to get the doors in sync with the multimanager instead). The elevator from Richman however uses several trigger_relays that get triggered by the path_corners once the doors pass them, as seen here: https://twhl.info/journal/view/8958

But even though I've been taking a look at his elevator setup now for about 2 days, I don't quite get the logic behind it. GoldSrc's way of showing in/outputs, or better the lack of that, isn't helpful as well, in Source that'd be easy as cake.
torekk torekkProcrastinator of the Year
Posted 5 years ago2018-08-08 02:52:19 UTC Post #340447
Thanks for the suggestion, I may look into at some time, but for now I'd like to stay as close to vanilla as possible.

And propably this is an engine glitch, however as you can see Richman figured out a vanilla way around this, so it is possible without any mods.

I'm still unsure if I shouldn't just copy his elevator and adjust it to fit my needs, seeing that he released some of his map files for people to learn and use them, as long as you credit him for his works. But then I don't really learn anything, I already know how to copy&paste.

I figured another thing about his elevator, his top and bottom multimanager have the same delays, while mine(and the one from the tutorial) only use a delay on the bottom multimanager, which I guess is what causes it to desync. However if I'd just add a delay to the top multimanager, that'd cause it to desync as well.

I guess I gotta take some time and see if I can create like a flowmap of his entity setup for the elevator, else I don't know how to understand it. I mean he's using 8 doors on the elevator and then 4 on each floor for the outer doors, all which trigger seperate trigger_relays on the path_corners they pass. Just thinking about it gives me a headache.
torekk torekkProcrastinator of the Year
Posted 5 years ago2018-08-09 04:35:21 UTC Post #340456
I think you misunderstood me, I know how the doors themselves work as func_doors, that's not the problem.

I'm talking about the elevator doors, those which are func_trains. The tutorial uses env_global and multi_managers together with a delay on the bottom multimanager to get the doors in sync with the elevator, while Richman uses trigger_relays, multi_managers and multisources and both his multi_managers have the same delay. I don't know how he gets the elevator that way to be in sync with the door, I bet it has to do with his func_train doors triggering all those trigger_relays that you can see in my journal entry's screenshot.

And for that I plan to make a flowchart, like this example from here:
User posted image
Edit: I tried, but I reached a point where even the flowchart would get too complicated:
User posted image
I didn't even include the delays or triggerstates for the trigger_relays yet...
torekk torekkProcrastinator of the Year
You must be logged in to post a response.