Maybe wrong format, since you load them as dtype="int32". The problem seems to be in your second picture. Additional arguments to pass into the new script that is being run. I start with a scan of the home server which is the first array. The files argument can be either a string specifying a single file to copy, or an array of strings specifying multiple files to copy. Copies a script or literature (.lit) file(s) to another server. numThreads (number) Optional thread count for new script.Set to 1 by default. Attempting to concat or push arrays with normal numbers and strings seem to work fine. If the files argument is an array then this function will return false if any of the operations failed. RUNTIME ERROR /factions/work.jshome Failed to resolve module specifier " /My Drive/Games/Bitburner. So, here is how I would write what you are trying to do. It also seems to have extra steps that you don't need to do, if I'm understanding your intent correctly. hostname (string) Hostname of the target server on which to execute the script. When I try to run this script it gives the following error. Your code seems to just look at the length of the array, but not the values of the array. 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. Then I tried to iterate through a file and get all the images from it and then see how many red, green and blue pixels it has to see what is the main color of the image and I tried this: import numpy as npĪrray_img = np.asarray(image, dtype="int32") Arguments: script (string) Filename of script to execute. 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). So I tried to convert an image to an array with PIL and NumPy. The script keep buying nodes until it matches the amount of (variable of quantity I want) first, then it starts to increase the stats of the first node to max then so on and so on.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |