-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hack-manager.js sleep loop? #9
Comments
Could you please send the logs of the script when it enters this inactive state? |
Of course, now that I post about it, it doesn't go into the inactive state. From what I remember, beccause I /did/ check the logs, it would do an available ram check then sleep and just cycle through all the servers doing that: ram check; sleep, etc. I will definitely post the logs when/if it goes back into that state. |
This is what the log looks like during the inactive phase. I don't know if there's a way to turn up the verbosity.
|
I am running into the same issue following the string below.
|
Change all the ns.scp "await ns.scp('targeted-weaken.js', "home" , server)" |
The last two replies are for a separate problem. The scp parameter order is switched, and
|
I couldn't find where these calls were coming from, but I inserted ns.print()s and found theyre at
|
Solved it. Need to apple Math.floor() to hack_threads, weaken_threads, and grow_threads at line 173, before the first if in the whileloop. If you dont, they can be an arbitrarily small number like 0.08375643, which is too small for a single thread, and itll catch you in the loop. and since youve used up as much space as possible in the first iteration, you always get a number <1. |
When I use
hack-manager.js
it fills up the queues in the Active Scripts tab. But then, after a while, it seems to "finish" and only the originalhack-manager.js
is running with no child scripts on other servers. If I killhack-manager.js
and run it again, it fills up the queues and makes a bunch of money, then lulls to zero again.Would appreciate if someone could at least explain what might be going on here. Is this likely because of low server money? High security? What gives.
TIA
The text was updated successfully, but these errors were encountered: