Hi, I started learning lua today (:P) and when i try to set a background using Image.load(filename) it gives the error
It is 480x272 exactly and is .png, what is the problem?Code:Image.load: Error loading image
Printable View
Hi, I started learning lua today (:P) and when i try to set a background using Image.load(filename) it gives the error
It is 480x272 exactly and is .png, what is the problem?Code:Image.load: Error loading image
Filename or filepath incorrect? Can you show the exact line of code that gives the error?
background = Image.load("background-night.png")
How are you running the scripts? Is the image in the same folder as the script? Is the script in the same folder as the luaplayer.exe?
The script is in a folder and it is with the image. but the luaplayer is in a different folder.
Can you show the batch file that you are using to run the script?
test.cmd:
Code:luaplayer "Legend of Thuan\index.lua"
If you do it that way, the pictures have to be in the same directory as the exe.
If you have following:
"../luaplayer.exe" index.lua
pause
and the .cmd file in the same directory as the script, the pictures must be in the same directory as the script.
But playing it on the psp gives out the error "libpng error: idat: crc error"?
are u getting the Image.load error in lua for psp? If so what version of Lua Player are u using? I had similar problems when using luaplayer .20, if u are using this version, try using version .16, thats what I had to use to get past that problem in Halo 2d.