-
-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
require() crashes vita #30
Comments
That should allow require usage. Scripts must be placed in app0: partition. |
Will try this weekend. |
tried, failed. I tried both the 5x and 5.1-5.2 method, they both crash the lpp. I have the dumps but cannot post them here... Anyway its doable to work around with do() so its totally up to you if you wish to hunt for this bug. |
Can you pastebin the exact code you tried? Crashdumps too can be helpful. |
Hey Rinny, I tried these methods : http://lua-users.org/wiki/ModulesTutorial (adapted to vita hello world) the last one was : (there are both methods) index.lua
test.lua
dump : |
You must use "test.lua" or "test" and place the script in app0:. |
this ? |
"test.lua" or "test", not "app0:test"... |
both crash : |
According to the crashdump, it's a issue related to vita-libdl: hyln9/vita-libdl#1 |
Still an issue, I need this dearly for something I'm working on. |
Yes, its still open. I hope this can get fixed some day, currently its not possible to load code w/o executing it directly, which is a huge help for keeping code clean. I tried to work around require() with loadfile() but that also does not work. also load() and the deprecated loadstring() crash it ... seems we have to wait for hyln9 to fix ... :( |
This now works with replaced luajit+libdl. |
Would it be possible to implement/patch the require() function in lua
The text was updated successfully, but these errors were encountered: