[Mod] Advanced Trains [advtrains] [2.9.0]

Emojiminetest
Member
Posts: 40
Joined: Sat Jun 06, 2020 00:21
GitHub: Emojigit
IRC: nya_1F616EMO
In-game: 1F616EMO

Re: [Mod] Advanced Trains [advtrains] [2.4.3]

by Emojiminetest » Post

yw05 wrote:
Mon Oct 28, 2024 15:35
WIP: New HUD:
Image
Is the HUD ready for variable max speed of trains, including those that exceeds the currently hard-coded 20 m/s?

yw05
Member
Posts: 474
Joined: Tue May 07, 2019 12:59
GitHub: y5nw
IRC: y5nw
Location: Germany

Re: [Mod] Advanced Trains [advtrains] [2.4.3]

by yw05 » Post

Emojiminetest wrote:
Sun Jul 26, 2026 04:11
yw05 wrote:
Mon Oct 28, 2024 15:35
WIP: New HUD:
Image
Is the HUD ready for variable max speed of trains, including those that exceeds the currently hard-coded 20 m/s?
For vmax<100, yes. The speed indication bar is automatically adjusted to a range that includes the maximum speed of the train.

Note that the display range for the speed indication bar is selected from a fixed set of values (at the time of writing: 10, 15, 20, 30, 50, 60, 75, 100) to allow markings to be placed at constant, pixel-perfect intervals (The bar is 300px long). For trains with a lower maximum speed than the display range (e.g. 25), the upper range between the maximum speed and the upper end of the bar is marked with a different shade of gray.

The HUD demo node includes a (admittedly primitive) formspec that you can use to test the HUD. Note that the result rendered in the form may be scaled by a fractional factor (i.e. not pixel-perfect).

User avatar
benlay
Member
Posts: 12
Joined: Sun Jan 23, 2022 13:48
GitHub: benlay
In-game: benlay
Location: Germany
Contact:

Re: Advanced Trains [advtrains] [2.9.0] - Station rail

by benlay » Post

Hi everyone,

I'm a little bit confused. I have no clue what to do with the station rail.

I place a station rail and open it. The first UI appears with the **Station Editor** and the **Line Editor**.

I open the **Station Editor**, create a new station and leave it with **ESC**.

The next time I click the rail, I'm back in the first UI. Now I can select the new station and edit the track number, the ARS list, and so on.

The next step is pressing the **Save** button.

But then a **second UI** appears, with almost the same settings again. Usually it even shows a completely different station that I created before. The strange thing is that only the settings in this second UI seem to affect whether the train actually stops at this station.

Can someone explain how this is supposed to work? Am I misunderstanding the difference between these two UIs?

Thanks!
Rom ist auch nicht an einem Tag erschaffen worden :)

User avatar
orwell
Member
Posts: 1019
Joined: Wed Jun 24, 2015 18:45
GitHub: orwell96
IRC: orwell96_mt
In-game: orwell
Location: Raxacoricofallapatorius

Re: Advanced Trains [advtrains] [2.9.0] - Station rail

by orwell » Post

benlay wrote:
Mon Jul 27, 2026 13:54
Hi everyone,

I'm a little bit confused. I have no clue what to do with the station rail.
Sounds to me like a bug. Perhaps, can I ask you to make a few screenshots showing the steps you took? If I have time in the coming days I can also try to reproduce it.
Lua is great!
List of my mods
I like singing. I like dancing. I like ... niyummm...

Wogster
Member
Posts: 29
Joined: Tue Oct 18, 2022 02:33

Re: [Mod] Advanced Trains [advtrains] [2.9.0]

by Wogster » Post

Anyone know how to fix this:
Screenshot From 2026-08-08 20-45-47.png
Screenshot From 2026-08-08 20-45-47.png (167.34 KiB) Viewed 574 times
Okay, so what do I check, and is there a way to update the RS cache

User avatar
benlay
Member
Posts: 12
Joined: Sun Jan 23, 2022 13:48
GitHub: benlay
In-game: benlay
Location: Germany
Contact:

Re: Advanced Trains [advtrains] [2.9.0] - Station rail

by benlay » Post

orwell wrote:
Mon Aug 03, 2026 18:58
benlay wrote:
Mon Jul 27, 2026 13:54
Hi everyone,

I'm a little bit confused. I have no clue what to do with the station rail.
Sounds to me like a bug. Perhaps, can I ask you to make a few screenshots showing the steps you took? If I have time in the coming days I can also try to reproduce it.
Okay, here ist the first UI
UI-1.PNG
UI-1.PNG (91.73 KiB) Viewed 514 times
and this is the second UI
UI-2.PNG
UI-2.PNG (45.32 KiB) Viewed 514 times
Rom ist auch nicht an einem Tag erschaffen worden :)

Maverick2797
Member
Posts: 158
Joined: Sun Aug 05, 2018 12:37
In-game: Maverick2797
Location: Poking about here and there...

Re: Advanced Trains [advtrains] [2.9.0] - Station rail

by Maverick2797 » Post

benlay wrote:
Mon Aug 10, 2026 12:03
and this is the second UI
UI-2.PNG
That looks like the old station stoprail UI. I can't find some of those form labels in the entirety of the advtrains codebase anymore (specificaly "Trains stopping here (ARS Rules) "), the last release that did being 11 months and about a half dozen releases old. Can you try updating advtrains to the current release and see if it still does it?
--> am signature, much wow :P <--

User avatar
benlay
Member
Posts: 12
Joined: Sun Jan 23, 2022 13:48
GitHub: benlay
In-game: benlay
Location: Germany
Contact:

Re: Advanced Trains [advtrains] [2.9.0] - Station rail

by benlay » Post

Maverick2797 wrote:
Mon Aug 10, 2026 12:26
benlay wrote:
Mon Aug 10, 2026 12:03
and this is the second UI
UI-2.PNG
That looks like the old station stoprail UI. I can't find some of those form labels in the entirety of the advtrains codebase anymore (specificaly "Trains stopping here (ARS Rules) "), the last release that did being 11 months and about a half dozen releases old. Can you try updating advtrains to the current release and see if it still does it?
Now i get the "advtrains_36169" from the content db site. Still the same behavior with the second ui
Rom ist auch nicht an einem Tag erschaffen worden :)

Maverick2797
Member
Posts: 158
Joined: Sun Aug 05, 2018 12:37
In-game: Maverick2797
Location: Poking about here and there...

Re: Advanced Trains [advtrains] [2.9.0] - Station rail

by Maverick2797 » Post

benlay wrote:
Mon Aug 10, 2026 14:46
Now i get the "advtrains_36169" from the content db site. Still the same behavior with the second ui
Just downloaded the mod direct from the contentdb site (advtrains_36169.zip, release-2.9.0a) and that code matches the current release... there shouldn't be any possible way to show the old UI from the new code. The only thing I can think of is that you've somehow got two versions of the mod running at the same time, one ancient and one newer, but Luanti is usually pretty good with stopping that. I'm going to have to leave this to @orwell as I suspect it might be a bit more involved than I can help with.
--> am signature, much wow :P <--

yw05
Member
Posts: 474
Joined: Tue May 07, 2019 12:59
GitHub: y5nw
IRC: y5nw
Location: Germany

Re: Advanced Trains [advtrains] [2.9.0] - Station rail

by yw05 » Post

benlay wrote:
Mon Aug 10, 2026 14:46
Now i get the "advtrains_36169" from the content db site. Still the same behavior with the second ui
What happens if you remove the track and place it again?

(I suspect the old formspec might have somehow been saved as node meta. I am not certain about this, but I cannot find another explanation for why this would happen.)

User avatar
benlay
Member
Posts: 12
Joined: Sun Jan 23, 2022 13:48
GitHub: benlay
In-game: benlay
Location: Germany
Contact:

Re: [Mod] Advanced Trains [advtrains] [2.9.0]

