← Home ← Back to /bant/

Thread 23088110

7 posts 2 images 3 unique posters /bant/
Anonymous (ID: U7Vdpc+q) United States No.23088110 >>23088161
I wrote a scripterino to do a thingerino

infinitely scaleable or whatever
Anonymous (ID: Msg2qqhk) United States No.23088161
>>23088110 (OP)
nice image
Anonymous (ID: U7Vdpc+q) United States No.23088164 >>23088545
no longer need to edit le hackerino script anymore (bitburner) I can now assign it to hack WHATEVER and etcetera

I'm using an inefficient script while my RAM is low. I also realized that I can just put 32 gb servers in one collection as ports don't actually matter, I can open all 5 even if only 1 needs to be opened.

thinkerino I'll make the jump to 1024 gb (2^10)

then 2^15 and lastly 2^20
Anonymous (ID: U7Vdpc+q) United States No.23088545 >>23089081
>>23088164
oopsie poopsie!

spoke too soon, args didn't work I'll have manually write a zillion hack scripterinos
Anonymous (ID: U7Vdpc+q) United States No.23088792
at this point the inefficient RAM scripterino doesn't look to badderino when I'll be creating 25 individual scripterinos to run at once
Anonymous (ID: Lx/jTTFS) United Kingdom No.23089081 >>23089091
>>23088545
can I see your script? I just took a look at bitburner (looks fun!)
if it's helpful to you, args works like this:

//hack.js
export async function main(ns){
const host = ns.args[0];
ns.tprintf("hacking %s...", host);
while(true){
const earned = await ns.hack(host);
ns.tprint("hacked %s from %s", earned, host);
}
}

>run hack.js "n00dles"

a cool thing to do might be to have your script load the hostnames you're hacking from an external file at the start of each iteration of your main loop (maybe that's what you're doing already?)
then you can just edit the hostnames.txt file with newly-hacked servers, whilst keeping your hack script running the whole time
Anonymous (ID: Lx/jTTFS) United Kingdom No.23089091
>>23089081
that last tprint needs to be tprintf I think, my bad