I'm not an experienced coder.
I made general fixes to the code and got your mod to run on Factorio 2.0 until it crashes as it tries to update the evolution factor.
Currently I'm stuck on this error regarding stats[v.slot] and nextgen[v.slot] and have no clue how to fix it. I'm just hoping that you might have an idea on how your mod ticks.
Also, the DLC is technically a glorified mod from Wube. Factorio 2.0 affects everyone, so fixing it so it would work with the base game (excluding DLC content) should be the first priority.
I hope I don't come off as pushy or anything.
The error I got:
The mod Next Gen Evolution (1.2.0) caused a non-recoverable error.
Error while running event NextGenEvolution::on_nth_tick(3600)
LuaSettings doesn't contain key nextgen.
stack traceback:
[C]: in function 'index'
__NextGenEvolution/control.lua:116: in function <NextGenEvolution/control.lua:112>