Amator Phasma's Nuclear (forked)

by ldinc

fork of orginal mod by Amator Phasma

Content
2 days ago
1.1 - 2.1
1.92K
Power

b [✓] [apm_lib 0.32.13] New radiation code causes the following error

a month ago

I have added APM nuclear to my current game which is only in early stages. Migration causes the following error:
Error while running event apm_nuclear_ldinc::on_init()
Error when running interface function apm_radiation.add_item: apm_lib_ldinc/lib/script/radiation.lua:153: attempt to index local 'items' (a nil value)
stack traceback:
apm_lib_ldinc/lib/script/radiation.lua:153: in function <apm_lib_ldinc/lib/script/radiation.lua:146>
(...tail calls...)
stack traceback:
[C]: in function 'call'
apm_nuclear_ldinc/control.lua:6: in function 'register_radioactive_items'
apm_nuclear_ldinc/control.lua:72: in function <apm_nuclear_ldinc/control.lua:71>

I could fix it by removing the call to register_radioactive_items from control.lua, as it seems you have added a new mechanism for that registration. Did I get that right?

a month ago

Yep, the new radioactive item registrations are causing an error. Could you share your save? I want to debug it and maybe fix the migration code. I tested it with one of my old saves and it works, so yours would really help me investigate the issue.

a month ago
(updated a month ago)

I uploaded the save on your github: https://github.com/ldinc/apm-mods/issues/24
There's also another small PR I created with another fix for Angel's compatibility:
https://github.com/ldinc/apm-mods/pull/23

a month ago

HI, I see!!! Thanks!

I have added fix and your patch to 0.32.13 version of apm_lib, check it pls

15 days ago

Great, save game is working here as well now :)
Seems that I've finally got everything working in 2.1, even Angel's Industries which was not even updated for 2.0 upstream. Time to play, hehe ...

15 days ago

Nice) I wish you a good game and great run)

New response