Jump to content

robot scout (planetwalker) unlimited life

  • Branch: Live Branch Version: Windows Fixed

The energy is gone, but the bot is still alive

robot energy bug.jpg

Steps to Reproduce

i don't know

User Feedback

A developer has marked this issue as fixed. This means that the issue has been addressed in the current development build and will likely be in the next update.

its too busy to die.

dying is a priority 5 task, it has tasks with a higher priority to do

  • Like 1
  • Haha 1

Share this comment

Link to comment
Share on other sites

I think in robot script something like:


but now energy=-30;

Need to do:



Share this comment

Link to comment
Share on other sites

Yes, there's just a confusion of priorities.
Because robots combine errands for duplicants and errands for creatures.
To fix it, just need to add the following code to the constructor of the RobotDeathStates.Instance class:

chore.masterPriority = new PrioritySetting(PriorityScreen.PriorityClass.compulsory, Chore.DEFAULT_BASIC_PRIORITY);
chore.choreType.interruptPriority = Db.Get().ChoreTypes.Die.interruptPriority;

The first line makes the die-errand a higher priority than the any work-errand.
The second line allows the robot to abort the current errand and die immediately.

if necessary, I can record a video with proof that it works.

  • Like 2

Share this comment

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...