![]() |
| Forums | Gaming News | Videos | Downloads | Today's Posts | Mark Forums Read | Chat | FAQ | Members List | Contact |
| ||||||
This is a discussion on Lua help within the PSP Development Forum forums, part of the PSP Development, Hacks, and Homebrew category; how do u load a lot of numbered images quikly i thought it was this Code: for a = 1,1000 ...
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 |
|
how do u load a lot of numbered images quikly
i thought it was this Code:
for a = 1,1000 do
local a
image[a]=Image.load("image"..a".jpeg")
end
please reply for help!! |
|
|
|
|
|
|
#3 | |
|
Guest
Posts: n/a
|
Quote:
|
|
|
|
|
#4 |
|
I did and no one is responding so sorrry!!!! jeezz
|
|
|
|
|
|
|
#6 | |
![]() |
Quote:
Code:
image = {}
I'm learning tables right now...sorry if its wrong. But I'm sure you have to define "image" as a table before using it as one.
__________________
[CENTER][IMG]http://img148.imageshack.us/img148/6985/siglw8.jpg[/IMG][/CENTER] |
|
|
|
|
|
|
#7 | |
![]() |
Quote:
Code:
image = {}
for a = 1,1000 do
image[a]=Image.load("image" .. a .. ".png")
end
And for pete's sake people, is it really that hard to just freakin help someone instead of posting useless crap? It really makes me sick.
__________________
[url=http://profile.mygamercard.net/b0xx0r][img]http://card.mygamercard.net/gelsig/b0xx0r.png[/img][/url] |
|
|
|
|
|
|
#9 | |
![]() |
Quote:
Code:
fatal error in script: "...small bit..." - false or nil value attempt to make true failed It would have been answered, but you would have to spam that thread to get answered anytime soon.. back on topic - BTW, did it work yet?
__________________
[CENTER][IMG]http://img148.imageshack.us/img148/6985/siglw8.jpg[/IMG][/CENTER] |
|
|
|
|
|
|
#10 |
![]() |
you forgot to add 1 to variable a when you go through the loop
__________________
[IMG]http://img121.imageshack.us/img121/3852/untitled1copy7rf.png[/IMG] [IMG]http://img99.imageshack.us/img99/9711/newavatarjb9.gif[/IMG] [URL=http://forums.qj.net/showthread.php?t=9733][COLOR=DarkRed]Operation Positive Posting[/COLOR][/URL] [URL=http://forums.qj.net/showthread.php?t=49762][COLOR=Red]Guide to All Guides[/COLOR][/URL] [URL=http://forums.qj.net/showthread.php?t=13798][COLOR=Blue]Posting Guidelines[/COLOR][/URL] [URL=http://forums.qj.net/showthread.php?t=4394][COLOR=Green]Piracy Policy[/COLOR][/URL] [SIZE="3"][URL=http://forums.qj.net/f-general-psp-help-22/t-guide-opening-psp-disassembly-assembly-video-104303.html][COLOR=Red][B][U]PSP Disassembly Assembly Video Tutorial[/U][/B][/COLOR][/URL][/SIZE] |
|
|
|
|
|
#11 | |
![]() |
Quote:
.
__________________
[url=http://profile.mygamercard.net/b0xx0r][img]http://card.mygamercard.net/gelsig/b0xx0r.png[/img][/url] |
|
|
|
|
|
|
#12 |
|
i no i have to add one but it wasnt working for me
|
|
|
|
|
|
|
#13 |
|
heres the code i have
Code:
image = {}
for a = 1,1362 do
local a
image[a]=Image.load("image" ..a.. ".jpeg")
end
attempt to concatenate local 'a' (a nil value) |
|
|
|
|
|
|
#14 |
![]() |
remove that local part. if that doesnt work try converting a to a string like below
Code:
image = {}
for a = 1,1362 do
image[a]=Image.load("image" ..tostring(a).. ".jpeg")
end
__________________
My lua tutorials for PSP - [url=http://www.evilmana.com/tutorials]www.evilmana.com/tutorials[/url] [B]PSP Lua CodeBase[/B] - Add your own code examples to the codebase! - [url=http://evilmana.com/tutorials/codebase/]www.evilmana.com/tutorials/codebase/[/url] |
|
|
|
|
|
#15 |
|
i tied pspmillionairs ideas and both get
error loading image error |
|
|
|
|
|
|
#16 |
![]() |
You get an image loading error because, as I said earlier, you cannot load JPEGs, only PNGs.
__________________
[url=http://profile.mygamercard.net/b0xx0r][img]http://card.mygamercard.net/gelsig/b0xx0r.png[/img][/url] |
|
|
|
|
|
#17 | |
![]() |
Quote:
go over to pspdevwiki and see. try changing the photo extension from jpeg to jpg
__________________
[CENTER][IMG]http://img148.imageshack.us/img148/6985/siglw8.jpg[/IMG][/CENTER] |
|
|
|
|
|
|
#18 |
![]() |
I think the error is due to the amount of images being loaded.
That's really an unreasonable amount of images to load for luaplayer.
__________________
My lua tutorials for PSP - [url=http://www.evilmana.com/tutorials]www.evilmana.com/tutorials[/url] [B]PSP Lua CodeBase[/B] - Add your own code examples to the codebase! - [url=http://evilmana.com/tutorials/codebase/]www.evilmana.com/tutorials/codebase/[/url] |
|
|
|
|
|
#19 |
|
your probly right ill try to reduce the number of images
thx for the help |
|
|
|
|
![]() |
| Tags |
| lua |
| Thread Tools | |
|
|