No more space for orders?

Got a problem with OpenTTD? Find some help here.

Moderator: OpenTTD Developers

Post Reply
purley
Engineer
Engineer
Posts: 3
Joined: 21 May 2012 20:14

No more space for orders?

Post by purley »

Hello all,

I've been playing on one map for 6 months now and reached 3,861 trains, 4,513 road vehicles, 49 ships and 1,318 aircrafts.

Now when I try to add new order/vehicle I get an error window saying "Can't insert order. No more space for orders".

I guess there is a limit on how many orders can exist but is there any way to increase this limit?

I definitely want to continue playing on the map so any help would be much appreciated!
User avatar
planetmaker
OpenTTD Developer
OpenTTD Developer
Posts: 9432
Joined: 07 Nov 2007 22:44
Location: Sol d

Re: No more space for orders?

Post by planetmaker »

Does every vehicle have its own orders or do you use shared orders? You can reduce the amount of orders drastically by using shared orders for vehicles which service the same route (and you make yourself your fleet management easier, too).

There's no way I know to increase the order limit except to compile a custom OpenTTD version.
purley
Engineer
Engineer
Posts: 3
Joined: 21 May 2012 20:14

Re: No more space for orders?

Post by purley »

Thanks for the reply.

Each vehicle has own orders. I guess only way is to group vehicles using shared orders!

Not sure why there is a limit but I guess it's something to do with hardware performance :cry:
Eddi
Tycoon
Tycoon
Posts: 8289
Joined: 17 Jan 2007 00:14

Re: No more space for orders?

Post by Eddi »

there is a limit on the amount of orders, because the order index has to be used in a lot of places, so once you define a data type for that index, you are limited by the range of this data type.

here it is likely the data type uint16, which has a range of 0-65535. with a maximum of 5000 vehicles that makes over 10 orders per vehicle, which should be enough for anybody (tm).

so if you want to increase this limit, you have to check in a lot of places, whether the new data type fits in (e.g. in formulas involving order indices. or the savegame format) which is probably not worth the effort.
purley
Engineer
Engineer
Posts: 3
Joined: 21 May 2012 20:14

Re: No more space for orders?

Post by purley »

Now I understand. Thanks for the info :D
Post Reply

Return to “OpenTTD Problems”

Who is online

Users browsing this forum: Semrush [Bot] and 5 guests