This is my scripts for the game BitBurner. This is a fresh start, using Typescript.
These scripts are heavily inspired by & uses bits from Insight's Scripts. Many thanks to Insight for the contributions to the community.
This repo is created with Shy's external editor template, with a custom patched version of Shy's original plugin.
To use the scripts in the repo, you should copy the scripts directly from mirror/home
folder into your BitBurner home server. (I may add a script to fetch these scripts from GitHub directly.)
If you would like to setup your own development environment using an external editor, go read the README in Shy's external editor template.
For mirroring, there is one addition to config.mjs
: you can now add an ignorePaths
array to ignore certain paths from being mirrored. This is particularly useful if your scripts read and write files to communicate. See config.mjs
for an example.
For TypeScript type definitions, after you've connected, you should see NetscriptDefinitions.d.ts
in your project root. Run npm run gentypes
to dump all the type definitions into the global scope. You should now be able to use these type definitions as you can in the in-game editor.