Page 1 of 1

[0.18.6] Scenario causing terminating if wierd error in lua appears

Posted: Mon Feb 17, 2020 11:26 am
by MaX33333
Log: https://pastebin.com/irb0Zus2
Scenario source: https://pastebin.com/Tf78QELT
Throwing

Code: Select all

terminate called without an active exception
when

Code: Select all

created_surface.request_to_generate_chunks({0, 0}, 2)
after triggering generate event facing

Code: Select all

if count_entities_filtered{area = event.area, type = "resource"} ~= 0 then
^this lua error

Re: [0.18.6] Scenario causing terminating on surface generating

Posted: Mon Feb 17, 2020 11:37 am
by Rseding91
When I test it, I get an error about calling a global function that doesn't exist. Specifically

Code: Select all

	if count_entities_filtered{area = event.area, type = "resource"} ~= 0 then
You forgot to do event.surface.

As for why you're getting that error instead of the standard script error I have no idea. That doesn't happen for me.