Next Gen Evolution

by Qon

Nests absorbing pollution causes evolution to increase instead of when it is produced. An improvement to vanilla pollution evolution behaviour. Default values are balanced to allow you to turn vanilla pollution evolution factor off without changing difficulty but everything is Qonfigurable. Doesn't impact UPS. /ngevolution to see evolution factor

Tweaks
4 years ago
0.17 - 1.1
1.82K

b Mod broke with Factorio 2.0 update

6 months ago

Hello, just wanted to inform that this mod has been broken in the update. Tricking the game to believe that the mod is meant for 2.0 throws error in regard to the recipes and the recalculations of the evolution factor. I have yet to figure out all the issues to fix the mod myself, but maybe you have better knowledge about how things should change in your mod.

6 months ago

Updaring to 2.0 shouldn't be too tricky. I don't know how evolution works on other planets in SA expansion that don't have regular pollution so that might be trickier.

6 months ago
(updated 6 months ago)

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>

6 months ago

Update: I'm an idiot and didn't know what I was doing at the time. As I said, inexperienced coder.

I made the mistake to have changed the "global." values into "nextgen." values without realizing why it was called that.
Factorio 2.0 changed the "global." values and requires them to go to "storage." now.

I'm still on it to make your mod work in 2.0 somehow

6 months ago

I got the mod to not throw an error anymore, neither on the tick update, nor on using the commands.
But I'm out of luck now, as the actual values are not updating despite the code running in the background.

6 months ago

Got the mod working again, including all the values updating as intended.

6 months ago

Check out the new port of your mod:

https://mods.factorio.com/mod/NextGenEvolution-Port

New response