DARKNET: Darkweb Expansion Project & Bitnode (#2139)

This is BN15. It is a really big change; see the PR for all the details.
This commit is contained in:
Michael Ficocelli
2026-02-03 06:40:36 -05:00
committed by GitHub
parent a674633f6c
commit 6073964768
225 changed files with 15010 additions and 526 deletions
+4 -3
View File
@@ -33,6 +33,7 @@ import { Player } from "@player";
import { UIEventEmitter, UIEventType } from "./ui/UIEventEmitter";
import { getErrorMessageWithStackAndCause } from "./utils/ErrorHelper";
import { exceptionAlert } from "./utils/helpers/exceptionAlert";
import { DarknetServer } from "./Server/DarknetServer";
export const NetscriptPorts = new Map<PortNumber, Port>();
@@ -237,9 +238,9 @@ export function loadAllRunningScripts(): void {
Terminal.warn("Skipped loading player scripts during startup");
console.info("Skipping the load of any scripts during startup");
}
for (const server of GetAllServers()) {
// Reset each server's RAM usage to 0
server.ramUsed = 0;
for (const server of GetAllServers(true)) {
// Reset each server's RAM usage
server.updateRamUsed(roundToTwo(server instanceof DarknetServer ? server.blockedRam : 0));
const rsList = server.savedScripts;
server.savedScripts = undefined;