Search found 31 matches

by matriculated
Sun Apr 15, 2007 6:26 am
Forum: PSP Lua Player Development
Topic: waiting for button input
Replies: 5
Views: 5622

It does work because I use a slightly modified code in all my programs to pause for input.

Code: Select all

function pause()
  local pad
  repeat
    pad = Controls.read()
    screen.waitVblankStart(5)
  until pad:start()
end
by matriculated
Fri Apr 13, 2007 2:23 am
Forum: PSP Lua Player Development
Topic: waiting for button input
Replies: 5
Views: 5622

pad will never = nil if you do a controls.read

do something like this:

Code: Select all

repeat
  System.sleep(100)
  pad = Controls.read()
until pad:buttons()
This loops until a button (or dpad) is pressed
by matriculated
Thu Mar 29, 2007 12:44 am
Forum: PSP Lua Player Development
Topic: bitwise operands
Replies: 2
Views: 3297

Doesn't anyone come here anymore? :(
by matriculated
Wed Mar 28, 2007 7:12 am
Forum: PSP Lua Player Development
Topic: bitwise operands
Replies: 2
Views: 3297

bitwise operands

I was wondering if anyone can tell me why the bitwise operands were dropped in the newer versions of Lua? TTDLE won't work without them :( Not to mention that this line from the wiki won't work either: Constants for binary operations on buttons() result (for example “Controls.read():buttons() & ...
by matriculated
Mon Mar 26, 2007 9:07 am
Forum: PSP Lua Player Development
Topic: Problems with adding a function to Image
Replies: 1
Views: 2964

Problems with adding a function to Image

I've added a function to Image like this: function Image:printb(x,y,str,clr) and it works ok for images but it won't work for screen:printb. I get "attempt to call method 'printb' (a nil value" I have to explicitly write the exact same routine for screen like this: function screen:printb(x...
by matriculated
Mon Mar 26, 2007 8:54 am
Forum: PSP Lua Player Development
Topic: what happens to a image passed back from a function?
Replies: 2
Views: 3348

Thanks for clearing that up!
by matriculated
Sun Mar 25, 2007 2:07 pm
Forum: PSP Lua Player Development
Topic: what happens to a image passed back from a function?
Replies: 2
Views: 3348

what happens to a image passed back from a function?

I have a function that returns an image. But what happens if I don't assign it to anything - like this: screen:blit(0, 0, gradient(480, 16, white, black)) Where the function, gradient, creates an image of width 480 and height 16 with a color gradient going from white to black. So what happens to the...
by matriculated
Sun Sep 24, 2006 1:11 pm
Forum: PSP Lua Player Development
Topic: System Extension (v0.5,cpu,elf loading,mp3,zip)
Replies: 49
Views: 30262

thanks buddy!
by matriculated
Tue Sep 12, 2006 9:09 am
Forum: PSP Lua Player Development
Topic: System Extension (v0.5,cpu,elf loading,mp3,zip)
Replies: 49
Views: 30262

Please re-host! Or can some else upload this file?
by matriculated
Wed Apr 19, 2006 7:18 am
Forum: PSP Lua Player Development
Topic: Core Project: Lowser rewrite
Replies: 21
Views: 11757

A mouse based gui on a mouseless device is, imho, a horrible, horrible idea. It just doesn't make sense and it's not easy to use at all. I'm not convinced that multiple windows on a small screen device is a very good either. I think an Ipod like interface would work well - it doesn't have a super sl...
by matriculated
Wed Apr 12, 2006 6:31 am
Forum: PSP Lua Player Development
Topic: scale images
Replies: 9
Views: 4585

LuMo wrote: thought there could be an easier way ;)
greets
I hope that's a sign of things to come!
by matriculated
Thu Apr 06, 2006 7:04 am
Forum: PSP Lua Player Development
Topic: Flipping an Image
Replies: 9
Views: 4299

It would probably be faster to just use preflipped images rather than "rendering them".
by matriculated
Sun Apr 02, 2006 4:24 am
Forum: PSP Lua Player Development
Topic: mp3?
Replies: 14
Views: 7072

I wonder if Ahman IRShell's mp3 prx can be used with the new external library support.
by matriculated
Thu Mar 30, 2006 6:06 am
Forum: PSP Lua Player Development
Topic: mp3?
Replies: 14
Views: 7072

So has anyone thought about liquidjin's post? Is it possible to put support for mp3's into Lua legally and without any costs?
by matriculated
Wed Mar 29, 2006 6:16 am
Forum: PSP Lua Player Development
Topic: sockets and ftp
Replies: 1
Views: 1666

Woohoo! Thanks to wikipedia, I finally got some Lua code that logs onto an ftp server and lists the files! I'm on my way.

I never realized how strange and insecure ftp is.
by matriculated
Wed Mar 29, 2006 12:35 am
Forum: PSP Lua Player Development
Topic: Flipping an Image
Replies: 9
Views: 4299

It's possible to flip images but it would be quite slow using Lua. Basically you would create an empty image with the same dimensions as your img. The use the image:pixel(x, y) function to check the color of the pixel in an img but instead of using x you would use img.width - x. You would have to do...
by matriculated
Sat Mar 25, 2006 5:08 am
Forum: PSP Lua Player Development
Topic: Variable creation
Replies: 3
Views: 2099

it would proably be best to use a table for that mayVar_ = {} for i=1, 10 do myVar_[i-1] = "" end im sure theres another way to do that but thats the only one i can thing of right now I don't think your can index an element at 0. It has to start at 1.
by matriculated
Fri Mar 24, 2006 3:25 am
Forum: PSP Lua Player Development
Topic: LUA FilePAK 0.1 Beta
Replies: 7
Views: 4412

Um, what? I just clicked on it, and downloaded it just now. ?!?
by matriculated
Tue Mar 21, 2006 3:51 am
Forum: PSP Lua Player Development
Topic: LUA FilePAK 0.1 Beta
Replies: 7
Views: 4412

by matriculated
Sat Mar 18, 2006 5:38 am
Forum: PSP Lua Player Development
Topic: LUA FilePAK 0.1 Beta
Replies: 7
Views: 4412

Does this compress the data? Combining this with modsyn's huffman compression would be a neat way to distribute Lua programs. If Lua apps were hosted this way, someone could make a Lua program to download these and install them directly to the memory stick without using a PC.
by matriculated
Sat Mar 18, 2006 4:11 am
Forum: PSP Lua Player Development
Topic: Calculating MS space used leads to errors
Replies: 0
Views: 1440

Calculating MS space used leads to errors

So, I have this recursive function to find the memory stick space used which also takes into account cluster size but I'm always shy a few megs of space. Can anyone tell me why? function MSused(dir) local space = 0 --seed the 1st iteration with root of ms dir = dir or "ms0&#...
by matriculated
Tue Mar 14, 2006 5:10 am
Forum: PSP Lua Player Development
Topic: copy an area of the screen or image?
Replies: 1
Views: 1734

copy an area of the screen or image?

Well, due to the overwhelming response to my last question (http://forums.ps2dev.org/viewtopic.php?t=5183&sid=681c2ef0b020813ff8a1026fd12daa05) I 've another one for you guys. Is it possible to copy a section of the screen or an image to memory instead of saving the entire screen to the memory s...
by matriculated
Mon Mar 13, 2006 9:59 am
Forum: PSP Lua Player Development
Topic: os.date
Replies: 10
Views: 4953

Same thing over here. The clock program is 12 hours ahead
by matriculated
Wed Mar 08, 2006 3:23 am
Forum: PSP Lua Player Development
Topic: sockets and ftp
Replies: 1
Views: 1666

sockets and ftp

Is it possible to make an ftp client using sockets in lua? I've made a tedzero client that uses wifi to transfer files but I was wondering if I should scrap that and make an ftp client instead. I think in the end it would be more useful. How about smb? I haven't found a lot of information on making ...
by matriculated
Wed Mar 08, 2006 3:06 am
Forum: PSP Lua Player Development
Topic: invalid image size
Replies: 5
Views: 3043

I actually have this code:

Code: Select all

if xx > 480 then xx = 480 end
if yy > 272 then yy = 272 end
menuImg = Image.createEmpty(xx, yy)
and I get that same invalid size error. And that code is bulletproof I tells ya. BULLETPROOF! :P
by matriculated
Wed Mar 08, 2006 12:36 am
Forum: PSP Lua Player Development
Topic: LITEspeed v1.0 OSK Plugin for TTLDE
Replies: 2
Views: 2831

Hey, that's a really nice keyboard layout you got there. Ingenious!
by matriculated
Tue Mar 07, 2006 5:22 am
Forum: PSP Lua Player Development
Topic: freespace
Replies: 8
Views: 3597

May as well request MS Size, MS space left and MS space taken :P
by matriculated
Tue Mar 07, 2006 3:21 am
Forum: PSP Lua Player Development
Topic: File/Folder names in UPPERCASE?
Replies: 4
Views: 2650

Are you saying that when you copy a file with all lowercase letters under Windows, it appears as all uppercase to Lua or all uppercase on the MS under Windows?
by matriculated
Tue Mar 07, 2006 2:11 am
Forum: PSP Lua Player Development
Topic: AI ?!
Replies: 5
Views: 3158

Bomberman is a fairly simple game (although writting good ai is far from simple) so you just have to think about what the enemies have to do:
-drop bombs, more specifically, drop bombs in front of player
-avoid bombs
-march around

Maybe looking up bomberman ai in google might help.
by matriculated
Tue Mar 07, 2006 2:01 am
Forum: PSP Lua Player Development
Topic: freespace
Replies: 8
Views: 3597

Perhaps a request for it to be built into Lua Player is in order?