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.kamnet wrote: 07 Apr 2020 07:38 This should result in a ridiculously high $6.3 billion for cost. But no matter what I set base cost to, it doesn't affect cost factor. When I adjust cost factor between 00 and FF, it ranges appropriately from $0 to $97k.

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;
}
}