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

Bugs that we were not able to reproduce, and/or are waiting for more detailed info.
Post Reply
MaX33333
Burner Inserter
Burner Inserter
Posts: 5
Joined: Thu May 02, 2019 7:05 pm
Contact:

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

Post 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
Last edited by MaX33333 on Mon Feb 17, 2020 11:46 am, edited 1 time in total.

Rseding91
Factorio Staff
Factorio Staff
Posts: 13171
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [0.18.6] Scenario causing terminating on surface generating

Post 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.
If you want to get ahold of me I'm almost always on Discord.

Post Reply

Return to “Pending”