Page 2 of 2

Re: How to remove train size limit and station spread limits.

Posted: 15 Mar 2024 11:43
by BillSargent
CSX _Fan wrote: 15 Mar 2024 02:42 Thanks Bill I was actaully looking to try and get this in Locomotion good to see your still on the forums now a days, but yes I was hoping to get longer trains in Locomotion not OpenTTD
I just glanced over the source.... look at /src/table/settings/game_settings.ini and search for vehicle.max_train_length

Theres a min and max value. I have no idea if this will do what you want but you can try it. I also don't know if you'll need station spread larger or if you'll need to be able to make your stations longer to accept the larger trains. :)

Re: How to remove train size limit and station spread limits.

Posted: 15 Mar 2024 18:37
by CSX _Fan
Ok I will give it a look just two more questions and I will figure the rest out on my own 1.) Where can I find the source file? 2.) How do I edit said source code?

Re: How to remove train size limit and station spread limits.

Posted: 15 Mar 2024 20:06
by BillSargent
CSX _Fan wrote: 15 Mar 2024 18:37 Ok I will give it a look just two more questions and I will figure the rest out on my own 1.) Where can I find the source file? 2.) How do I edit said source code?
I haven't done it in years. But it goes beyond the scope of something I can teach in a forum. But there is information here on the github website where the source code is for doing it. There's a very steep learning curve to this. If you've never compiled anything from source before, this will be a very hard first thing to try :)

https://github.com/OpenTTD/OpenTTD/blob ... MPILING.md

Re: How to remove train size limit and station spread limits.

Posted: 15 Mar 2024 22:33
by kamnet
CSX _Fan wrote: 15 Mar 2024 18:37 Ok I will give it a look just two more questions and I will figure the rest out on my own 1.) Where can I find the source file? 2.) How do I edit said source code?
Keep in mind, this is for OpenTTD, not Locomotion. Locomotion is a closed source game, no source code available. There is a version called OpenLoco that you may want to look into. https://openloco.io/

OpenTTD's source code is here. You can edit files with any plain text editor. https://github.com/OpenTTD/OpenTTD

Re: How to remove train size limit and station spread limits.

Posted: 15 Mar 2024 22:36
by BillSargent
kamnet wrote: 15 Mar 2024 22:33
CSX _Fan wrote: 15 Mar 2024 18:37 Ok I will give it a look just two more questions and I will figure the rest out on my own 1.) Where can I find the source file? 2.) How do I edit said source code?
Keep in mind, this is for OpenTTD, not Locomotion. Locomotion is a closed source game, no source code available. There is a version called OpenLoco that you may want to look into. https://openloco.io/

OpenTTD's source code is here. You can edit files with any plain text editor. https://github.com/OpenTTD/OpenTTD
Oh I didn't even catch they were looking for patching for Locomotion :) Thanks for adding that.