Search found 76 matches

by Altair
Mon May 14, 2007 11:21 pm
Forum: PSP Lua Player Development
Topic: Music in lua game
Replies: 4
Views: 4515

yep you have to convert them. You can use modplug or something like that to do it, but I never really got it to work. Best thing you can do is download music in mod format from http://modarchive.org/index_1.php.
by Altair
Mon May 14, 2007 11:16 pm
Forum: PSP Lua Player Development
Topic: [LUA] How to walk out screen and see new land ?
Replies: 2
Views: 3902

The thing you're looking for is called "scrolling".
by Altair
Thu Apr 26, 2007 2:48 am
Forum: PSP Lua Player Development
Topic: Why the 512 limit on images
Replies: 6
Views: 6539

That limit is only for png's. JPG's can be larger, but I don't know what the limit on them is, my biggest image I've blitted is 1000x1000.
by Altair
Sat Mar 31, 2007 9:57 pm
Forum: PSP Lua Player Development
Topic: finding | in string
Replies: 1
Views: 3056

I know this function that was made by LuMo. function explode(text_ex, needle) local array={} _, count = string.gsub(text_ex, needle, needle) for index=1,count+1 do i, j = string.find(text_ex, needle) if i == nil or j==nil then i=0 j=0...
by Altair
Sat Mar 31, 2007 9:52 pm
Forum: PSP Lua Player Development
Topic: bitwise operands
Replies: 2
Views: 3208

i guess nobody knows... atleast I don't
by Altair
Mon Mar 19, 2007 3:57 am
Forum: PSP Lua Player Development
Topic: fillrect transparancy and screen as image
Replies: 2
Views: 3276

yeah i would like to be able to do a transparant fillrect. I have the same problem. I think it's just not possible.

Don't know about the other question. I still use 0.16
by Altair
Sat Feb 24, 2007 11:06 pm
Forum: PSP Lua Player Development
Topic: collision help
Replies: 9
Views: 6269

And this is all of your code? That would mean it would be this line:

Code: Select all

playerWidth = 90 
Right?

I don't see anything wrong with that.
by Altair
Wed Feb 21, 2007 4:46 am
Forum: PSP Lua Player Development
Topic: collision help
Replies: 9
Views: 6269

Nope it cant be 15. Just run the game and see what the error says, complete with line number and post it here. Maybe then we can help you
by Altair
Tue Feb 20, 2007 2:08 am
Forum: PSP Lua Player Development
Topic: collision help
Replies: 9
Views: 6269

What line is the error on?
by Altair
Tue Feb 20, 2007 2:00 am
Forum: PSP Lua Player Development
Topic: 0.20 wlan over secured connection
Replies: 6
Views: 6500

I have a WEP secured connection at my parents and netlib worked overthere.
by Altair
Fri Feb 09, 2007 8:28 am
Forum: PSP Lua Player Development
Topic: Framerate independence?
Replies: 1
Views: 2577

I guess you could do something like this: Instead of: screen.waitVblankStart() screen.flip() You could use a timer (normally the PSP runs at 100Hz I believe? Anyway with screen.waitVblankStart() it refreshes every 1/60th second -> 60 Hz): if timer > whatever you want ...
by Altair
Wed Feb 07, 2007 1:09 am
Forum: PSP Lua Player Development
Topic: Pressing buttons?
Replies: 14
Views: 8920

yeps it should, but that wasn't really what it was about
by Altair
Tue Feb 06, 2007 9:04 am
Forum: PSP Lua Player Development
Topic: Pressing buttons?
Replies: 14
Views: 8920

Ah yeah I see now. However yours reads the controls twice, which isn't necessairy. However for the rest it's the same, you're right.
by Altair
Tue Feb 06, 2007 7:18 am
Forum: PSP Lua Player Development
Topic: Pressing buttons?
Replies: 14
Views: 8920

Can't believe nobody posted this solution. Everybody use's it as far as I knew: pad = Controls.read() if pad~=oldpad then -- put the button stuff here. end oldpad = pad What this does is, it stores the old button state and checks if it differs from what it is know. Only then it will ...
by Altair
Fri Feb 02, 2007 12:24 am
Forum: PSP Lua Player Development
Topic: Map--noob in need
Replies: 2
Views: 3151

1) there are alot of scrolling tuts. It basicly comes down to this. You blit that part of the map to the screen that is visible. What part is visible, depends on where you're ship is. As LUA can't handle bigger png images then 512x512, the map can't be bigger then that, IF you only want to use one i...
by Altair
Fri Jan 26, 2007 7:46 am
Forum: PSP Lua Player Development
Topic: cools'0.20 mp3/ogg mod 3 (or latest if that isn't 3)
Replies: 10
Views: 7209

yeah I just realised my error. I thought it was just a version number of the luaplayer mod, but it apparrently is the version number for the firmware it should run on.
by Altair
Mon Jan 22, 2007 12:44 pm
Forum: PSP Lua Player Development
Topic: cools'0.20 mp3/ogg mod 3 (or latest if that isn't 3)
Replies: 10
Views: 7209

No prob. Why do you need 1.00? What's different/better from 1.5?
by Altair
Mon Jan 22, 2007 2:06 am
Forum: PSP Lua Player Development
Topic: cools'0.20 mp3/ogg mod 3 (or latest if that isn't 3)
Replies: 10
Views: 7209

here ya go:

http://www.MegaShare.com/98509

It's 1.5. Uploaded it to megashare. I know it sucks, but I didn't bother looking for a better one
by Altair
Fri Jan 19, 2007 11:05 pm
Forum: PSP Lua Player Development
Topic: System.usbDiskModeActivate() ?
Replies: 9
Views: 6753

I use ConTEXT. I had used it for programming Java at my university so I already had it. Just downloaded a LUA syntax file for it. Doesn't have auto completion. Just highlights stuff, but it looks nice I think. Never bothered to look for anything else.
by Altair
Fri Dec 22, 2006 10:29 pm
Forum: PSP Lua Player Development
Topic: lua code help
Replies: 4
Views: 3588

Well yeah ofcourse there should be an "end", but not in the place where you put it. The loop should close after all the other stuff you want it to do, so at the end of the code, like be2003 posted.
by Altair
Fri Dec 22, 2006 8:55 am
Forum: PSP Lua Player Development
Topic: lua code help
Replies: 4
Views: 3588

It gets stuck here:

Code: Select all

while true do 
pad = Controls.read() 
screen:clear() 
end 
You put an end there where it shouldn't be. Now you close the while true do-loop and it just stays in it untill it crashes. You should remove it.
by Altair
Wed Dec 20, 2006 12:29 am
Forum: PSP Lua Player Development
Topic: cancelling connecting
Replies: 4
Views: 5470

I would like to know that as well.

[dutch]Wat is dat voor rare site trouwens dat ikhoefgeen.nl?[/dutch]
by Altair
Wed Dec 20, 2006 12:25 am
Forum: PSP Lua Player Development
Topic: LUA Image loading problem
Replies: 9
Views: 5552

No because LUA will see it as one file. It will "paste" all the dofile's into one file so to speak and run that. It's just very hard to have a good animation in LUA. Only thing I can think of is what I said earlier, as one big image with all the smaller one in it, is smaller in filesize th...
by Altair
Mon Dec 18, 2006 9:18 am
Forum: PSP Lua Player Development
Topic: LUA Image loading problem
Replies: 9
Views: 5552

That wont work mesmer, because LUA wont load it fast enough. And it wont load while it displays other images. LUA does things one at a time, unless you use coroutines, i think, but I dont know how that works.
by Altair
Fri Dec 15, 2006 3:23 am
Forum: PSP Lua Player Development
Topic: LUA Image loading problem
Replies: 9
Views: 5552

How big are the images, as in the resolution? If they're not to big, you could put multiple images into one bigger image, like a tileset and blit the seperate images from the bigger one.
Hope you understand, Im kinda in a hurry.
by Altair
Fri Dec 15, 2006 3:16 am
Forum: PSP Lua Player Development
Topic: LUA-RTS-PSP
Replies: 9
Views: 7545

I believe you can name the file whatever you want. LUA will just open it and use it as if it was a LUA file. How did you make the level-based mod? Did you make that made it so that it takes another matrix with heuristic values? I could have given you that one because I made it I just never released ...
by Altair
Sat Dec 02, 2006 3:41 am
Forum: PSP Lua Player Development
Topic: LUA-RTS-PSP
Replies: 9
Views: 7545

Hey cool you're still working on this. I have one suggestion: I ported the A* algorithm to LUA. I'm not sure if you know what it is, so I'll explain what it is anyway. It is an algorithm which searches for the shortest path across the map. It's what all the commercial RTS's use, however they use som...
by Altair
Sat Nov 11, 2006 5:03 am
Forum: PSP Lua Player Development
Topic: v0.20 Errors.
Replies: 6
Views: 4511

Just want to say he didn't call you a noob. He said that about the guy who told him the "BS story".
by Altair
Wed Nov 08, 2006 10:47 am
Forum: PSP Lua Player Development
Topic: Transparancy not working?
Replies: 7
Views: 4510

Hmmm, works for me. If you use this code to fade in and out, it will fade in and out by using transparency and Im on 0.16 (I think). The code I posted is unaltered and is made by Soulkiller BTW. I tested it in some altered form but it works. credits = Image.load("backgrounds/credits.png...
by Altair
Wed Nov 08, 2006 10:41 am
Forum: PSP Lua Player Development
Topic: memory issue
Replies: 18
Views: 8645

and yes to unload it you would do "Duck = nil"