Page 1 of 1

[2.0.69] Flying robots with altered min/max_to_charge cannot go inside roboports

Posted: Tue Sep 30, 2025 11:30 am
by MrSmoothieHuman
I was adding a new tier of logi/construction bots to my mod and gave them an increased min and max_to_charge value, so that they would be able to charge from further away then the normal bots. However, when testing this bots out they would get stuck 'charging' (even after filling their battery up) and never enter the roboport. This seems to always happen whenever their values are changed to this.

The values I gave the bots for this to happen was:

Code: Select all

    min_to_charge = 0.25,
    max_to_charge = 1,
however, changing it back to value I originally had them at fixed the issue.

Code: Select all

    min_to_charge = 0.2,
    max_to_charge = 0.9,
Here is a video of it happening in-game:
robot-not-going-inside-roboport.mp4
(1.41 MiB) Downloaded 14 times
When testing, this can be repoduced with vanilla bots by changing their values to be 0.25 and 1 respectively - which is what the attached .zip does :)

Re: [2.0.69] Flying robots with altered min/max_to_charge cannot go inside roboports

Posted: Tue Sep 30, 2025 6:27 pm
by Rseding91
Thanks for the report however this is simply a case of "don't do that". You're telling the robot logic that the robot must be 100% charged in order to enter the roboport however by existing for 1 tick, it must consume energy and therefor won't be at 100% charge and so can never enter the roboport.

Simply do not set max_to_charge to 1, leave it at 0.9 or some value smaller than 1.

Re: [2.0.69] Flying robots with altered min/max_to_charge cannot go inside roboports

Posted: Tue Sep 30, 2025 6:44 pm
by MrSmoothieHuman
Rseding91 wrote: Tue Sep 30, 2025 6:27 pm Thanks for the report however this is simply a case of "don't do that". You're telling the robot logic that the robot must be 100% charged in order to enter the roboport however by existing for 1 tick, it must consume energy and therefor won't be at 100% charge and so can never enter the roboport.

Simply do not set max_to_charge to 1, leave it at 0.9 or some value smaller than 1.
oh, i've completely misunderstood what those values even are :lol: - my apologies