A code base for a batch hacking implementation that achieved hundreds of billions per second.
This project has introduced:
Original files has moved to /src
folder, source files are now either .js
or .ts
.
To utilize file-syncing and .ts
file compiling, Node.js is needed. Check out bitburner-official/typescript-template
's step-by-step guide for installation details.
The original hwgw algorithm in /hack/bat
has a way-too-simple grow-to-max algorithm, optimizations has made:
Formulas.exe
to see the difference, only then the grow-to-max process before calculations will be skipped), rather than waiting for all targets growing to max.Node.js
.git clone https://github.com/Ero98/bitburnerHome.git
cd bitburnerHome
npm run watch
12525
, and click Connect
. Note this will copy all js files (and compiled ts files as js files) to your in-game home location.run /hack/bat/masterV3.js
The script will do the following:
You can change the configurations in:
nano /hack/bat/config.js
Default gap for execution effect to take place may be 20 milliseconds, you need to check for yourself(because I may accidentally committed my changes).
I use different scripts for different tasks, and tried to categorize them using folders (although they are lies):
/hack
/bat # The main path for my batch hacking method scripts
/hwgw2 # My plan to redo the algorithm in typescript and a more readable code design.
hack-node.js # The script that helps me earn engouh money for living in the early game
/lib # Some scripts having less to do with hacking goes here
/ownedserver # Scripts for managing owned servers
/tools # Contains rewritten native commands. And a script for auto-nuking.