Based on viewtopic.php?f=9&t=213&hilit=luap
I tried to export the file from the LuaScripts.luap file but the package released for xbox360 is different.
If I use the script for pc works but on luap cannot find anything also if I think that the file package is similar as I can see that some things are very similar.
Experimenting showed that the FILES variable with the luap file from xbox360 it is a long number negative -1358954496
instead on the pc for the same file is 321 (the size is different).https://filetransfer.io/data-package/Dfy0Gtrs#link
At that link there is a zip package with the pc version and the xbox360 to do a comparison and in the meantime I will keep investigating, but I am not sure about what are the difference, if files is negative the loop doesn't work, if I force the loop with a fixed number there is another error Can't read 12 bytes from offset 5f0e0000.
I tested comtype-scan.bms with no results, wondering if the file is signed so cannot scan like the pc version.