![]() Either usage will cause the game to freeze until the browser or OS recovers and reloads the application.įor (var i=0 i < map. It does not matter if I try to concat the result or push the elements from the new result individually. I will then crawl the cleaned map array above and scan each element for new nodes, the results of which are also cleaned to splice out redundant entries (a stage I haven't reached yet due to spending all day trying to figure out this issue). Var map = cleanMap(ns.scan(h)) // where h = "home"ĬleanMap() is just an array scroll function that splices out home and purchased servers. I have a working project that loads entries from a data table puts them into an array that appears and is interactable in game. Asking for help, clarification, or responding to other answers. I start with a scan of the home server which is the first array. Thanks for contributing an answer to Stack Overflow Please be sure to answer the question.Provide details and share your research But avoid. Attempting to concat or push arrays with normal numbers and strings seem to work fine. This happens in both the web and Steam versions of the game and only when merging arrays resulting from ns.scan calls. But for some reason, whenever I try to run the script with either concat() or push() used to merge results from two resulting scan arrays (or array elements), the game will stop responding. Once its done it will launch the hacking script with the max threads it can use. script. The worm will open ports, obtain root and copy the worm to the servers connected to it. Mathuin 12:04am How to pass an array as args in ns.exec () let myargs 'foo' ns.exec ('script.js', 'home', 1, myargs) This throws an error like this: Only strings, numbers, and booleans can be passed as arguments to other scripts. If you skipped the introductory tutorial, then ignore the part above. You just need to run worms.ns with up to 5 servers (arguments) that you want to target. For example, both of the following are valid solution formats: 1,2,3 1,2,3 However, if the solution is a multidimensional array, then all arrays that are not the outer-most array DO require the brackets. I have been trying to stage my own node crawling script. There are two ways to do this: You can go to the Terminal and enter: kill n00dles.script You can go to the Active Scripts page ( Keyboard shortcut Alt + s) and press the Kill Script button for n00dles.script. ![]() I am new to Bitburner and to this subreddit.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |