Page 1 of 1

[0.16.45] Bots at High Speed

Posted: Wed May 23, 2018 7:35 pm
by Squish8294
Personal Construction robots at high speed research can't charge while you're moving, they drain energy too fast to recharge.

https://www.youtube.com/watch?v=FXO7B5sJSiY

Video demonstration^

Re: [0.16.45] Bots at High Speed

Posted: Thu May 24, 2018 2:12 am
by Rseding91
Thanks for the report however that's working correctly.

If you keep moving away from the robots they have to move back to you in order to charge and that consumes energy.

The speed a robot moves doesn't change how much energy it consumes - it's the fact it has to keep moving.

Re: [0.16.45] Bots at High Speed

Posted: Wed May 30, 2018 2:06 am
by Squish8294
That's my point. A bot shouldn't burn through ~1.2MJ of energy in 3 feet.

Re: [0.16.45] Bots at High Speed

Posted: Wed May 30, 2018 5:59 am
by TruePikachu
If I'm not mistaken, every tick a robot consumes `50`J of power in order to stay in the air, and an additional `300*s`J of power in order to move up to `0.06*s`m (where `s` is the speed percentage, which starts at 100% = `1.0`). This means that, for instance, if the bots are moving at 1000% the normal speed, every tick they consume `3050`J of power, and are able to move `0.6`m during that tick. However, if the player hadn't moved that far, the bot has still consumed the `3050`J of power, and the extra power consumed is just wasted.

The only ways I can think of to make it so the power isn't wasted involve an additional multiplication, division, addition/subtraction, and a bit of additional complexity in the entity code which probably isn't worth the effort.

Re: [0.16.45] Bots at High Speed

Posted: Wed May 30, 2018 7:08 am
by Rseding91
TruePikachu wrote:If I'm not mistaken, every tick a robot consumes `50`J of power in order to stay in the air, and an additional `300*s`J of power in order to move up to `0.06*s`m (where `s` is the speed percentage, which starts at 100% = `1.0`). This means that, for instance, if the bots are moving at 1000% the normal speed, every tick they consume `3050`J of power, and are able to move `0.6`m during that tick. However, if the player hadn't moved that far, the bot has still consumed the `3050`J of power, and the extra power consumed is just wasted.

The only ways I can think of to make it so the power isn't wasted involve an additional multiplication, division, addition/subtraction, and a bit of additional complexity in the entity code which probably isn't worth the effort.
Robots only consume the power required to move the distance they need to move. They won't "waste" power when moving small distances.

A robot doesn't consume 1.2 MJ of energy in 3 feet - you're looking at multiple different robots as the tooltip changes which one you have selected.