[Mod] Means of transport tracking lines [linetrack]

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

[Mod] Means of transport tracking lines [linetrack]

by Hume2 » Sun Oct 20, 2019 14:06

Means of Transport Tracking Lines
This is a simple mod based on advtrains which adds lines that can be ridden by means of transport which don't require rails. Currently, only boats are implemented.
Image

License: lGPL v. 2.1

Dependencies
  • advtrains
  • advtrains_train_track
  • advtrains_luaautomation?
  • advtrains_line_automation?
  • advtrains_interlocking?

Download
Attachments
screenshot_20191020_160135.jpg
(113.66 KiB) Not downloaded yet
If you lack the reality, go on a trip or find a job.
 

User avatar
gpcf
Member
 
Posts: 322
Joined: Fri May 27, 2016 10:48
In-game: gabriel
 

User avatar
gpcf
Member
 
Posts: 322
Joined: Fri May 27, 2016 10:48
In-game: gabriel
 

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

Re: [Mod] Means of transport tracking lines [linetrack]

by orwell » Sun Oct 20, 2019 14:49

Hey, interesting concept, applying advtrains to boats.

But I have a question: Why exactly are you depending on advtrains_train_track? This mod only registers the dtrack tracks!
Aside from this:
Code: Select all
advtrains.register_tracks("line", {
   nodename_prefix="advtrains:ltrack",
   texture_prefix="advtrains_ltrack",
   models_prefix="advtrains_ltrack",

You do not need to register the tracks under the "advtrains:" namespace, better use "linetrack:". Advtrains is doing this for backwards compatibility only.
Lua is great!
List of my mods
I like singing. I like dancing. I like ... niyummm...
 

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

Re: [Mod] Means of transport tracking lines [linetrack]

by Hume2 » Sun Oct 20, 2019 15:15

gpcf wrote:Bug: You can run boats on land.

I know, I didn't care about that yet. The only way to solve this would be extending the collisionbox down.

orwell wrote:Hey, interesting concept, applying advtrains to boats.

But I have a question: Why exactly are you depending on advtrains_train_track? This mod only registers the dtrack tracks!
Aside from this:
Code: Select all
advtrains.register_tracks("line", {
   nodename_prefix="advtrains:ltrack",
   texture_prefix="advtrains_ltrack",
   models_prefix="advtrains_ltrack",

You do not need to register the tracks under the "advtrains:" namespace, better use "linetrack:". Advtrains is doing this for backwards compatibility only.

Thanks, I didn't notice that.
If you lack the reality, go on a trip or find a job.
 

User avatar
gpcf
Member
 
Posts: 322
Joined: Fri May 27, 2016 10:48
In-game: gabriel

Re: [Mod] Means of transport tracking lines [linetrack]

by gpcf » Sun Oct 20, 2019 15:47

I'm currently working on solving some other issues.

I think it would be nice to have some rail ferries. Does someone want to make a nice little RO/RO rail ferry?
 

twoelk
Member
 
Posts: 1330
Joined: Fri Apr 19, 2013 16:19
Location: northern Germany
GitHub: twoelk
IRC: twoelk
In-game: twoelk

Re: [Mod] Means of transport tracking lines [linetrack]

by twoelk » Mon Oct 21, 2019 16:56

interesting indeed.

An Airship Line might be fun or mobs like donkeys or NPCs might also want to follow the track to establish a caravan trail.
 

User avatar
gpcf
Member
 
Posts: 322
Joined: Fri May 27, 2016 10:48
In-game: gabriel

Re: [Mod] Means of transport tracking lines [linetrack]

by gpcf » Tue Oct 22, 2019 10:55

The next thing to add would be a train ferry, with a boat track that moves the next traincar unto the ferry when the ferry has stopped.
 

User avatar
Miniontoby
Member
 
Posts: 244
Joined: Fri Mar 01, 2019 19:25
Location: The Netherlands
In-game: Miniontoby

Re: [Mod] Means of transport tracking lines [linetrack]

by Miniontoby » Wed Oct 23, 2019 08:05

Cool mod. Nice textures
My English isn't very good because I'm Dutch ---- Check my mod "Doorbell"
 


Return to WIP Mods



Who is online

Users browsing this forum: Majestic-12 [Bot] and 11 guests