Bot Servicing

by Mylon

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

Tweaks
1 year, 6 months ago
0.16 - 1.1
556
Logistic network

g Mod breaking the on_robot_built_entity event.

5 years ago

When this mod breaks a robot with the on_robot_built_entity event, the event doesn't fire for other mods anymore.
Maybe you could remove the robot on the next tick?
I hope you also update the mod for 0.16 as many of us still play that.

5 years ago

What mods are breaking? The mod may be overly defensively checking bot.valid. If it does not actually operate on the bot but only on the built entity then it can safely skip the bot.valid check. Or it can conditionally check the valid state only for the script portion that affects the bot.

5 years ago

it breaks literally every mod who's script gets executed after yours and rely on registering entities after they are built.
so.. 2/24 of all mods on the portal work...
https://www.dropbox.com/s/1vkfe7agofc5epl/test_mod_0.17.1.zip?raw=1
Increase servicing chance to something higher, and build 2-3 entities with bots.
Every time a bot breaks on construction, you won't get a debug message.

5 years ago

Alright, this is fixed now.

New response