It's pretty easy to just go back and make a for loop to do this, but I'm really curious if anyone else has this issue, or if I'm doing something incorrectly. Is the array returned by ps() not an array or something? ![]() Filter gets a cmd (can be named anything), which is one item in the array. Then we filter the array by checking which of the files exists. bitburner/src/ScriptEditor/NetscriptDefinitions.d. 'file' for the filename, 'func' for the netscript function applying that particular hacking function. The output in terminal is the following: TypeError: predicate must be a function First we declare an array containing several objects that have two fields. Your outer for loop will cause an out-of-bounds access error too, even if you fix this, because i goes from 1 to 3. Hence the 'invalid index' out-of-bounds access error. The lines that do not work, confusingly, are the following: var initialScriptThreads = ps('n00dles').find(script).threads Īnd var initialScriptThreads = ps('n00dles').threads j goes from 0 to 2, so j+1 can take the value 3, which is an invalid index for the matrix (it is a 3x3 matrix, not a 4x4 one). args in the case the updated script would take up too much ram to run one thread. Nesting arrays could only happen if you werent using a variable to store the inner array because references were stored instead of values. In doing so, I use ps() on my target server, then find the script I'm attempting to update in the returned array, then save. Using Cython, I try to do this: cpdef myFun (double : array): cdef int : sortIndices np. ![]() ![]() I only know a bit of js, so I may be making a mistake I'm unaware of.Ĭurrently, I'm trying to make a somewhat comprehensive updater. I just started playing bitburner yesterday, having a blast so far. danielyxie / bitburner Public Notifications Fork 806 Star 2.
0 Comments
Leave a Reply. |