Automation scripts I use for my Bitburner gameplay videos.

Overview

Bitburner Automation

Note: I release a new piece of code when I finish a video segment in the series. If it's a multi-part series, the scripts will not be released until all parts of the video is visible to the public.

Overview

This repository contains the automation scripts I use to play a programming game called "Bitburner". It's related to the Bitburner series I'm making in my gaming Youtube channel. It contains reference code that you can use in your own scripts. Feel free to modify this or clone this.

For any questions, feel free to flick me an email or leave a comment on my videos. I'm always happy to help :)

Comments
  • Runtime Error diamond-hands.js

    Runtime Error diamond-hands.js

    RUNTIME ERROR diamond-hands.js@home (PID - 60093)

    getPosition: Invalid stock symbol: ECP

    Stack: diamond-hands.js:L12@getStonks diamond-hands.js:[email protected]

    opened by steini225 4
  • launch-fleet code error (not cracking as expected)

    launch-fleet code error (not cracking as expected)

    I'm having a little issue with the launch fleet script

    it seems to find servers and upload the virus correctly but for some reason it never runs the cracks on the server and nukes it for root access

    my work around at the moment is to simply go crack the server my self but I will be looking into the launch fleet script vs the auto-deploy script to try and figure out why it's not executing that section of the script

    opened by N0xF0rd 3
  • Deadlock in Corporation Recruiter Script

    Deadlock in Corporation Recruiter Script

    Hi,

    https://github.com/chrisrabe/bitburner-automation/blob/cb85943b46a040f570b1721f6b2d06a325f36220/episodes/ep31/corp-recruiter.js#L98

    If you have not enough funds in your corporation the script will enter the while loop, but the business.funds will never be updated. So you should use directly corp.getCorporation().funds instead.

    Thanks for all the work and the interesting guidelines!

    best, Mac

    opened by Mac2 2
  • erroneous line that should be removed

    erroneous line that should be removed

    https://github.com/chrisrabe/bitburner-automation/blob/3ef047268eee125b501c113c868530e9e24fb1d6/_stable/aps-lite.js#L41

    I just picked up the game and stated to watch your YT series and when i was looking at this script for myself i noticed that this line can be removed to prevent a error for missing function.

    opened by Kadwen01 2
  • Fix weaken threads calculation

    Fix weaken threads calculation

    Background

    Comment from colin bougie

    I noticed something while going through the code that I think is an error. The number of weakenThreads should use the difference between the current security and the security threshold. Right now, it calculates the number of weaken threads necessary to go from 0 security to our threshold, which doesn't really make sense.

    Fix

    • Update the weaken threads calculation for launch-fleets and the new gimme-more-money script.
    bug 
    opened by chrisrabe 2
  • fixed ns.stock format

    fixed ns.stock format

    There was a change in how ns.stock api looked for buying and selling since this was originally written. ns.stock.sell replaced with ns.stock.sellStock and the same for the buy version.

    This should help anyone who tries to clone after watching the tutorials.

    opened by Zerris 1
  • List of currently used scripts

    List of currently used scripts

    Would be nice if there was a list, folder, or something, that showed what you are currently using in your playthrough since some of the older, yet stable, scripts are no longer used/needed.

    opened by Sotales 1
  • Look into dev tool script error

    Look into dev tool script error

    Background

    Comment from sw1ftr:

    it says devtools.js@home (PID - 12)

    Cannot read properties of undefined (reading 'toDevMenu') stack: TypeError: Cannot read properties of undefined (reading 'toDevMenu') at Module.main (home/devtools.js:5:15) at executeJSScript (file:///C:/Program%20Files%20(x86)/Steam/steamapps/common/Bitburner/resources/app/dist/main.bundle.js:19:101335)

    Game Plan

    • Need to run it in my own game to see the error
    • Investigate if this exploit is still the same
    • Look into adding optional chain to make it safer
    opened by chrisrabe 1
  • Enable repository to group episodes and include community scripts

    Enable repository to group episodes and include community scripts

    Background

    I initially started the Bitburner Youtube series to help people get started with the game quickly. Never have I anticipated for it to gain the amount of views and engagement it currently has, or expected myself to be explaining intricate details of the code.

    The more that I create videos and answer problems within the comment section, the more I realise that there's a gap in the amount of support provided for the game. Since we're all playing the same game and solving the same problems, then it makes sense for Bitburner players to have a central place to refer to for scripts.

    There's a lot of players posting their Github links on Reddit, Discord or Steam, but I couldn't find a place that's dedicated to compile all of these resources together.

    I decided that it might be valuable to make this repository as a "one stop shop" for all scripts created by myself and other players. I want to encourage anyone that's watching my videos to contribute in this repository and share their scripts for the benefit of everyone else playing that game.

    Software development is a collaborative activity after all.

    Changes needed

    The folders will be shuffled into the following structure

    root
     |- _stable
     |- episodes
          |- ep1
          |- ep2
          |- ...
     |- community
           |- README.md
           |- user1
           |- user2
           |- 
    

    |Folder | Purpose | |:------ | :------ | | _stable | Contains stable version of the scripts I use in my videos. Contains bug fixes for issues raised by the community | | episodes | Contains folders containing scripts that were created at the creation of the episodes. Subject to change due to bugs | | community | Contains folders that were created by other players and references to other Github repositories that can be used as references |

    documentation 
    opened by chrisrabe 1
  • Update the new launch fleets script to specify base RAM

    Update the new launch fleets script to specify base RAM

    Background

    Viewer contacted me via email telling me that they used a fixed value that acts as a "reserved RAM" for the home server rather than specifying the percentage. I think this is a good idea.

    Changes required

    • Update gimme-more-money script to support the reserved RAM value
    • Update validation on the gimme-more-money to ensure that reserved RAM isn't above the (max server RAM - gimme more money RAM)
    • Update ship allocation calculation for home server
    enhancement 
    opened by chrisrabe 1
  • Upgrade launch-fleets to address YT commenter suggestions and issues

    Upgrade launch-fleets to address YT commenter suggestions and issues

    Problems or enhancements

    • Dependencies can change and may unintentionally affect the launch-fleets script
    • The launch fleets script doesn't include the home server's RAM.
    • pirate.js can be maximised by splitting into individual components

    Acceptance Criteria

    • Launch fleets can be copied across the game without having to copy other dependencies
    • Launch fleets can be used with an optional parameter to utilise some or all the home server's RAM
    • Individual hacking components are split into their own scripts to maximise resources

    Supporting comments

    Comment from Brandon Keith

    When trying to utilize the launch-fleets.js script im running into a runtime error "
    RUNTIME ERROR
    pirate.js@pserv-7
    Args: ["grow", "omega-net", 31799.604894601012, 0]
    
    Failed to resolve module specifier "./find-targets.js". Invalid relative url or base scheme isn't hierarchical.
    stack:
    TypeError: Failed to resolve module specifier "./find-targets.js". Invalid relative url or base scheme isn't hierarchical." an im not understanding why it is having an issue with the refference file.
    could you help me out on this?
    

    Comment from Sivade

    Hi CS, you're doing great work with these videos and tutorials. I'm doing my best to follow your scripting but I'm a novice in all things javascript still.
    
    I wanted to ask if there is a way to alter or allow for the auto-starter.js to utilize some of the Home Server ram. I feel like it should be possible to factor some of our Home Server computing power in the start up, since that gives us a clear advantage, especially when we have a good amount of ram after our first augmentation reset (or subsequent resets). Is it tricky to allocate some of our Home Server ram into the Auto-Starter.js?
    

    Comment from InfiniteTrial:

    Its true that your servers are under 100% but a lot of it is just dead weight.
    
    Let's say you have one server with 2048GB RAM and three scripts hack.js, weaken.js and grow.js that each only contain their respective command.
    pirate.js needs 2GB of RAM
    hack.js needs 1.7GB,
    weaken.js and grow.js both need 1.75GB
    
    On that server you could run one of the following:
    1024 x pirate.js for 100% load,
    1204 x hack.js for 99.94% load, or
    1170 x weaken.js (or grow.js) for 99.98% load.
    
    In that scenario you would loose up to 15% of actual workpower, depending on which skript you run.
    It gets only worse when the server size increases.
    It would be more efficient to split pirate.js into its components and only call the one that s needed at the moment.
    
    opened by chrisrabe 1
Owner
Chris Rabe
Senior Fullstack Engineer
Chris Rabe
An ingame overlay with a lot of enhancements for your daily gameplay

LostArkOverlay This project was generated using Nx. ?? Smart, Extensible Build Framework Quick Start & Documentation Nx Documentation 10-minute video

Pascal M 7 Sep 24, 2022
Grupprojekt för kurserna 'Javascript med Ramverk' och 'Agil Utveckling'

JavaScript-med-Ramverk-Laboration-3 Grupprojektet för kurserna Javascript med Ramverk och Agil Utveckling. Utvecklingsguide För information om hur utv

Svante Jonsson IT-Högskolan 3 May 18, 2022
Hemsida för personer i Sverige som kan och vill erbjuda boende till människor på flykt

Getting Started with Create React App This project was bootstrapped with Create React App. Available Scripts In the project directory, you can run: np

null 4 May 3, 2022
Kurs-repo för kursen Webbserver och Databaser

Webbserver och databaser This repository is meant for CME students to access exercises and codealongs that happen throughout the course. I hope you wi

null 14 Jan 3, 2023
A new generation GUI automation framework for Web and Desktop Application Testing and Automation.

Clicknium-docs Clicknium is a new generation GUI automation framework for all types of applications. It provides easy and smooth developer experience

null 109 Dec 19, 2022
App that allows you to control and watch YouTube videos using hand gestures. Additionally, app that allows you to search for videos, playlists, and channels.

YouTube Alternative Interaction App An app I made with Edward Wu that allows you to search and watch videos from YouTube. Leverages Google's YouTube D

Aaron Lam 2 Dec 28, 2021
Solana blockchain candy machine app boilerplate on top of Metaplex Candy Machine. NextJS, Tailwind, Anchor, SolanaLabs.React, dev/mainnet automation scripts.

NFT Candy Factory NOTE: This repo will prob only work on unix-based environments. The NFT Candy Factory project is designed to let users fork, customi

Kevin Faveri 261 Dec 30, 2022
Automagically bypass hcaptcha challenges with http api, with puppeteer, selenium, playwright browser automation scripts to bypass hCaptcha programmatically

Automagically bypass hcaptcha challenges with http api, with puppeteer, selenium, playwright browser automation scripts to bypass hCaptcha programmatically. For help you can message on discord server with the bellow link. You can also create an issue.

Shimul 199 Jan 2, 2023
Typescript & Debugging for Bitburner

Bitburner Scripts + Typescript + Local Server A Typescript template project with debugging support, import rewrites and developer convenience. How to

Mio Bambino 8 Nov 28, 2022
Repo for the official bitburner filesynchronisation package.

bitburner-filesync A file synchronisation utility for Bitburner, using the Remote File API. It allows players to synchronize scripts and text files fr

null 15 Dec 23, 2022
Bitburner source code.

Bitburner Bitburner is a programming-based incremental game that revolves around hacking and cyberpunk themes. The game can be played at https://danie

null 27 Dec 23, 2022
An unofficial companion tool created for use alongside PhotoPrism to enable API endpoints and automation.

PhotoPrism Helper PhotoPrism Helper is an unofficial companion tool created for use alongside PhotoPrism. This project isn't associated with the Photo

Ryan Miller 9 Dec 25, 2022
Make use of your favicon with badges, images or videos

favico.js More info here. Author Miroslav Magda Version 0.3.9 Contributors: Serge Barysiuk, pissflaps, Yaroslav Yakovlev, LoicMahieu, Renan Gonçalves,

Miroslav Magda 8.7k Dec 21, 2022
A Simple yet extendable jQuery modal script built for use with inline HTML, images, videos, and galleries.

jQuery Chaos Modal A Simple yet extendable jQuery modal script built for use with inline HTML, forms, and images in mind. There are many other modal p

Matthew Sigley 3 Oct 8, 2020
Digispark Overmaster : free IDE TOOL allows to create and edit Digispark Scripts by the drag and drop technique,with cool GUI and easy to use it

Digispark_Overmaster Digispark Overmaster : free IDE TOOL allows to create and edit Digispark Scripts by the drag and drop technique,with cool GUI and

Yehia Elborma 5 Nov 14, 2022
Tools for the openHAB JavaScript Automation Add-On.

openHAB JS Automation Tools This library provides some utilites for the openHAB JS Scripting Add-On. The JavaScript Add-On is using the NodeJS version

Florian Hotze 4 Oct 18, 2022
This repository contains a basic example on how to set up and run test automation jobs with CircleCI and report results to Testmo.

CircleCI test automation example This repository contains a basic example on how to set up and run test automation jobs with CircleCI and report resul

Testmo 2 Dec 23, 2021