fokije.blogg.se

Github bitburner scripts
Github bitburner scripts










github bitburner scripts
  1. #Github bitburner scripts upgrade
  2. #Github bitburner scripts code
  3. #Github bitburner scripts free
github bitburner scripts

The suggestion for pulling the script names out to const variables is a great one and I can create a commit for that no problem. I also agree that the use of parallel arrays in this case is less useful than using a JSON style array of objects but this was what he was comfortable with at the time. I agree with you though that using Array.map(), Array.filter(), or even Array.reduce() in some cases would be a better implementation. Specifically the hack-manager.js was written by him. I was teaching him that he could replace his for loops with forEach for a cleaner look and easier use.

#Github bitburner scripts code

Part of the reason why the code uses Array.forEach() in a lot of places is because the friend I was working with on this was very new to Javascript, albeit not new to programming in general, not to mention that if you are not going to do anything with the array returned by map then forEach is correct as seen here. Sleep: Sleeping for 1000853.3925472543 millisecondsīut I still get the same error when running the scripts on a machine with 16TB RAM.It always wants 6887 threads to run and I am not deep enough in JS to determine why. GetServerMinSecurityLevel: returned 9.000 for omega-netĮxec: Cannot run script 'targeted_grow.js' (t=6887) on 'home' because there is not enough available RAM!Įxec: Cannot run script 'targeted_weaken.js' (t=932) on 'home' because there is not enough available RAM! GetServerSecurityLevel: returned 28.000 for 'omega-net' Thanks!Īt first, there are some script-names wrong "-" instead of "_".I tried the "hack-manager.js" with my homeserver with 64GB and get this error: We will still help with issues and respond to any comments made on this post but its easier for us to keep track of the issues on the repository. If any further issues occur we would like to kindly request that you submit an issue on the repository here. Special thanks to u/1lluminist, u/MirkWoods, u/Averath, and abraxas86 on GitHub for bringing these issues to our attention! This should replace the temporary fix above when completed. We are working on a new feature of the script that will cause it to run in " Small Hack Mode" should you not have enough RAM to run it optimally. If you do not have enough RAM to run the script, it now tells you how much RAM you need in the logs. It will no longer delete existing servers that have RAM greater than or equal to the RAM of the new servers.įixed the " Takes x number of arguments" error. It will now ask to delete the existing smallest RAM servers if there is not enough server slots available to complete the purchase. Less servers means more RAM per server, more servers means less RAM per server. The RAM for each server is based on the number of servers you request. NumServers is now an argument you can pass in which is the number of servers you would like to purchase.

#Github bitburner scripts free

The script will now kill itself to free up RAM if there are no more nodes to purchase or upgrade. MaxNodes allows you to set the maximum number of nodes you want to buy and upgrade. Pct sets the percentage of your money that you want to use as a threshold for buying and upgrading nodes. Pct and maxNodes are now arguments you can pass in. The changes are outlined in the README and commits but I'll leave a summary here. My friend u/WEBDatBoy also pushed up changes to the hack-manger script that should resolve the errors mentioned in the comments. Hey everyone! I just pushed up a ton of changes regarding both the hacknet-upgrades and buy-servers scripts that address the pain points mentioned in the comments. If there are no ns.hacknet Nodes, we can't do anything, so the script ends. getServerMoneyAvailable ( "home" ) >= reserveMoney Buy first ns.hacknetNode if there are none print ( 'Waiting to purchase next upgrade.' ) disableLog ( "getServerMoneyAvailable" )

#Github bitburner scripts upgrade

Number of times to upgrade (shouldn't have to change this) We will not buy anything if there's less money than this ammount There is an option to set the budget limit. If the cost of the next upgrade is higher thanīuying a new ns.hacknet Node, then a new one will be bought before the last one This script will buy a ns.hacknet Node, fully upgrade it and then buy the next This script requires 5.70 GB of RAM to run for 1 thread(s) Latest version of this script should be at Ns.hacknet-auto.script for Bitburner v0.47.2












Github bitburner scripts