[Mod] Advanced Trains [advtrains] [2.9.0]

nazgurth
Member
Posts: 35
Joined: Wed Nov 15, 2023 16:58

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

by nazgurth » Post

Blockhead wrote:
Wed Apr 01, 2026 20:31
nazgurth wrote:
Wed Apr 01, 2026 12:23
Two turnouts in my world are randomly turning back into normal tracks every time I close Luanti.

....

Edit 3: downgrading advtrains to 2.8.3 fixed the problems. I think upgrading to 2.9.0 made closing Luanti just reset everything to however it was before the update.
Please check your debug.txt for messages. It sounds like the nodedb is failing to be updated. When Advtrains reloads an area, it will reload from the nodedb.
Yes, I can see

2026-04-01 15:09:14: ACTION[ServerStop]: [advtrains]Restore node database: Replaced 0 nodes, removed 0 ghost nodes. (took 33ms)

after the times I closed the world with 2.9.0 instead of

2026-04-01 21:58:58: ACTION[ServerStop]: [advtrains]Saved advtrains save files, took 23 ms

along with a bunch of the same restore messages in random other places.

Maybe the following information has something to do with it?

2026-03-29 23:12:14: WARNING[ServerStart]: Server: ignoring file as it has disallowed characters: "advtrains_luaautomation.zh_TW.po~"
2026-03-29 23:12:14: WARNING[ServerStart]: Server: ignoring file as it has disallowed characters: "advtrains_luaautomation.fr.po~"
2026-03-29 23:12:14: WARNING[ServerStart]: Server: ignoring file as it has disallowed characters: "advtrains_luaautomation.zh_CN.po~"
2026-03-29 23:12:14: WARNING[ServerStart]: Server: ignoring file as it has disallowed characters: "advtrains_luaautomation.de.po~"
2026-03-29 23:12:14: WARNING[ServerStart]: Server: ignoring file as it has disallowed characters: "advtrains_line_automation.fr.po~"
2026-03-29 23:12:14: WARNING[ServerStart]: Server: ignoring file as it has disallowed characters: "advtrains_line_automation.zh_CN.po~"
2026-03-29 23:12:14: WARNING[ServerStart]: Server: ignoring file as it has disallowed characters: "advtrains_line_automation.de.po~"
2026-03-29 23:12:14: WARNING[ServerStart]: Server: ignoring file as it has disallowed characters: "advtrains_line_automation.zh_TW.po~"
2026-03-29 23:12:14: WARNING[ServerStart]: Server: ignoring file as it has disallowed characters: "advtrains_interlocking.de.po~"
2026-03-29 23:12:14: WARNING[ServerStart]: Server: ignoring file as it has disallowed characters: "advtrains_interlocking.zh_TW.po~"
2026-03-29 23:12:14: WARNING[ServerStart]: Server: ignoring file as it has disallowed characters: "advtrains_interlocking.zh_CN.po~"
2026-03-29 23:12:14: WARNING[ServerStart]: Server: ignoring file as it has disallowed characters: "advtrains_interlocking.fr.po~"

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

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

by yw05 » Post

nazgurth wrote:
Thu Apr 02, 2026 09:58
Maybe the following information has something to do with it?

