hacker.js, weaken_manager.js: use void_copy_script_to from lib_ram_script to copy worker scripts to servers. README.md: update.
[?]
Sep 7, 2020, 8:33 AM
QAPXJ43A5E5EHL7CBKSJVWJV574IAYK2CIUEGOL6YHQZVYWU76YQCDependencies
- [2]
PUMDUVMZhacker.js: add logic to copy job script to server. - [3]
CKC6UBEAREADME.md: update - [4]
JS52JD4Qweaken_manager.js: add. lib_server_used.js: move to lib_ram_script. lib_ps: delete. main.js, hacker.js, lib_ram_script.js: refactor. README.md: update. - [5]
Y5OWMCQRall: remove unecessary uses of `exec`. refactor. main.js: add RAM reservation logic. lib_ram.js: renamed to lib_ram_server.js. README.js: update. - [6]
SXEJJKPIexecutables: add `--help` flag. hacker.js: change scheduling logic. refactor. kill.js: allow handling more than one server or script at a time. cyclic_weaken.js: add. README.md: update. - [7]
NQ22FUSWadd more options to `main.js`. update `README.md`. - [8]
JGNALSUQadd "cyclic_weaken.js" feature. hacker.js, main.js, libs: refactor. README.md: update. - [9]
ZRPOW4ERhacker.js, lib_time.js: supress error messages. hacker.js: use `getBitNodeMultipliers`. lib_time.js: use `getStats`. README.md: update. - [10]
2BKHJI2Sinit - [11]
TXTXXNNBhacker.js: refactor schedule correction logic into schedule making logic to prevent having to iterate to schedule twice. - [12]
BKG7YVUVmain.js, hacker.js, servers.js, ram.js: refactor. - [13]
2WOLGB42README.md: update. kill.js: fix argument parser. lshw.js: add `-p` option. increase information given. main.js: fix error message. set saner defaults. hacker.js: split some functions into "lib_time.js" and "lib_score.js". ram.js: fix. - [14]
HLC2L3NJadd "tor.js" and "programs.js". use `minimist` for "main.js" argument parsing. - [15]
AXGQ7FMLsplit and refactor hacking logic to "hacker.js" and argument parsing and script execution logic to "main.js". update "README.md".
Change contents
- replacement in sbin/weaken_manager.js at line 1
// weaken_manager.js - 3.4GB - continuously runs enough threads of cyclic_weaken.js to meet float_ram_fraction_for_weaken_cyclic.// weaken_manager.js - 4GB - continuously runs enough threads of cyclic_weaken.js to meet float_ram_fraction_for_weaken_cyclic. - replacement in sbin/hacker.js at line 38
import { object_make_server_used } from "lib_ram_script.js";import {object_make_server_used,void_copy_script_to,} from "lib_ram_script.js"; - edit in sbin/hacker.js at line 888
// copies script in current server to a target serverconst void_copy_script_to = function (ns, string_script, string_server_used) {ns.scp(string_script,ns.getHostname(),string_server_used);} - replacement in lib/lib_ram_script.js at line 1
// lib_ram_script.js - 3.4GB// lib_ram_script.js - 4GB - edit in lib/lib_ram_script.js at line 122
// copies script in current server to a target serverexport const void_copy_script_to = function (ns,string_script,string_server_used) {ns.scp(string_script,ns.getHostname(),string_server_used);} - edit in lib/lib_ram_script.js at line 147
void_copy_script_to(ns,object_job.string_script,object_job.string_server_used); - replacement in README.md at line 18
* Run the helper scripts "ram.js"\* (6.6 GB), "servers.js" (8.85 GB), "tor.js"\* (3.8 GB), "programs.js"\* (3.7 GB), "botnet.js" (2.2 GB) and "weaken_manager.js" (3.4 GB) which should, respectively, attempt to:* Run the helper scripts "ram.js"\* (6.6 GB), "servers.js" (8.85 GB), "tor.js"\* (3.8 GB), "programs.js"\* (3.7 GB), "botnet.js" (2.2 GB) and "weaken_manager.js" (4 GB) which should, respectively, attempt to: