Too many vehicles

Got a problem with OpenTTD? Find some help here.

Moderator: OpenTTD Developers

Post Reply
User avatar
huha
Engineer
Engineer
Posts: 40
Joined: 02 May 2004 11:56
Location: Germany.

Too many vehicles

Post by huha »

Hello,
I discovered openttd some days ago, installed it and it's really great!
I'm running version 0.3.1 on Windows 2000.
Now a problem has occured, whenever I try to build a train, a message pops up saying that there are too many vehicles in game. This ist of course very annoying for I can't build more trains. I tried increasing the max_trains etc. values in the openttd.cfg (I simply added a 0 so that I can have ten times the vehicles) but i still get the message.

Code: Select all

max_trains = 800
max_roadveh = 800
max_aircraft = 400
max_ships = 500
Can anyone help me?
Thanks in advance,

-huha
TrueSatan
Transport Coordinator
Transport Coordinator
Posts: 291
Joined: 16 Jul 2003 18:33

Post by TrueSatan »

hi.
you've hit the overall vehicles maximum.
sorry no patch for this so far.
greets
Director_64
Engineer
Engineer
Posts: 10
Joined: 02 May 2004 12:42
Location: Norway
Contact:

Patch needed

Post by Director_64 »

We badly need a patch fix the number of vehicles...why not put them all at 750 or 1000? That should keep us all busy :D
I love ALL females...why don't they love me?
User avatar
huha
Engineer
Engineer
Posts: 40
Joined: 02 May 2004 11:56
Location: Germany.

Post by huha »

Does that mean the max_trains etc. values in the openttd.cfg are virtually useless?
The original values are

Code: Select all

max_trains = 80
max_roadveh = 80
max_aircraft = 40
max_ships = 50
I think 80 trains are simply too few. I play with some opponents and have about 50 trains myself, some of them multi-headed. I haven't even played 50 years yet. :(

Is there a way to modify the maximum number of vehicles directly in the code? Compiling the game should not be a problem for me.

-huha
Director_64
Engineer
Engineer
Posts: 10
Joined: 02 May 2004 12:42
Location: Norway
Contact:

Post by Director_64 »

Well, I'm totaly lost when it comes to programming, but I think we need a patch to solve this prob. Much more vehicles (750 to 1000 of each), much bigger maps and a option to play online as well, is what I miss most of all :wink:
I love ALL females...why don't they love me?
Vurlix
OpenTTD Developer
OpenTTD Developer
Posts: 122
Joined: 07 Mar 2004 01:54

Post by Vurlix »

Fixed in next version.
http://sf.net/projects/openttd/
Post all your patches and feature requests here.
User avatar
huha
Engineer
Engineer
Posts: 40
Joined: 02 May 2004 11:56
Location: Germany.

Post by huha »

I don't want to bother you, but when will the next version be available? ;)
I'd really like to play the game, but it's pretty useless just looking at vehicles aging and stations getting cramped with goods ;)

Apart from this problem, I really like openttd! Great work!

-huha
Vurlix
OpenTTD Developer
OpenTTD Developer
Posts: 122
Joined: 07 Mar 2004 01:54

Post by Vurlix »

If you really can't wait, there is a workaround you can use.
vehicle.h lines 317-318, change them to something like:
NUM_NORMAL_VEHICLES = 1024,
NUM_SPECIAL_VEHICLES = 256,

Don't go crazy on the numbers you end up using, though.
http://sf.net/projects/openttd/
Post all your patches and feature requests here.
Bjarni
Tycoon
Tycoon
Posts: 2088
Joined: 08 Mar 2004 13:10

Re: Too many vehicles

Post by Bjarni »

huha wrote:

Code: Select all

max_trains = 800
max_roadveh = 800
max_aircraft = 400
max_ships = 500
those numbers are bytes so values higher than 255 are not valid and OTTD will use the default ones
Jelger
Engineer
Engineer
Posts: 11
Joined: 04 May 2004 21:16
Location: Netherlands
Contact:

Post by Jelger »

Vurlix wrote:If you really can't wait, there is a workaround you can use.
vehicle.h lines 317-318, change them to something like:
NUM_NORMAL_VEHICLES = 1024,
NUM_SPECIAL_VEHICLES = 256,

Don't go crazy on the numbers you end up using, though.
I dont have the vehicle.h file in my openttd folder :S where can i get it?
Bjarni
Tycoon
Tycoon
Posts: 2088
Joined: 08 Mar 2004 13:10

Post by Bjarni »

.h files are part of the source, so you have to get the source and compile it yourself
whitehawk
Engineer
Engineer
Posts: 3
Joined: 05 May 2004 11:14

Post by whitehawk »

My problem would be I think some ways different. I have 57 trains 5 road vehicles 4 aeroplanes, no ships, and the game still tells me that it is too much, so I can't build more. I can't even build a coalcar for my existing train.
supa
Engineer
Engineer
Posts: 12
Joined: 12 Oct 2002 10:54

Post by supa »

whitehawk wrote:I have 57 trains 5 road vehicles 4 aeroplanes, no ships, and the game still tells me that it is too much, so I can't build more.
I hit the same problem in year 1988 and I have 64 trains and 3 ships. Bugger. I guess I'll try compiling a "fixed" version...
User avatar
Korenn
Tycoon
Tycoon
Posts: 1735
Joined: 26 Mar 2004 01:27
Location: Netherlands
Contact:

Post by Korenn »

whitehawk wrote:My problem would be I think some ways different. I have 57 trains 5 road vehicles 4 aeroplanes, no ships, and the game still tells me that it is too much, so I can't build more. I can't even build a coalcar for my existing train.
no you have the exact same problem

your trains are just longer, so they use up more vehicles.
Post Reply

Return to “OpenTTD Problems”

Who is online

Users browsing this forum: No registered users and 25 guests