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

- Posts: 313
- 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
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

- Posts: 986
- 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
Thanks for the report. What is your use case for having unknown variables ignored?
-
Natha
- Filter Inserter

- Posts: 313
- 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
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

- Posts: 986
- 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
I restored the original behavior for 2.0.36.