jakibaki / sys-netcheat

Open-source cheat-engine for the Nintendo Switch.
GNU General Public License v3.0
225 stars 23 forks source link

Lua scripts don't return on v6.1 #26

Open komen720 opened 5 years ago

komen720 commented 5 years ago

I compiled a master@b5817b8 version of the kipfile for Lua scripting support and used it on my Switch. Everything worked fine, but the "luarun" command always would never return anything (it wouldn't give me back a > prompt until I sent SIGINT and re-connected via netcat). I tried both with a local HTTP server and with a script that I transferred to the device's SD card root. I even tried with a completely blank script except for comments, and a script that just had a "print" statement.

My webserver logs say that the file was accessed when I tried to luarun that way, so it seems like the file was at least downloaded, but I could never get any further than that.

komen720 commented 5 years ago

I did some more experimenting and doing luarun http://pastebin.com/raw/CX6RSeYH also hangs (the example script in the docs), though for every hang like that I can still type "stop" and the lua thread will be stopped with "Sucessfully terminated lua-script!".

I also tried it on OFW 6.1 and got the same results so I'm updating the title to remove atmosphere since it doesn't seem to be specific to that.