[Mod] Advanced Trains [advtrains] [2.4.3]
- orwell
- Member
- Posts: 958
- Joined: Wed Jun 24, 2015 18:45
- GitHub: orwell96
- IRC: orwell96_mt
- In-game: orwell
- Location: Raxacoricofallapatorius
Re: [Mod] Advanced Trains [advtrains] [1.8.3]
@v-rob
The trucks, as you describe them, are in my long-term to-do list for this mod.
I have been thinking about significant changes to the rail system, as well as how to implement sounds, and i already have a proof plan on how to implement trucks. My problem is that I have only occasional time the next two months, and therefore can't work on the mod.
(additionally, the first thing to do is extensive modeling, which will consume much time)
The trucks, as you describe them, are in my long-term to-do list for this mod.
I have been thinking about significant changes to the rail system, as well as how to implement sounds, and i already have a proof plan on how to implement trucks. My problem is that I have only occasional time the next two months, and therefore can't work on the mod.
(additionally, the first thing to do is extensive modeling, which will consume much time)
- Andrey01
- Member
- Posts: 2579
- Joined: Wed Oct 19, 2016 15:18
- GitHub: Andrey2470T
- In-game: Andrey01
- Location: Russia, Moscow
Re: [Mod] Advanced Trains [advtrains] [1.8.3]
Update 2.1
-Added models for cabels (I just forgot to add their before).
-Added models for cabels (I just forgot to add their before).
Re: [Mod] Advanced Trains [advtrains] [1.8.3]
ja alles fertiguser wrote:Hi mbb,
Hast Du passend zu den schicken Waggons auch eine passende Lok in Planung?
mfg user
cdb_2fcfab1b41f9
- Andrey01
- Member
- Posts: 2579
- Joined: Wed Oct 19, 2016 15:18
- GitHub: Andrey2470T
- In-game: Andrey01
- Location: Russia, Moscow
Re: [Mod] Advanced Trains [advtrains] [1.8.3]
Can you fix it, please?Andrey01 wrote:An error when i am trying to join the server with new update:Mbb, what did you do wrong in rockets?Code: Select all
2017-08-08 14:56:49: ERROR[Main]: ModError: Failed to load and run script from /home/user/.minetest/mods/advtrains/advtrains_rocket/init.lua: 2017-08-08 14:56:49: ERROR[Main]: /usr/share/minetest/builtin/game/register.lua:65: Name advtrains_train_rocket:barrel does not follow naming conventions: "advtrains_rocket:" or ":" prefix required 2017-08-08 14:56:49: ERROR[Main]: stack traceback: 2017-08-08 14:56:49: ERROR[Main]: [C]: in function 'error' 2017-08-08 14:56:49: ERROR[Main]: /usr/share/minetest/builtin/game/register.lua:65: in function 'check_modname_prefix' 2017-08-08 14:56:49: ERROR[Main]: /usr/share/minetest/builtin/game/register.lua:113: in function 'register_item' 2017-08-08 14:56:49: ERROR[Main]: /usr/share/minetest/builtin/game/register.lua:206: in function 'register_node' 2017-08-08 14:56:49: ERROR[Main]: .../user/.minetest/mods/advtrains/advtrains_rocket/init.lua:164: in main chunk 2017-08-08 14:56:49: ERROR[Main]: Подробная информация в debug.txt.
Add inventory icon for diesel locomotive, please, too.
Re: [Mod] Advanced Trains [advtrains] [1.8.3]
@mbb wo kann ich es downloaden?
Re: [Mod] Advanced Trains [advtrains] [1.8.3]
noch nicht aber morgenuser wrote:@mbb wo kann ich es downloaden?
cdb_2fcfab1b41f9
Re: [Mod] Advanced Trains [advtrains] [1.8.3]
... and capacitor, mast and cabel icons.... don't appears with the Unified Inventory (but take your time, It's just a tedious problem, not a bug).Andrey01 wrote:Can you fix it, please?Andrey01 wrote:An error when i am trying to join the server with new update:Mbb, what did you do wrong in rockets?Code: Select all
2017-08-08 14:56:49: ERROR[Main]: ModError: Failed to load and run script from /home/user/.minetest/mods/advtrains/advtrains_rocket/init.lua: 2017-08-08 14:56:49: ERROR[Main]: /usr/share/minetest/builtin/game/register.lua:65: Name advtrains_train_rocket:barrel does not follow naming conventions: "advtrains_rocket:" or ":" prefix required 2017-08-08 14:56:49: ERROR[Main]: stack traceback: 2017-08-08 14:56:49: ERROR[Main]: [C]: in function 'error' 2017-08-08 14:56:49: ERROR[Main]: /usr/share/minetest/builtin/game/register.lua:65: in function 'check_modname_prefix' 2017-08-08 14:56:49: ERROR[Main]: /usr/share/minetest/builtin/game/register.lua:113: in function 'register_item' 2017-08-08 14:56:49: ERROR[Main]: /usr/share/minetest/builtin/game/register.lua:206: in function 'register_node' 2017-08-08 14:56:49: ERROR[Main]: .../user/.minetest/mods/advtrains/advtrains_rocket/init.lua:164: in main chunk 2017-08-08 14:56:49: ERROR[Main]: Подробная информация в debug.txt.
Add inventory icon for diesel locomotive, please, too.
I inform you that I'm on half of the recordings (+/-)... I think I will end by the end of this month ;-)
soon
R
- azekill_DIABLO
- Member
- Posts: 7507
- Joined: Wed Oct 29, 2014 20:05
- GitHub: azekillDIABLO
- In-game: azekill_DIABLO
- Location: OMICRON
- Contact:
Re: [Mod] Advanced Trains [advtrains] [1.8.3]
why this indicator goes off screen?azekill_DIABLO wrote:hmm, i found some bug:
Gone, but not dead. Contact me on discord: azekill_DIABLO#6565
DMs are always open if you want to get in touch!
DMs are always open if you want to get in touch!
- Andrey01
- Member
- Posts: 2579
- Joined: Wed Oct 19, 2016 15:18
- GitHub: Andrey2470T
- In-game: Andrey01
- Location: Russia, Moscow
Re: [Mod] Advanced Trains [advtrains] [1.8.3]
Umm... it has already fixed, download version 2.1. I forgot to add models for cabels. But may you fix that error with rockets? Something happens there incorrect. Only mbb forgot to add inventory icon for diesel locomotive.Codesound wrote:... and capacitor, mast and cabel icons.... don't appears with the Unified Inventory (but take your time, It's just a tedious problem, not a bug).Andrey01 wrote:Can you fix it, please?Andrey01 wrote:An error when i am trying to join the server with new update:Mbb, what did you do wrong in rockets?Code: Select all
2017-08-08 14:56:49: ERROR[Main]: ModError: Failed to load and run script from /home/user/.minetest/mods/advtrains/advtrains_rocket/init.lua: 2017-08-08 14:56:49: ERROR[Main]: /usr/share/minetest/builtin/game/register.lua:65: Name advtrains_train_rocket:barrel does not follow naming conventions: "advtrains_rocket:" or ":" prefix required 2017-08-08 14:56:49: ERROR[Main]: stack traceback: 2017-08-08 14:56:49: ERROR[Main]: [C]: in function 'error' 2017-08-08 14:56:49: ERROR[Main]: /usr/share/minetest/builtin/game/register.lua:65: in function 'check_modname_prefix' 2017-08-08 14:56:49: ERROR[Main]: /usr/share/minetest/builtin/game/register.lua:113: in function 'register_item' 2017-08-08 14:56:49: ERROR[Main]: /usr/share/minetest/builtin/game/register.lua:206: in function 'register_node' 2017-08-08 14:56:49: ERROR[Main]: .../user/.minetest/mods/advtrains/advtrains_rocket/init.lua:164: in main chunk 2017-08-08 14:56:49: ERROR[Main]: Подробная информация в debug.txt.
Add inventory icon for diesel locomotive, please, too.
I inform you that I'm on half of the recordings (+/-)... I think I will end by the end of this month ;-)
soon
R
- Andrey01
- Member
- Posts: 2579
- Joined: Wed Oct 19, 2016 15:18
- GitHub: Andrey2470T
- In-game: Andrey01
- Location: Russia, Moscow
Re: [Mod] Advanced Trains [advtrains] [1.8.3]
Orwell, do you remember you wrote information about that to use trains everyone needs coal for it? Maybe can i help you?
Re: [Mod] Advanced Trains [advtrains] [1.8.3]
Andrey01 wrote:Can you fix it, please?Andrey01 wrote:An error when i am trying to join the server with new update:you have to rename the folder into advtrains_trains_rocketCode: Select all
2017-08-08 14:56:49: ERROR[Main]: ModError: Failed to load and run script from /home/user/.minetest/mods/advtrains/advtrains_rocket/init.lua: 2017-08-08 14:56:49: ERROR[Main]: /usr/share/minetest/builtin/game/register.lua:65: Name advtrains_train_rocket:barrel does not follow naming conventions: "advtrains_rocket:" or ":" prefix required 2017-08-08 14:56:49: ERROR[Main]: stack traceback: 2017-08-08 14:56:49: ERROR[Main]: [C]: in function 'error' 2017-08-08 14:56:49: ERROR[Main]: /usr/share/minetest/builtin/game/register.lua:65: in function 'check_modname_prefix' 2017-08-08 14:56:49: ERROR[Main]: /usr/share/minetest/builtin/game/register.lua:113: in function 'register_item' 2017-08-08 14:56:49: ERROR[Main]: /usr/share/minetest/builtin/game/register.lua:206: in function 'register_node' 2017-08-08 14:56:49: ERROR[Main]: .../user/.minetest/mods/advtrains/advtrains_rocket/init.lua:164: in main chunk 2017-08-08 14:56:49: ERROR[Main]: Подробная информация в debug.txt.
Mbb, what did you do wrong in rockets?
Add inventory icon for diesel locomotive, please, too.
cdb_2fcfab1b41f9
- Andrey01
- Member
- Posts: 2579
- Joined: Wed Oct 19, 2016 15:18
- GitHub: Andrey2470T
- In-game: Andrey01
- Location: Russia, Moscow
Re: [Mod] Advanced Trains [advtrains] [1.8.3]
Mbb, are you developing compartment wagon still? I am just waiting coming of that wagon.
Re: [Mod] Advanced Trains [advtrains] [1.8.3]
I am Ready there is a sleeping wagon too but i'm on a hollyday trip and i have so bad internet that i cant uploade itAndrey01 wrote:Mbb, are you developing compartment wagon still? I am just waiting coming of that wagon.
cdb_2fcfab1b41f9
- orwell
- Member
- Posts: 958
- Joined: Wed Jun 24, 2015 18:45
- GitHub: orwell96
- IRC: orwell96_mt
- In-game: orwell
- Location: Raxacoricofallapatorius
Re: [Mod] Advanced Trains [advtrains] [1.8.3]
Hm, if you understand how my code works, you could implement it.Andrey01 wrote:Orwell, do you remember you wrote information about that to use trains everyone needs coal for it? Maybe can i help you?
You would need to set up an inventory for the steam engine for the coal. I documented my api for that somewhere. Then you need to write a custom on-step function (also documented)
The train's speed can be accessed as
Code: Select all
self:train().velocity
Thanks a lot Codesound for the recordings, and all others for doing their part.
- Andrey01
- Member
- Posts: 2579
- Joined: Wed Oct 19, 2016 15:18
- GitHub: Andrey2470T
- In-game: Andrey01
- Location: Russia, Moscow
Re: [Mod] Advanced Trains [advtrains] [1.8.3]
Currently i don`t know API of Minetest and your mod itself. I even don`t know LUA. But i will try to learn it. That`s why i can not implement that you are suggesting.orwell wrote:Hm, if you understand how my code works, you could implement it.Andrey01 wrote:Orwell, do you remember you wrote information about that to use trains everyone needs coal for it? Maybe can i help you?
You would need to set up an inventory for the steam engine for the coal. I documented my api for that somewhere. Then you need to write a custom on-step function (also documented)
The train's speed can be accessed as(As far as i remember)Code: Select all
self:train().velocity
Thanks a lot Codesound for the recordings, and all others for doing their part.
- v-rob
- Developer
- Posts: 971
- Joined: Thu Mar 24, 2016 03:19
- GitHub: v-rob
- IRC: v-rob
- Location: Right behind you.
Re: [Mod] Advanced Trains [advtrains] [1.8.3]
EDIT: How do you edit advanced trains to work on the 45-degree track (depreciated track)? Which Lua file is this stuff stored in?
- orwell
- Member
- Posts: 958
- Joined: Wed Jun 24, 2015 18:45
- GitHub: orwell96
- IRC: orwell96_mt
- In-game: orwell
- Location: Raxacoricofallapatorius
Re: [Mod] Advanced Trains [advtrains] [1.8.3]
You have two possibilities:v-rob wrote:EDIT: How do you edit advanced trains to work on the 45-degree track (depreciated track)? Which Lua file is this stuff stored in?
1. edit the drives_on property of every wagon you want to drive on the "deprecated track" so that it says
Code: Select all
drives_on={default=true, regular=true},
Note: the deprecated tracks are called "regular" in the code for compatibility reasons
2. in advtrains/tracks.lua, replace every appearance of "regular" with "default". This way, all rails get the same tracktype called "default". However, this might break the track placement.
- azekill_DIABLO
- Member
- Posts: 7507
- Joined: Wed Oct 29, 2014 20:05
- GitHub: azekillDIABLO
- In-game: azekill_DIABLO
- Location: OMICRON
- Contact:
Re: [Mod] Advanced Trains [advtrains] [1.8.3]
you've probably seen it, but https://www.youtube.com/watch?v=yFn6VX_8VCM
Gone, but not dead. Contact me on discord: azekill_DIABLO#6565
DMs are always open if you want to get in touch!
DMs are always open if you want to get in touch!
Re: [Mod] Advanced Trains [advtrains] [1.8.3]
hi,
How can i get the train-outdoor-text?
"if event.train and advtrains.trains[event.id].text_outside == "Test" then" is wrong
The displayed outside-text is "Test". Where is my mistake?
"if event.id" is true!
best regards
user
How can i get the train-outdoor-text?
"if event.train and advtrains.trains[event.id].text_outside == "Test" then" is wrong
The displayed outside-text is "Test". Where is my mistake?
"if event.id" is true!
best regards
user
- orwell
- Member
- Posts: 958
- Joined: Wed Jun 24, 2015 18:45
- GitHub: orwell96
- IRC: orwell96_mt
- In-game: orwell
- Location: Raxacoricofallapatorius
Re: [Mod] Advanced Trains [advtrains] [1.8.3]
The LuaATC environment is sandboxed. You don't have access to anything in the minetest namespace.
There is no way to check a train's outside text.
There is no way to check a train's outside text.
- BirgitLachner
- Member
- Posts: 393
- Joined: Thu May 05, 2016 10:18
- In-game: Bibs
Re: [Mod] Advanced Trains [advtrains] [1.8.3]
Sadly ... I cannot run the mod ...
I took the file with "(this contains only the files needed to run the mod)"
and got the folllowing error
I took the file with "(this contains only the files needed to run the mod)"
and got the folllowing error
Code: Select all
2017-08-15 21:20:38: ERROR[Server]: Failed to read advtrains save data from file /home/birgit/.minetest/worlds/Eisenbahnwelt/advtrains: /home/birgit/.minetest/worlds/Eisenbahnwelt/advtrains: Datei oder Verzeichnis nicht gefunden
2017-08-15 21:20:38: ERROR[Server]: Failed to read advtrains_luaautomation save data from file /home/birgit/.minetest/worlds/Eisenbahnwelt/advtrains_luaautomation: /home/birgit/.minetest/worlds/Eisenbahnwelt/advtrains_luaautomation: Datei oder Verzeichnis nicht gefunden
- Andrey01
- Member
- Posts: 2579
- Joined: Wed Oct 19, 2016 15:18
- GitHub: Andrey2470T
- In-game: Andrey01
- Location: Russia, Moscow
Re: [Mod] Advanced Trains [advtrains] [1.8.3]
Hmm... why does "advtrains" folder store in worlds directory? It must keeps in mods logically. I doubt much you don`t know it, rather maybe i don`t understand something here...BirgitLachner wrote:Sadly ... I cannot run the mod ...
I took the file with "(this contains only the files needed to run the mod)"
and got the folllowing error
Code: Select all
2017-08-15 21:20:38: ERROR[Server]: Failed to read advtrains save data from file /home/birgit/.minetest/worlds/Eisenbahnwelt/advtrains: /home/birgit/.minetest/worlds/Eisenbahnwelt/advtrains: Datei oder Verzeichnis nicht gefunden 2017-08-15 21:20:38: ERROR[Server]: Failed to read advtrains_luaautomation save data from file /home/birgit/.minetest/worlds/Eisenbahnwelt/advtrains_luaautomation: /home/birgit/.minetest/worlds/Eisenbahnwelt/advtrains_luaautomation: Datei oder Verzeichnis nicht gefunden
Re: [Mod] Advanced Trains [advtrains] [1.8.3]
hi orwell,
thanks for answer!
Do you know an other way to identify a train? (train id?)
best regards
thanks for answer!
Do you know an other way to identify a train? (train id?)
best regards
- BirgitLachner
- Member
- Posts: 393
- Joined: Thu May 05, 2016 10:18
- In-game: Bibs
Re: [Mod] Advanced Trains [advtrains] [1.8.3]
Hmmm, well, you are right, that is a bit strange. Of cause I know where to put the mod Folders. I started it once again ...Andrey01 wrote:Hmm... why does "advtrains" folder store in worlds directory? It must keeps in mods logically. I doubt much you don`t know it, rather maybe i don`t understand something here...BirgitLachner wrote:Sadly ... I cannot run the mod ...
I took the file with "(this contains only the files needed to run the mod)"
and got the folllowing error
Code: Select all
2017-08-15 21:20:38: ERROR[Server]: Failed to read advtrains save data from file /home/birgit/.minetest/worlds/Eisenbahnwelt/advtrains: /home/birgit/.minetest/worlds/Eisenbahnwelt/advtrains: Datei oder Verzeichnis nicht gefunden 2017-08-15 21:20:38: ERROR[Server]: Failed to read advtrains_luaautomation save data from file /home/birgit/.minetest/worlds/Eisenbahnwelt/advtrains_luaautomation: /home/birgit/.minetest/worlds/Eisenbahnwelt/advtrains_luaautomation: Datei oder Verzeichnis nicht gefunden
Code: Select all
2017-08-16 08:38:10: ERROR[Main]: The following mods could not be found: "advtrains_bboe_1080" "advtrains_db_160" "advtrains_freight_train" "advtrains_rocket" "advtrains_subway_ny" "advtrains_train_1080" "advtrains_transib"
- krokoschlange
- Member
- Posts: 62
- Joined: Sat Jul 02, 2016 08:33
- GitHub: krokoschlange
- In-game: krokoschlange
Re: [Mod] Advanced Trains [advtrains] [1.8.3]
This looks like you had these mods enabled for that world but deleted them.BirgitLachner wrote: Hmmm, well, you are right, that is a bit strange. Of cause I know where to put the mod Folders. I started it once again ...
Still missing some mods in the package.Code: Select all
2017-08-16 08:38:10: ERROR[Main]: The following mods could not be found: "advtrains_bboe_1080" "advtrains_db_160" "advtrains_freight_train" "advtrains_rocket" "advtrains_subway_ny" "advtrains_train_1080" "advtrains_transib"
If you don't want those messages you can remove e.g.
Code: Select all
load_mod_advtrains_subway_ny = true
Who is online
Users browsing this forum: No registered users and 31 guests