Page 1 of 2

Auto shoveling bot

Posted: 2015-03-09 21:43
by KillJoy[Fr]
Tired of shovelling FOB's i wrote an extremely simple code that make's this task at our place.

The auto shovelling is done by the usage of an USB devellopement key wich use a tiny microcontroller, the ?C simply emulate a pc mouse (credits to DigiSpark and Sean Murphy).

This hardware doesn't use any glitch or game exploit, i repeat it's simply dig asset's.
Image

Code: Select all

#include <DigiMouse.h>

// Dig counter.
uint8_t i = 0;

void setup() {
  // Initializing the mouse. 
  DigiMouse.begin();
  // Wait for Windows to load the mouse.  
  DigiMouse.delay(2000);
}

void loop() {
  // Make 45 shovels.  
  for (i; i < 45; i++) {
    digFob();
  }
}

// Function that emulate left clicking every 1 second. 
void digFob(void) {
  DigiMouse.update();
  // Press left click. 
  DigiMouse.setButtons(1<<0);
  DigiMouse.delay(1000);
  // Realease left click. 
  DigiMouse.setButtons(0);
  DigiMouse.delay(1000);
  }

Re: Auto shoveling bot

Posted: 2015-03-09 22:09
by GlaDi
Shoveling is the most exciting part of the game! There's no need to use bot ;)

Re: Auto shoveling bot

Posted: 2015-03-10 00:15
by PatrickLA_CA
Or just hold left click and activate xfire or steam overlay then exit it, it works :)

Re: Auto shoveling bot

Posted: 2015-03-10 01:39
by PLODDITHANLEY
Put rubber tyred toy car on mouse button.

Re: Auto shoveling bot

Posted: 2015-03-10 07:36
by KillJoy[Fr]
PatrickLA_CA wrote:Or just hold left click and activate xfire or steam overlay then exit it, it works :)
I know, but this is one of the dozens solutions.
Antol wrote:
My project is aiming the lonewolf such as commander who doesn't have 7 players close to them.

Re: Auto shoveling bot

Posted: 2015-03-10 07:49
by Rhino
Most gamging mice/kb have macro scripts you can use to simulate holding down the LMB and even some mice, like the Mad Catz M.M.O. 7 Gaming Mouse have special buttons that you can press to simulate holding down the LMB even built into them, but other than that feature it isn't a good mouse and I wouldn't recommend it :p

Re: Auto shoveling bot

Posted: 2015-03-10 09:18
by IMI-GALIL.223
Fine work KillJoy! :)

Re: Auto shoveling bot

Posted: 2015-03-10 10:07
by Jacksonez__
'KillJoy[Fr wrote:;2059941']I know, but this is one of the dozens solutions.



My project is aiming the lonewolf such as commander who doesn't have 7 players close to them.
Best thing when FOB is up in 5 seconds or less :D

Re: Auto shoveling bot

Posted: 2015-03-10 11:44
by Nightingale
This is useful! Thanks for sharing. :D

Re: Auto shoveling bot

Posted: 2015-03-10 13:00
by KillJoy[Fr]
Inconvenients ATM is the algorithm, it's a lil bit "dumb" you have to unplug and replug the key to restart the process and because of that i have destroy one of my USB3 slot -_- .. i need to find a solution asap.

Re: Auto shoveling bot

Posted: 2015-03-10 13:42
by RAWSwampFox
Good Morning,

Based on my calculations, just have 14 people standing around the fob ready to build it and they will build it within 4 shovels/digs. If you get more than this, it gets ridiculous.

The FOB is the only asset, based upon my observation, that actually takes less shovels if more people dig it. Any other FOB asset takes the same number of shovels overall. While you may have 5 people building a FOB asset such as an HMG, it will still take 26 shovels/digs to build it.

If all the assets were like the actual FOB, you could build a super FOB with two squads within 10 minutes and almost be max'ed out on what you could build.

Re: Auto shoveling bot

Posted: 2015-03-10 13:52
by Psyrus
Er... do you guys not know that the shovel is just like the medic bag? The 'healing' toward the emplacement occurs all the time, not just when the animation is playing.

Thus your script should just run

Code: Select all

void digFob(void) {
  DigiMouse.update();
  // Press left click. 
  DigiMouse.setButtons(1<<0);
  DigiMouse.delay(120000);
  // Realease left click. 
  DigiMouse.setButtons(0);
  }
2 minutes, enough to shovel most emplacements one-manned.

$20 mouse, works perfectly :)
Image

Posted: 2015-03-10 13:56
by REDFOX1916
Personally I would class this as a hack

Re: Auto shoveling bot

Posted: 2015-03-10 19:10
by KillJoy[Fr]
'[R-DEV wrote:Psyrus;2059990']Er... do you guys not know that the shovel is just like the medic bag? The 'healing' toward the emplacement occurs all the time, not just when the animation is playing.

Thus your script should just run

Code: Select all

void digFob(void) {
  DigiMouse.update();
  // Press left click. 
  DigiMouse.setButtons(1<<0);
  DigiMouse.delay(120000);
  // Realease left click. 
  DigiMouse.setButtons(0);
  }
2 minutes, enough to shovel most emplacements one-manned.

$20 mouse, works perfectly :)
Image
Oh good to know ! i will keep this for the next update thanks, but you guys suggesting gaming mouse need to know that USB key cost more than 10 times less. (9$ for the official version, 3$ for clones).

Re: Auto shoveling bot

Posted: 2015-03-10 21:39
by sweedensniiperr
Christ it takes less that minute

Re: Auto shoveling bot

Posted: 2015-03-13 13:16
by Airsoft
I've been doing it wrong the whole time :(

Image

Re: Auto shoveling bot

Posted: 2015-03-13 13:55
by PLODDITHANLEY
Well used paint worn of mouse - immaculate sidearm.....

Re: Auto shoveling bot

Posted: 2015-03-13 14:05
by Mongolian_dude
'[R-DEV wrote:Airsoft;2060557']I've been doing it wrong the whole time :(

Image
'Murica :lol:

Re: Auto shoveling bot

Posted: 2015-03-13 14:46
by Jutsch
'[R-DEV wrote:Airsoft;2060557']I've been doing it wrong the whole time :(

Image
You leave the magazine in? O_o