orwell96 / advtrains

Minetest Mod: Advanced Trains
https://forum.minetest.net/viewtopic.php?f=11&t=14726
GNU Lesser General Public License v2.1
42 stars 13 forks source link

Wagon is full when it's empty #123

Closed codexp closed 8 months ago

codexp commented 6 years ago

I get an error message: Can't get on: wagon is full. when I tried to enter the train through platform, but train was empty.

codexp commented 6 years ago

btw this is 123 ticket, so should be easy to fix ;)

orwell96 commented 6 years ago

Are you playing on a server? There, offline players also occupy seats and are placed in the train again when they come online

codexp commented 6 years ago

Yes, I play on a public server. Oh I see, but I doubt the train is full with (regular) offline players, since I saw most of them playing somewhere. So it is probably full of visitor noobs, who have never managed to come off the train and left the game, perhaps for ever.

I saw a command to kick all passengers out of train.

So one could use this command if server is empty (all/most clients offline)?

/at_empty_seats - Detach all players, especially the offline ones, from all trains. Use only when no one serious is on a train.

codexp commented 6 years ago

Is it possible to send offline players after a time threshold (maybe 48 hours) to their home position?

orwell96 commented 6 years ago

Would be possible, but difficult to implement

orwell96 commented 6 years ago

maybe set them off when the train stops the next time (e.g. opens its doors)

codexp commented 6 years ago

yes I thought of that too.

If you think of real life example, you have to get off at the end station (whether you want or not). Which would be hard to determine (which one is the end station?).

But as a trade off, this would be a good solution, to set them off at any station after doors get open.

Maybe one condition for setting offline passengers off: offline >1h (if that is possible)