Merge pull request #355 from Mughur/docupdate

link at the end of tutorial now opens another window
This commit is contained in:
Mughur
2023-02-08 03:50:12 +02:00
committed by GitHub
5 changed files with 15 additions and 19 deletions

View File

@ -15,4 +15,4 @@ mv() Netscript Function
.. code-block:: javascript
ns.tprint("home", "foo.js", "old_foo.txt")
ns.mv("home", "foo.js", "old_foo.txt")

View File

@ -1,7 +1,7 @@
moveTail() Netscript Function
resizeTail() Netscript Function
===============================
.. js:function:: moveTail(width, heigth[, pid])
.. js:function:: resizeTail(width, heigth[, pid])
:RAM cost: 0 GB

View File

@ -20,9 +20,7 @@ through 20. When using the functions above, the ports are specified
by passing the number as the first argument and the value as the second.
The default maximum capacity of a port is 50, but this can be changed in Options > System. Setting this too high can cause the game to use a lot of memory.
.. important:: The data inside ports are not saved! This means if you close and
re-open the game, or reload the page then you will lose all of the data in
the ports!
.. important:: The data inside ports are not saved! This means if you close and re-open the game, or reload the page then you will lose all of the data in the ports!
**Example Usage**
@ -34,8 +32,6 @@ Let's assume Port 1 starts out empty (no data inside). We'll represent the port
Now assume we ran the following simple script
.. code-block:: js
.. code:: javascript
export async function main(ns) {
@ -50,8 +46,6 @@ After this script executes, our script will contain every number from 0 through
Then, assume we run the following script
.. code-block:: js
.. code:: javascript
export async function main(ns) {
@ -125,8 +119,6 @@ This handle allows you to access several new port-related functions. The functio
Port Handle Example
.. code-block:: js
.. code:: javascript
export async function main(ns) {
@ -217,8 +209,6 @@ Then, if you wanted to use these functions in another script, you can import the
If you only wanted to import certain functions, you can do so without needing
to specify a namespace for the import
.. code-block:: js
.. code:: javascript
import {foo1, foo3} from "testlibrary.js"; //Saves RAM since not all functions are imported!

View File

@ -414,7 +414,13 @@ export function InteractiveTutorialRoot(): React.ReactElement {
<>
<Typography>
This page displays information about all of your scripts that are running across every server. You can use
this to gauge how well your scripts are doing. Let's go back to
this to gauge how well your scripts are doing.
<br /><br />
Click on Home to see the scripts running on it.
<br /><br />
Then click on n00dles.js to see the scripts information.
<br /><br />
Let's go back to
</Typography>
<ListItem>
<LastPageIcon color={"error"} />
@ -473,7 +479,7 @@ export function InteractiveTutorialRoot(): React.ReactElement {
<Typography>through the main navigation menu now.</Typography>
</>
),
canNext: true,
canNext: false,
},
[iTutorialSteps.HacknetNodesIntroduction as number]: {
content: (
@ -499,7 +505,7 @@ export function InteractiveTutorialRoot(): React.ReactElement {
</ListItem>
</>
),
canNext: true,
canNext: false,
},
[iTutorialSteps.WorldDescription as number]: {
content: (
@ -517,7 +523,7 @@ export function InteractiveTutorialRoot(): React.ReactElement {
</ListItem>
</>
),
canNext: true,
canNext: false,
},
[iTutorialSteps.TutorialPageInfo as number]: {
content: (
@ -527,7 +533,7 @@ export function InteractiveTutorialRoot(): React.ReactElement {
<br />
<br />
The{" "}
<a href="https://bitburner-official.readthedocs.io/en/latest/guidesandtips/gettingstartedguideforbeginnerprogrammers.html">
<a href="https://bitburner-official.readthedocs.io/en/latest/guidesandtips/gettingstartedguideforbeginnerprogrammers.html" target="_blank">
Getting Started
</a>{" "}
contains the guide for new players, navigating you through most of early game.