2026-03-29 23:12:14: WARNING[ServerStart]: Server: ignoring file as it has disallowed characters: "advtrains_luaautomation.zh_TW.po~"
2026-03-29 23:12:14: WARNING[ServerStart]: Server: ignoring file as it has disallowed characters: "advtrains_luaautomation.fr.po~"
2026-03-29 23:12:14: WARNING[ServerStart]: Server: ignoring file as it has disallowed characters: "advtrains_luaautomation.zh_CN.po~"
2026-03-29 23:12:14: WARNING[ServerStart]: Server: ignoring file as it has disallowed characters: "advtrains_luaautomation.de.po~"
2026-03-29 23:12:14: WARNING[ServerStart]: Server: ignoring file as it has disallowed characters: "advtrains_line_automation.fr.po~"
2026-03-29 23:12:14: WARNING[ServerStart]: Server: ignoring file as it has disallowed characters: "advtrains_line_automation.zh_CN.po~"
2026-03-29 23:12:14: WARNING[ServerStart]: Server: ignoring file as it has disallowed characters: "advtrains_line_automation.de.po~"
2026-03-29 23:12:14: WARNING[ServerStart]: Server: ignoring file as it has disallowed characters: "advtrains_line_automation.zh_TW.po~"
2026-03-29 23:12:14: WARNING[ServerStart]: Server: ignoring file as it has disallowed characters: "advtrains_interlocking.de.po~"
2026-03-29 23:12:14: WARNING[ServerStart]: Server: ignoring file as it has disallowed characters: "advtrains_interlocking.zh_TW.po~"
2026-03-29 23:12:14: WARNING[ServerStart]: Server: ignoring file as it has disallowed characters: "advtrains_interlocking.zh_CN.po~"
2026-03-29 23:12:14: WARNING[ServerStart]: Server: ignoring file as it has disallowed characters: "advtrains_interlocking.fr.po~"
No, and these files (with the tilde at the end) do not appear to be in the repo to begin with.

nazgurth
Member
Posts: 35
Joined: Wed Nov 15, 2023 16:58

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

by nazgurth » Post

yw05 wrote:
Thu Apr 02, 2026 11:52
nazgurth wrote:
Thu Apr 02, 2026 09:58
Maybe the following information has something to do with it?
No, and these files (with the tilde at the end) do not appear to be in the repo to begin with.
Whatever they were, they exist in the 2.9.0 advtrains_interlocking, advtrains_line_automation and advtrains_luaautomation locale folders, but not the 2.8.3 ones. Their file type is "Backup file" and MIME type is "application/x-trash". The icons look like holographic/ghost text file icons.

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

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

by yw05 » Post

nazgurth wrote:
Fri Apr 03, 2026 09:22
Whatever they were, they exist in the 2.9.0 advtrains_interlocking, advtrains_line_automation and advtrains_luaautomation locale folders, but not the 2.8.3 ones.
Interesting. It seems like these files are not present in the repo but packaged into CDB. I suppose there was a packaging issue here.

In any case, the .po~ files are backups of translation files; they do not have anything to do with server-side track placement logic.

Note to orwell: please consider using git archive when packaging.

User avatar
NicoKaiserHello
Member
Posts: 79
Joined: Sat Jul 06, 2024 17:34
GitHub: Nico K
In-game: NicoKaiser
Location: Germany/Bavaria
Contact:

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

by NicoKaiserHello » Post

Slightly wrote:
Sun Feb 22, 2026 17:40
NicoKaiserHello wrote:
Sun Feb 22, 2026 12:27


I downloaded the .ZIP of all (https://gitea.your-land.de/Slightly/sc_ ... ain/tracks) and put it in my mods, but if i select it this fail is comming. (I have this time version 5.9)
The mod is here https://gitea.your-land.de/Slightly/sc_ ... ns_patches. New UI for wagon properties coming today.
Ok. Thanks! Today are holidays again and i can play mt again 🤤
I like building and programming!

User avatar
NicoKaiserHello
Member
Posts: 79
Joined: Sat Jul 06, 2024 17:34
GitHub: Nico K
In-game: NicoKaiser
Location: Germany/Bavaria
Contact:

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

by NicoKaiserHello » Post

(Minetest 5.9.0 Singleplayer)

I placed a train (Train ID: 129310) with Line and Routingcode "U1", placed a timetable and created a new line:

Line: "U1",
Variant: nil,
Dest. Display: nil,
Disabled: false,
Contiues: nil,
Stations:{
0:{
St. Time: 1,
Station Code: "SpawnHBF",
Mode: "Normal",
Track: "TestA",
Position: nil
},
0:{
St. Time: 1,
Station Code: "SpawnHBF",
Mode: "Terminus",
Track: "TestB",
Position: nil
}
}

I activated ATC and the train drived from "TestA" to "TestB", but in the timetable its "U1 Spawn Hauptbahnhof unknow state". Why it don't print the train? (in command /list_trains and /list_trains+ aren't trains with line and the train have Line "U1" like the line from Line Editor). Can you help me please?

