I'm afraid I don't actually know much about creating GRFs. I have focused on understanding the details of the specs to create a tool rather than how to use them productively. With that in mind, is it possible that I am reading some numbers incorrectly due to a misreading of the spec. Could you let me have the original GRF and whatnot so I can investigate? Happy to do this via PM.
Looking at the BaseCosts, there are many different values, and these are indexed with the instance_id in the YAGL. Could it be that the index 0x0000 you are using does not relate to the base cost you need to modify? https://newgrf-specs.tt-wiki.net/wiki/BaseCosts. For example, FIRS has the following code in it. I think I have interpreted the meaning correctly, but the settings look fishy compared to the default values in the specs:
Code: Select all
// Record #1598
properties<GlobalSettings, 0x0030> // Action00 <<<---- funding industries
{
// instance_id: 0x0030
{
cost_base_multipliers: 0x0A;
}
}
// Record #1599
properties<GlobalSettings, 0x003A> // Action00 <<<---- build raw industry
{
// instance_id: 0x003A
{
cost_base_multipliers: 0x0A;
}
}
// Record #1600
properties<GlobalSettings, 0x0031> // Action00 <<<---- remove industry
{
// instance_id: 0x0031
{
cost_base_multipliers: 0x0A;
}
}