The Ruins Mod 2.0 deprecated


This mod is now deprecated and merged with `AbandonedRuins_updated_fork`.

Content
a month ago
2.0
3.15K
Environment

Changelog

Version: 1.2.13
Date: 2025-07-18
  Changes:
    - excluded `AbandonedRuins_updated_fork` as they both does the same
Version: 1.2.12
Date: 2025-07-18
  Changes:
    - renamed `spawn_table` to `spawn_chances` as tables are tables already and
      `spawn_changes` is more descriptive
    - added some more assertitions
    - added some minor debug lines
Version: 1.2.11
Date: 2025-06-07
  Fixed:
    - had to rename `stack-inserter` to `bulk-inserter` (thanks to @Dogman15 for reporting this)
Version: 1.2.10
Date: 2025-04-26
  Fixes:
    - Parameter `size` was wrongfully documented as `number` must be `string`
Version: 1.2.9
Date: 2025-04-19
  Changes:
    - The event `on_tick` did generate to many useless messages, it is now separated from
      usual debug purposes (EXTREMELY RARE USED!)
Version: 1.2.8
Date: 2025-04-18
  Fixes:
    - Possible fix for spawning ruins on heavy oil (Fulgora) or lava (Vulcanus)
      or anything not ground without using hard-coded planet names
    - the goal here is to allow Nauvis-like (water-based oceans) planets to have
      ruins spawned on without explicitly naming each planet and not spawning on anything
      that isn't a ground tile

  Changes:
    - more assertions added
    - more debug lines added (for checking if above fix works)
    - reformatted some one-line code
    - added debug messages and global runtime setting (map) for intense debugging
Version: 1.2.7
Date: 2025-04-12
  Fixes:
    - `mods` was/is a mod shorthand to `scripts.active_mods` and is not generic
Version: 1.2.6
Date: 2025-04-12
  Changes:
    - added Fulgora and Vulcanus as excluded surface, the "water" there isn't
      detected correctly yet (see `@todo`), @mooklepticon and @Silly_Warlock reported it
    - renamed a few variables, e.g. `e` to `event` as I don't shorten anything
    - don't invoke these functions with invalid surfaces, otherwise you will get an assertion
Version: 1.2.5
Date: 2025-03-28
  Fixes:
    - Finally fixed last error, thank you to @Arrevax for reporting it (I saw here, too)
Version: 1.2.4
Date: 2025-03-28
  Fixes:
    - renamed `<l|m|s>_runins` variable to only `ruins`
    - ops, need to insert each small ruin ... ;-)
Version: 1.2.3
Date: 2025-03-27
  Fixes:
    - more curly braces added (table/list/array, not single parameters)

  Changes:
    - converted many table.insert() into a for in pairs() loop
