Trouble with trains


#1

So I thought I did the right thing to add trains to my map, but apparently they won’t spawn.

I added the following to the Config.json for the map:

“Trains”:
{
{
“VehicleID”: 186,
“RoadIndex”: 114
},
{
“VehicleID”: 187,
“RoadIndex”: 58
}
},

Anyone have any ideas, or success with adding trains to custom maps?


#2

Let me check my config file for my map. Because I have succeeded.


#3

copy this but replace the propper numbers, also remember to change the config file back to a json file if you change it to edit it.
{
“Trains”:
[
{
“VehicleID”: 186,
“RoadIndex”: 6,
}
]
}
.
unfortunately the tabs in front of the things wont show. oh well. remove the period right above this sentence.


#4

I made a quick example that you could basically copy paste on your config.jason file. Be sure that the RoadIndex you add is actually the same of the road nodes in your map.

Cheers :slight_smile:


#5

Thanks guys!

I also had a stray curly brace ‘}’ which foreshortened my config file before the trains were “read in”. Curse you nested brackets!!!


#6

If you want a second train, duplicate the text below it :smiley:
Also I advise if you add a second train, it’s the other type of train, also, trains can’t be on the same tracks. Btw


#7

Is it just me or does that last train car lift off the ground?


#8

Probably the terrain below needs to be smoothed out.


#9

Actually it is just you.


#10

image


#11

It’s not floating, the land just slopes upward slightly. Look at the tracks behind it.


#12

Now that i can test the trains I am doing a lot of smoothing for those rail tracks, to avoid messiness. Had to alter the tracks already to avoid catching on some parked box cars.

A whole lot of boulderized cliffs too… nearly the entire southern half of the map completed (getting carpal tunnel/mouse wrist, but it’s worth it … right?)


#13

Yeah it is. Seeing something you have created come to life slowly… It’s worth it. Even if you don’t finish it for a year, it’s still worth it.


#14

Also, BTW if you need help with anything, msg me or friend me and then message me.


#15

getting carpal tunnel/mouse wrist

now i don’t want to sound like an instagram comedian
but that is what i’d call relatable


#16

I released the playable map once I had NPCs all worked out.

Slowly updating as I find and fix glitchy terrain and other previously undiscovered issues.

It is difficult and time consuming to explore every nook and cranny of a large map by oneself. On the plus side I am familiar with the many shortcuts, and can generally figure out which spawn I appear at with a quick glance about.


#17

Well once I get back I’ll msg you so send me a link and I’ll help ya.