refapg.blogg.se

Bitburner pastebin
Bitburner pastebin













bitburner pastebin

Someone mentioned timestamps in the comments. That would stop the script from stepping on the toes of other scripts. So, round-robin between servers, doing a single weaken against the server once a run in complete. Have a single instance attack more than 1 server at a time. Some ideas I had if someone else wants to mess with it. At this point it works well enough to get moar money, quickly, than most people need. And, since I've moved onto BN4.1 and have access to the singularity API my interests have now changed :). This includes growth amount as that means we need less threads, so more hack attempts in a cycle.įINAL EDIT: Due to the holidays I haven't have much time to work on it. :(Īlso working on making a script that automatically picks the best server to hack based on server RAM size, as we need to take into account the amount of concurrent hack attempts we can do against as server as well as its max money. I can see it happen after 24 weaken instances(PIDs), but then kill all and run the same script again and it won't happen for 174 instances. Still trying to figure out what's causing it though, as its not consistent. Seems to happen more for servers with more than 1 second between cycles. In troubleshooting last night I can see that when some of my events launch after their sleep time the server is not at its minimal security level which is throwing everything out of whack.

bitburner pastebin

#Bitburner pastebin update

Also, I'm not a coder and my script is un-commented, doesn't use functions, and is probably wildly inefficient :)ĮDIT2: I'm working on an update script that will fix some of my mistakes (noted in the comments below, mainly the grow percentage and my weaken threads) as well as try and account for the events getting out of sync. It works beautifully the first round through but after that I believe it can step on its own toes and get out of sync (not that it appears to be hurting much for it).

bitburner pastebin

I believe I've identified a logic miss in how I'm handling the spacing. That number isn't even accurate yet and is still growing. And it really, really, really shines on the largest hosts. Using my methodology nets some INSANE money/s. Hacking Chance multiplier: 177.55%Hacking Speed multiplier: 186.78%Hacking Money multiplier: 356.01%Hacking Growth multiplier: 195.44% Then repeat that script every 1 second, and you'll get 50% of the server's maximum money per second.īelow are the results of my implementationHack Level 1860BN1.2, I've only completed 1 nodeTime played since last Augmentation: 10 hours 6 minutes 3 secondsTime played since last Bitnode destroyed:1 days 15 hours 20 minutes 9 secondsTotal Time played: 6 days 10 hours 49 minutes 33 seconds Then you adjust the sleeps by 100-200ms, making sure Hack fires first ( which needs to only take 50% of the funds), then Grow (which needs to grow at least 100% to replace funds hacked) then Weaken which will reset the security level back to the minimum. You can execute a command to weaken the server, grow the server (with a sleep that is the difference of WeakenTime and GrowTime) and hack (with a sleep that is the difference between WeakenTime and HackTime). WeakenTime = 1 minuteGrowTime = 45 secondHackTime = 15 seconds You can run multiple Weak, Hack, and Grow commands on the same server *in parallel*.įor example, if you've fully weaken and grown your servers first (which you must do for this to work) you could get something like this Weak, Hack, and Grow only affect the server *once they execute*.Time for execution is calculated at *launch of the process* I love coding and I want to start somewhere.I wrote this in a comment a day or two ago. The documentation makes it seem as though you can send any file on over no problem. so i'm just scratching my head at this point wondering where in the hell I go to learn anything regarding this game. So I remove the export async, but now it isn't importing the ns functions. But then I can't run the script file because "export is reserved". The only way to get it over there using the ns.scp() function is if i use a. I'm trying to get my javascript auto-hack file over to one of the servers. So I've spent about 5 hours getting nowhere.















Bitburner pastebin