Version: 1.2.2
Date: 2025-03-27
  Fixes:
    - missed to change these, too (yes small ruins isn't still a loop)
Version: 1.2.1
Date: 2025-03-27
  Fixes:
    - ops, need to add curly braces here, it is a list/array
Version: 1.2.0
Date: 2025-03-27
  Fixes:
    - defenses will now attack hostile buildings (thank you to @Dran_____ for reporting and @Silly_Warlock
      for the fix!

  Changes:
    - moved ruins lua code as they are strictly seen no entities or items to directory `lua`
    - same with spawning.lua and utilities.lua
    - added .gitattributes
    - ops, missed return keyword, better performance now
    - renamed <small|medium|large>Ruins.lua to <small|medium|large>/__init__.lua
    - removed "Ruins" silb from directory name
    - rewrote 3 duplicated lines to a simple loop
Version: 1.1.22
Date: 2025-02-16
  Bugfixes:
    - no assert here, else module inserter plans won't work (and maybe others, too)
    - still some debug log around!
Version: 1.1.21
Date: 2025-02-16
  Bugfixes:
    - Need to use `game.forces` and `game.get_player()` instead of `storage`
Version: 1.1.20
Date: 2025-02-16
  Bugfixes:
    - `prototype` isn't the proper index (lua/spawning.lua:38: attempt to index field 'prototype' (a nil value))
Version: 1.1.19
Date: 2025-02-16
  Bugfixes:
    - Need to use `_G['prototypes']` instead of direct `prototypes`
Version: 1.1.18
Date: 2025-02-15
  Bugfixes:
    - proper year used
Version: 1.1.17
Date: 2025-02-15
  Bugfixes:
    - used-up was renamed to depleted in Factorio 2.0.7 (thanks to @Silly_Warlock)
Version: 1.1.16
Date: 2025-02-15
  Bugfixes:
    - All parentheses are required, ops (thanks to @Silly_Warlock)
Version: 1.1.15
Date: 2025-02-15
  Bugfixes:
    - Ops, no return needed here anymore
Version: 1.1.14
Date: 2025-02-15
  Bugfixes:
    - Possible fix from @Silly_Warlock for bad access on protoypes, it should be an item, not a prototype type
Version: 1.1.13
Date: 2025-02-15
  Bugfixes:
    - data.raw.* isn't available in control.lua, maybe prototypes.* is? Reported by @arighteousgod and @Sgamez
Version: 1.1.12
Date: 2025-02-14
  Bugfixes:
    - Used prototypes.get_entity_filtered() now, thanks to @Silly_Warlock
Version: 1.1.11
Date: 2025-02-14
  Bugfixes:
    - Possible fix for crash "LuaPrototypes doesn't contain key splitter." reported by @Samael25
Version: 1.1.10
Date: 2025-02-09
  Bugfixes:
    - Possible fix, need to ignore key (_ means garbage)
Version: 1.1.9
Date: 2025-02-09
  Bugfixes:
    - Fixed "attempt to index global 'data' (a nil value)" reported by @Sgamez
    - Possible fix for "LuaGameScript doesn't contain key get_filtered_entity_prototypes."?
Version: 1.1.8
Date: 2025-02-09
  Bugfixes:
    - Renamed more old references to "AbandonedRuins20" (thanks to @Sgamez for reporting it)
Version: 1.1.7
Date: 2025-02-09
  Features:
    - moved mod's lua scripts to sub folder "lua"
  Bugfixes:
    - Fixed a lot of issues with 2.0 base game, like wrong game engine references
Version: 1.1.6
Date: 2022-01-27
  Features:
    - Added korean translation (by TsuKkoMiST).
Version: 1.1.5
Date: 2022-01-02
  Features:
    - Added 9 small ruins.
    - Added 9 medium ruins.
    - Added 5 large ruins.
  Changes:
    - Reduced the amount of power poles in ruins.
    - Removed 4 small ruins that were broken.
    - Updated russian translation (by Shadow_Man).
    - Decreased default spawn changes of small ruins to 4% (from 5%).
  Bugfixes:
    - Fixed that oil pumpjack ruins would spawn oil patches.
Version: 1.1.4
Date: 2021-04-01
  Minor Features:
    - Added custom on_entity_force_changed_event for mod compatibility, see end of control.lua.
Version: 1.1.3
Date: 2021-02-25
  Minor Features:
    - Added support for fluid spawning.
  Bugfixes:
    - Fixed inserting items with 0 count.
Version: 1.1.2
Date: 2021-02-15
  Changes:
    - Added minimum and maximum values to the "Minimum distance from spawn" setting.
Version: 1.1.1
Date: 2021-02-01
  Bugfixes:
    - Fixed desync when spawning ruins that had already been spawned previously.
    - Fixed crash when claiming ruins due to weird mod interaction.
Version: 1.1.0
Date: 2021-01-27
  Features:
    - Updated to Factorio 1.1.
    - Added Finnish translation (by Sigma-One).
    - Larger ruins can only be found at a larger distance from spawn (minimum distance multiplied by 2.5 and 5 respectively).
  Bugfixes:
    - Fixed that the ruins cease_fire status for forces that were created during gameplay was missing.
Version: 1.0.4
Date: 2020-10-19
  Changes:
    - Replaced un-minable non-terrain tiles in ruins with minable tiles.
    - Hold Shift while using the "Claim ruin" tool to remove all remnants (corpses of structures) in the area.
  Bugfixes:
    - Fixed a crash when a ruin was spawned with a invalid recipe.
    - Fixed that the claim ruin control had no locale.
Version: 1.0.3
Date: 2020-09-28
  Bugfixes:
    - Fixed a crash when using a mod-provided ruin set and the rso mod is enabled.
Version: 1.0.2
Date: 2020-09-25
  Changes:
    - Ruins are no longer deconstructable by default.
    - Instead you have to claim them with a selection tool obtained with Shift + C or from the shortcut bar.
    - After claiming a ruin, you can deconstruct it.
Version: 1.0.1
Date: 2020-09-24
  Features:
    - Added 15 more ruins. 
    - Added russian translation (by Shadow_Man).
Version: 1.0.0
Date: 2020-09-23
  Features:
    - Updated to Factorio 1.0.
    - Completely new ruin spawning algorithm and data structure.
    - Added 27 more ruins. 
    - Added a setting to make ruin defenses non-hostile.
    - Added a setting to select which ruin set to use.
    - Added the ability for other mods to add their own ruin sets.
    - Added scenario that spawns all ruins, for mod debug.
  Changes:
    - Ruins in forests are now less overgrown.
  Scripting:
    - Added a remote interface to disable ruin spawning.
    - Added a remote interface to exclude surfaces from ruin generation.
    - Added a remote interface for ruin sets.
  Bugfixes:
    - Fixed that ruins could spawn in space in the Space Exploration mod (again).
    - Fixed that my uses of set_tiles and entity.destroy were not raising events.
    - Fixed that the military fort ruin sometimes spawned without concrete.
    - Fixed that ruins could not be deconstructed (still wont show entities as selected during dragging).
Version: 0.2.9
Date: 08. 05. 2020
  Minor Features:
    - When all spawn chances are set to 1, now all types of ruins will spawn, instead of just small ruins.
    - Code cleanup.
Version: 0.2.8
Date: 28. 04. 2020
  Minor Features:
    - Added license file.
    - Added changelog file.
Version: 0.2.7
Date: 25. 01. 2020
  Minor Features:
    - Updated for 0.18.
Version: 0.2.6
Date: 03. 11. 2019
  Minor Features:
    - Better compatibility with mods, including AAI vehicles.
Version: 0.2.5
Date: 27. 04. 2019
  Bugfixes:
    - Fixed that ruins could spawn in space when using the Space Exploration mod.
Version: 0.2.4
Date: 30. 03. 2019
  Minor Features:
    - Added more small ruins.
    - Changed entity building to raise events.
Version: 0.2.3
Date: 12. 03. 2019
  Minor Features:
    - Added thumbnail.
Version: 0.2.2
Date: 12. 03. 2019
  Major Features:
    - Updated to 0.17.
Version: 0.2.1
Date: 25. 12. 2017
  Bugfixes:
    - Fixed crash related to cliffs.
Version: 0.2.0
Date: 25. 12. 2017
  Major Features:
    - Updated for 0.16
    - Name changed to AbandonedRuins
    - Maintenance now done by Bilka (original mod by Gangsir)
Version: 0.1.4
Date: 10. 08. 2017
  Minor Features:
    - Added polish translation of settings
    - Ruin spawning is now consistent with map seed
Version: 0.1.2
Date: 13. 06. 2017
  Minor Features:
    - Smarter system for spawning ruins, each ruin is in their own file
    - Made adjustments to code to be a little more cohesive
    - Added a few more medium ruins and large ruins.
  Bugfixes:
    - Removed ruins that spawn biters, as these do not respect "no biters" settings.
    - Small ruins no longer destroy trees and can be overgrown.
Version: 0.1.1
Date: 11. 06. 2017
  Bugfixes:
    - Quick update to remove some debug code. I know how to mod.
Version: 0.1.0
Date: 11. 06. 2017
  Major Features:
    - Mod created.