Hello,
I've got problem with using Foreman exporter (create new preset) with newest version of PySuite. As I've checked it's crashing on lua export line:
"for _, product in pairs(resource.mineable_properties.products) do"
while processing Bitumen seep
with
Error while running event level::on_nth_tick(1)
__foremanexport__/instrument-control.lua:443: bad argument #1 of 2 to 'pairs' (table expected, got nil)
any ideas what could be wrong? It was working without problems with previous version of pY...
issue with new version of pY suite - ExportResources
Moderator: pyanodon
-
- Smart Inserter
- Posts: 1463
- Joined: Sun Jun 15, 2014 11:39 am
- Contact:
Re: issue with new version of pY suite - ExportResources
Ya I know what's wrong. someone needs to fix thier shit as it's failing on a valid lack of mining product
Re: issue with new version of pY suite - ExportResources
OK. I've added proper ~=nill condition - and it's working.
however - is that correct that there is resource without mining product? I'm not even "mod-begginer" therefore I don't understand logic of it at all. I can only debug a thing or two...
however - is that correct that there is resource without mining product? I'm not even "mod-begginer" therefore I don't understand logic of it at all. I can only debug a thing or two...
-
- Smart Inserter
- Posts: 1463
- Joined: Sun Jun 15, 2014 11:39 am
- Contact:
Re: issue with new version of pY suite - ExportResources
It's a scripted thing. The ore patch on the map gets replaced by others are a short mining period where the output would just be trash till you get the real resource