Skip to content

A collection of scripts to be used in the game Bitburner

Notifications You must be signed in to change notification settings

miliarch/bitburner_scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

90 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Miliarch Bitburner Scripts

This repository contains a collection of scripts I've developed over my time playing the game Bitburner. If you're here, you probably know something about the game, but if you don't, it's an incremental game set in a dystopian future where...no need to reinvent the wheel, you can learn more about the game here.

Installation

You can fetch all scripts in the src directory with common/fetch_all.js.

Simply download the deployment script:

wget https://raw.githubusercontent.com/miliarch/bitburner_scripts/master/src/common/fetch_all.js common/fetch_all.js

Then run it:

run common/fetch_all.js

You can also specify a custom root URL if you would like to pull scripts from a different source clone of the repository (i.e.: a development web server):

run common/fetch_all.js --url_root http://localhost:3000

All supported arguments:

  • --url_root: Takes the value of the passed string - determines which URL is prepended to filenames when fetching remote files (default: https://raw.githubusercontent.com/miliarch/bitburner_scripts/master/src)
  • --remove or --rm: True if passed, false otherwise - determines whether files are removed before they are fetched
  • --host HOSTNAME: Takes the value of the passed string - determines which host to act against

In case directory structure is a question, all scripts within the src directory of this repository will be saved within the root directory in the target host after the fetch (e.g.: /config/hack.txt).

Directories

common

General purpose scripts and function libraries.

config

Configuration files.

hack

Hacking focused scripts. Learn more here.

gang

Gang (SF2) focused scripts.

reports

Any persistent reporting data will be written here. Report generating scripts may also fit here.

singularity

Singularity functions (SF4) focused scripts.

Development

I don't expect that these scripts will suit anyone as-is forever (or even to start). I can't even stop tweaking and improving them, when I'm not adding more scripts to address gaps. The in-game editor is serviceable, but syncing changes from in-game back to a more persistent system is a laborious task. What I'm trying to say is that you'll want to come up with a development pattern that reduces the cycles you spend manually copying/pasting things. My own patterns may work for you, or give you pointers on developing your own.

Docker

See dockers/README.md.

VS Code

The fine folks from the #vs-code-x-bitburner channel of the Bitburner discord server 1 have developed a VS Code extension that communicates with an API server built into the Steam version of the game. The extension allows you to easily push local files to the game from VS Code context menus and command palette, and there's a file watcher feature as well. It works pretty well and will only get better with additional usage and interest. If you use VS Code or are considering it, and you also run the Steam version of the game, I definitely recommend giving it a shot.

1: Follow the Discord link in game options if that invite link is broken

About

A collection of scripts to be used in the game Bitburner

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages