Page 1 of 1

issue with new version of pY suite - ExportResources

Posted: Mon Oct 17, 2022 5:32 pm
by mrozpara
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...

Re: issue with new version of pY suite - ExportResources

Posted: Tue Oct 18, 2022 9:21 am
by kingarthur
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

Posted: Tue Oct 18, 2022 10:22 am
by mrozpara
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...

Re: issue with new version of pY suite - ExportResources

Posted: Tue Oct 18, 2022 10:38 am
by kingarthur
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