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

This subforum contains all the issues which we already resolved.
Natha
Fast Inserter
Fast Inserter
Posts: 247
Joined: Sun Mar 15, 2015 1:48 pm
Contact:

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

Post 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
Genhis
Factorio Staff
Factorio Staff
Posts: 760
Joined: Wed Dec 24, 2014 8:19 am
Contact:

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

Post by Genhis »

Thanks for the report. What is your use case for having unknown variables ignored?
Natha
Fast Inserter
Fast Inserter
Posts: 247
Joined: Sun Mar 15, 2015 1:48 pm
Contact:

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

Post 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.
Genhis
Factorio Staff
Factorio Staff
Posts: 760
Joined: Wed Dec 24, 2014 8:19 am
Contact:

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

Post by Genhis »

I restored the original behavior for 2.0.36.
Post Reply

Return to “Resolved Problems and Bugs”