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

Bugs that are actually features.
User avatar
MrSmoothieHuman
Fast Inserter
Fast Inserter
Posts: 161
Joined: Sat Aug 05, 2023 1:20 am
Contact:

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

Post 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 13 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 :)
Attachments
robot-roboport-bug.zip
(843 Bytes) Downloaded 11 times
coder? i hardly know her!
Rseding91
Factorio Staff
Factorio Staff
Posts: 16192
Joined: Wed Jun 11, 2014 5:23 am
Contact:

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

Post 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.
If you want to get ahold of me I'm almost always on Discord.
User avatar
MrSmoothieHuman
Fast Inserter
Fast Inserter
Posts: 161
Joined: Sat Aug 05, 2023 1:20 am
Contact:

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

Post 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
coder? i hardly know her!
Post Reply

Return to “Not a bug”