ts-bitburner-scripts
bitburner
Our great sponsors
ts-bitburner-scripts | bitburner | |
---|---|---|
3 | 368 | |
5 | 2,792 | |
- | - | |
0.0 | 0.0 | |
about 2 years ago | 9 months ago | |
TypeScript | HTML | |
- | GNU General Public License v3.0 or later |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
ts-bitburner-scripts
-
I created a quick script that will retrieve all of the servers in the game with a breadth first search
Nice Work! I did it recursively with a DFS and returns a dictionary of paths the servers from where you started. https://github.com/GhostCrab/ts-bitburner-scripts/blob/main/src/lib/util.ts mapHosts(). If you just wanted a raw array of host names you could call allHosts().
-
Nonlocality for everyone! [Bitnode 4 spoilers]
I’d like to see your solution once you are able to post it. The way I visit an arbitrary server is by running the mapHosts function from this util library (https://github.com/GhostCrab/ts-bitburner-scripts/blob/main/src/lib/util.ts) which returns a dictionary of host names to array of host names that map the path to that host from the home server. Once I have that I just iterate over the items in the array, connecting to each one in order till I’m at my destination. It’s also useful that the first host in the array is always home, so I could potentially connect to any host no matter where I am since it always starts by resetting to home.
-
Theoretical vs Actual HWGW Algorithms
If you're curious to see my algorithm: main function: https://github.com/GhostCrab/ts-bitburner-scripts/blob/main/src/smart_hack.ts
bitburner
-
life loop games
Bitburner which is available on steam or web which is more sci fi/hacking themed. it's a very complex life loop game that involves coding heavily. There is a pseudo code script in the game in which you can write programs to hack others and eventually restart with cybernetic implants. You can even ditch the pseudo script and code directly in java in the game. The end game is quite fun and fulfilling. I haven't even gotten through it yet.
-
Need help on importing variables
Nope, ports communicate "in RAM" only, i.e. when you close and re-open the game (or complete a BitNode [and maybe also if you install augs? Don't know]) they're cleared. Ports can be accessed via ns.writePort() and ns.peek() or ns.readPort() and be cleared manually with ns.clearPort(). The docs have syntax and description of all the in-game functions.
-
stats of manual commands
From the source code:
-
Learn programming for absolute beginners
3.https://danielyxie.github.io/bitburner (optional, for extra practice and motivation)
- help with a startup script
-
How many scripts is too much for one server?
Here's a list of functions if you want to take a look at what's available. https://github.com/danielyxie/bitburner/blob/dev/markdown/bitburner.ns.md
-
Is there a function to get an array of a server's scripts. I need this so I can create a script called deleteScripts.js to remove them.
RTFM for [ns.ps()](https://github.com/danielyxie/bitburner/blob/dev/markdown/bitburner.ns.ps.md) and ns.killall() ;)
-
This game is the closest there is to actually programming. Change my mind.
Bitburner.
-
Is there a way to get a list of current products in an industry w/o knowing the product name?
Looking at the Warehouse API, the only way to get information on a product is to already know the product name. However if I, for example, restart my corp script after augment installs with a corporation already running, I wouldn't have any of my product names in memory. I know that, given that you can only ever have at most 5 products at a time, I could just create a static list of 5 product names and infer my current production from there but it would be nice to not have to do that and be able to run a function like getProducts that would pull a dictionary/list of the current products for me. I'm generally trying to avoid coding w/ try/catch blocks so something like that would be nice.
-
Help with maths of hacking? Please.
However, if you have access to formulas at whatever time you're running this script, you can try fitting in the ns.Formulas.growPercent(target, maxGrowThreads, ns.getPlayer()) method.
What are some alternatives?
Bitburner
bitburner-scripts - My own scripts for playing bitburner
bitburner-scripts - Repository of Bitburner scripts
Visual Studio Code - Visual Studio Code
elevatorsaga - The elevator programming game!
TypeScript - TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
BitBurnerCentralManager - A prototype thread manager for BitBurner
FizzBuzz Enterprise Edition - FizzBuzz Enterprise Edition is a no-nonsense implementation of FizzBuzz made by serious businessmen for serious business purposes.
bitBurnerTsProject - A template project to start a TypeScript repo for BitBurner
netscripts.d - Netscripts for Bitburner
Exercism - website - The codebase for Exercism's website.
codewars.com - Issue tracker for Codewars