Train Randomly getting stick? Created 3 weeks ago2024-04-09 00:56:36 UTC by RoboRufus7 RoboRufus7

Created 3 weeks ago2024-04-09 00:56:36 UTC by RoboRufus7 RoboRufus7

Posted 3 weeks ago2024-04-09 00:56:36 UTC Post #348695
Hello,

My train gets randomly stuck for no reason. nothing is blocking the path, and the path doesn't end for a while. the train stops moving, but it keeps making the moving sound. How do I fix this?

Thank you
Posted 3 weeks ago2024-04-09 13:37:41 UTC Post #348696
Hard to judge based on the description alone. Perhaps you could upload the compiled map with the source files to the vault under the Problems category?
monster_urby monster_urbyGoldsourcerer
Posted 2 weeks ago2024-04-10 00:41:49 UTC Post #348698
Ok, Here is the link to the map: https://twhl.info/vault/view/6895 if you run it, walk into the birg room, get in the lift and press the yellow button. I am using JACK if that helps.

Thank you again.
Posted 2 weeks ago2024-04-10 09:46:36 UTC Post #348699
Heh, this was uploaded at 00:41 for me. If nobody else picks this up I will try take a look tonight after work. If you're happy to join the Discord, somebody in #mapping-help might be able to get to this sooner. :)
monster_urby monster_urbyGoldsourcerer
Posted 2 weeks ago2024-04-11 17:45:46 UTC Post #348704
So, it appears that this is due to the doors closing. When they close, they appear to trigger the multimanager again, disabling the train after one second.

Seems like an usual bug which I've not seen before where a door that targets a multimanager will also fire on close. Not sure if that's a new bug after the 25 year update or not...

In any case, the way to get around this for now would be to have the path_track target the multimanager, and have THAT handle the opening of the doors at 0 seconds.

Also, you didn't ask about this, but a little more advice:
  • Your grates and railings should be using the Solid Render Mode, not Texture. Texture makes them glow in the dark and show glass decals when shot.
  • Try to avoid using the Fit button when texturing. It stretches and squashes textures and can lead to compiling issues further down the line.
monster_urby monster_urbyGoldsourcerer
Posted 2 weeks ago2024-04-11 21:18:21 UTC Post #348705
Hello,

Thank you VERY much for getting back to me so soon. I will try this and share if it works or not.

Thank you for the advice aswell,
RoboRufus7

Edit: Ive been using path corners. Should i switch to path track? what is the difference?
Posted 2 weeks ago2024-04-11 22:43:10 UTC Post #348706
Ignore me, I get the two mixed up. You're using path_corner, keep doing that.

path_track is for func_tracktrain, like the intro tram or drivable trains.
monster_urby monster_urbyGoldsourcerer
Posted 2 weeks ago2024-04-12 00:04:31 UTC Post #348707
ohh ok.

what i did was have the path open door further back and the train just doesent stop moving. it goes through the doors then they close automaticly.

Thanks for all the help, realy appreciate it
Posted 2 weeks ago2024-04-13 09:11:33 UTC Post #348708
Nothing unusual is happening. monster_urby, why do you consider it a bug? The glass door triggers the multi_manager when it opens, and then the glass door triggers the multi_manager again, when it closes. The train gets disabled one second after the glass door closes, before the train can reach it's final destination, which is how it should be, since the multi_manager is timed to trigger the train after oner second. The glass door triggers the multi_manager with the Target attribute, which fires when the door either opens or closes. There is also the attribute "Fire on Close", but RoboRufus7 did not use it. I would solve this by setting the door's attribute "delay before close" to -1, and close the door manually with the multi_manager.

Use "developer 2" in the console, then you will see what each entity is doing.

Edit: I wrote a stupid thing, if I did that, then the door would keep opening and closing forever. You need to trigger the multi_manager with the path_corner, and open and close the door with the multi_manager. And the door needs the "Toggle" Flag marked so it can be triggered more than once.
Posted 2 weeks ago2024-04-15 09:46:47 UTC Post #348714
In all my experience, target and fire on close are separate trigger states. The target should fire when the door fully opens, and fire on close should fire when the door fully closes. The fact that the target is being triggered on close here seems like an error, since fire on close was specifically left blank. Perhaps I'm not in the habit of triggering things with doors, but I am fairly certain I've never encountered this before.
monster_urby monster_urbyGoldsourcerer
You must be logged in to post a response.