Page 1 of 1

Increase number of road vehicles

Posted: 08 May 2020 15:07
by CaliforniaGuy
Hi All,

I have a game I am playing at the moment and need to increase the max number of vehicles as the game is not allowing me more than 5000?

Re: Increase number of road vehicles

Posted: 08 May 2020 15:41
by Redirect Left
For vanilla OpenTTD i believe the limit is 5,000 total. Some patchpacks (I use JGR's Patchpack) increases this, for example, i can get 10,000 as the hard limit in my game on that patch pack.

You may be able to edit that number by altering the source code, but i can't tell you how difficul that may or may not be.

Re: Increase number of road vehicles

Posted: 10 May 2020 13:52
by CaliforniaGuy
Thanks for that, however I like to play the game as I started using the original Open TTD game.

Does anyone else know how to lift the limit?

Re: Increase number of road vehicles

Posted: 10 May 2020 18:29
by jfs
I think you can break the limit by purchasing a company that owns additional vehicles, but that's rather involved to set up, and you won't be able to buy or replace any road vehicles after doing that anyway.

(You would set that up by starting an AI player as a second company, using e.g. the IdleMoreMore AI script, then switch to controlling that other company via the cheat window, build all the additional vehicles you need, possibly you need to cheat some money into that company, then lastly change back to your original company and buy out the AI company.)

Re: Increase number of road vehicles

Posted: 10 May 2020 23:27
by LaChupacabra
jfs wrote: 10 May 2020 18:29 I think you can break the limit by purchasing a company that owns additional vehicles, but that's rather involved to set up, and you won't be able to buy or replace any road vehicles after doing that anyway.
I tried it once. You can't buy another company if you exceed the vehicle limit in this way. Even if this limit is 1

Re: Increase number of road vehicles

Posted: 11 May 2020 00:18
by Redirect Left
In that case, you can use the cheat menu (in single player games) to switch company, and control it like an affiliated company that helps rather than hinders. Then you have 5000 x [companies you control], fiddly but do able if you're not wanting to switch to a patchpack that increases this limit.

Re: Increase number of road vehicles

Posted: 11 May 2020 15:25
by CaliforniaGuy
Is there no code I change myself to increase the limit?

Re: Increase number of road vehicles

Posted: 11 May 2020 19:03
by NekoMaster
Any code you change will also make your saves stuck with that version you create and will no longer be able to load in vanilla OpenTTD even if you reduce the vehicles to the vanilla max of 5000.

Your best bet is just to use a patch pack like JGR Patch Pack which allows up to 10,000 of trains, planes, RV's and boats/ships

Re: Increase number of road vehicles

Posted: 16 May 2020 16:43
by CaliforniaGuy
Thanks I tried to get the patch to work and failed every time. Would this topic be able to be put in the suggestion box for the next release as increasing beyond 5000 and my feeling should be increased to unlimited.