Maintenance Madness

by Arcitos

Adds a complete new game mechanic: Maintenance! Create a sophisticated spare parts logistics and bring your mall to its absolute limits! UPS-friendly and MP-tested - Now with a fancy GUI!

Tweaks
4 years ago
0.17 - 0.18
21

g Two questions

5 years ago

Very interesting idea! I have a few questions:

  • Have you tested with Angel Bobs?
  • What happens when you haven't researched lubricants yet? I see some of the maintenance items depend on them.

Thanks!

5 years ago
(updated 5 years ago)

Can't tell you anything about bobs/angels. But from what I noticed it works with the Py mods so I presume it just works the same on all buildings.

In my play trough I don't have all the stuff researched yet. Nor do I have a bot system up and running to maintain my buildings (I don't seem to be able to do this by hand). After a while it just says maintained 0% and the status goes away. I presume that means my building is on bad maintenance and wears out quicker.

5 years ago

Very interesting idea! I have a few questions:

  • Have you tested with Angel Bobs?
  • What happens when you haven't researched lubricants yet? I see some of the maintenance items depend on them.

Thanks!

Hi, the mod is designed to work with Angel's mods as well. If you find some machines that are not covered, please open an issue here on the mod portal.

If you havn't researched all maintenance items (you need to get to early midgame to unlock most items), it is harder to maintain your base. Early on, replacing broken machines by hand is the way to go, but as soon as you have robots running, maintenance will increase the durability of your machines greatly.

If you feel the early game to grinding due to this mod, i recommend using an "early bot" mod like Early construction by Aidiakapi. I'm still balancing all the different features and will probably add some sort of "maintenance station", that acts as an early game roboport.

5 years ago

In my play trough I don't have all the stuff researched yet. Nor do I have a bot system up and running to maintain my buildings (I don't seem to be able to do this by hand). After a while it just says maintained 0% and the status goes away. I presume that means my building is on bad maintenance and wears out quicker.

Thats right!

5 years ago

Great, thanks!

I was going to try it out, but hit this:
20.597 Error ModManager.cpp:1294: Failed to load mod "MaintenanceMadness": MaintenanceMadness/util/util.lua:79: attempt to index local 'boundingBox' (a nil value)
stack traceback:
MaintenanceMadness/util/util.lua:79: in function 'getBoundingBoxDimensions'
MaintenanceMadness/data-final-fixes.lua:224: in main chunk

I have a fair number of other mods. MaintenanceMadness complains about some before dying: 20.574 Loading mod MaintenanceMadness 0.9.2 (data-final-fixes.lua)
20.576 Script @MaintenanceMadness/data-final-fixes.lua:26: Missing recipe for: escape-pod-assembler. Maintenance for this entity will be disabled.
20.590 Script @MaintenanceMadness/data-final-fixes.lua:33: Missing item for: rr-cooling-tower-steam. Maintenance for this entity will be disabled.
20.590 Script @MaintenanceMadness/data-final-fixes.lua:26: Missing recipe for: ruin-smoke. Maintenance for this entity will be disabled.
20.595 Script @MaintenanceMadness/data-final-fixes.lua:26: Missing recipe for: realistic-reactor-1. Maintenance for this entity will be disabled.
20.595 Script @MaintenanceMadness/data-final-fixes.lua:26: Missing recipe for: realistic-reactor-2. Maintenance for this entity will be disabled.
20.595 Script @MaintenanceMadness/data-final-fixes.lua:26: Missing recipe for: realistic-reactor-3. Maintenance for this entity will be disabled.
...
20.597 Script @MaintenanceMadness/data-final-fixes.lua:26: Missing recipe for: realistic-reactor-250. Maintenance for this entity will be disabled.
20.597 Error ModManager.cpp:1294: Failed to load mod "MaintenanceMadness": MaintenanceMadness/util/util.lua:79: attempt to index local 'boundingBox' (a nil value)
stack traceback:
MaintenanceMadness/util/util.lua:79: in function 'getBoundingBoxDimensions'
MaintenanceMadness/data-final-fixes.lua:224: in main chunk

