NQ22FUSWN6CBJKJ5H7UV5N2KEXBIXVNQDNL2EK6UJ3E7RFLWNVDQC 2LU5Y77OWHXI4FV3YKELPYQSUOQGRSO7CXWPKUCQZ2WM5YUBZBRQC 2BKHJI2SJ3VXTFBK2BWNN3I3BDNMUU5YTJGKTQCOXV66VVRHCGKAC VMXI7PS4GFDOWPFLHQ7TYKJ5K3K7FXNPJCBEVYHTTRN7YB5ZHEQAC HHZNTFCTPVDB5GIBDLZFZPDKR62SD47HQ5QALRBSP5UN52M6GLEAC 3TYF4BJSEMX4MBPIW4A3JTZEZEJYIOGJ2I4YFIEFGDDVNVCHYZBAC BZ6FC2BTR7M7T6KQX5OJEFY4B3OWAKCOALYOF7GYBXZ4ZNSGSCYQC VHWFHMNWZS4GA5ZW6QSOTDXS4WONZLGEZS5P2RFM7DK7VWDYSHHAC 6MBUKAG6VK6XXGRSER273IP2R35P3C5K3KOY4QVSZXEOYD3H4WRAC EYKBOK3OG5YHBBZV3OQB423I7RVDK2HLSXEKKWJLQLKXZKUTUJBAC CJBGAILAK7G3WXYUBNUZMUMM3U5CPHWVK6ZAJWYBL4IOB5SZN32AC YANDOFZ4PSJW7S2SDFLQSDROJE4G3WOXUN7NCB22WCQJPQDY2B7AC FA3U4WUJ3YT2G2WIAXBHEZ4O4RWXX55BBFYQKODHUMF7I6Z37XUAC // outputs function names and arguments passed to them.const void_debug = function() {const boolean_on = false;const array_arguments = Array.from(arguments);if (boolean_on) {const ns = array_arguments[1][0];for (let integer_indices_0 = 0; integer_indices_0 < array_arguments[1].length; ++integer_indices_0) {const string_argument_type = typeof(array_arguments[1][integer_indices_0]);if (integer_indices_0 === 0) {ns.tprint(`${new Date().toISOString()}: ${array_arguments[integer_indices_0].name}(`);}else {if (integer_indices_0 === array_arguments[1].length - 1) {ns.tprint(`${string_argument_type}: ${JSON.stringify(array_arguments[1][integer_indices_0])})`);}else {ns.tprint(`${string_argument_type}: ${JSON.stringify(array_arguments[1][integer_indices_0])}, `);}}}}};
(string_argument === "--target")
(string_argument === "--job-cap") ||(string_argument === "-j")) {integer_job_cap = array_arguments[integer_indices_0 + 1];}if ((string_argument === "--job-delay") ||(string_argument === "-d")) {float_padding_seconds = array_arguments[integer_indices_0 + 1];}if ((string_argument === "--precision") ||(string_argument === "-p")) {float_precision = array_arguments[integer_indices_0 + 1];}if ((string_argument === "--steal-cap") ||(string_argument === "-s")) {float_steal_cap = array_arguments[integer_indices_0 + 1];}if ((string_argument === "--check-delay") ||(string_argument === "-c")) {float_period_check_seconds = array_arguments[integer_indices_0 + 1];}if ((string_argument === "--target") ||(string_argument === "-i")
## DescriptionScripts for the game [Bitburner](https://github.com/danielyxie/bitburner). Here's an overview of what the executable scripts (located in the `bin` directory) are supposed to do, the RAM they require and any arguments they take:
### `main.js [--target SERVER]` (15.70 GB)
Scripts for the game [Bitburner](https://github.com/danielyxie/bitburner).---## OverviewHere's an overview of what the executable scripts (located in the `bin` directory of this repository) are supposed to do, as well as usage information and examples for each one:### `main.js` (15.70 GB)
* Optionally, target the a named server instead of picking one by itself.
#### USAGE`run main.js [OPTIONS]`#### OPTIONS`-c, --check-delay <SECONDS>`* SECONDS = The duration of delay between each checking done for the completion of the main cycle, in seconds. Should be a floating-point number > 0. Defaults to 10.`-d, --job-delay <SECONDS>`* SECONDS = The duration of delay between each job, in seconds. Should be a floating-point number > 0. Defaults to 0.4.`-i, --target <SERVER>`* SERVER = The server that should be targetted by the `weaken`, `grow` and `hack` functions. Should be a string. Defaults to choosing an optimal target using a scroing system based on the server's maximum cash, growth, required hacking level, and the player's current hacking level.`-j, --job-cap <CAP>`
### `killall.js [SCRIPT1 [SCRIPT2 ...]]` (3.05 GB)
* CAP = The maximum amount of jobs to start per cycle. Should be an integer > 0. Defaults to 2000.`-n, --server-name <NAME>`* NAME = The name to be used for purchased servers. Should be a string. Defaults to "server".`-p, --precision <PRECISION>`* PRECISION = A value used in determining how many cycles of bisection the binary search algorithm used for the percentage to steal calculator should use. Should be a floating point number > 0 <= 1. Values closer to 0 will result in greater precision in the calculation, but potentially longer run-times and compared to values closer to 1. Defaults to 0.001.`-s, --steal-cap <CAP>`* CAP = The maximum amount fraction of cash to steal from the target server per `hack` job. Should be an integer >= 0 <=1. Defaults to 0.96.#### EXAMPLES`run main.js`* Runs the script using default values.`run main.js --job-cap 4000 -i "harakiri-sushi" -s 0.5`* Runs the script with up to 4000 jobs, targetting "harakiri-sushi" and stealing up to 50% of it's cash per `hack` job, whilst the remaining variables are set to defaults.---### `killall.js` (3.05 GB)
### `lshw.js [-s INTERVAL] <SERVER1 [SERVER2 ...]>` (2.45 GB)
#### USAGE`run killall.js [ARGUMENT ...]`* ARGUMENT = Name of the script to kill. To kill more than one named script, pass them all as arguments to the command, each separated by a space.#### EXAMPLES`run killall.js grow.js hack.js`* Kills all scripts named `grow.js` and `hack.js` on any servers that they are currently running on.---### `lshw.js` (2.45 GB)
* Optionally, display the information at regular intervals. The INTERVAL parameter accepts a value >= 1 in milliseconds.
* Optionally, display the information at regular intervals.#### USAGE`run lshw.js [OPTIONS] <ARGUMENT [ARGUMENT ...]>`* ARGUMENT = Server to display the information about.#### OPTIONS`-d, --delay <MILLISECONDS>`* MILLISECONDS = The duration of delay between update, in milliseconds. Should be a floating-point number >= 1. By default, the script will only display server information once, unless this option is manually set.#### EXAMPLES`run lshw.js -s 1000 home foodnstuff`* Causes the terminal to output up-to-date information about the "home" and "foodnstuff" servers every second.---
```run lshw.js -s 1000 home foodnstuff```Causes the terminal to output up-to-date information about the "home" and "foodnstuff" servers every second.
* Copies all files that contain the strings ".lit", ".script" or ".txt" in their filename from all servers to the current server.
```run cp.js .lit .script .txt```Copies all files that contain the strings ".lit", ".script" or ".txt" in their filename from all servers to the current server.
## InstallationSave all the `.js` files in this repository to the root directory of the "home" server using the same filenames that they currently have in this repository.
## DebuggingTo enable debugging of `main.js`, set the `boolean_on` variable in the `void_debug` function in the `lib.js` file to `true`.
---