This is exactly why I had abandoned my FREE script which @Ethan4t0r suggested.
Mine DOES NOT WORK as intended either.
BOTH due to game engine limitations/issues I had back in the day, and with OneSync indeed for the entity radius and such.
There is a VERY simple way to get trains on your server (for free) and native by the game though, and that is simply adding:
SwitchTrainTrack(0, true) -- Main train track(s) around LS and towards Sandy Shores
SwitchTrainTrack(3, true) -- Metro tracks
SetTrainTrackSpawnFrequency(0, 120000) -- The Train spawn frequency set for the game engine
SetTrainTrackSpawnFrequency(3, 120000) -- The Metro spawn frequency set for the game engine
SetRandomTrains(true) -- Telling the game we want to use randomly spawned trains end)
To one of your client scripts, and voila youâll have trains riding around in your game.
NO, obviously you donât have tickets etc then, but honestly:
With the current issues itâs providing in the engine itself and with network syncing:
Such systems are just useless, and definitely not fair to ask money for without proper testing to at least guarantee 95% stability and functionality. But thatâs just my âtwo centsâ
Will it enable trains? Sure
Will it be stable? No
Will players have the same trains? No
Will it sync correctly? No
Will there be multiple trains per player? Yes.
Due to how OneSync infinity works, itâs physically impossible for this not to happen, because the train entity does NOT have persistence. And at the moment, itâs impossible to make it persistent, without the aid of highly experimental and unstable natives
Yes i know, which is why I also replied to your post (because you described the problems perfectly to the OP/seller).
People want (simple) trains and not spend money on it? just enable the railroads and donât expect anything fancy from it (like the tickets).
Another note from my personal opinion: I find it utterly ridiculous that these mods can/will be shared as closed source (presumably DLL) files without having any insight into the source code at all, by sellers whom donât even know how to properly setup (FULL) test scenarioâs, doe QA Testing and such (which isnât meant as insult at all, but as a serious security concern).
So basically they are selling a product where the server owner could not ever see what they are doing on his/her server due to it being closed source, canât look into sources to see if they made crucial (security) errors/mistakes and more of the alikeâŚ
Would this approach allow users to be able to ride the trains (without tickets) or would this just result in trains being actively travelling around the map?
EDIT: sorry, I just read Mycroftâs comment indicating that it will not sync correctly
It would indeed not make them stop and enter players. It would basically just be the âsingle player trainsâ if Iâm correct. Im currently using them on my own server and didnât had any problems with syncing or so to be honest.
HOWEVER to be fair: We donât pay much attention to the trains (anymore), and every now and then itâs just something like; âOw cool, thereâs the freight trainâ or âhey, stop, we need to let the tram/subway passâ. But thatâs about it.
We didnât had any issues like double trains spawning or things like that.
NOTE: We are NOT running onesync at the moment btw.