Or is the probleme because of the stop position?
I like building and programming!

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

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

by orwell » Post

nazgurth wrote:
Fri Apr 03, 2026 09:22
Whatever they were, they exist in the 2.9.0 advtrains_interlocking, advtrains_line_automation and advtrains_luaautomation locale folders, but not the 2.8.3 ones. Their file type is "Backup file" and MIME type is "application/x-trash". The icons look like holographic/ghost text file icons.
Hm, these are the backup files that msgmerge (from the update_translations script) leaves behind, i forgot to clean them. But I don't think they cause the issues you see.

It looks to me like it fails to save the save files. then next time it starts up again it restores the last known state. because advtrains also keeps a storage of all tracks in the world (the nodedb) it also restores these.

It's curious that it works in 2.8.3, because there were no changes at all to the save format and/or the saving code. Are there any error messages in the 2.9.0 related to saving? I take it the "Saved advtrains save files, took 23ms" line does NOT appear in 2.9.0?
Lua is great!
List of my mods
I like singing. I like dancing. I like ... niyummm...

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

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

by orwell » Post

NicoKaiserHello wrote:
Mon Apr 06, 2026 12:54
(Minetest 5.9.0 Singleplayer)

I placed a train (Train ID: 129310) with Line and Routingcode "U1", placed a timetable and created a new line:

Line: "U1",
Variant: nil,
Dest. Display: nil,
Disabled: false,
Contiues: nil,
Stations:{
0:{
St. Time: 1,
Station Code: "SpawnHBF",
Mode: "Normal",
Track: "TestA",
Position: nil
},
0:{
St. Time: 1,
Station Code: "SpawnHBF",
Mode: "Terminus",
Track: "TestB",
Position: nil
}
}

I activated ATC and the train drived from "TestA" to "TestB", but in the timetable its "U1 Spawn Hauptbahnhof unknow state". Why it don't print the train? (in command /list_trains and /list_trains+ aren't trains with line and the train have Line "U1" like the line from Line Editor). Can you help me please?

Or is the probleme because of the stop position?
It's hard to tell without screenshots. but two things that you could check:
- the station code in the timetable needs to match the station code of the station/stop rails along the route. in your case the station code is "SpawnHBF" but supposedly the stations are "TestA" and "TestB"? this doesn't look quite right.
- the starting station needs to be set to "Begin timetable" in the departure mode. If you set it up correctly then your timetable will appear in the dropdown there.
Lua is great!
List of my mods
I like singing. I like dancing. I like ... niyummm...

nazgurth
Member
Posts: 35
Joined: Wed Nov 15, 2023 16:58

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

by nazgurth » Post

orwell wrote:
Tue Apr 07, 2026 17:11
nazgurth wrote:
Fri Apr 03, 2026 09:22
Whatever they were, they exist in the 2.9.0 advtrains_interlocking, advtrains_line_automation and advtrains_luaautomation locale folders, but not the 2.8.3 ones. Their file type is "Backup file" and MIME type is "application/x-trash". The icons look like holographic/ghost text file icons.
Hm, these are the backup files that msgmerge (from the update_translations script) leaves behind, i forgot to clean them. But I don't think they cause the issues you see.

It looks to me like it fails to save the save files. then next time it starts up again it restores the last known state. because advtrains also keeps a storage of all tracks in the world (the nodedb) it also restores these.

