Biter Reincarnation


When an enemy unit or worm dies it tries to reincarnate back in to nature, be it a tree, rock, cliff or water. Occasionally the angry biters can burst into a flaming tree.

Content
1 year, 8 days ago
0.17 - 1.1
4.05K
Enemies

Changelog

Version: 20.0.22
Date: 2022-10-28
  Features:
  Changes:
  Bugfixes:
    - Fix occasional crash with revive queue processing from Lua error: reincarnation.lua line 303 errored: invalid key to 'next'
  Info:
Version: 20.0.21
Date: 2022-11-07
  Features:
    - This mod now integrates with the Biter Revive mod, so that a dead biter doesn't trigger both mods. Biter Revive takes priority, with a non revived biter be available to reincarnate.
    - Added mod setting to blacklist (exclude) named entity types from reincarnating.
    - Added mod setting to blacklist (exclude) entities on specific forces from reincarnating. Defaults to excluding the `player` force.
    - Mod is much more UPS efficient throughout its activities, especially in the creation of trees and in situations of excessive high biter death rates.
    - Added support for worms reincarnating. They can return as rocks, cliffs or shallow water. Dy default they don't reincarnate.
    - Added shallow water option for worms to reincarnate as. This won't ever destroy any entities or resources that would collide with the water to avoid complexity and keep gameplay smooth.
  Changes:
    - Don't exclude all units that don't have the `breaths-air` flag on them. Had no real impact for base game units and the new blacklist mod settings allow this to be covered if needed with mods, but in a much more flexible way.
    - Increased max reincarnations per second mod setting to a default of 100. Old value was 10 as old code was less UPS efficient. This will also change a save game's mod setting on mod update if the saves value was the old default. Can't update a Factorio instances (not save game) mod settings however.
    - Updated Alien Biomes tile and tree data to latest version (0.6.8), no major changes observed.
    - The mod only records reincarnations if they can be completed within the time span set by the settings. This is to reduce UPS impact when very large numbers of biters die in a short time span and wouldn't be processed for reincarnation quickly enough anyways. It does mean when reincarnations per second and max reincarnation wait time settings are changed there may be a few seconds delay before they fully take effect.
    - Spawners and worms won't be crushed by large reincarnations any more. As this could mean killing a biter which reincarnated as a cliff could kill a worm instantly.
  Bugfixes:
    - Fix that if large entity push option was disabled things weren't actually crushed.
  Info:
Version: 20.0.20
Date: 2022-04-01
  Features:
  Changes:
  Bugfixes:
    - Removed work around introduced in previous mod version to mitigate core Factorio bug present only in 1.1.56.
  Info:
Version: 20.0.19
Date: 2022-03-12
  Features:
  Changes:
  Bugfixes:
    - Added work around for API bug introduced in Factorio 1.1.56. The work around fixes base game trees, but alien biomes and other modded trees will probably error and is untested. Utilising temporary hard coded values obtained in 1.1.54. https://forums.factorio.com/viewtopic.php?f=7&t=101833
  Info:
Version: 20.0.18
Date: 2022-03-04
  Features:
  Changes:
  Bugfixes:
    - Creating random trees on tiles without specific climate data no longer errors. If the player can walk on the tile they get a random tree, if they can't it gets no tree.
  Info:
Version: 20.0.17
Date: 2020-12-14
  Features:
  Changes:
  Bugfixes:
    - Replace naughty function in global code use added in 20.0.15 and 20.0.16. Caused crashes on loading a save made after updating the mod.
  Info:
Version: 20.0.16
Date: 2020-12-13
  Features:
  Changes:
  Bugfixes:
    - Fix crash loading some old save games.
  Info:
Version: 20.0.15
Date: 2020-12-11
  Features:
    - Support for Alien Biomes mod added.
  Changes:
  Bugfixes:
  Info:
Version: 20.0.14
Date: 2020-12-04
  Features:
  Changes:
  Bugfixes:
    - No longer errors if the surface is deleted with queued reincarnations on it.
  Info:
    - Muppet Utility library updated including tree generation fixes encountered in other mods.
Version: 20.0.13
Date: 2020-11-30
  Features:
    - Update to Factorio 1.1 as-is.
  Changes:
  Bugfixes:
  Info:
Version: 19.0.12
Date: 2020-10-25
  Features:
  Changes:
  Bugfixes:
    - Fix error if no reincarnation was selected based on chance values.
  Info:
Version: 19.0.11
Date: 2020-10-11
  Features:
    - Options added to have biters reincarnate as rocks and cliffs. Option to try and push movable entities out of the way, otherwise things are crushed.
  Changes:
    - Mod now reacts to all units that breath air dying, rather than just units on the "enemy" force. Excluded player character and compilatron.
  Bugfixes:
    - Support the new nuclear-ground tile type. Treated the same as landfill, as the driest sand.
  Info:
    - Removed the biter_reincarnation remote interface as the functionality is included in my main utility library. No current other mod versions utilised the interface.
    - Moved to using the tree generation code from my main utility library. Should be basically the same.
    - Updated all mod settings to be a standardised format and include the mod name in them. Should be handled by migration scripts.
Version: 18.0.10
Date: 2020-01-26
  Features:
    - Updated to Factorio 0.18 as-is
  Changes:
  Bugfixes:
    - fix reincarnation chances not being updated after mod setting changes if total chance was below 100%.
  Info:
Version: 17.0.9
Date: 2020-01-04
  Features:
  Changes:
    - Add support for landfill. As its mainly stone its the same as a dry desert tree types.
  Bugfixes:
  Info:
Version: 17.0.8
Date: 2020-01-04
  Features:
  Changes:
  Bugfixes:
    - "add_random_tile_based_tree_near_position" remote call didn't link to a valid function name before.
    - fixed desync caused when other mods utilised the remote interface of this mod. Was incorrectly registered causing sporadic availability.
  Info:
Version: 17.0.7
Date: 2020-01-04
  Features:
  Changes:
  Bugfixes:
    - Burning Tree reincarnation logic fixed to actually work
    - Fix multiple setting changes stacking rather than being re-calculated
  Info:
Version: 17.0.6
Date: 2019-12-14
  Features:
    - New features and changes to improve UPS on very high biter death maps
    - Added max concurrent reincarnations and reincarnation queue system with mod settings.
  Changes:
    - Removed anti fire spread option & code as offering it was causing big UPS issues when very high concurrent number of biters were being damaged. Use max fire spread option or limit chance of reincarnation into burning trees to prevent massive forest fires.
  Bugfixes:
  Info:
    - Uses event filter to reduce Entity Damaged calls
    - Restructure code to my modern style & utility functions
Version: 17.0.5
Date: 2019-11-23
  Features:
  Changes:
  Bugfixes:
    - out-of-map (void) tile is handled without soft error warnings
  Info:
Version: 17.0.4
Date: 2019-06-24
  Features:
  Changes:
  Bugfixes:
    - Changed to work with mods that add new trees without autoplace settings. May no longer error with special mods that do their own map generation, but won't put the expected trees either.
    - Set to be specifically incompatible with Alien Biomes mod due to its custom tiles.
  Info:
Version: 17.0.3
Date: 2019-06-02
  Features:
    - Add option to disable biters reincarnate from fire death
    - Add option to set how many times a tree fire can jump
  Changes:
  Bugfixes:
  Info:
    - remove erroneous logging
Version: 17.0.2
Date: 2019-05-31
  Features:
  Changes:
  Bugfixes:
    - fix mod crash when biter turns in to a flaming tree
  Info:
Version: 17.0.1
Date: 2019-05-31
  Features:
    - Add setting for enemy units chance of turning in to tree on death.
  Changes:
    - Add script interface for using the entity generation logic.
    - Tree data is obtained from data so supports modded trees (not modded tiles).
    - Tree type selection respects tree probability so tree mix should match local natural forests more.
    - Combined chance of events occurring can be greater than 100%. The ratio of values will be utilised. Below 100% chance means possibility of no event happening.
  Bugfixes:
    - Fixed incorrect tile data handling and manual adjustment code. The trees should be basically correct on all tile types now.
  Info:
    - Burning tree chance setting wording changed to make consistent with new settings.
Version: 17.0.0
Date: 2019-03-11
  Features:
    - Initial Release
  Changes:
  Bugfixes:
  Info: