issue with new version of pY suite - ExportResources

pyanodon's mods are here

Moderator: pyanodon

Post Reply
mrozpara
Burner Inserter
Burner Inserter
Posts: 13
Joined: Wed Mar 09, 2022 4:20 pm
Contact:

issue with new version of pY suite - ExportResources

Post 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...

kingarthur
Smart Inserter
Smart Inserter
Posts: 1459
Joined: Sun Jun 15, 2014 11:39 am
Contact:

Re: issue with new version of pY suite - ExportResources

Post 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

mrozpara
Burner Inserter
Burner Inserter
Posts: 13
Joined: Wed Mar 09, 2022 4:20 pm
Contact:

Re: issue with new version of pY suite - ExportResources

Post 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...

kingarthur
Smart Inserter
Smart Inserter
Posts: 1459
Joined: Sun Jun 15, 2014 11:39 am
Contact:

Re: issue with new version of pY suite - ExportResources

Post 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

Post Reply

Return to “PyMods”