Import RealisticReactors 3.1.5

This commit is contained in:
numzero 2024-07-14 21:56:00 +03:00
commit 2d340cbb05
170 changed files with 9063 additions and 0 deletions

Binary file not shown.

BIN
DOCUMENTATION/ownly_mox.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 100 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 97 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 86 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 85 KiB

116
changelog.txt Normal file
View File

@ -0,0 +1,116 @@
---------------------------------------------------------------------------------------------------
Version: 3.1.5
Date: 2024.04.15
Bugfixes:
- fixed error during mod migration phase
---------------------------------------------------------------------------------------------------
Version: 3.1.4
Date: 2022.05.22
Changes:
- cleaned up heat network merge algorithm code
- improved debug functions
- updated readme.md
Bugfixes:
- fixed merging heat networks when placing reactors at chunk borders
- fixed changelog Locale wording
Locale:
- updated russian translation, big thanks to Gesugao-san
---------------------------------------------------------------------------------------------------
Version: 3.1.3
Date: 2022.04.24
Bugfixes:
- fixed sarcophagus recipe remained disabled after research
- fixed exception if cell was empty in get_entity_neighbour_cells at scripts/heat/math.lua:332
Locale:
- added korean translation, big thanks to x2605
---------------------------------------------------------------------------------------------------
Version: 3.1.2
Date: 2021.08.20
Bugfixes:
- fix settings localizations
- fix error due to missing setting name
- fix sarcophagus entity picture statement
- remove unused code
Locale:
- update english tips and tricks
- update settings descriptions
License:
- update license.txt
---------------------------------------------------------------------------------------------------
Version: 3.1.1
Date: 2021.08.17
Bugfixes:
- fix specific heat of heat buffer of reactor
---------------------------------------------------------------------------------------------------
Version: 3.1.0
Date: 2021.08.14
Info:
- revived meltdown explosion map setting
- atomic bombs from True-Nukes need to be enabled if alternate meltdown explosion setting is used
Features:
- meltdown explosion compatibility with True-Nukes and PlutoniumEnergy
- cooling tower lights
Changes:
- rm tint from breeder
Bugfixes:
- fix crash on surface deleted
- fix removing non-empty reactors with robots
- fix reactors running forever when burnt result is full
- fix missing mod interface script_raised_revive event
- fix heat buffer connections; hack limit of 200 using big-data-string mod
- fix mod setting namespace
- fix lighting & masking
- cleanup textures
---------------------------------------------------------------------------------------------------
Version: 3.0.0
Date: 2021.01.29
Info:
- code rewrite, cleanup
- saves with the 2.x version will be converted
- saves with the 3.x version aren't backward compatible! Test carefully.
- unlimited heat-pipe network size
- no periodic heat-pipe checks anymore
- meltdown explosion fixed to regular
- fallout mode fixed to clouds and radioactivity
- meltdown mode fixed to ruin with sarcophagus
- manual neighbor check removed due to heat-network optimizations
- periodic neighbor check removed due to heat-network optimizations
Bugfixes:
- blueprinting fixes
- bot and pipette placement fixes
- consistent event handling
- sarcophagus fits over adjacent reactor ruins
- tons of code and logic fixes
- code reorder, modularization
- heat-network rewrite, new logic with clustered A* pathfinder
- underground heat-pipe support removed, now handled through event system
- hack to get heat buffer connections from prototype
- deterministic runtime behavior
- remove rr-interface calls, except for debugging
- add readme.md
- fix tofu in changelog.txt
Locale:
- update english translation
- add german translation
- update russian translation
Graphics:
- cleanup unused files
- remove nuclear explosion
---------------------------------------------------------------------------------------------------
Version: 2.20.0
Date: 2020.12.26
Changes:
- included a few (hopefully) helpful entries in the tips and tricks
---------------------------------------------------------------------------------------------------
Version: 2.19.1
Date: 2020.12.25
Bugfixes:
- fixed error in GUI
Changes:
- reactor cannot be started / stopped from GUI anymore
---------------------------------------------------------------------------------------------------
Version: 2.19.0
Date: 2020.12.23
Info:
- compatibility with Factorio version 1.1
- BACKUP YOUR SAVEGAME BEFORE OVERWRITING IT !

76
control.lua Normal file
View File

