Auto shoveling bot

General discussion of the Project Reality: BF2 modification.
KillJoy[Fr]
Posts: 837
Joined: 2010-12-28 20:51

Auto shoveling bot

Post 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);
  }
Au dela du possible ...
GlaDi
Posts: 224
Joined: 2013-06-16 00:03

Re: Auto shoveling bot

Post by GlaDi »

Shoveling is the most exciting part of the game! There's no need to use bot ;)
Last edited by GlaDi on 2015-03-09 22:17, edited 1 time in total.
PatrickLA_CA
Posts: 2243
Joined: 2009-07-14 09:31

Re: Auto shoveling bot

Post by PatrickLA_CA »

Or just hold left click and activate xfire or steam overlay then exit it, it works :)
In-game: Cobra-PR
PLODDITHANLEY
Posts: 3608
Joined: 2009-05-02 19:44

Re: Auto shoveling bot

Post by PLODDITHANLEY »

Put rubber tyred toy car on mouse button.
KillJoy[Fr]
Posts: 837
Joined: 2010-12-28 20:51

Re: Auto shoveling bot

Post 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.
Last edited by KillJoy[Fr] on 2015-03-10 07:45, edited 1 time in total.
Au dela du possible ...
Rhino
Retired PR Developer
Posts: 47909
Joined: 2005-12-13 20:00

Re: Auto shoveling bot

Post 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
Image
IMI-GALIL.223
Posts: 110
Joined: 2009-08-23 16:43

Re: Auto shoveling bot

Post by IMI-GALIL.223 »

Fine work KillJoy! :)
Jacksonez__
Posts: 1090
Joined: 2013-07-28 13:19

Re: Auto shoveling bot

Post 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
Nightingale
Posts: 352
Joined: 2013-11-19 21:08

Re: Auto shoveling bot

Post by Nightingale »

This is useful! Thanks for sharing. :D
IGN: 1993 TOYOTA_PREVIA
KillJoy[Fr]
Posts: 837
Joined: 2010-12-28 20:51

Re: Auto shoveling bot

Post 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.
Au dela du possible ...
RAWSwampFox
Posts: 531
Joined: 2014-01-05 17:28

Re: Auto shoveling bot

Post 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.
-SwampFox
CIVI guide: https://goo.gl/WhRE7A
CIVIES and Martyrs thread: http://goo.gl/eqZ3wn
My FOB guide: https://goo.gl/z8bk2z
FOB Thread: http://goo.gl/4PWRAs
PR Statistics & Useless Information thread: http://goo.gl/bzu4qd
Psyrus
Retired PR Developer
Posts: 3841
Joined: 2006-06-19 17:10

Re: Auto shoveling bot

Post 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
REDFOX1916
Posts: 24
Joined: 2014-11-21 19:24

Post by REDFOX1916 »

Personally I would class this as a hack
KillJoy[Fr]
Posts: 837
Joined: 2010-12-28 20:51

Re: Auto shoveling bot

Post 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).
Au dela du possible ...
sweedensniiperr
Posts: 2784
Joined: 2009-09-18 10:27

Re: Auto shoveling bot

Post by sweedensniiperr »

Christ it takes less that minute
Image
Airsoft
Retired PR Developer
Posts: 4713
Joined: 2007-09-20 00:53

Re: Auto shoveling bot

Post by Airsoft »

I've been doing it wrong the whole time :(

Image
Image

Image
PLODDITHANLEY
Posts: 3608
Joined: 2009-05-02 19:44

Re: Auto shoveling bot

Post by PLODDITHANLEY »

Well used paint worn of mouse - immaculate sidearm.....
Mongolian_dude
Retired PR Developer
Posts: 6088
Joined: 2006-10-22 22:24

Re: Auto shoveling bot

Post by Mongolian_dude »

'[R-DEV wrote:Airsoft;2060557']I've been doing it wrong the whole time :(

Image
'Murica :lol:
Military lawyers engaged in fierce legal action.

[INDENT][INDENT]Image[/INDENT][/INDENT]
Jutsch
Posts: 342
Joined: 2014-04-22 14:54

Re: Auto shoveling bot

Post by Jutsch »

'[R-DEV wrote:Airsoft;2060557']I've been doing it wrong the whole time :(

Image
You leave the magazine in? O_o
Post Reply

Return to “PR:BF2 General Discussion”