[Mod] Advanced Trains [advtrains] [2.1.1]

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

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

by orwell » Mon Mar 02, 2020 12:43

Chemnitzer Linux-Tage

I will be present at the Chemnitzer Linux-Tage on 14.-15. March. The event takes place in Chemnitz, Saxony. The language is mostly german.

Here's the german forum thread: https://forum.minetest.net/viewtopic.php?f=21&t=24011

You are very welcome to participate. I invite you to discuss with me about ideas and issues with advtrains.

EDIT: The CLT have been cancelled.
Last edited by orwell on Tue Mar 10, 2020 21:51, edited 1 time in total.
Lua is great!
List of my mods
I like singing. I like dancing. I like ... niyummm...
 

User avatar
Blockhead
Member
 
Posts: 17
Joined: Wed Jul 17, 2019 10:14
Location: Land Down Under
GitHub: Montandalar
In-game: Blockhead

Train Copy+Paste Tool

by Blockhead » Wed Mar 04, 2020 11:44

As per this feature request. I've added a tool to copy and paste trains.

GitHub repository: https://github.com/Montandalar/advtrains
Branch: copytrains

Edit: Has now been merged into master. Go furth and multiply (your trains)!
 

beaufils
New member
 
Posts: 3
Joined: Sun Oct 06, 2019 15:06

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

by beaufils » Mon Mar 23, 2020 22:34

I use minetest-server on Debian buster taken from the buster-backports archive. It is version 5.1.1+repack-1~bpo10+1.

I installed the advtrains from git master branch.

Each time I start the server I get a lot of warnings in the log file, some are from advtrains. For instance these :

Code: Select all
2020-03-23 23:19:58: WARNING[Main]: intllib.Getter is deprecated. Please use intllib.make_gettext_pair instead. (called from ...etest-server/.minetest/mods/advtrains/advtrains/init.lua:27) (at ...etest-server/.minetest/mods/advtrains/advtrains/init.lua:27)
2020-03-23 23:19:58: WARNING[Main]: intllib.Getter is deprecated. Please use intllib.make_gettext_pair instead. (called from ....minetest/mods/advtrains/advtrains_train_subway/init.lua:3) (at ....minetest/mods/advtrains/advtrains_train_subway/init.lua:3)
2020-03-23 23:19:58: WARNING[Main]: intllib.Getter is deprecated. Please use intllib.make_gettext_pair instead. (called from .../.minetest/mods/advtrains/advtrains_train_steam/init.lua:3) (at .../.minetest/mods/advtrains/advtrains_train_steam/init.lua:3)
2020-03-23 23:19:58: WARNING[Main]: intllib.Getter is deprecated. Please use intllib.make_gettext_pair instead. (called from .../.minetest/mods/advtrains/advtrains_train_japan/init.lua:3) (at .../.minetest/mods/advtrains/advtrains_train_japan/init.lua:3)
2020-03-23 23:19:58: WARNING[Main]: intllib.Getter is deprecated. Please use intllib.make_gettext_pair instead. (called from ...etest/mods/advtrains/advtrains_train_industrial/init.lua:4) (at ...etest/mods/advtrains/advtrains_train_industrial/init.lua:4)
2020-03-23 23:19:58: WARNING[Main]: intllib.Getter is deprecated. Please use intllib.make_gettext_pair instead. (called from ...minetest/mods/advtrains/advtrains_luaautomation/init.lua:7) (at ...minetest/mods/advtrains/advtrains_luaautomation/init.lua:7)
2020-03-23 23:19:58: WARNING[Main]: intllib.Getter is deprecated. Please use intllib.make_gettext_pair instead. (called from /usr/share/games/minetest/mods/unifieddyes/init.lua:39) (at /usr/share/games/minetest/mods/unifieddyes/init.lua:39)


Any ideas how to get rid how them?
 

beaufils
New member
 
Posts: 3
Joined: Sun Oct 06, 2019 15:06

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

by beaufils » Mon Mar 23, 2020 22:42

Removing the minetest-mod-intllib package (and thus the corresponding mods) remove a lot of warning message, but I still have the next one:

Code: Select all
2020-03-23 23:37:32: WARNING[Main]: Undeclared global variable "intllib" accessed at ...minetest/mods/advtrains/advtrains_luaautomation/init.lua:6


Is it that serious?
 

User avatar
theFox
Member
 
Posts: 184
Joined: Sun Feb 12, 2017 14:08
Location: Germany
GitHub: theFox6
In-game: theFox

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

by theFox » Tue Mar 24, 2020 06:34

beaufils wrote:Removing the minetest-mod-intllib package (and thus the corresponding mods) remove a lot of warning message, but I still have the next one:

Code: Select all
2020-03-23 23:37:32: WARNING[Main]: Undeclared global variable "intllib" accessed at ...minetest/mods/advtrains/advtrains_luaautomation/init.lua:6


Is it that serious?

It means that the mod is trying to use intllib and fails at doing so.
But if you don't get any errors it is probably just a check if intllib available, so it is not serious.
Modders can remove this warning by using
Code: Select all
if rawget(_G,"intllib") then
  -- it is avalible
end
my mods and subgames (ง'̀-'́)ง
 

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

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

by orwell » Tue Mar 24, 2020 19:18

Oof.

Yes, advtrains used to use intllib. But since 2 years I haven't updated any of the strings or the intllib code.
I opened an issue, and will remove the old intllib code soon. In the long term, I should re-add localization for all parts of the mod.
Lua is great!
List of my mods
I like singing. I like dancing. I like ... niyummm...
 

User avatar
Hume2
Member
 
Posts: 476
Joined: Tue Jun 19, 2018 08:24
Location: Czech Republic
GitHub: Hume2
In-game: Hume2

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

by Hume2 » Fri Mar 27, 2020 10:36

You can't assign a TCB to a rail switch. However, you can assign it to a straight track and then use the track worker tool to change it to switch. The same works with influence points.
If you lack the reality, go on a trip or find a job.
 

Previous

Return to Mod Releases



Who is online

Users browsing this forum: davidthecreator and 3 guests