How to change property proportionally across all typical items?

Got a problem with OpenTTD? Find some help here.

Moderator: OpenTTD Developers

Post Reply
AlphaCentauriBear
Engineer
Engineer
Posts: 55
Joined: 14 Jan 2024 01:32

How to change property proportionally across all typical items?

Post by AlphaCentauriBear »

Say I want to multiply running cost for all trucks (or road vehicles) by some coefficient. Is there a way to do it in GRF?
skc
Traffic Manager
Traffic Manager
Posts: 177
Joined: 17 Sep 2022 02:02

Re: How to change property proportionally across all typical items?

Post by skc »

AlphaCentauriBear wrote: 25 Jan 2024 00:17 Say I want to multiply running cost for all trucks (or road vehicles) by some coefficient. Is there a way to do it in GRF?
I'm not sure of the name of the GRF, but I've seen one mentioned recently which does allow you to change the costs of vehicles.
I'm also not 100% sure if it's what you're after, but it's probably very close.

Others, most likely kamnet, will be able to answer more precisely.
Eddi
Tycoon
Tycoon
Posts: 8272
Joined: 17 Jan 2007 00:14

Re: How to change property proportionally across all typical items?

Post by Eddi »

you might be looking for base costs
AlphaCentauriBear
Engineer
Engineer
Posts: 55
Joined: 14 Jan 2024 01:32

Re: How to change property proportionally across all typical items?

Post by AlphaCentauriBear »

Eddi wrote: 25 Jan 2024 03:02 you might be looking for base costs
basecosts changes them by 2. I want to change them to some arbitrary multiplier.
skc
Traffic Manager
Traffic Manager
Posts: 177
Joined: 17 Sep 2022 02:02

Re: How to change property proportionally across all typical items?

Post by skc »

AlphaCentauriBear wrote: 26 Jan 2024 02:46
Eddi wrote: 25 Jan 2024 03:02 you might be looking for base costs
basecosts changes them by 2. I want to change them to some arbitrary multiplier.
Assuming the source code is available, I can't see why it wouldn't be possible to edit the 'BaseCosts' GRF to allow a user to specify a discrete multiplier.
I'm not a GRF coder, and have neither the knowledge nor desire to learn, but I have a moderate level of programming knowledge so understand the likely process BaseCosts is using.
Auge
Director
Director
Posts: 636
Joined: 23 Oct 2006 02:07
Location: Berlin

Re: How to change property proportionally across all typical items?

Post by Auge »

Hello
skc wrote: 26 Jan 2024 03:00
AlphaCentauriBear wrote: 26 Jan 2024 02:46
Eddi wrote: 25 Jan 2024 03:02 you might be looking for base costs
basecosts changes them by 2. I want to change them to some arbitrary multiplier.
Assuming the source code is available, I can't see why it wouldn't be possible to edit the 'BaseCosts' GRF to allow a user to specify a discrete multiplier.
There are a few base cost mods available in the Bananas store. Some of them with the ability to define multipliers for several categories (purchase costs, maintenance costs, cargo pay rates and so on).

Tschö, Auge
AlphaCentauriBear
Engineer
Engineer
Posts: 55
Joined: 14 Jan 2024 01:32

Re: How to change property proportionally across all typical items?

Post by AlphaCentauriBear »

Thank you. Let me check them out.
Post Reply

Return to “OpenTTD Problems”

Who is online

Users browsing this forum: No registered users and 9 guests