


I warned you.Ĭreate a new script called start.js by issuing the following command: nano start.js. This repo uses methods that are locked behind game mechanics. If I haven't commited in a few weeks, it probably means I'm bored or got stuck and found something else to play with. I change method signatures for the hell of it.
BITBURNER PASTEBIN CODE
If somebody says that the way I did something was not good, it probably is not good and trust other resources before you trust my code for the best way if you're learning. I don't follow best practices in the industry for this language. I also assume that there is at least 32GB of ram on your home computer, which is not immediately available to new players.Īlso, be aware, I am not primarily a Javascript programmer, though it is something I enjoy playing with. I started this repo primarily for myself, and the code makes some assumptions about certain features that are not available to new players. If you want to take my repo whole-hog and run it in your own game (following the instructions below), it is unlikely to work unless you've been playing for a while. That repo (at the time of this edit) doesn't work out of the box, but they're trying to be pretty new-player friendly. The initial startup script and copy-paste instructions below I borrowed from.
BITBURNER PASTEBIN FREE
You are absolutely welcome and free to copy/paste, fork, splat, or whatever. If you're starting BitBurner and want all the Codez While (this.ns.isRunning(script, this.Scripts for Bitburner. Bitburner - After 5 years of development, contributions from hundreds of developers, the critically acclaimed open source programming hacking sim is available on Steam.Inspired by games like Else Heart.break(), Hacknet, Uplink, and Deus Ex, Bitburner is a programming-based idle incremental RPG where you, the player, take the role of an unknown hacker in a dark, dystopian world. Where at the top you can see how many threads are waiting for servers to be free.ĭistributed.js (10.20 GB RAM) import ) to finish.`) When you look at the logs for the program you will see something like (except right on initialisation where it's busy looking for old scripts to kill): Changing state every time it is put into a new queue and when it is done. Throughout this the ticket goes between 4 states, Created, Initiating, Running and Done. This queue simply awaits all threads to finish before reporting the ticket done. When all threads for a queue has been put into action the ticket is put into a waiting queue. This queue is sorted by 2 priorities, first in order of script type going hack > grow > weaken and on ties tickets requesting fewer threads are preferred. The scheduler pulls all new tickets from the masters into a big queue. Running is where it request what should be the perfect balance between hack/grow/weaken threads for the given hacking percent goal. Initialisation is refinement, where it puts up requests to get maximum money and minimum security, this step is often entirely skipped after the initial climb to max money for a server. The masters jumps between 2 states 'initialisation' and 'running'. Tickets are individual requests sent by masters to the scheduler telling script target and how many threads should be run. The program has 3 concepts, the tickets, the masters (the workers being the servers) and the scheduler. nothome is every server except your default home server. All server you have root access to (dynamically updated as you get more access), own is every server you own yourself including your default home server. Last argument decides what servers will be used as workers, this can be either: all, own or nothome. Second argument is how much should be taken, where 0.5 is hacking half the money per round and 1.0 is hacking all the money. If none is given all servers with root access and capacity of holding money are used. First argument is a list of target servers for hacking given as 'a,b,c'. Usage in BitBurner documentation style: > run distributed.js ]Ī good start usage as soon as you got >100 GB ram collectively (most non-owned servers got 16-32 GB each) is: > run distributed.js harakiri-sushi 0.1 allĪll arguments are optional, but the first is heavily suggested when you have little ram. Created a hacking script for the time when you have barely any owned servers with ram (although it works well too if you got all the ram in the world).
