[Release] TrainSportation ~ Drive & Be a Passenger in a train!

I have no idea how any of that works, sorry. It is like any other model, should be able to be modded? I would ask someone who is experienced in that area. :s

No worries! Thank you for the help and Iā€™ve spent many hours with my mates on this mod and itā€™s one of the best things ever so keep up the good work we really appreciate it!

yeah for me would be a rly simply job like:

for Cargo Targo Train:
some pickup points where you have to stop and press E

and for the metrotram:
the same at the station a blib where you have to stop and press E

this would be enough for me but my coding skillz not good enough to made the script by my own

@Lex_The_Great can you help with that

Unfortunately no, canā€™t make resources at the moment my local server isnā€™t working properly. Was trying to work on my servermanagement resource but canā€™t finish that either :s Iā€™m sure you can look at other delivery scripts to see how they work.

oh okā€¦sad to hearā€¦hope you can fix it fast :wink:

i search now for 1week also try to use delivery scripts to modify but i didnt get into it and dont get it to work.
nvm thx anyway for that GREAT scripte <3

is it possible to replace the default train in the script
?

Is there a way to ride the train without driving itā€¦?

@Lex_The_Great Hi, itā€™s possible to make this train in automatic.

Iā€™m looking for a train that spawn alone at the launch of the server and that runs in a loop?

Thks before.

Regars, Mike.

You donā€™t want this resource to do that, you want this one instead:

Bear two things in mind when using it:

  1. It doesnā€™t work great, multiple people on the server seems to make the trains disappear, I donā€™t know whatā€™s going on with it but a couple of my friends and I played around with it a lot and could never figure out why they would disappear.

  2. You canā€™t get support in the topic because itā€™s locked.

Issues on our server :

  • After exiting the train W/S still accelerates.
  • The radius for ā€œpress t to spawn the trainā€ is outrageously too big.
  • No formal way to remove the train(At least to my knowledge.)

This was only created to drive trains! Spawning trains is something that other resources should do! As long as therr is a train, this resource will allow you to enter them, even if they were spawned in another.

That shouldnā€™t happen lolā€¦ There is a problem where the AI takes over the train after you get out of it. Is that what you are referring to? This is only for entering trains and driving them. The current spawn points are for testing, and are able to be disabled when used alongside something that spawns trains, and creates goals for the train driver.

Nope, no ai take the train over. It only happens on rare times where some people get out the W/S keys still accelerate the train. We even tried it and made sure it did and it was.

It looks like that can be controled via line 12 of config.lua:

Config.DrawDistance = 100.0

depends on what you mean, if the freight loco yes, i havenā€™t had luck with rolling stock.

if you want to change the full train that spawns you can change the mission train, iā€™ve only been able to get a few working

Config.TrainLocations = {
	--{ ['x'] = 670.2056,  ['y'] = -685.7708,  ['z'] = 25.15311, ['trainID'] = 23, ['trainX'] = 670.2056, ['trainY'] = -685.7708, ['trainZ'] = 25.15311 }, -- FTrain ( container(filled/empty) )
	--{ ['x'] = 670.2056,  ['y'] = -685.7708,  ['z'] = 25.15311, ['trainID'] = 19, ['trainX'] = 670.2056, ['trainY'] = -685.7708, ['trainZ'] = 25.15311 }, -- FTrain (fuel x2)
	--{ ['x'] = 670.2056,  ['y'] = -685.7708,  ['z'] = 25.15311, ['trainID'] = 6, ['trainX'] = 670.2056, ['trainY'] = -685.7708, ['trainZ'] = 25.15311 }, -- FTrain ( 2 contrainer fill / 1 container empty / 1 fuel )
	--{ ['x'] = 670.2056,  ['y'] = -685.7708,  ['z'] = 25.15311, ['trainID'] = 17, ['trainX'] = 670.2056, ['trainY'] = -685.7708, ['trainZ'] = 25.15311 }, -- FTrain ( container LARGE!!!! )
	--{ ['x'] = 670.2056,  ['y'] = -685.7708,  ['z'] = 25.15311, ['trainID'] = 18, ['trainX'] = 670.2056, ['trainY'] = -685.7708, ['trainZ'] = 25.15311 }, -- FTrain ( engine only )
	{ ['x'] = 253.29,  ['y'] = -2613.3,  ['z'] = 6.0, ['trainID'] = 15, ['trainX'] = 256.31, ['trainY'] = -2607.17, ['trainZ'] = 6.85 }, -- FTrain (boxcar / container)
	--{ ['x'] = 670.2056,  ['y'] = -685.7708,  ['z'] = 25.15311, ['trainID'] = 7, ['trainX'] = 670.2056, ['trainY'] = -685.7708, ['trainZ'] = 25.15311 }, -- FTrain (containers full/empty)
	--{ ['x'] = 670.2056,  ['y'] = -685.7708,  ['z'] = 25.15311, ['trainID'] = 2, ['trainX'] = 670.2056, ['trainY'] = -685.7708, ['trainZ'] = 25.15311 }, -- FTrain (Containers / boxcar / fuel)
	--{ ['x'] = 670.2056,  ['y'] = -685.7708,  ['z'] = 25.15311, ['trainID'] = 22, ['trainX'] = 670.2056, ['trainY'] = -685.7708, ['trainZ'] = 25.15311 }, -- FTrain (Containers empty)
	--{ ['x'] = 670.2056,  ['y'] = -685.7708,  ['z'] = 25.15311, ['trainID'] = l_4, ['trainX'] = 670.2056, ['trainY'] = -685.7708, ['trainZ'] = 25.15311 }, -- FTrain (2 empty containers)
}

trainID changes mission train

is there a way to put trains especially trolley to move by itself and make stops
at stations for some seconds and then start move again?

1 Like

Hi,

Iā€™ve got a quick question. Iā€™ve added an add-on train. The script works perfectly, only the train spawns in the tracks, not on it. (http://prntscr.com/ki0dph). Is there any way I can fix this?

Thanks in advance,

Daniel

Hey, I have exact the same problem anyone? with the train spawning halfway under the map

1 Like

@Lex_The_Great
Hi, I love this script for my next episode of my zombie series DARK CLAWS. I would like to know if there would be any way to change the vehicle. I mean, instead of being the subway that could be changed by the goods train with the big cabin with rods on the sides and fans above I hope to express myself well haha

Thanks for resource works fine, but there is a little but. Why can I not go in and out of the doors as passenger in the metro train, even if they are open? Hope for help :slight_smile: ā€¦

you got double Config.MarkerType = 1 in config.lua. Just wanna let you know bit useless have it twice in it ^^