How to remove train size limit and station spread limits.

Forum for technical discussions regarding development. If you have a general suggestion, problem or comment, please use one of the other forums.

Moderator: OpenTTD Developers

BillSargent
Engineer
Engineer
Posts: 49
Joined: 09 Oct 2010 13:45
Location: Göteborg, Sweden

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

Post 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. :)
CSX _Fan
Engineer
Engineer
Posts: 6
Joined: 13 Mar 2024 00:06

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

Post 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?
BillSargent
Engineer
Engineer
Posts: 49
Joined: 09 Oct 2010 13:45
Location: Göteborg, Sweden

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

Post 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
User avatar
kamnet
Moderator
Moderator
Posts: 8589
Joined: 28 Sep 2009 17:15
Location: Eastern KY
Contact:

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

Post 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
BillSargent
Engineer
Engineer
Posts: 49
Joined: 09 Oct 2010 13:45
Location: Göteborg, Sweden

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

Post 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.
Post Reply

Return to “OpenTTD Development”

Who is online

Users browsing this forum: No registered users and 35 guests