Search found 28 matches

by mplacona
Mon Oct 29, 2007 11:38 pm
Forum: PSP Development
Topic: Advices on image loading
Replies: 9
Views: 3430

Do you think the buffer size can decrease the performance? Should I change it to say... 128 then? It will only cause your program to crash or at least behave strange at later points. If you want to avoid that, then yes, increase the buffer size to something bigger. So it's more a preventive thing. ...
by mplacona
Mon Oct 29, 2007 11:06 pm
Forum: PSP Development
Topic: Advices on image loading
Replies: 9
Views: 3430

Your image_name[] array is far too small to hold the filename you are sprintf ing in to it. If the filenames are 00 to 51 it needs to be at least 15 wide. Jim But that isn't generating any error, and yes, my images are called 01,02,03... Do you think the buffer size can decrease the performance? Sh...
by mplacona
Mon Oct 29, 2007 11:03 pm
Forum: PSP Development
Topic: Advices on image loading
Replies: 9
Views: 3430

I know the VRAM is just 2mb, and in this case I would be loading less than 1mb, so I got a bit confused in it. Wrong. Though your images may only be < 2MB on disk, they may very well be much more than that in RAM. When loading the images, they will reside uncompressed in memory, so the size only de...
by mplacona
Mon Oct 29, 2007 8:38 pm
Forum: PSP Development
Topic: Advices on image loading
Replies: 9
Views: 3430

Yes, I tried that, and I'm also not sure if it'[s faster for the loading, but I now it's much quicker for the displaying, but for some reason it was freezing my app.

I know the VRAM is just 2mb, and in this case I would be loading less than 1mb, so I got a bit confused in it.

Cheers
by mplacona
Mon Oct 29, 2007 7:34 pm
Forum: PSP Development
Topic: Advices on image loading
Replies: 9
Views: 3430

Advices on image loading

Hi guys I'm using OSLIb to load some images to my app, but am finding it a bit slow to load the number of images I want. I know it's not a problem with OSLib, 'cause it's quite quick loading less images. In my code, I have to load roughly 60 images with 1-4kb each That's what I'm doing OSL_IMAGE *im...
by mplacona
Tue Oct 23, 2007 11:38 pm
Forum: PSP Development
Topic: Arrays Help
Replies: 7
Views: 3056

Hi, that was my fault, Raphael helped me to find the problem, and it was just silly. I was calling

Code: Select all

printf&#40;"%i\n",cards&#91;q&#93;&#41;;
instead of

Code: Select all

printf&#40;"%i\n",deck&#91;d&#93;&#41;;
Thank you ver much, it's working fine now.

Cheers
by mplacona
Tue Oct 23, 2007 8:10 pm
Forum: PSP Development
Topic: Arrays Help
Replies: 7
Views: 3056

Hi, I've got it working on my PC, but am still finding some difficulty about how to check if the number has already been used. I want to have different numbers for the whole array. #include <stdlib.h> #include <stdio.h> #include <time.h> int main&#40;int argc, char **argv&#41; &#123; int...
by mplacona
Tue Oct 23, 2007 12:04 am
Forum: PSP Development
Topic: Arrays Help
Replies: 7
Views: 3056

Hey I'll try that one and come up with some feed back. That looks good to me..

Cheers
by mplacona
Mon Oct 22, 2007 11:07 pm
Forum: PSP Development
Topic: Arrays Help
Replies: 7
Views: 3056

It would be easier to keep your array static (so 0 - 'Ace of Spades' to 51 - 'King of Diamonds'). Then choose your favourite prng to generate your random index (0-51) and thats your random card. For your 5 unique cards you can just put a check to gen a new number if that number had already been dra...
by mplacona
Mon Oct 22, 2007 10:22 pm
Forum: PSP Development
Topic: Arrays Help
Replies: 7
Views: 3056

Arrays Help

Hi guys I've been working on a cards game, and am a little bit stucked on a tiny annoying problem Basically I have an array os strings (representing all the cards from my deck) and I need and can't figure out how to prepperly shuffle this deck and distribute 5 cards. I've got it working some way, bu...
by mplacona
Sun Sep 23, 2007 5:20 am
Forum: PSP Development
Topic: Loading Fonts
Replies: 2
Views: 1718

Loading Fonts

Can somebody here tell me how to load a font in OSLIB. Of course I've already read and re-read the manual, and am using the normal code to load the font oslLoadFontFile Turns out that never happens, it loads something very strage, and unreadable. I've created the font with the tool provided to do so...
by mplacona
Tue Sep 11, 2007 6:31 pm
Forum: PSP Development
Topic: Get GMT time
Replies: 3
Views: 1814

Thank jimparis and Art, it worked like a charm!

Cheers
by mplacona
Tue Sep 11, 2007 7:40 am
Forum: PSP Development
Topic: Get GMT time
Replies: 3
Views: 1814

Get GMT time

Hello, is there any way in the PSP to get the GMT+0 time? The fac is, I'm using sceRtcGetCurrentClockLocalTime to get the local time, but this is the time from my PSP, I'd ike toget the Greenwitch Mean Time and not the local time. Is that possible? I might be missing something on the PSP functions, ...
by mplacona
Sun Sep 09, 2007 10:26 am
Forum: PSP Development
Topic: Menus APP
Replies: 3
Views: 2428

Menus APP

Hi Guys, I'm creating a menu for an HB I'm currently developing and got stuck in one thing. I wanna create a very large menu coming from an array (may have 50+ items) and would like to be able to display it in one go on the screen, and let the user scroll over it showing a selector over the item sel...
by mplacona
Fri Sep 07, 2007 10:01 pm
Forum: PSP Development
Topic: Development on PSP slim and newest firmware
Replies: 12
Views: 8344

That's where you are wrong. It hasn't been downgraded. They just managed to dump the nand.

A downgrade is still to come, but you'll have to wait for a bit.

Cheers
by mplacona
Mon Sep 03, 2007 5:50 pm
Forum: PSP Development
Topic: Usb- change the way pc detects psp
Replies: 3
Views: 2045

I did't get your point. What are you talking about here?

Cheers
by mplacona
Wed Aug 29, 2007 6:29 pm
Forum: PSP Development
Topic: Does PSPSDK support PSP 3.40?
Replies: 4
Views: 2383

And is linux the best develope platform for psp? It is indeed IMHO, but you'll need to know a bit about Linux to be able to compile things and etc... If you're not very used to Linux, try to use Ubuntu. It's very user friendly, and you can do whatever you do on other *nix versions, but in graphical...
by mplacona
Mon Aug 27, 2007 2:27 am
Forum: PSP Lua Player Development
Topic: WLan Connection
Replies: 1
Views: 23459

WLan Connection

Hi Guys, I'm trying to run the example of wlan that comes with the version .20 of lua player. Although it doesn't return any error it doesn't connect either. It just hangs when trying to show the IP. I'm on 3.51 M33-7 and I've read here on this forum that some other users had problems with the same ...
by mplacona
Fri Aug 24, 2007 11:13 pm
Forum: PSP Development
Topic: >>>Dev Question<<<
Replies: 2
Views: 1693

In any case, you can get a good startup reading my post on http://forums.ps2dev.org/viewtopic.php?t=8835

I'm using something like you need to copy files from one place to another. If you can understand the code, you can just make some changes and adapt it to your own code.

cheers
by mplacona
Fri Aug 24, 2007 9:33 pm
Forum: PSP Development
Topic: sceIo problems
Replies: 5
Views: 3480

Yes

Hi flatmush, you're right! The code was a bit messed up, and your code was great, it worked straight away. I just did some changes and it's fine now. I was now wondering if it's possible to copy data from the PSP to a PC via USB. I know that the mass storage devices have some kind of limitations to ...
by mplacona
Fri Aug 24, 2007 7:47 am
Forum: PSP Development
Topic: sceIo problems
Replies: 5
Views: 3480

sceIo problems

Hello guys, Following up my last post here about copying an entire folder, I started to write my functions to do the job. It compiles fine, but when I run it on the PSP, it freezes and shut down. I'm trying to do a basic copy txt file and paste. The idea is to copy all the file contents and create a...
by mplacona
Wed Aug 22, 2007 7:21 am
Forum: PSP Development
Topic: Copy entire folder
Replies: 3
Views: 2232

Ok, so can you at least point out to which functions I need to use to list the folder contets and how to copy a file froma folder to another\/

from that point I can go alone :)