It's curious that it works in 2.8.3, because there were no changes at all to the save format and/or the saving code. Are there any error messages in the 2.9.0 related to saving? I take it the "Saved advtrains save files, took 23ms" line does NOT appear in 2.9.0?
It does not, yes. I can't see any error messages, the only saving-related thing I found was loading the save files.

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

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

by orwell » Post

nazgurth wrote:
Mon Apr 13, 2026 08:41
It does not, yes. I can't see any error messages, the only saving-related thing I found was loading the save files.
Hi nazgurth,

Thanks for pointing this out. I confirmed that I made a stupid mistake when exporting the mod for ContentDB, and left the NO_SAVE mode enabled. TODO for myself: enhance the release script to confirm that there are no uncommitted changes.

I updated the zip on the contentdb. Please try to re-download.

-Orwell
Lua is great!
List of my mods
I like singing. I like dancing. I like ... niyummm...

nazgurth
Member
Posts: 35
Joined: Wed Nov 15, 2023 16:58

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

by nazgurth » Post

orwell wrote:
Tue Apr 14, 2026 21:28
nazgurth wrote:
Mon Apr 13, 2026 08:41
It does not, yes. I can't see any error messages, the only saving-related thing I found was loading the save files.
Hi nazgurth,

Thanks for pointing this out. I confirmed that I made a stupid mistake when exporting the mod for ContentDB, and left the NO_SAVE mode enabled. TODO for myself: enhance the release script to confirm that there are no uncommitted changes.

I updated the zip on the contentdb. Please try to re-download.

-Orwell
Works, thanks.

User avatar
NicoKaiserHello
Member
Posts: 79
Joined: Sat Jul 06, 2024 17:34
GitHub: Nico K
In-game: NicoKaiser
Location: Germany/Bavaria
Contact:

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

by NicoKaiserHello » Post

orwell wrote:
Tue Apr 07, 2026 17:14
NicoKaiserHello wrote:
Mon Apr 06, 2026 12:54
(Minetest 5.9.0 Singleplayer)

I placed a train (Train ID: 129310) with Line and Routingcode "U1", placed a timetable and created a new line:

Line: "U1",
Variant: nil,
Dest. Display: nil,
Disabled: false,
Contiues: nil,
Stations:{
0:{
St. Time: 1,
Station Code: "SpawnHBF",
Mode: "Normal",
Track: "TestA",
Position: nil
},
0:{
St. Time: 1,
Station Code: "SpawnHBF",
Mode: "Terminus",
Track: "TestB",
Position: nil
}
}

I activated ATC and the train drived from "TestA" to "TestB", but in the timetable its "U1 Spawn Hauptbahnhof unknow state". Why it don't print the train? (in command /list_trains and /list_trains+ aren't trains with line and the train have Line "U1" like the line from Line Editor). Can you help me please?

Or is the probleme because of the stop position?
It's hard to tell without screenshots. but two things that you could check:
- the station code in the timetable needs to match the station code of the station/stop rails along the route. in your case the station code is "SpawnHBF" but supposedly the stations are "TestA" and "TestB"? this doesn't look quite right.
- the starting station needs to be set to "Begin timetable" in the departure mode. If you set it up correctly then your timetable will appear in the dropdown there.
Today are holidays again. And i couldn't load up a screenshoot. I don't know why... But I will try again...
More datas are comming later with a edit.

Updated: YES!!! After trying do it (I set Begin Timetable [Interval: 60 ; Offset: 30] and more) it print "'U1 Spawn Wendeschleife' in operation". Thanks!
Last edited by NicoKaiserHello on Tue May 05, 2026 14:18, edited 1 time in total.
I like building and programming!

User avatar
NicoKaiserHello
Member
Posts: 79
Joined: Sat Jul 06, 2024 17:34
GitHub: Nico K
In-game: NicoKaiser
Location: Germany/Bavaria
Contact:

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

by NicoKaiserHello » Post

