Page 1 of 1

[Genhis][2.0.34] calculate_tile_properties crashes with "Unknown variable" - but the doc says it should just be ignored

Posted: Sat Feb 15, 2025 12:20 am
by Natha
When calcualting a property with calculate_tile_properties that does not exist on the surface, it throws an "Unkown variable" error. But in the docs it says that unknwon variables will just be ignored: https://lua-api.factorio.com/latest/cla ... properties

Re: [Genhis][2.0.34] calculate_tile_properties crashes with "Unknown variable" - but the doc says it should just be igno

Posted: Thu Feb 20, 2025 7:14 pm
by Genhis
Thanks for the report. What is your use case for having unknown variables ignored?

Re: [Genhis][2.0.34] calculate_tile_properties crashes with "Unknown variable" - but the doc says it should just be igno

Posted: Fri Feb 21, 2025 7:06 pm
by Natha
Thats quite simple. "entity:stone:richness" or ":probability" is unknown if stone is not defined in map_gen_settings.autoplace_settings.entity. This applies for all autoplaceable entities.

Re: [Genhis][2.0.34] calculate_tile_properties crashes with "Unknown variable" - but the doc says it should just be igno

Posted: Mon Feb 24, 2025 12:21 pm
by Genhis
I restored the original behavior for 2.0.36.