Bot Servicing

by Mylon

Robots occasionally break and need to be serviced. Adds maintenance and attrition to bot use.

30 days ago
0.16 - 1.0
3026

Changelog

Version: 1.4.7
Date: 2020-08-26
  Changes:
    - Tweaked pollution modifiers to be less severe.
    - Added compatability code for Terraforming (aka Shifting_Sands) - Deconstruction rocks/trees should be possible again.
    - Picking items up off the ground has a 1/10th the usual break chance (like building/removing tiles)
Version: 1.4.6
Date: 2020-06-02
  Changes:
    - Changed default MTBF and maximum MTBF values.
  Bugfixes:
    - Fixed incorrect icon size
Version: 1.4.5
Date: 2020-04-24
  Bugfixes:
    - Fixed a bug when adding to an existing save.
Version: 1.4.4
Date: 2020.04.23
  Bugfixes:
    - Fixed a state that could make the mod unable to start if neither difficulty was set to hard.
Version: 1.4.3
Date: 2020.04.23
  Bugfixes:
    - Added a compatability fix for Krastorio2
Version: 1.4.2
Date: 2020.03.01
  Bugfixes:
    - Fixed a performance problem with large bot bases
Version: 1.3.3
Date: 2019.09.22
  Bugfixes:
    - Fixed migration if loading from a pre 1.2.0 save
    - Fixed incorrectly unlocking the service recipes too soon.
Version: 1.3.2
Date: 2019.09.08
  Added:
    - Now compatible with Industrial Revolution!
  Changes:
    - Adjusted recipe order.  Again.
    - Adjusted fixing icon to differentiate it from the normal bot recipe
  Bugfixes:
    - Tweaked recipe unlock logic to increase mod compatibility and adding in post-game.
      Some items may be deleted if migrating an old save. I migrated vanilla bots, but it's impossible to catch all modded bots.
Version: 1.3.1
Date: 2019.09.06
  Bugfixes:
    - Fixed crash if robot icons were a size other than 32x32.
Version: 1.3.0
Date: 2019.09.05
  Added:
    - Added a remote call so MTBF can be changed per dymnamically per surface.  Affects Logistic and construction bots.
      To use, do: remote.call("bot servicing", "set_surface_mtbf_modifier", surface_name, modifier)
      Returns true if successful, false if not.
  Bugfixes:
    - Building/removing tiles only breaks bots 10% as often.  For real this time.
Version: 1.2.3
Date: 2019.09.05
  Changes:
    - Rearranged recipe order.
    - Brightened up the shield icon for bot spare parts.
Version: 1.2.2
Date: 2019.05.31
  Changes:
    - Building/removing tiles only breaks bots 10% as often as when building or deconstructing entities.
    - Bot breakage was calculated wrong.  Break chance was much, much lower than intended!  Default value adjusted because of this.
    - Adjusted setting names and descriptions.
Version: 1.2.1
Date: 2019.29.08
  Bugfixes:
    - Hard mode recipes will unlock when adding this to a game in progress.
Version: 1.2.0
Date: 2019.28.08
  Added:
    - There's now 3 levels of difficulty.  Normal requires no parts.  Medium requires a couple simple parts (the old mode) and hard requires disassembly and crafting replacement parts.
      Under hard mode, broken bots must be disassembled, broken parts replaced (5% chance the control module or powercell fails), and re-combined with lubricant to get a fresh bot.
      Note: Normal + hard and expensive + hard costs are slightly different! So maybe 4 levels of difficulty?
    - Normal difficulty is the default for normal mode and hard mode is default for expensive mode. These can be changed in mod settings.
  Changes:
    - Construction bots break a few ticks after building so other mods using on_robot_built() will continue to function.
Version: 1.1.3
Date: 2019.26.2
  Changes:
    - Updated to 0.17
Version: 1.1.2
Date: 2018.30.09
  Bugfixes:
    - Recipes will unlock properly if added to an in-progress game
Version: 1.1.1
Date: 2018.03.12
  Bugfixes:
    - Fixed the recipe to unlock when the bot unlocks instead of at the start.
Version: 1.1.0
Date: 11. 3. 2018
  Added:
    - Added setting for logistic mean time between failures.
    - Added setting for construction bot break chance
    - Added settings for spare parts, normal and expensive modes
  Changes:
    - Default logistic MBTF greatly reduced.  Keeping them in service should be a larger investment now.
    - Default construction bot break chance reduced.  They should break slightly less often now.
    - Bots should no longer break on belts.
Version: 1.0.5
Date: 17. 1. 2018
  Bugfixes:
    - Fixed another incompatibility with Creative Mode Fix
Version: 1.0.4
Date: 17. 1. 2018
  Bugfixes:
    - Fixed a crash when a bot broke while carrying something.
Version: 1.0.3
Date: 14. 1. 2018
  Added:
    - Broken bots now have an added icon overlay so they can be distinguished from functional bots.
  Bugfixes:
    - Fixed compatibility error with creative mode.  For reals this time.
Version: 1.0.2
Date: 14. 1. 2018
  Bugfixes:
    - Fixed compatibility error with creative mode
Version: 1.0.1
Date: 12. 1. 2018
  Bugfixes:
    - Fixed a crash when a bot broke while carrying something.
Version: 1.0.0
Date: 12. 1. 2018
  Features:
    - Robots will occasionally break and fall to the ground.  A quick service will put them back into action.