Lua Programming Help Thread
This is a discussion on Lua Programming Help Thread within the PSP Development Forum forums, part of the PSP Development, Hacks, and Homebrew category; Btw I had a question that never got answered. Can someone tell me what I'm doing wrong? I'm an idiot ...
-
01-26-2007, 06:35 PM #5281QJ Gamer Blue
- Registriert seit
- Sep 2006
- Ort
- In a cave according to SG57 lol
- Beiträge
- 273
- Points
- 4.917
- Level
- 44
- Downloads
- 0
- Uploads
- 0
Btw I had a question that never got answered. Can someone tell me what I'm doing wrong? I'm an idiot when it comes to raw scripting. :ROFL:
Lua Programming Help Thread
^ It's here ^
-
01-26-2007, 06:57 PM #5282QJ Gamer Blue
- Registriert seit
- Jul 2006
- Beiträge
- 72
- Points
- 4.209
- Level
- 41
- Downloads
- 0
- Uploads
- 0
You could do it right before you blit flower to the screen, or anywhere in the while true loop. Just make the x coordinate for "flower" a variable, and increase or decrease it depending on how you want to move it. You can do the same for the y coordinate
Zitat von ZeroMega
-
01-26-2007, 10:52 PM #5283QJ Gamer Silver

- Registriert seit
- Oct 2006
- Ort
- Pimp'en in the US F#
- Beiträge
- 1.254
- Points
- 7.278
- Level
- 56
- Downloads
- 0
- Uploads
- 0
does any body have a bullet or "projectile" system that i can use thats simpler than the evilmana one? Because i can't seem to get that one to work with collision, its giving me a headache Thanks for your help
NEWMy New BLOG!NEWThe Wentire Worls in two Sectors....When did I get dev statz?
Spoiler for my PSP homebrewReleases:Spoiler for Great Quotes:
-
01-26-2007, 10:58 PM #5284words are stones in my <3

- Registriert seit
- Jul 2005
- Ort
- Spokane
- Beiträge
- 5.008
- Points
- 35.274
- Level
- 100
- My Mood
-
- Downloads
- 1
- Uploads
- 0
Hey - Does anyone know how to clear an image of all drawings, but keep the image? Ive tried re-loading it via:
Code:clean_guy = Image.load("guy.png") guy = clean_guy ... -- draw some stuff on guy.. like a line or if i clear it guy:clear() -- now i want to get it back to clean image... ive tried: guy = clean_guy -- but it doesnt work...
...at what speed must I live.. to be able to see you again?...
Projects
You can support my Open World 3D RPG for PSP by voting for it here
-
01-26-2007, 11:17 PM #5285
... eh?Hey - Does anyone know how to clear an image of all drawings, but keep the image?
???Code:guy = Image.createEmpty(clean_guy:width(), clean_guy:height())
-
01-26-2007, 11:19 PM #5286words are stones in my <3

- Registriert seit
- Jul 2005
- Ort
- Spokane
- Beiträge
- 5.008
- Points
- 35.274
- Level
- 100
- My Mood
-
- Downloads
- 1
- Uploads
- 0
BlackShark - Make your own. I did for my Call of Duty 2 game - it's not as hard as you think... Just sit down and thik rationally about what you want to do, and think of methods to make it work... If all else fails, take someone elses projectile system, but i hope you realize most bullet systems are game specific... If you arent making a side scrolling shooter, then dont use a side scrollers bullet system. IF you arent making a game with a fake Z buffer, dont use a bullet system from such a game...

...at what speed must I live.. to be able to see you again?...
Projects
You can support my Open World 3D RPG for PSP by voting for it here
-
01-27-2007, 12:29 AM #5287QJ Gamer Silver

- Registriert seit
- Oct 2006
- Ort
- Pimp'en in the US F#
- Beiträge
- 1.254
- Points
- 7.278
- Level
- 56
- Downloads
- 0
- Uploads
- 0
Ill give it a try, thanks (its a 2d space shooter, shouldn't be too hard)
NEWMy New BLOG!NEWThe Wentire Worls in two Sectors....When did I get dev statz?
Spoiler for my PSP homebrewReleases:Spoiler for Great Quotes:
-
01-27-2007, 04:43 AM #5288QJ Gamer Green
- Registriert seit
- Dec 2005
- Ort
- Here
- Beiträge
- 2.715
- Points
- 13.310
- Level
- 75
- Downloads
- 0
- Uploads
- 0
how about loading the same image under two variables? one to mess around with and another to switch back to normal with.
Zitat von SG57
i know its not the most creative way to do it, but it is A way. (i have no doubt you'll come up with something inventive soon thoughCode:clean_guy = Image.load("guy.png") other_guy = Image.load("guy.png")
)
[CENTER][IMG]http://img148.imageshack.us/img148/6985/siglw8.jpg[/IMG][/CENTER]
-
01-27-2007, 04:54 AM #5289QJ Gamer Blue
- Registriert seit
- Feb 2006
- Ort
- Pluto
- Beiträge
- 490
- Points
- 7.244
- Level
- 56
- Downloads
- 0
- Uploads
- 0
Hi guys, just wondering if anyone could point me in the right direction to learn wifi/netlib for the psp, i already know LUA and im in the process of planning an online community chat game/world for the psp but im having trouble with the wifi side of things

Help is really appreciated
-- Thanx, Dean
-
01-27-2007, 05:52 AM #5290QJ Gamer Silver
- Registriert seit
- Oct 2006
- Ort
- 貴方
- Beiträge
- 1.159
- Points
- 7.371
- Level
- 57
- Downloads
- 0
- Uploads
- 0
thats what im working on...
Zitat von Blackshark
-
01-27-2007, 06:40 AM #5291QJ Gamer Green
- Registriert seit
- Dec 2005
- Ort
- Here
- Beiträge
- 2.715
- Points
- 13.310
- Level
- 75
- Downloads
- 0
- Uploads
- 0
http://wiki.ps2dev.org/psp:lua_player
Zitat von Deanaw22
go to special functions of luaplayer, and at the bottom theres wifi functions. i dont know any netlib, sorry.[CENTER][IMG]http://img148.imageshack.us/img148/6985/siglw8.jpg[/IMG][/CENTER]
-
01-27-2007, 08:22 AM #5292QJ Gamer Blue
- Registriert seit
- Jul 2006
- Beiträge
- 72
- Points
- 4.209
- Level
- 41
- Downloads
- 0
- Uploads
- 0
another way is to store the image labels in a table so that they can be accessed with a variable. what I mean is
Zitat von EminentJonFrost
then you can change a variable "x" between 1 and 2 and then blit the image with "screen:blit(0, 0, guy[x])Code:guy[1]=Image.load(img) guy[2]=Image.load(same img)
-
01-27-2007, 09:55 AM #5293Ponies and Unicorns
- Registriert seit
- Aug 2006
- Ort
- Pelennor Fields
- Beiträge
- 547
- Points
- 5.778
- Level
- 49
- Downloads
- 0
- Uploads
- 0
Ok guys need some help, Im making a lil game here to test my collision skills and i get this error
error: script.lua:18: loop in gettable
I think it might be because I have a lot of random calculating going on help plz
Spoiler for Fish Dish:If you play WoW come find me on DOOMHAMMER (US) I am Human mage lvl 64 Atrana is the name (dont ask for runs!)
Gold donations are highly appreciated!
-
01-27-2007, 10:06 AM #5294QJ Gamer Blue
- Registriert seit
- Feb 2006
- Ort
- Pluto
- Beiträge
- 490
- Points
- 7.244
- Level
- 56
- Downloads
- 0
- Uploads
- 0
Thanx alot pal! :)
Zitat von EminentJonFrost
-
01-27-2007, 11:17 AM #5295QJ Gamer Green
- Registriert seit
- Jul 2006
- Ort
- Middle Europe
- Beiträge
- 1.281
- Points
- 11.800
- Level
- 71
- Downloads
- 0
- Uploads
- 0
pls can anyone tell whats the function to copy file from one location to other location???
like from ms0:/folder1 to ms0:/folder2[1 Year QJ Member]
[LUA Coder and C Learner]
[Ball Revamped Clone v0.1]
[Phil's Shooting Range v0.3]
[HideFile PRX v2]
[SSR PRX v1.1]
-
01-27-2007, 11:48 AM #5296QJ Gamer Blue
- Registriert seit
- Jan 2007
- Ort
- U.S.
- Beiträge
- 405
- Points
- 7.014
- Level
- 55
- Downloads
- 0
- Uploads
- 0
Can anyone tell me how to make a block of text that can be scrolled down to show more? I hope that makes sense....
-
01-27-2007, 12:07 PM #5297
Zitat von GuitarGod1134
blit your text to a an image and have that image blit cliped, then just move the x of the clip up and down to "scroll".
Zitat von andyuff
-
01-27-2007, 12:09 PM #5298Ponies and Unicorns
- Registriert seit
- Aug 2006
- Ort
- Pelennor Fields
- Beiträge
- 547
- Points
- 5.778
- Level
- 49
- Downloads
- 0
- Uploads
- 0
Lol wow simple spelling error lol thanks.
If you play WoW come find me on DOOMHAMMER (US) I am Human mage lvl 64 Atrana is the name (dont ask for runs!)
Gold donations are highly appreciated!
-
01-27-2007, 12:10 PM #5299QJ Gamer Blue
- Registriert seit
- Jan 2007
- Ort
- U.S.
- Beiträge
- 405
- Points
- 7.014
- Level
- 55
- Downloads
- 0
- Uploads
- 0
Yeah, that's the one way I had thought of, thanks. I guess I'll go ahead and do that.
-= Double Post =-
Oh and how would I clip the image?Geändert von andyauff (01-27-2007 um 12:10 PM Uhr) Grund: Automerged Doublepost
-
01-27-2007, 12:11 PM #5300Ponies and Unicorns
- Registriert seit
- Aug 2006
- Ort
- Pelennor Fields
- Beiträge
- 547
- Points
- 5.778
- Level
- 49
- Downloads
- 0
- Uploads
- 0
ok one more thing how do i use transparency when blitting. its something like
screen:blit(0,0,bla,true) or something right?If you play WoW come find me on DOOMHAMMER (US) I am Human mage lvl 64 Atrana is the name (dont ask for runs!)
Gold donations are highly appreciated!
-
01-27-2007, 12:16 PM #5301
clip and image:
Zitat von Lua wiki
look at the above quote from the ps2dev wiki, [alpha = true].
Zitat von GuitarGod1134
System.rename("ms0:/folder0/file.file", ms0:/folder1/file.file")
Zitat von myschoo
.... may work, but i don't think it will.
-
01-27-2007, 12:32 PM #5302QJ Gamer Blue
- Registriert seit
- Jan 2007
- Ort
- U.S.
- Beiträge
- 405
- Points
- 7.014
- Level
- 55
- Downloads
- 0
- Uploads
- 0
That will clip it, but how will I be able to show the rest if it's clipped off? Thanks for all the help, by the way.
-
01-27-2007, 12:44 PM #5303Ponies and Unicorns
- Registriert seit
- Aug 2006
- Ort
- Pelennor Fields
- Beiträge
- 547
- Points
- 5.778
- Level
- 49
- Downloads
- 0
- Uploads
- 0
I already looked at wiki and it didnt really explain how to use it. doesn anyone know an example?
If you play WoW come find me on DOOMHAMMER (US) I am Human mage lvl 64 Atrana is the name (dont ask for runs!)
Gold donations are highly appreciated!
-
01-27-2007, 12:44 PM #5304QJ Gamer Green
- Registriert seit
- Dec 2005
- Ort
- Here
- Beiträge
- 2.715
- Points
- 13.310
- Level
- 75
- Downloads
- 0
- Uploads
- 0
Zitat von andyauff
to blit the whole image same function, less input.Code:image:blit(x, y, imagesource)
and the function eyece put doesnt 'clip' it off, rather copies a portion of an image.[CENTER][IMG]http://img148.imageshack.us/img148/6985/siglw8.jpg[/IMG][/CENTER]
-
01-27-2007, 12:47 PM #5305QJ Gamer Green
- Registriert seit
- Jul 2006
- Ort
- Middle Europe
- Beiträge
- 1.281
- Points
- 11.800
- Level
- 71
- Downloads
- 0
- Uploads
- 0
its strange but somehow it works in PC but not very well in PSP, but sill, that renaming, i needd copy from --> to
[1 Year QJ Member]
[LUA Coder and C Learner]
[Ball Revamped Clone v0.1]
[Phil's Shooting Range v0.3]
[HideFile PRX v2]
[SSR PRX v1.1]
-
01-27-2007, 12:48 PM #5306QJ Gamer Green
- Registriert seit
- Dec 2005
- Ort
- Here
- Beiträge
- 2.715
- Points
- 13.310
- Level
- 75
- Downloads
- 0
- Uploads
- 0
transparency when blitting...i dont know how to do that. but whats wrong with giving the image a transparency yourself so you wont have to worry about it?
Zitat von GuitarGod1134
[CENTER][IMG]http://img148.imageshack.us/img148/6985/siglw8.jpg[/IMG][/CENTER]
-
01-27-2007, 12:48 PM #5307Ponies and Unicorns
- Registriert seit
- Aug 2006
- Ort
- Pelennor Fields
- Beiträge
- 547
- Points
- 5.778
- Level
- 49
- Downloads
- 0
- Uploads
- 0
I know how to blit images. I need to know how to blit them with transparent backgrounds
If you play WoW come find me on DOOMHAMMER (US) I am Human mage lvl 64 Atrana is the name (dont ask for runs!)
Gold donations are highly appreciated!
-
01-27-2007, 12:50 PM #5308QJ Gamer Green
- Registriert seit
- Dec 2005
- Ort
- Here
- Beiträge
- 2.715
- Points
- 13.310
- Level
- 75
- Downloads
- 0
- Uploads
- 0
what do you mean by 'but not very well in PSP'?
Zitat von myschoo
[CENTER][IMG]http://img148.imageshack.us/img148/6985/siglw8.jpg[/IMG][/CENTER]
-
01-27-2007, 12:52 PM #5309QJ Gamer Blue
- Registriert seit
- Jan 2007
- Ort
- U.S.
- Beiträge
- 405
- Points
- 7.014
- Level
- 55
- Downloads
- 0
- Uploads
- 0
Okay, I'll try it, thanks.
-
01-27-2007, 12:52 PM #5310QJ Gamer Green
- Registriert seit
- Dec 2005
- Ort
- Here
- Beiträge
- 2.715
- Points
- 13.310
- Level
- 75
- Downloads
- 0
- Uploads
- 0
use an image editing program. i use The GIMP. :)
Zitat von GuitarGod1134
its like Photoshop for the poor!
[CENTER][IMG]http://img148.imageshack.us/img148/6985/siglw8.jpg[/IMG][/CENTER]


LinkBack URL
About LinkBacks
Mit Zitat antworten

Hello everyone I am new here and I am glad to be part of this amazing community and I think there...
New to forum