Giter VIP home page Giter VIP logo

bitburner-scripts's Introduction

BitBurner Scripts

Here's a collection of scripts I've amassed during my play-time.

Below are some things I think you'll be most interested in.

Quality of life

  • /qol/shortcuts.js Use customisable keyboard shortcuts to jump to any window linked from the sidebar, without cancelling crimes, programs or faction contracts. (Demo)

  • /qol/make-tabs-scrollable.js This script will allow you to scroll horizontally through your text-editor's opened tabs using the mouse wheel. (Demo)

  • /qol/add-tab-control-to-editor This script will allow you to navigate through editor tabs with ctrl + tab (or backwards with ctrl + shift + tab).

  • /qol/colourful-terminal.js This script will allow you to style terminal output with rudimentary styles, like <red></red>, <bold></bold>, <blue></blue> etc.. (Demo)

Quality of life scripts need running once to activate; they will end immediately, freeing up RAM, but continue to function.

GUI

  • /gui/server-list.js Render a searchable list of servers with one-click root, connect or backdoor access. (Demo)
  • /gui/process-list.js Render a list of hack/grow/weaken processes in progress. (Demo) (Usage guide)
  • /gui/macros.js Bind configurable Terminal commands to clickable buttons. (Usage guide)
  • /gui/lib/Prompt.js An importable library allowing for user-inputs inside scripts. (Demo) (Usage guide)

To install copy the contents of gui/install.js anywhere on your device and execute it.

Utils

  • /util/server/enslave.js Copy a payload to all rooted servers and run it against a target.
    This script depends on /lib/servers.js

  • /util/server/reset.js Kills all running scripts on all rooted servers.
    This script depends on /lib/servers.js

bitburner-scripts's People

Contributors

necrogami avatar philiparmstead avatar waffleattack avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

bitburner-scripts's Issues

config file json failure

/gui/install.js: ERROR: Downloading and reading config file failed config.txt

RUNTIME ERROR
/gui/install.js@home

Unexpected token ] in JSON at position 176 (sorry we can't be more helpful)

I'm betting it's because the trailing comma on the last line of the array

Prompt not showing message

Update to Bitburner v1.3.0 (4ef3ac71)

this Prompt is not showing the message,

import Prompt from '/gui/lib/Prompt.js'


/** @param {NS} ns **/
export async function main(ns) {
    const input1 = await Prompt(ns, "Pick a number.")
    const input2 = await Prompt(ns, "And another...")

    ns.tprint(`${input1} + ${input2} = ${Number(input1) + Number(input2)}`)
}

the message only show this

{ "gang": {}, "bladeburner": {}, "codingcontract": {}, "sleeve": {}, "corporation": {}, "stanek": {}, "ui": {}, "formulas": { "skills": {}, "hacking": {}, "hacknetNodes": {}, "hacknetServers": {}, "gang": {} }, "stock": {}, "args": [], "hacknet": {}, "heart": {} }

thank you, I just don't know how to solve it

Failed to resolve module specifier "/gui/config/macro-list.config.js"

I made the required macro-list.config.js with the contents from the readme, but it fails to find the config file.
Any idea what I did wrong ? (cheers for sharing your code btw!)

RUNTIME ERROR
/gui/macros.js@home

Failed to resolve module specifier "/gui/config/macro-list.config.js". Invalid relative url or base scheme isn't hierarchical.
stack:
TypeError: Failed to resolve module specifier "/gui/config/macro-list.config.js". Invalid relative url or base scheme isn't hierarchical.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.