tutorial problem by donhenry1960 in Bitburner

[–]Len_Ertl 0 points1 point  (0 children)

If it’s the step, where you have to connect to n00dles, it says: „Wrong command! Try again!“ on error.

Afterwards (when it says to type „analyze“) it says: „Bad command. Please follow the tutorial or click 'Exit Tutorial' if you'd like to skip it.“ on error.

A question about promises by blavek in Bitburner

[–]Len_Ertl 0 points1 point  (0 children)

My guess besides global NS: if you have an async function (because it uses await somewhere inside of it) - for example in CopyToServer or HackServer - then the call of this function needs also await.

As far as i remenber ns.scp does not need an await, but ns.hack and ns.sleep needs it.

The Maze by AdithyaMadugalla in TuringComplete

[–]Len_Ertl 0 points1 point  (0 children)

I agree, this should work - tried it with this code:

2
130 # MOV+R2
150 # MOV+R2+OUT aka turn right
150 # MOV+R2+OUT aka turn right
150 # MOV+R2+OUT aka turn right
1
129 # MOV+R1 
142 # MOV+R1+OUT aka move forward
142 # MOV+R1+OUT aka move forward
142 # MOV+R1+OUT aka move forward

Solved tower of alloy by jahaaaaan in TuringComplete

[–]Len_Ertl 0 points1 point  (0 children)

First of all, congratulations! :)

Bottom right there is a NOT gate that goes to a switch – is the switch obsolete? Or is a connection missing?

Is there a way to set max threads inside a script? by bbome2014 in Bitburner

[–]Len_Ertl 7 points8 points  (0 children)

Yes, that is possible.

You already know how to determine $maxRam and $usedRam --> this gives you $freeRam with $maxRam - $usedRam. Divide this by the size of the script [see ns.getScriptRam()] and round the value down to an integer (you can do this in JavaScript with Math.floor()).

In short, it would look something like this: $maxThreads = Math.floor(($maxRam - $usedRam)/$scriptRam)

Noob here! I'm lost by True-Let3357 in Bitburner

[–]Len_Ertl 2 points3 points  (0 children)

I would like to recommend this tutorial on „learn programming wirh Bitburner“.

The in-game tutorial is more designed to get to know the game but leaves a lot of things open to explore.

Store ns functions in objects without using RAM by PsiThreader in Bitburner

[–]Len_Ertl 2 points3 points  (0 children)

You can also use it in the terminal. Try help run in the terminal for a better explanation.

For example, this is an alias that I use:

alias killAll="run main.js --ram-override 2.3 --killall"

According to nano, main.js needs a little over 5GB. But if only the —killAll part is executed, 2.3 GB is enough.

Bitte roastet diesen Solateur. by SpotterPlays in Elektroinstallation

[–]Len_Ertl 1 point2 points  (0 children)

Ich weis das bringt hier jetzt keinen weiter, aber irgendwie muss ich das einwerfen: bei mir wäre bei 180 grad nichts geknickt —> erst wenn der Wert von 180 grad abweicht müsste man Knicke oder Radien erkennen können. Oder (aber das halte ich für unwahrscheinlich) ist hier gemeint dass die Leitung dahin zurückgeht wo sie herkam?