

The last button in the sidebar leads to the options menu, there there are quite a few options, but just click on the ‘Theme editor’ button and try some of the presets (or go crazy and just try some color combinations yourself, just realize that you are editing that preset, so if you want the preset back you’re going to put in some effort (probably not a lot, but still)). Lets start with the game options, because they are easily found.
#Bitburner ns2 code#
You are going to run into some bottlenecks while playing this game, and one of them is real life resources all the code you write is actually being run by the game, which means that the more efficient your scripts are the lower the chances that your game starts freezing up/framedropping and the happier your CPU is something to keep in mind.īefore you start writing any code, you may want to consider diving into the options of both the script editor and the game. I’d advise going with NS2 as it isn’t that daunting to write some basic javascript (and by the time you’ll have gotten used to writing scripts you can quite naturally start using more complex javascript (because you won’t have to rewrite all of your existing scripts)).Ī small side-note on NS2 being faster in real life NS2 is pretty much just javascript with an additional layer on top. NS1 is the simplified scripting the game offers, you can do pretty much everything with it that you can do with NS2, but the cost of simplifying the scripting is that the code runs slower (in real life, so in game there is no difference). Now you have to make a choice (not forever, just for now) between NS1 and NS2. There might some things there that you don’t understand, but that’s okay, we’ll get around to it in due time. Run early-hack-template.script n00dles -t 3 You can do this by using the following command from the terminal:

Run the script from your home server to hack n00dles. This script is far from optimal, but it will help you out a lot the first couple of days. I’m assuming you have the ‘early-hack-template.script’ from the tutorial, but if you don’t you can find both the NS1 and NS2 versions of this script here in the documentation – . So you probably just started playing this game (and hopefully did the tutorial) and now you can start writing some actual code, but before we get to writing any code, let’s set up a couple of things. Think of ways to change/improve scripts by yourself.Write a script to buy (and upgrade) servers.Managing the timing and choice of action centralizedĭo you want to learn to write scripts yourself, but don’t know where to start? I’ll (try to) help you on your way!īy the end of this guide you should be able to:.Buying new servers and upgrading your home server.A small side-note on NS2 being faster in real life.Please read CONTRIBUTING.md for details on the code of conduct, and the process for submitting pull requests. There are also subfolders that seek to add context to the main function of the script. Singularity - Scripts that utilize singularity functions.Stock Market - Scripts for managing the stock market.Hacknet - Scripts to manage, setup, or improve your hacknet experience.Any - Scripts that are applicable to any point in the game.


Late-game - High end server hacking, long optimizations, and scripts that may require lots of skills/augmentations to work effectively.Middle-game - Scripts for when skills/augs allow player to be moderately successful with most servers and/or tasks.Early-game - Scripts that are utilized when player skills are low, little/no augmentations installed, and limited access to servers.Faction, Augmentation, Server Guide - Updated for 0.34.0Įach script has been organized into a category.If you haven't already subscribed, a good place to start is the Bitburner subreddit. If someone wrote a script similar to another script, just with different variables or a longer loop for example, only 1 of the scripts was added to the database.
#Bitburner ns2 update#
If an update made a workaround script obsolete, it was not added. If a script was posted as needing fixing, it was not added to this database. I encourage you to make edits, additions, and supply constructive criticism.Īdded scripts are verified to be able to run without a runtime error. I've compiled every script that was ever mentioned in a post on the BitBurner subreddit, and placed them into folders for convenience. Even though Bitburner is set in a dystopian future where you work alone in front of a green tinted monitor, that doesn't mean we can't create a thriving community to help each other out! For inspiration, assistance, and discussion around the amazing cyperpunk-themed incremental RPG, Bitburner.
