Skip to content
Riot Bits

Riot Bits

  • Home
  • News
  • Guides
  • Video Guides
  • Patch Notes
  • Report Abuse
  • Toggle search form
Bitburner

Bitburner – Server Targeting Direction Guide

Posted on 12/23/2021 By WhiskeyFur 1 Comment on Bitburner – Server Targeting Direction Guide
  • Title: Bitburner
  • Release Date:
  • Developer:
  • Publisher:
Information about Bitburner is still incomplete. Please help us fill the details of the game using this contact form.

Need a quick route to a particular destination? I’ve created a script that’ll give you the directions.

No more feeling like a lost tourist looking for a node again.

Getting Started

This is something of a shortcut to finding some of those harder-to-reach nodes.

You might think your version 2 of the scan-analyzer might give you a way to directly connect to every node… think again.

The scanner only goes to a range of 10 nodes and no further, which means finding the more distant nodes (up to *13* hops from home!) requires actually going a bit into the wilds and connecting further in before attempting that scan again.

I created this utility to find a path to those distant places, and to make it easier, even create a string you can cut and paste right into your terminal to take you right there.

Note, I’m not going to give away server names here.. that’s more an exercise for the reader.

The Script

/** @param {NS} ns **/
export async function main(ns) {
	ns.disableLog("ALL");
	ns.tail();
    var src = ns.getHostname();
	var tgt = ns.args[0];
	var servers = {};
	var queue = [src];
	var route = [tgt];
	var ptr = tgt;

	servers[src] = "START";

	while (queue.length) {
		var s = queue.pop();
		var links = ns.scan(s);
		for (var i = 0; i < links.length; i++) {
			if (!servers[links[i]]) {
				queue.push(links);
				servers[links[i]] = s;
			}
		};
	}

	while (ptr != src) {
		ptr = servers[ptr];
		route.push(ptr);
	}
	route.pop();
	
	ns.print("connect " + route.reverse().join("; connect "));
}[/code]

Example Usage

From home to omega-net,

[home ~/]> run find.ns omega-net

It will give you this in a window:

connect harakiri-sushi; connect max-hardware; connect omega-net

That's everything we are sharing today for this Bitburner guide. This guide was originally created and written by WhiskeyFur. In case we fail to update this guide, you can find the latest update by following this link.

If you believe that any of the content on this site violates your rights, including your intellectual property rights, please contact us immediately using our contact form.
Guides Tags:Bitburner

Post navigation

Previous Post: Five Nights at Freddy’s: Security Breach – All Generators in the Daycare Location Guide
Next Post: Disco Elysium – Title Update 2 Achievement Guide

Comment (1) on “Bitburner – Server Targeting Direction Guide”

  1. Jorge says:
    06/01/2022 at 3:35 AM

    Should be
    queue.push(links[i]);

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

  • Title: Bitburner
  • Release Date:
  • Developer:
  • Publisher:
Information about Bitburner is still incomplete. Please help us fill the details of the game using this contact form.

Disclaimer

All content cited is derived from their respective sources. If you think we have used your content without permission, make sure to reach us and we will be taking it seriously.
  • About Us
  • Contact Us
  • Privacy Policy
  • Terms of Service

Copyright © 2025 Riot Bits.

Powered by PressBook News WordPress theme