16.219 Error ModManager.cpp:1514: Failed to load mod "NonWaveDefense2": NonWaveDefense2/non_wave_defense.lua:767: attempt to index global 'game' (a nil value)
stack traceback: NonWaveDefense2/non_wave_defense.lua:767: in function 'print'
This happens during factorio start up. Disabling the mod makes it work.
I think this happens because this module overrides the global print function, so whenever any othe rmodule tries to print anything, the game will crash.
Sorry it took so long to respond. I'll update with that line/function removed (it should never execute in the mod itself, so that might be a legitimate bug).