

- #BITBURNER HACK LEVEL FORMULA MANUAL#
- #BITBURNER HACK LEVEL FORMULA SOFTWARE#
- #BITBURNER HACK LEVEL FORMULA CODE#
The changes are outlined in the README and commits but I'll leave a summary here. My friend u/WEBDatBoy also pushed up changes to the hack-manger script that should resolve the errors mentioned in the comments. If (availableCash > serverCost & serverMax.Hey everyone! I just pushed up a ton of changes regarding both the hacknet-upgrades and buy-servers scripts that address the pain points mentioned in the comments. once we have enough cash, purchase a server with MAX ram amount and name it Ns.tprint('You have enough money to purchase the darkweb programs') Check every 5 seconds if we have enough to purchase a server, run advanced setup right afterįor (var j = 0 j 6000000000 & !ns.fileExists('Formulas.exe', homeServer)) Ns.exec("back_hack_v1.js", homeServer, threadCount, basicServerList ) For each server in the server list, run the hack script with calculated threadcount Var threadCount = homeMaxRam / (basicServerList.length * ns.getScriptRam("back_hack_v1.js")) Calculate threadcount based on available hosts's RAM, no decimals. Run the basic set-up script on Home and wait until all programs are bought 'omega-net', 'silver-helix', 'phantasy', 'neo-net', 'avmnite-02h', 'comptek', 'crush-fitness', 'the-hub', 'netlink', 'johnson-ortho', 'zb-institute', 'catalyst', 'summit-uni', 'rothman-uni', 'syscore', 'I.I.I.I', 'aevum-police', 'millenium-fitness', 'lexo-corp', 'alpha-ent', 'rho-construction', 'global-pharm', 'snap-fitness', 'galactic-cyber', 'aerocorp', 'defcomm', 'univ-energy', 'solaris', 'icarus', 'zeus-med', 'zb-def', 'taiyang-digital', 'nova-med', 'infocomm', 'microdyne', 'titan-labs', 'applied-energetics', 'run4theh111z', 'fulcrumtech', 'helios', 'vitalife', 'stormtech', 'iron-gym', 'harakiri-sushi', 'hong-fang-tea', 'joesguns', 'sigma-cosmetics', 'foodnstuff', 'n00dles' Var serverMax = ns.getPurchasedServers() Var nodeCost = ns.hacknet.getPurchaseNodeCost Var homeMaxRam = ns.getServerMaxRam(homeServer) Var serverCost = ns.getPurchasedServerCost('1048576') Var availableCash = ns.getServerMoneyAvailable(homeServer)
#BITBURNER HACK LEVEL FORMULA MANUAL#
Doesn't seem to hack all servers properly, which means some manual work still required after all servers in scan range have root, the script will run without issue back_hack_v1.js (see below adv_server_setup.js) adv_server_setup.js script (see below base_server_setup.js) base_server_setup.js script (see below pen_hack_v1.js) pen_hack_v1.js script (see below main script) NOTE2: it cannot be automated early game as the functions to purchase from the darkweb require advanced upgradesģ) Runs the adv_server_setup.js script on the newly purchased serverĤ) Continues until all 25 servers are purchased.ĥ) Will continue run in background to purchase hacknet nodes.
#BITBURNER HACK LEVEL FORMULA SOFTWARE#
NOTE: an alert will indicate you can buy the required software from the darkweb, do this to allow the script to continue. One-stop script that can do the following:ġ) Runs the base_server_setup.js script on home for early money, will check the RAM on home to determine thread count for each serverĢ) Will wait until enough money is available to purchase a server with max RAM (1048576), cost ~57 billion each. Main script (I called it “one_script_start.js”)
#BITBURNER HACK LEVEL FORMULA CODE#
Now the main script cannot run without other scripts, which are being called to perform the hacking, get root access or other stuff that needs to happen.įour other scripts are included, see the other sections for the code bits on those. So now it purchases hacknet nodes too after all Private Server slots are filled. I just kept adding after that because it was fun to see it actually work. My idea was to have one script I could run upon reload of the game (for example after installing augmentations) which would setup my home server for hacking, keep running until I had enough money to buy a private server and get all hacks going on that new server.

My Javascript skill level is average at best. Or at least, allow me to focus on other mechanics of the game.Īnd sure, it saves me a bit of effort too, so maybe it’ll be useful to you as well.įirst time writing a guide content, so expect issues haha. Really enjoying the game so far (maybe a bit too much).Īnyway, not much to say really but the idea behind the set of scripts was to not have to do much anymore.

Not perfect yet, but solid enough to share I think. So I decided to write a combination of scripts that are triggered by one line of text, which then buys all 25 servers and runs in the background to keep buying hacknet nodes. Then got even lazier having to purchase Private and Hacknet servers. Actually got too lazy to keep manually running scripts to get all hacks up and running.
