Many examples don't work

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
DarkShadow44
Posts: 29
Joined: Thu Jul 09, 2009 4:13 am

Many examples don't work

Post by DarkShadow44 »

Hello,
I use the pspSDK,
and for Example the Memory Stick Example are all the networking examples don't work.
I get a error like "The game could not be started . (80020148)

I have 5.00 m33 6.

Can you help me?
J.F.
Posts: 2906
Joined: Sun Feb 22, 2004 11:41 am

Post by J.F. »

Some of the older examples are still in 1.50 format. They need to be "userized" to work on modern PSP firmwares. The most common changes are to add

Code: Select all

BUILD_PRX = 1
PSP_FW_VERSION = 500
PSP_LARGE_MEMORY = 1

to the makefile, and

Code: Select all

PSP_MODULE_INFO("app name", 0, VERS, REVS);
PSP_MAIN_THREAD_ATTR(PSP_THREAD_ATTR_USER);
PSP_HEAP_SIZE_KB(-256);
to your main c/c++ file.
DarkShadow44
Posts: 29
Joined: Thu Jul 09, 2009 4:13 am

Post by DarkShadow44 »

It says "VERS" and "REVS" are undeclaired.

And...What is a prx ?
J.F.
Posts: 2906
Joined: Sun Feb 22, 2004 11:41 am

Post by J.F. »

#define VERS 1
#define REVS 0

or whatever you do to define your program version and revision... or just get rid of them and put the numbers in directly like most people do.

You need to read more old threads on the subject if you want a better understanding of prx's and how the PSP works with them.
DarkShadow44
Posts: 29
Joined: Thu Jul 09, 2009 4:13 am

Post by DarkShadow44 »

I recompiled it, and it worked ...
But without your modifikation.

But the usb-storage sample still doesn't work.

Can you post the whole code of it, that works on your PC ?
And you version of pspskd ?

I use a PSP Slim, could this cause the "Library not found (8002013c)" problem ?
J.F.
Posts: 2906
Joined: Sun Feb 22, 2004 11:41 am

Post by J.F. »

Not a chance. I've got too much to do to be posting entire toolchains when there are threads on toolchains and examples and apps, most all of which can be downloaded. I suggest you do a little more leg work on this, going through the older threads on converting apps to the (then) new user mode style and on compiling the toolchain or using Hemdall's toolchain.

EDIT: I'm using 64 bit linux anyway, so unless you are too, my toolchain wouldn't help at all.
Dariusc123456
Posts: 388
Joined: Tue Aug 12, 2008 12:46 am

Post by Dariusc123456 »

J.F , I think he have a old sdk. All the samples works for me, even the 1.50 samples with or without leda.prx.

DarkShadow44 - What type of pspsdk do you have?
PSHN - Playstation Hacking Network
PSX/PS1 - HACK - Game Shark
PS2 - HACK - Swap
PSP - HACK - Pandora
PS3 - ?
J.F.
Posts: 2906
Joined: Sun Feb 22, 2004 11:41 am

Post by J.F. »

Yeah, it's probably 3 year-old devkitPro for PSP. :)
Dariusc123456
Posts: 388
Joined: Tue Aug 12, 2008 12:46 am

Post by Dariusc123456 »

DarkShadow44, make sure your pspsdk is the latest version which can be downloaded here. The error code only happens on some of the 1.50 kernel homebrew programs, do you will have to update.
PSHN - Playstation Hacking Network
PSX/PS1 - HACK - Game Shark
PS2 - HACK - Swap
PSP - HACK - Pandora
PS3 - ?
DarkShadow44
Posts: 29
Joined: Thu Jul 09, 2009 4:13 am

Post by DarkShadow44 »

1)What is leda.prx
2) WHERE can I download the newest ? I only find version 20070626
3)Sorry, but which are the 1.5 Samples ?
4)Do I have to use Timemachine to run this samples ?


EDIT:
Now I can run them (timemachine), but how can I run them on 5.00 m33-6 ??

P.S. I've pspsdk 0.9.5
Dariusc123456
Posts: 388
Joined: Tue Aug 12, 2008 12:46 am

Post by Dariusc123456 »

It look like no one ever search anymore...

1. Leda.prx is a plugin that allows you to run 1.50 homebrew on the 5.00m33-6 cfw.

2. http://forums.ps2dev.org/viewtopic.php?t=12149

3. the one you cant run are.

4. You dont need TM to run homebrew, but its useful to test it on the fw that you might want to to run on.
PSHN - Playstation Hacking Network
PSX/PS1 - HACK - Game Shark
PS2 - HACK - Swap
PSP - HACK - Pandora
PS3 - ?
Post Reply