yes, that would be why.
i recommend learning C instead. It isn't very much harder, and it is easy to port lua to C.
if you want to learn, go to www.psp-programming.com
i have a game i have written in lua. i load images at the start of each script , i have one for the game, menu and scores screens. each one loads 7-8 images aprt from scores.
my question is is there a limit to images loaded ? and if so is there a way to clear the memory, as i keep getting errors and the only possible reason seems to be im loading to many images in each script or $#@!ulativley over the 3 .
edit:it works fine on the pc lua player but returns errors on the psp
yes, that would be why.
i recommend learning C instead. It isn't very much harder, and it is easy to port lua to C.
if you want to learn, go to www.psp-programming.com
no real limit on no. of images in lua,but
sounds like RAM overflow. At the end of
each script, undefine any images no longer
needed (eg level1Background = nil) and the
garbage collector should free up memory for you
automatically
*EDIT* making images local to the script
would have the same effect
pleasure, btw theres loads of good lua stuff at evilmana
lol im actually using that site anyway. one more question. i have a lua game id like to release here how do i do that? its not a standalone, just a folder to go in apps and works with lua player 0.16 best, o.20 returns a lot of random errors for no reason.
Just release it in the develoment forum
Come Visit Homebrew Heaven, Where you'll find the latest gaming news and downloads!
View My Coding Blog
The Return of The Lounge!
Mario Gold Rush
Current C++ Project: To be Announced soon on Homebrew Heaven
Currently Coding in: C++ for the PSP
You can post it in the Submit News forum.
If you're talking about how to boot it without having to play it from Lowser, here's how:
1- Open up the System\system.lua
2- ReplacewithSystem.currentDirectory("Applications")
appsDir = System.currentDirectory()
System.currentDirectory("Lowser")
dofile("index.lua")
It should autoplay without having to play it from Lowserdofile("script.lua") <---- Your index script file..
When doing that you can get rid of the "Lowser" folder.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks