Closed crackalackintv closed 1 year ago
Update: Discussed with kingarthur in Discord; it might be a Factorio bug assuming the products field is present. kingarthur suggested waiting for an official update on whether this is intended or not before addressing the issue from py's side.
Which I posted in the factorio discord and were pretty sure is a vanilla bug. I'm going to report it and wait for that before I make any changes
I still got to file an actual bug report for the devs but the consensus is that the behavior is a bug so needs fixed 1 way or the other and not just assuming it exists when it doesn't
It is a vanilla bug. According to the API docs, the products field is optional. https://lua-api.factorio.com/latest/LuaEntityPrototype.html#LuaEntityPrototype.mineable_properties
I threw this at Therenas (wube), I'll see if it's officially a documentation issue or a bug.
Closing this as vanilla no longer requires this field. It's been replaced with the results table, which is defined for bitumen seeps.
Mod source
PyAE Beta
Which mod are you having an issue with?
Operating system
What kind of issue is this?
What is the problem?
I was debugging why Fill4Me-fixed isn't working and I dug out why it is failing.
In core/lualib/production-score.lua#22, Factorio expects a
.products
to be present in themineable_properties
table, if it exists. For e.g. bitumen-seep, it does not have a.products
even though it has aminable_properties
. This makes theget_raw_resources
function throw._Steps to reproduce
I had Fill4Me installed, but you can most likely just call the
core/lualib/production-score:get_raw_resources
from anywhere and observe it throwing on bitumen-seep.Additional context
Relevant code from core/lualib/production-score.lua
Log file
-