@ -0,0 +1,76 @@
local rpath = "scripts."
require(rpath .. "const") -- globals
local mod = require(rpath .. "init")
local gui = require(rpath .. "gui.init")
local events = require(rpath .. "events.init")
local interface = require(rpath .. "interface")
local network = require(rpath .. "heat.network")
local fx = require(rpath .. "fx")
-- INITIALIZING AND UPDATING FUNCTIONS
-- mod initialization
script.on_init(mod.init)
script.on_load(mod.load)
script.on_configuration_changed(mod.migration)
-- hook ticks
script.on_event(events.defined.tick, function (event)
mod.tick(event.tick)
end)
-- hook gui
script.on_event(events.defined.gui.opened, function (event)
gui.opened(event.player_index)
end)
script.on_event(events.defined.gui.clicked, function (event)
gui.clicked(event.player_index, event.element, event.tick)
end)
-- hook heat network
script.on_event(events.defined.removed.surface, function (event)
network.remove_from_surface(event.surface_index)
end)
script.on_event(events.defined.removed.chunk, function (event)
local z = event.surface_index
for _,p in pairs(event.positions) do
network.remove_from_chunk(p.x,p.y,z)
end
end)
-- hook fx
script.on_event(events.defined.trigger.effect, function (event)
fx.effect(event.effect_id, event.target_entity, event.force, event.tick)
end)
-- hook construct events
script.on_event(events.defined.pipette, function (event)
events.construct.pipette(event.player_index, event.item)
end)
script.on_event(events.defined.added.entity, function (event)
events.construct.entity(event.created_entity or event.entity, event.tick)
end)
-- hook destruct events
script.on_event(events.defined.removed.ghost, function (event)
if event.ghost.type == "item-request-proxy" then return end
events.destruct.ghost(event.ghost)
end)
script.on_event(events.defined.removed.entity, function (event)
local has_died = event.name == defines.events.on_entity_died
events.destruct.entity(event.entity, event.tick, has_died, event.name)
end)
-- add events filter
for action,event_filters in pairs(events.filters) do
for key,filters in pairs(event_filters) do
for _,event in pairs(events.defined[action][key]) do
script.set_event_filter(event, filters)
end
end
end
remote.add_interface(REMOTE_INTERFACE_NAME, interface)

4
data-final-fixes.lua Normal file
View File

@ -0,0 +1,4 @@
require("prototypes.connections_hack")
require("prototypes.category_fix")
require("prototypes.apm_fix")

1
data-updates.lua Normal file
View File

@ -0,0 +1 @@
require("prototypes.patch_other_mods")

15
data.lua Normal file
View File

@ -0,0 +1,15 @@
require("prototypes.entities")
require("prototypes.items")
require("prototypes.recipes")
require("prototypes.signals")
require("prototypes.technology")
require("prototypes.sprites_font")
require("prototypes.lamps")
require("prototypes.fx")
require("prototypes.tips_and_tricks")
data.raw["heat-pipe"]["heat-pipe"].heat_buffer.specific_heat = "1MJ"
data.raw["boiler"]["heat-exchanger"].energy_source.specific_heat = "1MJ"

BIN
graphics/black192x100.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

BIN
graphics/black192x101.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 561 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

BIN
graphics/entity/breeder.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 164 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 800 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 102 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 KiB

BIN
graphics/entity/reactor.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 158 KiB

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 59 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 571 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 561 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 545 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 523 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 724 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 307 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 579 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 401 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

BIN
graphics/lamps/black.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 395 B

BIN
graphics/lamps/green.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 408 B

BIN
graphics/lamps/red.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 486 B

BIN
graphics/lamps/yellow.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 454 B

BIN
graphics/smoke.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 345 KiB

BIN
graphics/sprites/a.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 965 B

BIN
graphics/sprites/b.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 964 B

BIN
graphics/sprites/ba.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 963 B

BIN
graphics/sprites/black.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 961 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.6 KiB

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

BIN
graphics/sprites/r.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 965 B

BIN
graphics/sprites/ra.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 968 B

BIN
graphics/sprites/rb.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 965 B

BIN
graphics/sprites/rba.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 964 B

BIN
graphics/sprites/ry.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 965 B

BIN
graphics/sprites/rya.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 959 B

BIN
graphics/sprites/ryb.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 960 B

BIN
graphics/sprites/ryba.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 958 B

BIN
graphics/sprites/y.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 964 B

BIN
graphics/sprites/ya.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 963 B

BIN
graphics/sprites/yb.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 964 B

BIN
graphics/sprites/yba.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 963 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 109 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 638 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 45 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 45 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 214 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Some files were not shown because too many files have changed in this diff Show More