deleted
Last edited by NicoKaiserHello on Tue May 05, 2026 14:18, edited 2 times in total.
I like building and programming!

User avatar
NicoKaiserHello
Member
Posts: 79
Joined: Sat Jul 06, 2024 17:34
GitHub: Nico K
In-game: NicoKaiser
Location: Germany/Bavaria
Contact:

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

by NicoKaiserHello » Post

But how can i stop the train at "on request"-stations? I saved now the one as "on request"-station and it prints "Next Station: Spawn Wendeschleife (on request)" ("Wendeschleife"="Turn"). But the train is driving slower and then he drive away from station... Is there a button system or a sensor for the platform?
I like building and programming!

User avatar
NicoKaiserHello
Member
Posts: 79
Joined: Sat Jul 06, 2024 17:34
GitHub: Nico K
In-game: NicoKaiser
Location: Germany/Bavaria
Contact:

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

by NicoKaiserHello » Post

While I waited to a reply, I edit the style of advtrains.de.

<html data-lt-installed="true">
<head>
<title>Advanced Trains</title>
<style>
body {
color: white;
}
html, body {
margin:0;
}
</style>
</head>
<body id="bg" cz-shortcut-listen="true" style="background-image:url(title.png); backdrop-filter:brightness(25%); background-color:black">
<div style="text-align: center;">
<img src="title.png" style="width: 80%; height: auto;">
</div>
<div style="text-align: left;">
<p>
<i>Advanced Trains</i> (advtrains) is a mod for games based on the <s><a href="http://minetest.net">Minetest</a></s> <a href="https://luanti.org">Luanti</a> engine. It adds trains and various equipment for building and operating railways in <s>Minetest</s> Luanti worlds.
</p>
<h3>Installation, usage and documentation</h3>
<p>This mod has a <a href="wiki">Wiki</a>. It contains instructions, tutorials and documentation for most parts of advtrains. You are welcome to contribute.
</p>
<p>Important announcements are made on the <a href="https://forum.minetest.net/viewtopic.ph ... ">Minetest Forums</a>.
</p>
<h3>Important links</h3>
<ul>
<li><a href="https://forum.minetest.net/viewtopic.ph ... ">Minetest Forum</a></li>
<li><a href="https://content.minetest.net/packages/o ... /">Content Database</a></li>
<li><a href="https://git.bananach.space/advtrains.git/">Git Repository</a></li>
<li>Mailing Lists:
<ul>
<li><a href="https://lists.sr.ht/~gpcf/advtrains-dis ... on</a></li>
<li><a href="https://lists.sr.ht/~gpcf/advtrains-dev ... nt</a></li>
</ul>
</li>
<li><a href="wiki">Wiki</a></li>
<li><a href="https://notabug.org/advtrains/">advtrains mirror on notabug.org</a></li>
<li><a href="videos/">Videos :)</a></li>
</ul>
<h3>More content on this page</h3>
<p>advtrains.de contains some more things related to advtrains, which are listed here:</p>
<ul>
<li><a href="web_old">The old website, made by mbb</a> (looks better but is outdated :/)</li>
<li><a href="linuxworks">Outdated subway maps</a> for <a href="http://wiki.linux-forks.de">Linuxworks Minetest (?) Server</a> (and <a href="linuxworks/maps">more</a>)</li>
<li><a href="metro">Simple, user-unfriendly subway map editor</a> (the tool used for most older subway maps on Linuxworks)</li>
</ul>
<hr>
<p>(C) 2018-2020 orwell96 (<a href="disclaimer">Disclaimer</a>)</p>
<div style="height:100%"></div>
<deepl-input-controller translate="no"></deepl-input-controller></body></html>
Upper
Upper
Minetest.jpg (474.54 KiB) Viewed 86 times
Lower
Lower
Minetest.jpg (326.09 KiB) Viewed 86 times
I like building and programming!

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests