Cargo Payment & Decay Override

Discuss, get help with, or post new graphics for TTDPatch and OpenTTD, using the NewGRF system, here. Graphics for plain TTD also acceptable here.

Moderator: Graphics Moderators

User avatar
luk3Z
Traffic Manager
Traffic Manager
Posts: 197
Joined: 25 Dec 2005 17:42
Location: Kielce, Poland (Mars sometimes)

Re: Cargo Payment & Decay Override

Post by luk3Z »

For tax 20%: initial cargo payment -20% (default values in £ - rounded up):
For Ultimate Cargo Payment Override parameters: initial cargo payment * 2

Temperate climate:
ID00 Passengers: £39 -20% = 31 * 2 = 62
ID01 Coal: £72 -20% = 57 * 2 = 114
ID02 Mail: £55 -20% = 44 * 2 = 88
ID03 Oil: £54 -20% = 43 * 2 = 86
ID04 Livestock: £53 -20% = 42 * 2 = 84
ID05 Goods: £75 -20% = 60 * 2 = 120
ID06 Grain: £58 -20% = 46 * 2 = 92
ID07 Wood: £61 - 20% = 48 *2 = 96
ID08 Iron Ore: £62 - 20% = 49 * 2 = 98
ID09 Steel: £69 -20% = 55 * 2 = 110
ID10 Valuables: £91 -20% = 72 * 2 = 144

Arctic specific:
ID06 Wheat: £58 -20% = 46 * 2 = 92
ID09 Paper: £66 -20% = 52 * 2 = 104
ID10 Gold: £71 -20% = 56 * 2 = 112
ID11 Food: £69 -20% = 55 * 2 = 110

Tropical specific:
ID01 Rubber: £54 -20% = 43 * 2 = 86
ID04 Fruit: £51 -20% = 40 * 2 = 80
ID06 Maize: £53 -20% = 42 * 2 = 84
ID07 Tropical Wood: £97 -20% = 77 * 2 = 154
ID08 Copper Ore: £59 -20% = 47 * 2 = 94
ID09 Water: £57 -20% = 45 * 2 = 90
ID10 Diamonds: £71 -20% = 56 * 2 = 112

For tax 35%: initial cargo payment -35% (default values in £ - rounded up):
For Ultimate Cargo Payment Override parameters: initial cargo payment * 2

Temperate climate:
ID00 Passengers: 39 -35% = 25 * 2 = 50
ID01 Coal: 72 -35% = 46 * 2 = 92
ID02 Mail: 55 -35% = 35 * 2 = 70
ID03 Oil: 54 -35% = 35 * 2 = 70
ID04 Livestock: 53 -35% = 34 * 2 = 68
ID05 Goods: 75 -35% = 48 * 2 = 96
ID06 Grain: 58 -35% = 37 * 2 = 74
ID07 Wood: 61 -35% = 39 * 2 = 78
ID08 Iron Ore: 62 - 20% = 40 * 2 = 80
ID09 Steel: 69 -35% = 44 * 2 = 88
ID10 Valuables: 91 -35% = 59 * 2 = 118

Arctic specific :
ID06 Wheat: £58 -35% = 37 * 2 = 74
ID09 Paper: £66 -35% = 42 * 2 = 84
ID10 Gold: £71 -35% = 46 * 2 = 92
ID11 Food: £69 -35% = 44 * 2 = 88

Tropical specific:
ID01 Rubber: £54 -35% = 35 * 2 = 70
ID04 Fruit: £51 -35% = 33 * 2 = 66
ID06 Maize: £53 -35% = 34 * 2 = 68
ID07 Tropical Wood: £97 -35% = 63 * 2 = 126
ID08 Copper Ore: £59 -35% = 38 * 2 = 76
ID09 Water: £57 -35% = 37 * 2 = 74
ID10 Diamonds: £71 -35% = 46 * 2 = 92

Conclusions.
Passengers: default values (initial cargo payment) in £ from the year 1920:
1. default: £ 78
2. 20% tax: £ 62
3. 35% tax: £ 50

Just for Your information (JFYI).
Last edited by luk3Z on 05 May 2022 16:29, edited 1 time in total.
Find new graphics easier:
GRFCrawler -> http://grfcrawler.tt-forums.net
BaNaNaS -> https://bananas.openttd.org/
32 bit gfx in OTTD (32bpp) -> https://wiki.openttd.org/en/Community/N ... 20graphics
TTDPatch 2.6 -> viewtopic.php?f=19&t=67694
How to subtract tax from income (workaround) -> viewtopic.php?t=89763&start=20
How to ban distance from income -> Simple Cargo Decay Override
User avatar
luk3Z
Traffic Manager
Traffic Manager
Posts: 197
Joined: 25 Dec 2005 17:42
Location: Kielce, Poland (Mars sometimes)

Re: Cargo Payment & Decay Override

Post by luk3Z »

Ignoring distance only or distance & time.

Refers to NewGRF:
Simple Cargo Decay Override along with Ultimate Cargo Payment Override.

Warning !
By ignoring distance and by adding a tax the game might become more challenging (harder/realistic).
If you have any objections or you do afraid about the game difficulty you should stop reading this post now.

Recommended:
Inflation: turned ON, running costs: High, pounds as currency units in the Options for the current setup.

Notice:
1. If you start the vanilla game in 1920 there are no buses.
2. Keep in mind that cargo prices rising every year.
3. You will not be able to exploit the game engine by distance.

How to change "price factor" in the Ultimate Cargo Payment Override newgrf to set almost default OTTD values (tax simulation with additional calculations):

#Year 1920
#Temperate climate:

ID00 Passengers: 8
ID00 Passengers -20% tax: 6
ID00 Passengers -35% tax: 5

ID01 Coal: 14
ID01 Coal -20% tax: 11
ID01 Coal -35% tax: 9

ID02 Mail: 11
ID02 Mail -20% tax: 9
ID02 Mail -35% tax: 7

ID03 Oil: 11
ID03 Oil -20% tax: 9
ID03 Oil -35% tax: 7

ID04 Livestock: 11
ID04 Livestock -20% tax: 9
ID04 Livestock -35% tax: 7

ID05 Goods: 15
ID05 Goods -20% tax: 12
ID05 Goods -35% tax: 9

ID06 Grain: 11
ID06 Grain -20% tax: 9
ID06 Grain -35% tax: 7

ID07 Wood: 12
ID07 Wood -20% tax: 10
ID07 Wood -35% tax: 8

ID08 Iron Ore: 12
ID08 Iron Ore -20% tax: 10
ID08 Iron Ore -35% tax: 8

ID09 Steel: 13
ID09 Steel -20% tax: 11
ID09 Steel -35% tax: 8

ID10 Valuables: 18
ID10 Valuables -20% tax: 14
ID10 Valuables -35% tax: 11

#Arctic specific:
ID06 Wheat: 11
ID06 Wheat -20% tax: 9
ID06 Wheat -35% tax: 7

ID09 Paper: 13
ID09 Paper -20% tax: 11
ID09 Paper -35% tax: 8

ID10 Gold: 14
ID10 Gold -20% tax: 11
ID10 Gold -35% tax: 9

ID11 Food: 13
ID11 Food -20% tax: 11
ID11 Food -35% tax: 8

#Tropical specific:
ID01 Rubber: 11
ID01 Rubber -20% tax: 9
ID01 Rubber -35% tax: 7

ID04 Fruit: 10
ID04 Fruit -20% tax: 8
ID04 Fruit -35% tax: 6

ID06 Maize: 11
ID06 Maize -20% tax: 9
ID06 Maize -35% tax: 7

ID07 Tropical Wood: 19
ID07 Tropical Wood -20% tax: 15
ID07 Tropical Wood -35% tax: 12

ID08 Copper Ore: 11
ID08 Copper Ore -20% tax: 9
ID08 Copper Ore -35% tax: 7

ID09 Water: 11
ID09 Water -20% tax: 9
ID09 Water -35% tax: 7

ID10 Diamonds: 14
ID10 Diamonds -20% tax: 11
ID10 Diamonds -35% tax: 9

To be continued...
Attachments
newgrf parameters
newgrf parameters
newgrf parameters.PNG (29.21 KiB) Viewed 1417 times
graph with price factors 1920
graph with price factors 1920
graph with price factors 1920.PNG (50.81 KiB) Viewed 1417 times
graph vanilla 1920
graph vanilla 1920
graph vanilla 1920.PNG (49.08 KiB) Viewed 1417 times
Find new graphics easier:
GRFCrawler -> http://grfcrawler.tt-forums.net
BaNaNaS -> https://bananas.openttd.org/
32 bit gfx in OTTD (32bpp) -> https://wiki.openttd.org/en/Community/N ... 20graphics
TTDPatch 2.6 -> viewtopic.php?f=19&t=67694
How to subtract tax from income (workaround) -> viewtopic.php?t=89763&start=20
How to ban distance from income -> Simple Cargo Decay Override
User avatar
luk3Z
Traffic Manager
Traffic Manager
Posts: 197
Joined: 25 Dec 2005 17:42
Location: Kielce, Poland (Mars sometimes)

Re: Cargo Payment & Decay Override

Post by luk3Z »

1. Ignoring nothing.

Refers to NewGRF:
Ultimate Cargo Payment Override.

Notice:
Keep in mind that cargo prices rising every year when inflation was turned on in the game settings.

Year 1930 tax 20% (inflation ON)
For tax 20%: default cargo price (in 1930) -20% (default values in £ - rounded up):


Temperate climate:
ID00 Passengers: £102 -20% = £81
ID01 Coal: £194 -20% = £155
ID02 Mail: £148 -20% = £118
ID03 Oil: £144 -20% = £115
ID04 Livestock: £142 -20% = £113
ID05 Goods: £200 -20% = £160
ID06 Grain: £156 -20% = £124
ID07 Wood: £164 - 20% = £131
ID08 Iron Ore: £168 - 20% = £134
ID09 Steel: £185 -20% = £148
ID10 Valuables: £242 -20% = £193

Arctic specific:
ID06 Wheat: £156 -20% = £124
ID09 Paper: £178 -20% = £142
ID10 Gold: £188 -20% = £150
ID11 Food: £182 -20% = £145

Tropical specific:
ID01 Rubber: £142 -20% = £113
ID04 Fruit: £135 -20% = £108
ID06 Maize: £140 -20% = £112
ID07 Tropical Wood: £260 -20% = £208
ID08 Copper Ore: £160 -20% = £128
ID09 Water: £152 -20% = £121
ID10 Diamonds: £189 -20% = £151

Year 1930 tax 35% (inflation ON)
For tax 35%: default cargo price (in 1930) -35% (default values in £ - rounded up):


Temperate climate:
ID00 Passengers: £102 -35% = £66
ID01 Coal: £194 -35% = £126
ID02 Mail: £148 -35% = £96
ID03 Oil: £144 -35% = £93
ID04 Livestock: £142 -35% = £92
ID05 Goods: £200 -35% = £130
ID06 Grain: £156 -35% = £101
ID07 Wood: £164 - 35% = £106
ID08 Iron Ore: £168 - 35% = £109
ID09 Steel: £185 -35% = £120
ID10 Valuables: £242 -35% = £157

Arctic specific:
ID06 Wheat: £156 -35% = £101
ID09 Paper: £178 -35% = £115
ID10 Gold: £188 -35% = £122
ID11 Food: £182 -35% = £118

Tropical specific:
ID01 Rubber: £142 -35% = £92
ID04 Fruit: £135 -35% = £87
ID06 Maize: £140 -35% = £91
ID07 Tropical Wood: £260 -35% = £169
ID08 Copper Ore: £160 -35% = £104
ID09 Water: £152 -35% = £98
ID10 Diamonds: £189 -35% = £122


Conclusions.
For Ultimate Cargo Payment Override newgrf parameters are set in this way: price factor = Initial cargo payment * 2 -> default (original) cargo payment
https://wiki.openttd.org/en/Manual/Game ... ment-rates
Cargo payment (readed from the graph) for passengers (ID00) in £ from the year 1930 (cargo payment & according price factors):
1. default: £ 102 (ID00 price factor 0 or 78 - no override)
2. -20% tax: £ 81 (ID00 price factor -20% = 78 - 20% = 62)
3. -35% tax: £ 66 (ID00 price factor -35% = 78 - 35% = 50)


2. Ignoring distance only or distance & time.

Refers to NewGRF:
Simple Cargo Decay Override along with Ultimate Cargo Payment Override.

How to change "price factor" in the Ultimate Cargo Payment Override newgrf to set almost default OTTD values (tax simulation with additional calculations):

#Year 1930
#Temperate climate:

ID00 Passengers: 8 (price factor)
ID00 Passengers -20% tax (simulation): 6
ID00 Passengers -35% tax (simulation): 5

ID01..IDxx - the same as above for the year 1920. It looks like the factors are not changing. So, to keep default cargo payment (when ignoring distance only or distance & time from profit calculation) you will always need the same factors (adjusted when needed). Default cargo prices for further years you have to read from the ingame graph directly (when you want to adjust them).
Attachments
vanilla cargo prices in 1930 with inflation
vanilla cargo prices in 1930 with inflation
vanilla 1930 with inflation.PNG (67.52 KiB) Viewed 1297 times
cargo prices in 1930 with inflation & ignoring distance & time (adjusted to default values)
cargo prices in 1930 with inflation & ignoring distance & time (adjusted to default values)
cargo prices in 1930 with inflation & ignoring distance & time.PNG (60.16 KiB) Viewed 1244 times
cargo prices in 1930 with inflation & ignoring distance only (adjusted to default values) parameter 256
cargo prices in 1930 with inflation & ignoring distance only (adjusted to default values) parameter 256
cargo prices in 1930 with inflation & ignoring distance only.PNG (39.56 KiB) Viewed 1239 times
Last edited by luk3Z on 16 May 2022 15:55, edited 7 times in total.
Find new graphics easier:
GRFCrawler -> http://grfcrawler.tt-forums.net
BaNaNaS -> https://bananas.openttd.org/
32 bit gfx in OTTD (32bpp) -> https://wiki.openttd.org/en/Community/N ... 20graphics
TTDPatch 2.6 -> viewtopic.php?f=19&t=67694
How to subtract tax from income (workaround) -> viewtopic.php?t=89763&start=20
How to ban distance from income -> Simple Cargo Decay Override
User avatar
luk3Z
Traffic Manager
Traffic Manager
Posts: 197
Joined: 25 Dec 2005 17:42
Location: Kielce, Poland (Mars sometimes)

Re: Cargo Payment & Decay Override

Post by luk3Z »

35% tax simulation in 1930 with inflation ON, distance disabled (graph is overlapping for few cargos) (currency £):

ID/price factor:
ID00 Passengers -35% tax: 5
ID01 Coal -35% tax: 9
ID02 Mail -35% tax: 7
ID03 Oil -35% tax: 7
ID04 Livestock -35% tax: 7
ID05 Goods -35% tax: 9
ID06 Grain -35% tax: 7
ID07 Wood -35% tax: 8
ID08 Iron Ore -35% tax: 8
ID09 Steel -35% tax: 8
ID10 Valuables -35% tax: 11

50% tax simulation in 1930 with inflation ON, distance disabled (graph is overlapping for few cargos) (currency £, values rounded down):

ID/price factor:
ID00 Passengers -50% tax: 4
ID01 Coal -50% tax: 7
ID02 Mail -50% tax: 5
ID03 Oil -50% tax: 5
ID04 Livestock -50% tax: 5
ID05 Goods -50% tax: 7
ID06 Grain -50% tax: 5
ID07 Wood -50% tax: 6
ID08 Iron Ore -50% tax: 6
ID09 Steel -50% tax: 6
ID10 Valuables -50% tax: 9
Attachments
35% tax simulation in 1930 when distance is disabled
35% tax simulation in 1930 when distance is disabled
35 tax sim in 1930.PNG (35.13 KiB) Viewed 1237 times
50% tax simulation in 1930 when distance is disabled
50% tax simulation in 1930 when distance is disabled
50 tax sim in 1930.jpg (68.7 KiB) Viewed 1173 times
Find new graphics easier:
GRFCrawler -> http://grfcrawler.tt-forums.net
BaNaNaS -> https://bananas.openttd.org/
32 bit gfx in OTTD (32bpp) -> https://wiki.openttd.org/en/Community/N ... 20graphics
TTDPatch 2.6 -> viewtopic.php?f=19&t=67694
How to subtract tax from income (workaround) -> viewtopic.php?t=89763&start=20
How to ban distance from income -> Simple Cargo Decay Override
AlphaCentauriBear
Engineer
Engineer
Posts: 55
Joined: 14 Jan 2024 01:32

Re: Ultimate Cargo Payment Override

Post by AlphaCentauriBear »

Thank you for the mod. This is really what I was looking for to add some normal challenge in the game!

Few questions.


#1

I understand there are two decay limits for each cargo: day1 and day2. After day2 it decays twice as fast.

I figured out these are IDs for different cargo day1.
ID00 Passengers
ID01 Coal
ID02 Mail
ID03 Oil
ID04 Livestock
ID05 Goods
ID06 Grain
ID07 Wood
ID08 Iron Ore
ID09 Steel
ID10 Valuables
What are IDs for each corresponding cargo day2? Should I add 32 to day1 cargo ID or is it some other system?



#2

Not clear why you multiply rates by 10 when not using distance? Somehow it becomes as if cargo is delivered by 200 tiles which is very very far considering the map itself is 255x255. Would it be simpler just leave it as "as if transported by 20 tiles" by default?
Post Reply

Return to “Graphics Development”

Who is online

Users browsing this forum: Bing [Bot] and 52 guests