Ket's infinite technologies


Adds infinite technologies for all science packs (even modded) that do nothing, but may used for testing lab setup or some challenges.

Tweaks
1 year, 5 days ago
1.1 - 2.0
990

b (Fixed) Doesn't load in 2.0 with -digit suffix technologies

1 year, 10 days ago
(updated 1 year, 10 days ago)

With Pyanodons (I think only pycoalprocessing is required to trigger this), there are science packs that end with "-1", "-2", etc. This mod fixes those by replacing the final "-" with a space; but in 2.0 space is apparently no longer allowed in the name, so the mod fails to start if such science packs exist.

I was able to fix this locally by having it use a "_" instead of a space; but the problem remains of how to migrate existing saves. It seems that proper renaming of a technology can only be done with JSON migrations https://lua-api.factorio.com/latest/auxiliary/migrations.html#json-migrations but that requires a hardcoded list of all the technologies to migrate. Maybe there's some other way to do the migration?

1 year, 10 days ago

Thanks for the bug report. I will fix it as as much as possible.

1 year, 5 days ago

I fixed the error with the name suffixes. However, I have not added any migrations.

I looked at the possibility of adding dynamic migration. This can be done in the on_configuration_changed event in control.lua, but at the moment I do not plan to make such changes.

New response