[Mod] Advanced Trains [advtrains] [2.4.3]

User avatar
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]

by orwell » Post

@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)
Lua is great!
List of my mods
I like singing. I like dancing. I like ... niyummm...

User avatar
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]

by Andrey01 » Post

Update 2.1
-Added models for cabels (I just forgot to add their before).

User avatar
mbb
Member
Posts: 256
Joined: Sat Jan 17, 2015 17:47
GitHub: mbruchert
IRC: mBb
In-game: MBB

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

by mbb » Post

user wrote:Hi mbb,

Hast Du passend zu den schicken Waggons auch eine passende Lok in Planung?

mfg user
ja alles fertig
cdb_2fcfab1b41f9

User avatar
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]

by Andrey01 » Post

Andrey01 wrote:An error when i am trying to join the server with new update:

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.
Mbb, what did you do wrong in rockets?
Can you fix it, please?

Add inventory icon for diesel locomotive, please, too.

user
Member
Posts: 18
Joined: Sat Mar 18, 2017 10:56
In-game: user

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

by user » Post

@mbb wo kann ich es downloaden?

User avatar
mbb
Member
Posts: 256
Joined: Sat Jan 17, 2015 17:47
GitHub: mbruchert
IRC: mBb
In-game: MBB

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

by mbb » Post

user wrote:@mbb wo kann ich es downloaden?
noch nicht aber morgen
cdb_2fcfab1b41f9

User avatar
Codesound
Member
Posts: 365
Joined: Thu Jun 09, 2016 14:56

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

by Codesound » Post

Andrey01 wrote:
Andrey01 wrote:An error when i am trying to join the server with new update:

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.
Mbb, what did you do wrong in rockets?
Can you fix it, please?

Add inventory icon for diesel locomotive, please, too.
... 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).

Image

I inform you that I'm on half of the recordings (+/-)... I think I will end by the end of this month ;-)

soon

R

User avatar
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]

by azekill_DIABLO » Post

azekill_DIABLO wrote:hmm, i found some bug:
Image
why this indicator goes off screen?
Gone, but not dead. Contact me on discord: azekill_DIABLO#6565
DMs are always open if you want to get in touch!

User avatar
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]

by Andrey01 » Post

Codesound wrote:
Andrey01 wrote:
Andrey01 wrote:An error when i am trying to join the server with new update:

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.
Mbb, what did you do wrong in rockets?
Can you fix it, please?

Add inventory icon for diesel locomotive, please, too.
... 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).

Image

I inform you that I'm on half of the recordings (+/-)... I think I will end by the end of this month ;-)

soon

R
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.

User avatar
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]

by Andrey01 » Post

Orwell, do you remember you wrote information about that to use trains everyone needs coal for it? Maybe can i help you?

User avatar
mbb
Member
Posts: 256
Joined: Sat Jan 17, 2015 17:47
GitHub: mbruchert
IRC: mBb
In-game: MBB

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

by mbb » Post

Andrey01 wrote:
Andrey01 wrote:An error when i am trying to join the server with new update:

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.
you have to rename the folder into advtrains_trains_rocket


Mbb, what did you do wrong in rockets?
Can you fix it, please?

Add inventory icon for diesel locomotive, please, too.
cdb_2fcfab1b41f9

User avatar
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]

by Andrey01 » Post

Mbb, are you developing compartment wagon still? I am just waiting coming of that wagon.

User avatar
mbb
Member
Posts: 256
Joined: Sat Jan 17, 2015 17:47
GitHub: mbruchert
IRC: mBb
In-game: MBB

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

by mbb » Post

Andrey01 wrote:Mbb, are you developing compartment wagon still? I am just waiting coming of that wagon.
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 it
cdb_2fcfab1b41f9

User avatar
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]

by orwell » Post

Andrey01 wrote:Orwell, do you remember you wrote information about that to use trains everyone needs coal for it? Maybe can i help you?
Hm, if you understand how my code works, you could implement it.
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
(As far as i remember)
Thanks a lot Codesound for the recordings, and all others for doing their part.
Lua is great!
List of my mods
I like singing. I like dancing. I like ... niyummm...

User avatar
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]

by Andrey01 » Post

orwell wrote:
Andrey01 wrote:Orwell, do you remember you wrote information about that to use trains everyone needs coal for it? Maybe can i help you?
Hm, if you understand how my code works, you could implement it.
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
(As far as i remember)
Thanks a lot Codesound for the recordings, and all others for doing their part.
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.

User avatar
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]

by v-rob » Post

EDIT: How do you edit advanced trains to work on the 45-degree track (depreciated track)? Which Lua file is this stuff stored in?
Core Developer | My Best Mods: Bridger - Slats - Stained Glass

User avatar
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]

by orwell » Post

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?
You have two possibilities:
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},
(located inside the train mod directories in init.lua)
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.
Lua is great!
List of my mods
I like singing. I like dancing. I like ... niyummm...

User avatar
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]

by azekill_DIABLO » Post

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!

user
Member
Posts: 18
Joined: Sat Mar 18, 2017 10:56
In-game: user

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

by user » Post

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

User avatar
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]

by orwell » Post

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.
Lua is great!
List of my mods
I like singing. I like dancing. I like ... niyummm...

User avatar
BirgitLachner
Member
Posts: 393
Joined: Thu May 05, 2016 10:18
In-game: Bibs

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

by BirgitLachner » Post

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

User avatar
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]

by Andrey01 » Post

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
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...

user
Member
Posts: 18
Joined: Sat Mar 18, 2017 10:56
In-game: user

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

by user » Post

hi orwell,

thanks for answer!

Do you know an other way to identify a train? (train id?)

best regards

User avatar
BirgitLachner
Member
Posts: 393
Joined: Thu May 05, 2016 10:18
In-game: Bibs

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

by BirgitLachner » Post

Andrey01 wrote:
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
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...
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 ...

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"
Still missing some mods in the package.

User avatar
krokoschlange
Member
Posts: 62
Joined: Sat Jul 02, 2016 08:33
GitHub: krokoschlange
In-game: krokoschlange

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

by krokoschlange » Post

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 ...

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"
Still missing some mods in the package.
This looks like you had these mods enabled for that world but deleted them.
If you don't want those messages you can remove e.g.

Code: Select all

load_mod_advtrains_subway_ny = true
from world.mt in your world's folder or you can reinstall those mods and then play with them or disable them in the main menu

Post Reply

Who is online

Users browsing this forum: No registered users and 31 guests