Let me know how I can help debug. Here's the full mod list:

0.601 Loading mod core 0.0.0 (data.lua)
0.697 Loading mod base 0.17.41 (data.lua)
0.906 Loading mod FARL 3.1.9 (data.lua)
1.017 Loading mod MaintenanceMadness 0.9.2 (data.lua)
1.128 Loading mod what-is-it-really-used-for 1.4.3 (data.lua)
1.237 Loading mod angelsaddons-petrotrain 0.4.0 (data.lua)
1.345 Loading mod angelsaddons-smeltingtrain 0.2.0 (data.lua)
1.459 Loading mod Armored-train 0.2.161 (data.lua)
1.574 Loading mod beautiful_bridge_railway 0.17.2 (data.lua)
1.709 Loading mod boblibrary 0.17.0 (data.lua)
1.827 Loading mod Bottleneck 0.10.4 (data.lua)
1.944 Loading mod creative-mod 1.1.4 (data.lua)
2.086 Loading mod even-distribution 0.3.7 (data.lua)
2.206 Loading mod EvoGUI 0.4.401 (data.lua)
2.327 Loading mod FNEI 0.2.4 (data.lua)
2.445 Loading mod helmod 0.8.11 (data.lua)
2.566 Loading mod Honk 3.0.0 (data.lua)
2.683 Loading mod Inventory Sensor 1.7.3 (data.lua)
2.802 Loading mod MaxRateCalculator 3.0.21 (data.lua)
2.922 Loading mod Nuclear Fuel 1.0.0 (data.lua)
3.041 Loading mod OpteraLib 0.1.7 (data.lua)
3.159 Loading mod pushbutton 0.17.1 (data.lua)
3.280 Loading mod Rampant 0.17.26 (data.lua)
3.407 Loading mod RealisticReactors 2.17.4 (data.lua)
3.552 Loading mod ScienceCostTweakerM 0.17.9 (data.lua)
3.691 Loading mod stdlib 1.0.4 (data.lua)
3.825 Loading mod textplates 0.4.6 (data.lua)
3.975 Loading mod ZRecycling 0.17.8 (data.lua)
4.129 Loading mod bobequipment 0.17.1 (data.lua)
4.286 Loading mod bobores 0.17.1 (data.lua)
4.452 Loading mod bobtech 0.17.3 (data.lua)
4.611 Loading mod crafting_combinator 0.10.13 (data.lua)
4.770 Loading mod ProductionScrap2 0.17.3 (data.lua)
4.926 Loading mod bobplates 0.17.6 (data.lua)
5.094 Loading mod rso-mod 5.0.7 (data.lua)
5.253 Loading mod bobassembly 0.17.4 (data.lua)
5.416 Loading mod bobelectronics 0.17.5 (data.lua)
5.581 Loading mod boblogistics 0.17.9 (data.lua)
5.778 Loading mod bobmining 0.17.3 (data.lua)
5.962 Loading mod bobpower 0.17.6 (data.lua)
6.164 Loading mod bobrevamp 0.17.3 (data.lua)
6.350 Loading mod bobwarfare 0.17.7 (data.lua)
6.557 Loading mod dirtybarrels 0.1.61 (data.lua)
6.754 Loading mod angelsrefining 0.10.9 (data.lua)
6.966 Loading mod bob-basic-belt-reskin 0.17.3 (data.lua)
7.168 Loading mod bobmodules 0.17.4 (data.lua)
7.374 Loading mod bobvehicleequipment 0.17.2 (data.lua)
7.604 Loading mod angelsaddons-oresilos 0.5.0 (data.lua)
7.826 Loading mod angelsinfiniteores 0.8.4 (data.lua)
8.027 Loading mod angelspetrochem 0.8.3 (data.lua)
8.248 Loading mod SpaceMod 0.4.3 (data.lua)
8.463 Loading mod YARM 0.8.17 (data.lua)
8.675 Loading mod angelssmelting 0.5.5 (data.lua)
8.910 Loading mod cargo-ships 0.0.40 (data.lua)
9.157 Loading mod angelsbioprocessing 0.6.2 (data.lua)
9.400 Loading mod LogisticTrainNetwork 1.10.8 (data.lua)
9.640 Loading mod ShinyAngelGFX 0.17.1 (data.lua)
9.877 Loading mod angelsindustries 0.2.0 (data.lua)
10.119 Loading mod LTN_Tracker 0.10.8 (data.lua)
10.368 Loading mod base 0.17.41 (data-updates.lua)
10.624 Loading mod FARL 3.1.9 (data-updates.lua)
10.876 Loading mod angelsaddons-petrotrain 0.4.0 (data-updates.lua)
11.131 Loading mod angelsaddons-smeltingtrain 0.2.0 (data-updates.lua)
11.386 Loading mod beautiful_bridge_railway 0.17.2 (data-updates.lua)
11.638 Loading mod Longer_Days_and_Nights 0.0.2 (data-updates.lua)
11.890 Loading mod Rampant 0.17.26 (data-updates.lua)
12.174 Loading mod RealisticReactors 2.17.4 (data-updates.lua)
12.427 Loading mod ScienceCostTweakerM 0.17.9 (data-updates.lua)
12.676 Loading mod textplates 0.4.6 (data-updates.lua)
12.920 Loading mod bobequipment 0.17.1 (data-updates.lua)
13.168 Loading mod bobores 0.17.1 (data-updates.lua)
13.433 Loading mod bobtech 0.17.3 (data-updates.lua)
13.699 Loading mod ProductionScrap2 0.17.3 (data-updates.lua)
13.978 Loading mod bobplates 0.17.6 (data-updates.lua)
14.260 Loading mod bobassembly 0.17.4 (data-updates.lua)
14.534 Loading mod bobelectronics 0.17.5 (data-updates.lua)
14.819 Loading mod boblogistics 0.17.9 (data-updates.lua)
15.098 Loading mod bobmining 0.17.3 (data-updates.lua)
15.370 Loading mod bobpower 0.17.6 (data-updates.lua)
15.658 Loading mod bobrevamp 0.17.3 (data-updates.lua)
15.939 Loading mod bobwarfare 0.17.7 (data-updates.lua)
16.224 Loading mod dirtybarrels 0.1.61 (data-updates.lua)
16.509 Loading mod angelsrefining 0.10.9 (data-updates.lua)
16.834 Loading mod bobmodules 0.17.4 (data-updates.lua)
17.114 Loading mod bobvehicleequipment 0.17.2 (data-updates.lua)
17.383 Loading mod heavyfreight 0.0.9 (data-updates.lua)
17.657 Loading mod angelsaddons-oresilos 0.5.0 (data-updates.lua)
17.942 Loading mod angelsinfiniteores 0.8.4 (data-updates.lua)
18.222 Loading mod angelspetrochem 0.8.3 (data-updates.lua)
18.538 Loading mod ShinyBobGFX 0.17.8 (data-updates.lua)
18.823 Loading mod angelssmelting 0.5.5 (data-updates.lua)
19.127 Loading mod angelsbioprocessing 0.6.2 (data-updates.lua)
19.424 Loading mod ShinyAngelGFX 0.17.1 (data-updates.lua)
19.711 Loading mod angelsindustries 0.2.0 (data-updates.lua)
20.008 Loading mod grimerx-angels-fuelstack-rebalance 0.0.4 (data-updates.lua)
20.297 Loading mod FARL 3.1.9 (data-final-fixes.lua)
20.574 Loading mod MaintenanceMadness 0.9.2 (data-final-fixes.lua)

5 years ago

Thank you for stress testing this mod :D
I just checked the prototype definitions: Apparently the reactor entity prototype of the the Realistic Reactors mod is created without giving it a selection box. This selection box is required to specify the dimensions of the hidden maintenance chest that is placed behind the entity if maintenance is needed. I've always asumed that entites always need to have a selection box specified... This was wrong, as I learned today.

I'll add a fallback logic to use the collision box in this case. The fix will be ready in the next few days. Thanks for your report!

5 years ago

Thank you for the quick turnaround :-)

New response