diff --git a/doc/source/basicgameplay/scripts.rst b/doc/source/basicgameplay/scripts.rst index 2eec791a5..d96468d2f 100644 --- a/doc/source/basicgameplay/scripts.rst +++ b/doc/source/basicgameplay/scripts.rst @@ -106,7 +106,7 @@ Check how much RAM a script requires to run with n threads **nano [script]** Create/Edit a script. The name of the script must end with a valid -extension: .script, .js, or .ns +extension: .script, or .js **ps** diff --git a/doc/source/basicgameplay/terminal.rst b/doc/source/basicgameplay/terminal.rst index 1ee640f24..89f6abc70 100644 --- a/doc/source/basicgameplay/terminal.rst +++ b/doc/source/basicgameplay/terminal.rst @@ -425,7 +425,7 @@ nano $ nano [filename] -Opens up the specified file in the Text Editor. Only scripts (.script, .ns, .js) and +Opens up the specified file in the Text Editor. Only scripts (.script, .js) and text files (.txt) can be edited. If the file does not already exist, then a new empty file will be created. @@ -595,7 +595,7 @@ wget $ wget [url] [target file] Retrieves data from a url and downloads it to a file on the current server. -The data can only be downloaded to a script (.script, .ns, .js) or a text file +The data can only be downloaded to a script (.script, .js) or a text file (.txt). If the target file already exists, it will be overwritten by this command. Note that will not be possible to download data from many websites because they diff --git a/doc/source/netscript/advancedfunctions/autocomplete.rst b/doc/source/netscript/advancedfunctions/autocomplete.rst index 22fefe4b1..c8371d43d 100644 --- a/doc/source/netscript/advancedfunctions/autocomplete.rst +++ b/doc/source/netscript/advancedfunctions/autocomplete.rst @@ -7,7 +7,7 @@ autocomplete() Netscript Function :RAM cost: 0 GB :param Object data: general data about the game you might want to autocomplete. - :param string[] args: current arguments. Minus `run script.ns` + :param string[] args: current arguments. Minus `run script.js` data is an object with the following properties:: @@ -34,6 +34,6 @@ autocomplete() Netscript Function .. code-block:: bash - $ run demo.ns mega\t + $ run demo.js mega\t // results in - $ run demo.ns megacorp + $ run demo.js megacorp diff --git a/doc/source/netscript/netscriptjs.rst b/doc/source/netscript/netscriptjs.rst index 316aa1906..84365306b 100644 --- a/doc/source/netscript/netscriptjs.rst +++ b/doc/source/netscript/netscriptjs.rst @@ -21,11 +21,11 @@ As of the time of writing this, a few browsers do not support `dynamic import `_, @@ -117,7 +117,7 @@ early-hack-template.script } } -early-hack-template.ns +early-hack-template.js .. code-block:: javascript @@ -151,8 +151,8 @@ You may have noticed that every new ns2 file will contains the following comment * @param {NS} ns **/ -This comment is used to help the text editor autocomplete functions in the Netscript API. You can enabling it by pressing ctrl+space after `ns.` +This comment is used to help the text editor autocomplete functions in the Netscript API. You can enable it by pressing ctrl+space after `ns.` .. image:: autocomplete.png -The comment can be safely removed but it is recommended to keep it as it will help you. \ No newline at end of file +The comment can be safely removed but it is recommended to keep it as it will help you.