Increase number of road vehicles

OpenTTD is a fully open-sourced reimplementation of TTD, written in C++, boasting improved gameplay and many new features.

Moderator: OpenTTD Developers

Post Reply
CaliforniaGuy
Engineer
Engineer
Posts: 4
Joined: 08 May 2020 15:04

Increase number of road vehicles

Post 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?
User avatar
Redirect Left
Tycoon
Tycoon
Posts: 7425
Joined: 22 Jan 2005 19:31
Location: Wakefield, West Yorkshire

Re: Increase number of road vehicles

Post 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.
Image
Need some good tested AI? - Unofficial AI Tester, list of good stuff & thread is here.
CaliforniaGuy
Engineer
Engineer
Posts: 4
Joined: 08 May 2020 15:04

Re: Increase number of road vehicles

Post 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?
User avatar
jfs
Tycoon
Tycoon
Posts: 1867
Joined: 08 Jan 2003 23:09
Location: Denmark

Re: Increase number of road vehicles

Post 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.)
LaChupacabra
Route Supervisor
Route Supervisor
Posts: 431
Joined: 08 Nov 2019 23:54

Re: Increase number of road vehicles

Post 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
I am sorry for may English. I know is bed.
User avatar
Redirect Left
Tycoon
Tycoon
Posts: 7425
Joined: 22 Jan 2005 19:31
Location: Wakefield, West Yorkshire

Re: Increase number of road vehicles

Post 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.
Image
Need some good tested AI? - Unofficial AI Tester, list of good stuff & thread is here.
CaliforniaGuy
Engineer
Engineer
Posts: 4
Joined: 08 May 2020 15:04

Re: Increase number of road vehicles

Post by CaliforniaGuy »

Is there no code I change myself to increase the limit?
User avatar
NekoMaster
Tycoon
Tycoon
Posts: 4001
Joined: 16 Aug 2008 22:26
Skype: neko-master
Location: Oshawa, Ontario, CANADA

Re: Increase number of road vehicles

Post 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
Image Proud Canadian Image
Nekomasters Projects! (Downloads available on BaNaNaS!) \(>^w^<)/
# NARS ADD-ON SET 2CC | 2cc Rapid Transit For Me! (2ccRTFM) | 2cc Wagons In NML (2ccWIN)
# NML Category System (Organize your GRFS!) <- TT-Forums Exclusive Download!
CaliforniaGuy
Engineer
Engineer
Posts: 4
Joined: 08 May 2020 15:04

Re: Increase number of road vehicles

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

Return to “General OpenTTD”

Who is online

Users browsing this forum: No registered users and 20 guests