Thanks
by mplacona
Wed Aug 22, 2007 5:32 am
Forum: PSP Development
Topic: Copy entire folder
Replies: 3
Views: 2232

Copy entire folder

Hi guys, I'm pretty new to the PSP Development, and I was wondering if it's possible to copy an entire folder from one place to another programatically.

I've had a look at the other topics, but couldn't find something that suits me.

Do you have any advices for me?

thanks
by mplacona
Fri Aug 10, 2007 2:54 am
Forum: PSP Lua Player Development
Topic: Lua creating folders on pc?
Replies: 6
Views: 7954

So that means I can't even do it using pure C?

Do you know any other way for copying files from the MS (inserted on the PSP) to the PC?

I mean.. programatically?
by mplacona
Thu Aug 09, 2007 7:45 am
Forum: PSP Lua Player Development
Topic: Lua creating folders on pc?
Replies: 6
Views: 7954

Yeah, I got no error, but no folder created either
by mplacona
Thu Aug 09, 2007 7:38 am
Forum: PSP Lua Player Development
Topic: Lua creating folders on pc?
Replies: 6
Views: 7954

AFAIK the backslash is an escape isn't it?

If I try with just one I think I'll get an error. Will try though!
by mplacona
Thu Aug 09, 2007 7:09 am
Forum: PSP Lua Player Development
Topic: Lua creating folders on pc?
Replies: 6
Views: 7954

Lua creating folders on pc?

Hi guys, I've got a quick one here. Can the LUA create directories on my desktop is connected by USB? I've tried the folowing code as a test: --Connects the PSP to the USB System.usbDiskModeActivate&#40;&#41; System.sleep&#40;15000&#41; System.createDirectory&#40;"c&#58;...
by mplacona
Tue Aug 07, 2007 7:16 am
Forum: PSP Lua Player Development
Topic: IRDA and Sony IR codes
Replies: 0
Views: 4013

IRDA and Sony IR codes

Hi guys, I would like to introduce myself to you. I'm an old programmer, but pretty new to the Lua world. In fact today I was trying my first steps, and found it pretty easy and exciting. in fact, I've got project in mind, and would like to know if anybody can help me. I need to send Sony IR Codes u...