Conflict with another mod that player.force.technologies['construction-robotics'].researched=true
while running event level::on_player_created (ID 24)
.
Logs:
546.839 Error MainLoop.cpp:1207: Exception at tick 0: The scenario level caused a non-recoverable error.
Please report this error to the scenario author.
Error while running event level::on_player_created (ID 24)
The mod Module Inserter (5.0.7) caused a non-recoverable error.
Please report this error to the mod author.
Error while running event ModuleInserter::on_research_finished (ID 18)
__ModuleInserter__/gui.lua:246: attempt to index local 'pdata' (a nil value)
stack traceback:
__ModuleInserter__/gui.lua:246: in function 'register_action'
__ModuleInserter__/gui.lua:363: in function 'init'
__ModuleInserter__/control.lua:723: in function <__ModuleInserter__/control.lua:720>
stack traceback:
...oaming/Factorio/temp/currently-playing/playerBonuses.lua:185: in function 'handler'
__core__/lualib/event_handler.lua:47: in function <__core__/lualib/event_handler.lua:45>
stack traceback:
[C]: in function '__newindex'
...oaming/Factorio/temp/currently-playing/playerBonuses.lua:185: in function 'handler'
__core__/lualib/event_handler.lua:47: in function <__core__/lualib/event_handler.lua:45>
It looks like you might need to init gui.lua#L299 or do some type of null check gui.lua#L246.
Could be that technology check for construction-robotics happens before there is a change to setup _pdata
?
I've tried making your mod a optional dependency for my mod, so your events (like on_player_created) trigger before mine, but that does not seem to work.
Thank you for the awesome mod ๐
-Kizrak