Hi,
I've been using your excellent software for quite a while now and would first like to congratulate you on your great work. Without you guys the PSP homebrew scene wouldn't be as terrific as it is now! [/suckup]
Now for my question. I've coded quite a lot of small projects using v0.16 of the Lua Player soft, but as I saw all those cool new features being added I decided to upgrade to the current latest version, which is v0.20.
After trying to load up one of my homemade games I first encountered an error when I tried to require a .lua file. I fixed this by dofile-ing it.
But then the real problem came up. For some reason a regular Image = Image.load("filename.png") displays (random?) Image.load: Error loading image errors.
Do I need to load all my graphics with the new Image.loadFromMemory function or is the soft having trouble with the resolution of my .png's?
Thanks in advance and keep up the great job,
Gh0sT
Lua Player v0.20 Image.load issues
Moderators: Shine, Insert_witty_name
Re: Lua Player v0.20 Image.load issues
You can use the normal load function, like the demo application Snake does without problems. If you can reproduce it with an image, I can try to fix it.Gh0sT wrote:But then the real problem came up. For some reason a regular Image = Image.load("filename.png") displays (random?) Image.load: Error loading image errors.
Do I need to load all my graphics with the new Image.loadFromMemory function or is the soft having trouble with the resolution of my .png's?
But maybe there is not enough memory, because with Lua Player 0.16 you have about 20 mb for image, programs etc. and with Lua Player 0.20 about 9 mb (try System.getFreeMemory()) . Maybe the reason is that the module loading concept needs to be improved. Meanwhile you can try to minimize your memory usage, e.g. loading only images, when you need it.