Realistic Reactors Reborn

by OwnlyMe

Meltdowns, control rods, emergency cooling, breeder reactors, modules, custom guis, etc...

Content
1 year, 3 months ago
2.0
3.53K
Power

g I made it work for 2.1

2 months ago

Hallo! I wanted to have this for a Factorio 2.1 playthrough, and after tinkering with it, I got it to work after applying these changes:

  • In entities.lua in both places where "icons_positioning" is being set, "inventory_index" should be changed to "defines.inventory.crafter_modules" (As furnace_modules is deprecated).
  • In item_sprites_and_furnace_recipes.lua in the recipe definition being named 'name = "RRR-"..item.name' the category element should be replaced with a categories array (like this: categories = {"RRR-furnace-recipes"}).
  • In recipes.lua all recipe definitions should also have their category element replaced with a categories array.
  • In construct_destruct.lua, I've removed the lines where the LueEntity elements 'active' and 'minable' are being set, as writing to these is deprecated. I've also removed both instances of 'fluidbox[1]' being written to, as the fluidbox element of LuaEntity has been removed.
  • In on_tick.lua, again, all instances of writing to 'active' and 'minable' elements I've removed. Also in this, all instances of "defines.inventory.furnace_source" have been replaced with "defines.inventory.crafter_input". Instances of insert_fluid have been changed to add_fluid and it and remove_fluid have been changed to their new method definitions (which are "add_fluid(storage index, fluid table)" and "remove_fluid(storage index, fluid amount)").
  • In stats.lua, again all instances of "defines.inventory.furnace_source" have been replaced with "defines.inventory.crafter_input".

After these changes it doesn't crash anymore. However some of the changes, I do not know what does, and have just kinda brute forced them to work. This means that everything is minable (including running reactors and sarcophages), and the localised (display) names of recipes are broken.

Anyway I hope this helps :)

2 months ago

Ah, there is a couple of 'defines.inventory.furnace_source' in migration.lua and util.lua also :p

a month ago

It would be great if you could fully update it to the latest version without any errors—I’d really appreciate it

a month ago

I also personally think as it stands currently, we get this pretty late, might be worth looking into replacing the efficiency module 2, so we possibly get it before space? Feels like something that was a side effect of 2.0 porting, not really how it makes sense

a month ago

I made a working version of the mod according to MrLumme's list + other fixes. I'll try to upload a fork one I get it properly done.

Fixes:
- .active => .disabled_by_script
- .minabe => .minable_flag
..and others, I have a bad habit of not making a changelog when fooling around with these :(

a month ago

Ok the migration part proved to be a bit tricky, need to do all kinds of storage.XXXX safeguards.... might get there if I got some more time :)

a month ago

Y’all may or may not be interested but I'm desperate for this mod to be updated, so I am having Codex work on this update for me. I had it reference your discussion as a starting point 😊.

It doesn’t think it’s going to be a problem, but I’m going to try to test it reasonably well before I’m “done” with it because I want to keep the quality high. I can make it available if anyone wants. Just understand that I’m not putting any personal coding time into it (I’m a professional Python and C++ dev, but I’ve never messed with Lua or done a Factorio mod, plus I don’t have time to actually do it myself). It will be all AI.

a month ago

I’m definitely interested in this mod. And thanks for taking the time to update it to the new version—I’d be happy to test it out. I’ve played this mod before. Best regards.

15 days ago

I followed all the instructions you gave but it still says it's incompatible with 2.1. i can't even rename the mod

14 days ago

I had busy life stuff, but I got to go back to my dealer, or I mean my computer. In any case, I have a first version that I haven't tested significantly, so make sure to make copies of save games and whatnot. But this one migrates my 2.0 save to 2.1.23. Right now I'm just putting it up on Github, so you will have to download the folder or zip and put it in your mods folder. But once I have the chance to actually test it properly and update it I'll put it up as a real mod to let people use it until OwnlyMe updates this mod.

I make no promises yet as to the quality of code! I should have it up later today and I'll post the link here.

14 days ago

Alright, for those who might be interested, I have published my version on Github:
https://github.com/dylanmcsweeney/RealisticReactorsReborn_MasterShogoFork

It goes without saying that I make no promises of stablity, but that said I would welcome any and all feedback to improve it. You can give feedback here or on the Github page and I do want to ensure that it ends up stable and fully functional. I do intend to publish it here, I just haven't set that up yet. I would like to make it a separate mod that properly interacts with the old one and then back to it should it be updated. But for now, just download the entire directory or the zip file from the releases page and place it into your mods folder.

Also, it also goes without saying that anyone should feel free to do whatever you want with this, including fork it. We all just want this mod to continue on into eternity, but ultimately that will come with testing and careful updates.

And finally, thanks for OwnlyMe for making this mod. I am more than happy to nuke my fork from orbit if and when they decide to update it here. This is just so that those of us who are hopeless addicts can continue growing the factory through proper nuclear power.

6 days ago

I have udpated the release with some fixes that Astra found. So far it works for me, including testing an enormous meltdown in Factorio v2.1.24.

My saves also have Space Exploration and Krastorio 2, so it seems to work with them as well.

6 days ago

I'm also going to try to get it up on the mod portal tonight if I can.

5 days ago

Alright. Finally, I have it up on the mod portal.

https://mods.factorio.com/mod/RealisticReactorsReborn_MasterShogoFork

Please let me know if anyone encounters a problem and I can look into it.

New response