[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] [2.4.1]
Latest master nouw has a 2-position wagon placement system. This means that the wagon's wheels are placed correctly and long wagons now look better.
DlxTrains and other train addition mods will have to add a "wheel_positions" field to the wagon definition. See advtrains/api_doc.txt how to use it, or take basic_trains as example.
EDIT: videos
Before: http://advtrains.de/forumimg/wagon2pos_before.webm
After: http://advtrains.de/forumimg/wagon2pos_after.webm
DlxTrains and other train addition mods will have to add a "wheel_positions" field to the wagon definition. See advtrains/api_doc.txt how to use it, or take basic_trains as example.
EDIT: videos
Before: http://advtrains.de/forumimg/wagon2pos_before.webm
After: http://advtrains.de/forumimg/wagon2pos_after.webm
- Blockhead
- Member
- Posts: 1696
- 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.4.1]
Nice! Although now it shows much accurately how small the minimum radius is in advtrains. Do you think it would be possible in future to finally add rotating bogies (trucks) for newer trains? Now that the body of the train is correctly positioned and the wheel positions identified, the bogie entities can be put in an appropriate location (maybe they need a y offset?) and rotated appropriate so they are parallel to the track (could be the same logic as the old wagon-centred code applied to each bogie?) This is a step in the right direction anyway.orwell wrote: ↑Wed Feb 09, 2022 22:15Latest master nouw has a 2-position wagon placement system. This means that the wagon's wheels are placed correctly and long wagons now look better.
DlxTrains and other train addition mods will have to add a "wheel_positions" field to the wagon definition. See advtrains/api_doc.txt how to use it, or take basic_trains as example.
EDIT: videos
Before: http://advtrains.de/forumimg/wagon2pos_before.webm
After: http://advtrains.de/forumimg/wagon2pos_after.webm
/˳˳_˳˳]_[˳˳_˳˳]_[˳˳_˳˳\ Advtrains enthusiast | My map: Noah's Railyard | My Content on ContentDB ✝️♂
- 56independent_actual
- Member
- Posts: 452
- Joined: Sun May 23, 2021 16:10
- IRC: independent56
- In-game: 56independent
- Location: Girona Province
- Contact:
Re: [Mod] Advanced Trains [advtrains] [2.4.1]
Brilliant! I'm developing a mod with really long carriages, and this will really help.orwell wrote: ↑Wed Feb 09, 2022 22:15Latest master nouw has a 2-position wagon placement system. This means that the wagon's wheels are placed correctly and long wagons now look better.
DlxTrains and other train addition mods will have to add a "wheel_positions" field to the wagon definition. See advtrains/api_doc.txt how to use it, or take basic_trains as example.
EDIT: videos
Before: http://advtrains.de/forumimg/wagon2pos_before.webm
After: http://advtrains.de/forumimg/wagon2pos_after.webm
Warnig: Al my laguage ekscept English is bad, includig Hungarian (magyàränoлиски), Spanish (esпagnyoл), and Russian (рÿсскïанöл).
- 56independent_actual
- Member
- Posts: 452
- Joined: Sun May 23, 2021 16:10
- IRC: independent56
- In-game: 56independent
- Location: Girona Province
- Contact:
Re: [Mod] Advanced Trains [advtrains] [2.4.1]
Why does track separation differ so much? On my server it's 3 (1 in railyards and non-public lines), but on LF and other servers, 2 and even 1 is server standard?
I don't see why so few use 3. Sure, it uses more ballast, but it's odd (meaning it has a centre) and allows decoration, such as pillars in the middle of tunnels. 3 also allows "interlocking clovers", with TCBs next to the track, and signals in the centre. This allows for an ambiguous driving direction. I don't see the reason for 2. it has no centre.
I don't see why so few use 3. Sure, it uses more ballast, but it's odd (meaning it has a centre) and allows decoration, such as pillars in the middle of tunnels. 3 also allows "interlocking clovers", with TCBs next to the track, and signals in the centre. This allows for an ambiguous driving direction. I don't see the reason for 2. it has no centre.
Warnig: Al my laguage ekscept English is bad, includig Hungarian (magyàränoлиски), Spanish (esпagnyoл), and Russian (рÿсскïанöл).
-
- Member
- Posts: 368
- Joined: Tue May 07, 2019 12:59
- GitHub: y5nw
- IRC: y5nw
- In-game: ywang
- Location: Germany
Re: [Mod] Advanced Trains [advtrains] [2.4.1]
1m is more or less the minimum that is needed for the setup to look somewhat nice. It does work quite well with subway trains, and can be used in places where space is very tight.56independent_actual wrote: ↑Sat Feb 12, 2022 09:58Why does track separation differ so much? On my server it's 3 (1 in railyards and non-public lines), but on LF and other servers, 2 and even 1 is server standard?
2m is the value where the spacing of trains (especially with wider trains like the E231) looks sane while still being a relatively tight setup.
3m is a nice choice in some cases. In particular, you can put a "passing track" at certain places, which I do.
It's not just the ballast that matters. If you are in a survival server and want to build a tunnel that looks nice, the choice of 2m means you can save materials, which can matter if you are building e.g. a large subway network. Of course, this matters less if you on a creative server or have a lot of materials.Sure, it uses more ballast, but it's odd (meaning it has a centre) and allows decoration, such as pillars in the middle of tunnels.
Keep in mind that some servers do have requirements/standard on signal placement. At least on German rail lines, signals should usually be place on the right side of the track (i.e. away from the center - trains drive on the right side here). I think the rail lines on LF are influenced by this.3 also allows "interlocking clovers", with TCBs next to the track, and signals in the centre.
There is not necessarily the need for a center. Pillars can also be made for tracks/bridges where the width is divisible by two. Be creative.I don't see the reason for 2. it has no centre.
Another consideration to make is that, when adding a rail line to the network, you generally want the distance between the tracks to be consistent unless you have a particular reason not to. On servers where the distance between tracks is usually 2 nodes, you are obviously also expected to build track like this. This means that you can't (easily) build pillars in the middle of tunnels, but you can also build nice tunnels without having a pillar in the middle.
- 56independent_actual
- Member
- Posts: 452
- Joined: Sun May 23, 2021 16:10
- IRC: independent56
- In-game: 56independent
- Location: Girona Province
- Contact:
Re: [Mod] Advanced Trains [advtrains] [2.4.1]
On British track, often the rails are just little more then one sleeper width apart. This is comparable to 1.5 blocks.
2m is the value where the spacing of trains (especially with wider trains like the E231) looks sane while still being a relatively tight setup.
3m is a nice choice in some cases. In particular, you can put a "passing track" at certain places, which I do.
I can kind of get where you're coming from, but i like having 3. It is nicer that aerodynamic stress between two trains is more diffused. I have been on a train where the doors slammed because another train was passingby, and it almost gave me a heart attack.
As for "passing tracks", i have built a traffic-saving extension using the gap:
Oh yeah. I have built a 5 km tunnel using worldedit, and the numbers which came out were massive.It's not just the ballast that matters. If you are in a survival server and want to build a tunnel that looks nice, the choice of 2m means you can save materials, which can matter if you are building e.g. a large subway network. Of course, this matters less if you on a creative server or have a lot of materials.
I have a gallery of tunnels split in two. These always look nicer then other tunnels, and give trains a more personal feel. I personally think sandstone is too weak for making tunnels 7 blocks wide. It may be able to survive 6 block tunnels with 2-void, but i doubt it.Another consideration to make is that, when adding a rail line to the network, you generally want the distance between the tracks to be consistent unless you have a particular reason not to. On servers where the distance between tracks is usually 2 nodes, you are obviously also expected to build track like this. This means that you can't (easily) build pillars in the middle of tunnels, but you can also build nice tunnels without having a pillar in the middle.
Warnig: Al my laguage ekscept English is bad, includig Hungarian (magyàränoлиски), Spanish (esпagnyoл), and Russian (рÿсскïанöл).
Re: [Mod] Advanced Trains [advtrains] [2.2.1]
Oh I don't think I ever uploaded it anywhere, I think the files are unfortunately lost:(
cdb_2fcfab1b41f9
-
- Member
- Posts: 94
- Joined: Sun Oct 21, 2012 06:25
- In-game: pheonix
- Location: Australia
Re: [Mod] Advanced Trains [advtrains] [2.4.1]
If it's the one I think it is I have a copy of the blender files, just no idea how to use
them.
I've attached them in a zip file incase someone else knows how to use them
Best Regards
pheonixfire
them.
I've attached them in a zip file incase someone else knows how to use them
Best Regards
pheonixfire
- Attachments
-
- tender locomotive.zip
- (269.56 KiB) Downloaded 36 times
-
- Member
- Posts: 70
- Joined: Wed Dec 16, 2020 16:52
- GitHub: doxygen-spammer
Re: [Mod] Advanced Trains [advtrains] [2.4.1]
Very nice! I have implemented that in my mod now.
On “smooth” curves it actually looks better than before.
But another problem: it appears to be no longer possible to couple (or event collide) wagons on newly constructed tracks.
I don’t know if this is related to the wheel_positions feature.
Tracks which I have built some days ago allow coupling just fine.
When I built the depicted test track, I had to build a connection to existing tracks, to get a train on it.
- Blockhead
- Member
- Posts: 1696
- 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.4.1]
I haven't had time to look at this on the latest master but I filed a bug report about a similar issue that had to do with curves, like in your screenshot.doxygen_spammer wrote: ↑Mon Feb 14, 2022 15:22But another problem: it appears to be no longer possible to couple (or event collide) wagons on newly constructed tracks.
I don’t know if this is related to the wheel_positions feature.
Tracks which I have built some days ago allow coupling just fine.
When I built the depicted test track, I had to build a connection to existing tracks, to get a train on it.
/˳˳_˳˳]_[˳˳_˳˳]_[˳˳_˳˳\ Advtrains enthusiast | My map: Noah's Railyard | My Content on ContentDB ✝️♂
- 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] [2.4.1]
While playing around with the wagon positioning, I also noticed that the new coupling system has a problem when there is a track loop. The problem is that due to the loop, tracks are on the train's path twice and the path projection function selects the wrong path position apparently. I need to find a way to fix this. Workaround is to not build loops.Blockhead wrote: ↑Mon Feb 14, 2022 17:20I haven't had time to look at this on the latest master but I filed a bug report about a similar issue that had to do with curves, like in your screenshot.doxygen_spammer wrote: ↑Mon Feb 14, 2022 15:22But another problem: it appears to be no longer possible to couple (or event collide) wagons on newly constructed tracks.
I don’t know if this is related to the wheel_positions feature.
Tracks which I have built some days ago allow coupling just fine.
When I built the depicted test track, I had to build a connection to existing tracks, to get a train on it.
On the bogies: yes, that would be the next logical step, and should be pretty simple to implement. Someone maybe give me a wagon model with separate bogie models, then I can try this out.
- 56independent_actual
- Member
- Posts: 452
- Joined: Sun May 23, 2021 16:10
- IRC: independent56
- In-game: 56independent
- Location: Girona Province
- Contact:
Re: [Mod] Advanced Trains [advtrains] [2.4.1]
My ghost train problem is getting really large. Every line has an average of 1.5 "ghost train sections", where the section:
Is this normal on multiplayer servers with few players?
- Registers a train has arrived
Does not register it has left
Only has this error every few trains
Is this normal on multiplayer servers with few players?
Warnig: Al my laguage ekscept English is bad, includig Hungarian (magyàränoлиски), Spanish (esпagnyoл), and Russian (рÿсскïанöл).
-
- Member
- Posts: 70
- Joined: Wed Dec 16, 2020 16:52
- GitHub: doxygen-spammer
Re: [Mod] Advanced Trains [advtrains] [2.4.1]
If you are interested, I can split the bogies off the Konstal 105.
I am not sure if this is very useful.
Rotating bogies is somewhat small details, and I think it emphasizes the sharp corners more that it looks fancy.
And if the tracks get smoother curves, the rotation would be barely noticeable.
- 56independent_actual
- Member
- Posts: 452
- Joined: Sun May 23, 2021 16:10
- IRC: independent56
- In-game: 56independent
- Location: Girona Province
- Contact:
Re: [Mod] Advanced Trains [advtrains] [2.4.1]
It would be nice if the signals API gave information on routes and their points. British railway signalling, unlike European "speed signalling", gives information on routes. If someone was to make a britishsignals mod, this wouldbe a significant pain point.
Warnig: Al my laguage ekscept English is bad, includig Hungarian (magyàränoлиски), Spanish (esпagnyoл), and Russian (рÿсскïанöл).
- Blockhead
- Member
- Posts: 1696
- 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.4.1]
Yes, for a while I've wanted route indicators such as feather indicators (widely used in the UK) and arrows that are used for points and lettered indicators used for junctions on the Victorian Railways. All types mentioned are pictured here. I assume they can be made co-acting with the main signal node just like the Ks speed indicators. I should get back to my Victorian Railways signal set that I once started..56independent_actual wrote: ↑Mon Feb 21, 2022 13:22It would be nice if the signals API gave information on routes and their points. British railway signalling, unlike European "speed signalling", gives information on routes. If someone was to make a britishsignals mod, this wouldbe a significant pain point.
/˳˳_˳˳]_[˳˳_˳˳]_[˳˳_˳˳\ Advtrains enthusiast | My map: Noah's Railyard | My Content on ContentDB ✝️♂
- 56independent_actual
- Member
- Posts: 452
- Joined: Sun May 23, 2021 16:10
- IRC: independent56
- In-game: 56independent
- Location: Girona Province
- Contact:
Re: [Mod] Advanced Trains [advtrains] [2.4.1]
I am working on a mod which adds elements to advtrains. Hopefully i can get british signals inside and add some wires. Maybe even a few british trains.
Neutral section warning and instructions to class 755
OLE, no wires
Live rails warning and instructions to class 755
Spoiler
Neutral section warning and instructions to class 755
OLE, no wires
Warnig: Al my laguage ekscept English is bad, includig Hungarian (magyàränoлиски), Spanish (esпagnyoл), and Russian (рÿсскïанöл).
-
- Member
- Posts: 368
- Joined: Tue May 07, 2019 12:59
- GitHub: y5nw
- IRC: y5nw
- In-game: ywang
- Location: Germany
Re: [Mod] Advanced Trains [advtrains] [2.4.1]
I also thought about adding route information (mostly the route name), mostly for a Zs 2 indicator. I have never actually worked on it, however, largely because I was working on other things around Ks signals - it was around the time I worked on the new-ks branch.
IMO (from what I have read on Wikipedia) the hard part of British (and subsequently also Japanese) signaling is the fact that the "distant" aspect refers to a signal aspect and not just the speed. From my understanding of the signal aspect table, this could be supported, but there may be certain issues.
This is my proposal for implementing this:
The "alternative" table should have the __type field containing the string kv. The rest of the table should have the the aspect identifiers as keys of type string and values that may be
However, I am not sure whether I am going to pick this up anytime soon, considering that I have enough feature/maintenance branches to work on at the moment.
IMO (from what I have read on Wikipedia) the hard part of British (and subsequently also Japanese) signaling is the fact that the "distant" aspect refers to a signal aspect and not just the speed. From my understanding of the signal aspect table, this could be supported, but there may be certain issues.
This is my proposal for implementing this:
The "alternative" table should have the __type field containing the string kv. The rest of the table should have the the aspect identifiers as keys of type string and values that may be
- A string, to create an alias (e.g. if something from the signal is not yet supported by advtrains). An error is signaled if there is a circular dependency (A -> B (-> ...) -> A)
- A regular aspect table, but the dst field may be an index to the table of supported signal aspects. It is an error if the index does not map to a valid value.
However, I am not sure whether I am going to pick this up anytime soon, considering that I have enough feature/maintenance branches to work on at the moment.
- 56independent_actual
- Member
- Posts: 452
- Joined: Sun May 23, 2021 16:10
- IRC: independent56
- In-game: 56independent
- Location: Girona Province
- Contact:
Re: [Mod] Advanced Trains [advtrains] [2.4.1]
I am working on a mod which uses British signals, and i can't set distant distant signals using the API. There is the aspect Y (next signal at danger) and Y-Y (signal after next signal is at danger). I belive there should be an arbituary number of dst = [/code]s accessible through adding numbers to the variable such as dst3 = , which means the third distant section. This way, my own [url=https://gitlab.com/56independent/britsi ... ic-signals] 8-aspect signal idea can be brought into existence.
Warnig: Al my laguage ekscept English is bad, includig Hungarian (magyàränoлиски), Spanish (esпagnyoл), and Russian (рÿсскïанöл).
- 56independent_actual
- Member
- Posts: 452
- Joined: Sun May 23, 2021 16:10
- IRC: independent56
- In-game: 56independent
- Location: Girona Province
- Contact:
Re: [Mod] Advanced Trains [advtrains] [2.4.1]
I am working on a mod which uses British signals, and i can't set distant distant signals using the API. There is the aspect Y (next signal at danger) and Y-Y (signal after next signal is at danger). I believe there should be an arbitrary number of dst = s accessible through adding numbers to the variable such as dst3 = , which means the third distant section. This way, my own 8-aspect signal idea can be brought into existence.
Warnig: Al my laguage ekscept English is bad, includig Hungarian (magyàränoлиски), Spanish (esпagnyoл), and Russian (рÿсскïанöл).
-
- Member
- Posts: 368
- Joined: Tue May 07, 2019 12:59
- GitHub: y5nw
- IRC: y5nw
- In-game: ywang
- Location: Germany
Re: [Mod] Advanced Trains [advtrains] [2.4.1]
This could, at least to an extent, be possible if my proposal was actually implemented, which I am, unfortunately, not particularly interested in doing at the moment. The proposal on implementing distant signaling may also be of interest on this topic.56independent_actual wrote: ↑Wed Feb 23, 2022 20:41I am working on a mod which uses British signals, and i can't set distant distant signals using the API. There is the aspect Y (next signal at danger) and Y-Y (signal after next signal is at danger).
What I had in mind with the proposal I wrote in the previous post (on an alternative representation of supported signal aspects) was that the dst field would be a key that would be present in the table of supported aspects. This means that you would be able to "chain" signals together to form the order of (for example) preliminary caution -> caution -> stop.
This does need some further consideration. A strict "expect the nth upcoming signal to have this aspect regardless of the aspects of the first (n-1) signals" (n>=2) use case is extremely rare (and I assume this is not what you actually want) and can be problematic to handle if distant signaling was implemented.I believe there should be an arbitrary number of dst = s accessible through adding numbers to the variable such as dst3 = , which means the third distant section. This way, my own 8-aspect signal idea can be brought into existence.
- 56independent_actual
- Member
- Posts: 452
- Joined: Sun May 23, 2021 16:10
- IRC: independent56
- In-game: 56independent
- Location: Girona Province
- Contact:
Re: [Mod] Advanced Trains [advtrains] [2.4.1]
Is there a way to make trains kill at a specific speed, such as 6? I want to make my railways more realistic, where you die if you don't cross carfully.
Warnig: Al my laguage ekscept English is bad, includig Hungarian (magyàränoлиски), Spanish (esпagnyoл), and Russian (рÿсскïанöл).
- Blockhead
- Member
- Posts: 1696
- 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.4.1]
They already do, step 8b is to kill players when the train's velocity is > 3, as long as you have advtrains_overrun_mode not set to "none" in your Minetest configuration. You could make the exact speed configurable with a setting and submit a patch if you like.56independent_actual wrote: ↑Thu Feb 24, 2022 12:10Is there a way to make trains kill at a specific speed, such as 6? I want to make my railways more realistic, where you die if you don't cross carfully.
/˳˳_˳˳]_[˳˳_˳˳]_[˳˳_˳˳\ Advtrains enthusiast | My map: Noah's Railyard | My Content on ContentDB ✝️♂
- 56independent_actual
- Member
- Posts: 452
- Joined: Sun May 23, 2021 16:10
- IRC: independent56
- In-game: 56independent
- Location: Girona Province
- Contact:
Re: [Mod] Advanced Trains [advtrains] [2.4.1]
I've made my first two patches to advtrains at the mailing list:
Change cumbersome texture
Configurable kill speed (one fishy edit i didn't catch early enough; This is a standard feature of the trial edition of codefree, a propetiary code editor forked from VScode
Change cumbersome texture
Configurable kill speed (one fishy edit i didn't catch early enough; This is a standard feature of the trial edition of codefree, a propetiary code editor forked from VScode
Warnig: Al my laguage ekscept English is bad, includig Hungarian (magyàränoлиски), Spanish (esпagnyoл), and Russian (рÿсскïанöл).
-
- Member
- Posts: 128
- Joined: Sun Aug 05, 2018 12:37
- In-game: Maverick2797
- Location: Poking about here and there...
Re: [Mod] Advanced Trains [advtrains] [2.4.1]
FYI the advtrains mailing list has been deprecated and split into advtrains-devel and advtrains-discuss to minimise patches etc getting lost in lengthy threads. There's a notice on the advtrains list page (here for reference) and your git-send-email config should probably be adjusted to use the advtrains-devel address instead.56independent_actual wrote: ↑Thu Feb 24, 2022 13:44I've made my first two patches to advtrains at the mailing list:
The number you have called is not available during a solar eclipse. This message will self destruct in ten seconds in protest... [BEEP]
-
- Member
- Posts: 128
- Joined: Sun Aug 05, 2018 12:37
- In-game: Maverick2797
- Location: Poking about here and there...
Re: [Mod] Advanced Trains [advtrains] [2.4.1]
Rather than add another texutre/another file/another image for a simple colour change, you can use texture modifiers
Code: Select all
base_texture.png^[colorize:#ff00dc
Search for "Texture modifiers" in lua_api.txt for more info on how to use them.
The number you have called is not available during a solar eclipse. This message will self destruct in ten seconds in protest... [BEEP]
Who is online
Users browsing this forum: Ahrefs [Bot] and 48 guests