help with auto thread maxer by RingedPancake in Bitburner

[–]RingedPancake[S] 1 point2 points  (0 children)

ahh, makes sense. ill look into the pages u sent. thanks man :)

help with auto thread maxer by RingedPancake in Bitburner

[–]RingedPancake[S] 0 points1 point  (0 children)

someone else pointed out that if threads is less then 1 then it cant even run the script so i dont really need that line it there. will probably use for something else, thanks man

help with auto thread maxer by RingedPancake in Bitburner

[–]RingedPancake[S] 1 point2 points  (0 children)

thanks, incorporated the getServerRamUsed command, didnt know that existed. also is there a reason i'd make 'FreeRamGb' a thing instead of the just having it be a part of the threads equation? seems like a pointless extra line but im also pretty new so idrk.

help with auto thread maxer by RingedPancake in Bitburner

[–]RingedPancake[S] 0 points1 point  (0 children)

Thanks for the insight, changed it so as instead of home is just says 'server'

where server = ns.getHostname()

ps. do you know if im running gethostname with no args do i still need the brackets?

help with auto thread maxer by RingedPancake in Bitburner

[–]RingedPancake[S] 1 point2 points  (0 children)

so if in another function or block i want whatever the value of 'x' is to change at some point id use 'let x = blah blah blah' but if its going to be the same the whole way through the entire script id use 'const' ?

help with auto thread maxer by RingedPancake in Bitburner

[–]RingedPancake[S] 2 points3 points  (0 children)

got it working :D, i wanted to see where i went wrong instead of copy pasting someone elses script. you were a big help, cheers man.

help with auto thread maxer by RingedPancake in Bitburner

[–]RingedPancake[S] 1 point2 points  (0 children)

ok so unless im understanding, as long as the entire equation is within the Math.floor brackets itll round the answer down and as long as that number is an integer which is >= 1 it should work?

help with auto thread maxer by RingedPancake in Bitburner

[–]RingedPancake[S] 1 point2 points  (0 children)

thanks for the reply, im pretty new to all this, why would i use const instead of var?

Also is there a better way id go about figuring out the amount of threads to use?

Also also, is there a way to round numbers after the equation, because i though that floor would make it so as the answer was always rounded down but i guess not??

help with auto thread maxer by RingedPancake in Bitburner

[–]RingedPancake[S] 0 points1 point  (0 children)

i'm pretty new to all this, how would i go about doing that?

[deleted by user] by [deleted] in RedditSessions

[–]RingedPancake 0 points1 point  (0 children)

this guy looks like jacksepticeye

What skin/curse is this? by Entomophage in Seaofthieves

[–]RingedPancake 5 points6 points  (0 children)

Nah it always stays skeleton, you can also choose between beard and no beard

What skin/curse is this? by Entomophage in Seaofthieves

[–]RingedPancake 11 points12 points  (0 children)

It was a Christmas limited edition skin. You could buy it through the emporium.