by benlay » Post

I have created a new testserver with the new adv mod. Still the same.
My question is. I'm the only one ?
If there is anyone else with this Problem please write. Thanks
Rom ist auch nicht an einem Tag erschaffen worden :)

User avatar
benlay
Member
Posts: 12
Joined: Sun Jan 23, 2022 13:48
GitHub: benlay
In-game: benlay
Location: Germany
Contact:

Re: [Mod] Advanced Trains [advtrains] [2.9.0]

by benlay » Post

benlay wrote:
Mon Aug 10, 2026 17:14
I have created a new testserver with the new adv mod. Still the same.
My question is. I'm the only one ?
If there is anyone else with this Problem please write. Thanks
Now download from codeberg and looks like it works
Rom ist auch nicht an einem Tag erschaffen worden :)

OldMan
New member
Posts: 1
Joined: Sun Dec 15, 2024 02:15
In-game: OldMan

Re: [Mod] Advanced Trains [advtrains] [2.9.0]

by OldMan » Post

benlay wrote:
Mon Aug 10, 2026 17:14
I have created a new testserver with the new adv mod. Still the same.
My question is. I'm the only one ?
If there is anyone else with this Problem please write. Thanks
I experience the same behaviour ever since the new form was released. I have only updated the mod through Luanti.

User avatar
Blockhead
Moderator
Posts: 3078
Joined: Wed Jul 17, 2019 10:14
GitHub: Montandalar
IRC: Blockhead256
In-game: Blockhead Blockhead256
Location: Land Down Under
Contact:

Re: [Mod] Advanced Trains [advtrains] [2.9.0]

by Blockhead » Post

Good news everybody! Luanti 5.17 has released and brings with it a new kind of animations with multiple tracks, supported by glTF format models. This means we could apply wheel animations, separate-side door animations and even others like bogie animations all simultaneously. It also means named actions can be used instead of frame ranges.
/˳˳_˳˳]_[˳˳_˳˳]_[˳˳_˳˳\ Advtrains enthusiast | My map: Noah's Railyard | My Content on ContentDB ✝️♂

User avatar
Blockhead
Moderator
Posts: 3078
Joined: Wed Jul 17, 2019 10:14
GitHub: Montandalar
IRC: Blockhead256
In-game: Blockhead Blockhead256
Location: Land Down Under
Contact:

Re: [Mod] Advanced Trains [advtrains] [2.9.0]

by Blockhead » Post

Blockhead wrote:
Sun Aug 23, 2026 13:27
Good news everybody! Luanti 5.17 has released and brings with it a new kind of animations with multiple tracks, supported by glTF format models. This means we could apply wheel animations, separate-side door animations and even others like bogie animations all simultaneously. It also means named actions can be used instead of frame ranges.
Thinking further: Could bogies maybe be a frame range according to rotation? Say frame 1 = -22°, frame 44 = 22° (or a further range, I'm running an approximation based on the 2:1 track pieces) and the code sets it periodically, or the animation playback rate is based on train speed to hopefully match turning rate at a given speed.
/˳˳_˳˳]_[˳˳_˳˳]_[˳˳_˳˳\ Advtrains enthusiast | My map: Noah's Railyard | My Content on ContentDB ✝️♂

User avatar
viollet_le_ducq
New member
Posts: 1
Joined: Fri Mar 11, 2022 16:45
In-game: violletleducq
Location: Near Paris

Re: [Mod] Advanced Trains [advtrains] [2.9.0]

by viollet_le_ducq » Post

OldMan wrote:
Fri Aug 14, 2026 22:25
I experience the same behaviour ever since the new form was released. I have only updated the mod through Luanti.
I'm also having this problem since the beginning, I have tried versions from ContentDB and Codeberg. Removing and replacing the track doesn't fix it. However, when I create a new world and enable Advtrains, the bug doesn't occur, it seems that it only happens on worlds upgraded from older versions.
« It is curious to notice that, in France, widows live longer than their husbands. » (J.-P. Raffarin)

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests