Difference between revisions of "BaseCosts NewGRF"
From #openttdcoop wiki
(adding formula...) |
(→Examples: v5) |
||
(17 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | + | == Info == | |
− | + | ||
− | + | ||
− | + | ||
Setting the costs by using the id from | Setting the costs by using the id from | ||
− | [http://wiki | + | [http://newgrf-specs.tt-wiki.net/wiki/BaseCosts BaseCosts Table] |
and the value n of the following formula: | and the value n of the following formula: | ||
Using math: NewBaseCost = OldBaseCost * 2^(n-8), where n is the value of property 08. | Using math: NewBaseCost = OldBaseCost * 2^(n-8), where n is the value of property 08. | ||
+ | You can only rise base costs by factors which correspond a power of 2. The general way to set parameters are in pairs of two:<br> | ||
+ | '''<base cost no> <exponent of multiplicator><br>''' | ||
+ | where<br> | ||
+ | '''<base cost no>''' is an entry from the first column of the [http://newgrf-specs.tt-wiki.net/wiki/BaseCosts base cost list] <br> | ||
+ | and <br> | ||
+ | '''<exponent of multiplicator>''' is the n in the multiplicator to the original base costs: 2^(n-8) Thus a value of 8 will leave the costs unchanged, a value of 9 will double it, 10 will quadruple it and 7 will half it. | ||
− | Download from BaNaNaS or from the [http:// | + | Download from BaNaNaS or from the [http://bundles.openttdcoop.org/basecosts/ DevZone] ([http://dev.openttdcoop.org/projects/basecosts Report Bugs to our tracker.]) |
Discussion: http://www.tt-forums.net/viewtopic.php?t=46720 | Discussion: http://www.tt-forums.net/viewtopic.php?t=46720 | ||
+ | ===Presets=== | ||
+ | |||
+ | the presets GRF has at least 4 sets saved. ([http://dev.openttdcoop.org/projects/basecosts-presets Homepage]) | ||
+ | |||
+ | Table: http://dev.openttdcoop.org/projects/basecosts-presets/repository/changes/BaseCostsTable.ods | ||
+ | |||
+ | Please suggest new presets to the [http://dev.openttdcoop.org/projects/basecosts-presets/issues tracker]. | ||
+ | |||
+ | ==Examples== | ||
+ | |||
+ | config for raise Terraform (x16), but keep foundations on default: | ||
+ | |||
+ | [[File:BaseCostsModExampleTF.png]] | ||
+ | |||
+ | using Pikka's pb_build but modify foundations: | ||
+ | |||
+ | [[File:BaseCostsModExamplePikka.png]] | ||
+ | |||
+ | using my Presets GRF followd by base costs mod | ||
+ | |||
+ | [[File:Basecosts-presets.png]] | ||
+ | |||
+ | New version 5: one parameter per cost: | ||
+ | |||
+ | [[File:Basecosts5.png]] | ||
---- | ---- | ||
Line 23: | Line 51: | ||
- Terkhen's "[http://www.tt-forums.net/viewtopic.php?f=26&t=46192 Raise landscaping costs]" | - Terkhen's "[http://www.tt-forums.net/viewtopic.php?f=26&t=46192 Raise landscaping costs]" | ||
− | my old grfs: [[Basecosts.grf|BaseCosts Mod 2]] and Airmod | + | - my old grfs: [[Basecosts.grf|BaseCosts Mod 2]] and Airmod |
Latest revision as of 07:45, 12 October 2012
Info
Setting the costs by using the id from BaseCosts Table and the value n of the following formula:
Using math: NewBaseCost = OldBaseCost * 2^(n-8), where n is the value of property 08.
You can only rise base costs by factors which correspond a power of 2. The general way to set parameters are in pairs of two:
<base cost no> <exponent of multiplicator>
where
<base cost no> is an entry from the first column of the base cost list
and
<exponent of multiplicator> is the n in the multiplicator to the original base costs: 2^(n-8) Thus a value of 8 will leave the costs unchanged, a value of 9 will double it, 10 will quadruple it and 7 will half it.
Download from BaNaNaS or from the DevZone (Report Bugs to our tracker.)
Discussion: http://www.tt-forums.net/viewtopic.php?t=46720
Presets
the presets GRF has at least 4 sets saved. (Homepage)
Table: http://dev.openttdcoop.org/projects/basecosts-presets/repository/changes/BaseCostsTable.ods
Please suggest new presets to the tracker.
Examples
config for raise Terraform (x16), but keep foundations on default:
using Pikka's pb_build but modify foundations:
using my Presets GRF followd by base costs mod
New version 5: one parameter per cost:
other similar grfs are:
- Pikka's "Modified Building Costs" (doesn't respect the new OpenTTD feature which splits terraform and foundations)
- Terkhen's "Raise landscaping costs"
- my old grfs: BaseCosts Mod 2 and Airmod