mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-22 23:53:48 +01:00
aa7facd4ba
* Remove the limitation unique args per script * Internal changes to how runningScripts are stored on the server, to make common usage faster.
1.6 KiB
1.6 KiB
Home > bitburner > RunOptions
RunOptions interface
Signature:
interface RunOptions
Properties
Property | Modifiers | Type | Description |
---|---|---|---|
preventDuplicates? | boolean | (Optional) Should we fail to run if another instance is running with the exact same arguments? This used to be the default behavior, now defaults to false. | |
ramOverride? | number | (Optional) The RAM allocation to launch each thread of the script with. Lowering this will not automatically let you get away with using less RAM: the dynamic RAM check enforces that all NS functions actually called incur their cost. However, if you know that certain functions that are statically present (and thus included in the static RAM cost) will never be called in a particular circumstance, you can use this to avoid paying for them. You can also use this to increase the RAM if the static RAM checker has missed functions that you need to call. Must be greater-or-equal to the base RAM cost. Defaults to the statically calculated cost. |
|
temporary? | boolean | (Optional) Whether this script is excluded from saves, defaults to false | |
threads? | number | (Optional) Number of threads that the script will run with, defaults to 1 |