Sponsored Links

Sponsored Links

PS3 SFO Reader and SFO2SFX Homebrew Applications Released


Sponsored Links
156w ago - Following up on his previous work, this weekend PlayStation 3 developer deroad has released a PS3 SFO Reader and SFO2SFX homebrew applications complete with source code.

Download: [Register or Login to view links]

To quote: Since today sandungas talked about a bug in the old SFO Reader, i immediately fixed it (you can find it here: ps3devwiki.com/wiki/Dev_Tools#SFO_Reader).

Then he started talking about SFX. They are simple XML files that the ps3 can read as SFO. This is an example:

[Register or Login to view code]

So i converted my SFO reader into a SFO to SFX converter. You can get it here: ps3devwiki.com/wiki/Dev_Tools#SFO2SFX

I hope that someone will find it useful. From:

[Register or Login to view code]

to
[Register or Login to view code]

Finally, how to call a PS3 Syscall: In computing, a system call (aka Syscall) is how a program requests a service from an operating system’s kernel. This may include hardware related services (e.g. accessing the hard disk), creating and executing new processes, and communicating with integral kernel services (like scheduling). System calls provide the interface between a process and the operating system.

With PSL1GHT we can call all the 989 Syscalls.. it’s really simple to call one, but you need to know how many parameters it needs; there are some syscalls that needs just 1 parameter, there are others that needs 8 parameters.

You can find the list of syscalls with the numbers of the parameters here: ps3devwiki.com/wiki/LV2_Functions_and_Syscalls#Syscalls

Once you know the numbers of the parameter that you need (and the type of the parameters if they are written), you are ready to call one:

first thing add the following include:

#include

Then you can call the syscall:

lv2syscallN(number_of_the_syscall, parameters… );
Change N with the number of the parameters, and put the number of the syscall that you need to call with the parameters.

some examples:

Shutdown the PS3:

1) Look into the dev wiki and you will see that the syscall to shutdown the PS3 is number 379 ( sys_sm_shutdown ) and it wants 4 parameters:
2) So now i can call the syscall with 4 parameters:

lv2syscall4(379,SHUTDOWN_PARAM,0,0,0);
now on the wiki it says, that the shutdown value is 0x1100 or 0x100, so i will write:
lv2syscall4(379,0x100,0,0,0)

now if i call this on a stupid homebrew like:
#include
int main(){
lv2syscall4(379,0x100,0,0,0);
return 0;
}

it will really shutdown the ps3.

now if you are not sure to completely understood this, i will make another example:

Get current time:
now this example comes from the PSL1GHT SDK:

this is the function that get the current time on the ps3.

#include
s32 sysGetCurrentTime(u64 *sec,u64 *nsec)
{
lv2syscall2(145,(u64)sec,(u64)nsec);
return_to_user_prog(s32);
}

now it uses 2 parameters so it calls lv2syscall2, then it needs the parameters that will get the value sec and nsec. now, in this function you can see that it ask the return of this syscall; to call any return of a determinate syscall, you can simply ask it by calling:

return_to_user_prog(type_of_the_variable);

you need to define the type of the returning variable. in that case it was s32 (aka signed int).
so it calls:
return_to_user_prog(s32);

if it was a normal integer, you had to call:
return_to_user_prog(int);

to compile it correctly you need to simply add the following flags:

-llv2



Stay tuned for more PS3 Hacks and PS3 CFW news, follow us on Twitter, Facebook and drop by the PS3 Hacks and PS3 Custom Firmware Forums for the latest PlayStation 3 scene and PlayStation 4 scene updates and fresh homebrew PS3 Downloads. Enjoy!

Comments 50 Comments - Go to Forum Thread »

• Please Register at PS3News.com or Login to make comments on Site News articles.
 
#30 - Brenza - 121w ago
Brenza's Avatar
I think you would not understand..

Cheers, dude.

#29 - Blade86 - 121w ago
Blade86's Avatar
Wow, how nice -.- instead of enlighten me with the real features.

So what does this tool do for YOU ? how YOU gonna install this without "install packages"?

Cheers
Blade

#28 - Brenza - 121w ago
Brenza's Avatar
Blade86 if you don't know what you're talking about you should just be quiet instead of calling something "useless"

#27 - Blade86 - 121w ago
Blade86's Avatar
Those who got no Option to install pkgs, HOW WOULD THEY INSTALL THIS?
Those who can, dont need this.
Those who want to install multiple pkgs, use the feauture of PS3-EXTRA or self-merge existing ones.

So the question is: WHO NEEDS THIS? No offence, but also no respect!

Cheers
Blade

#26 - Brenza - 121w ago
Brenza's Avatar
Very very nice!

You should search for pkg also in \dev_hdd0\packages, it would be useful!

BTW thank you!

#25 - shummyr - 121w ago
shummyr's Avatar
Very nice setup, I love it

#24 - condorstrike - 121w ago
condorstrike's Avatar
awesome tool, thanks Deroad.

#23 - PS3 News - 121w ago
PS3 News's Avatar
Following up on his NoRSX PS3 v0.1.9 (96b8a31) update, today PlayStation 3 developer deroad has released an application dubbed Install Package Homebrew for PS3 CFW users followed by v1.2 with details below.

Download: [Register or Login to view links] / [Register or Login to view links] / [Register or Login to view links] / [Register or Login to view links] / [Register or Login to view links] / [Register or Login to view links]

To quote: Hi everyone, since I'm working on PSChannel (I don't know when it will be finished), I had to build a few features for it (I will not tell which they are). so I written this simple homebrew to install one or more PKG without using the XMB option. this app is useful if you, for some reason, can't use that option.. it will create on the XMB a new icon that will allow you to install that pkg.

How to use it:

Place in the main directory of your USB a pkg (it can handle up to 100 pkgs, and the max size for each of them is 4GB).. then plug in the usb on the ps3 and run the app.

It will search the usb from /dev_usb000 to /dev_usb009, once found it will start it copy and create the right files to allows you to install it from the XMB without the option.

THIS APP WILL RESTART THE PS3 ONCE FINISHED. I hope that this app can be useful (maybe also someday).

v1.2 Changelog:

This new version allow to install packages also from the /dev_hdd0/package folder, just not plug in any USB and it will search in that directory.

Update: Install Package Homebrew Source Code (via devram0.blogspot.co.at/2012/11/install-package-homebrew-source-code.html) from [Register or Login to view links]:

I decided to release my source code (linked above) of this homebrew. to compile it, you will need PSL1GHT V2.

if you want to copy partially or entirely the code, please, add me on the credits. Have fun.

More PlayStation 3 News...

#22 - aldostools - 127w ago
aldostools's Avatar
The cheats editor is updated to v1.2 (same link)

#21 - PS3 News - 127w ago
PS3 News's Avatar
Today PlayStation 3 homebrew developer aldostools has released PS3 Cheats Editor version 1.1 followed by v1.2 which works with the recently released PS3UserCheat PS3 Cheat Dongle v2.3 Update from oct0xor and v2.02 with some more revisions below.

Download: [Register or Login to view links] / [Register or Login to view links] by gingerbread

To quote: Some features...

  • Read/save cheats database for ps3usercheat (st.dat)
  • Search/filter games
  • Sort database by column (Title ID, Name, Version, number of cheats, region) (database is saved in the selected order)
  • Added option to rearrange the position of the games in the list (use Alt+Up arrow / Alt+Down arrow in the listview)
  • Exports selected games as text files
  • Imports text file (exported format) and append to current database
  • Allows to save the description in TITLE ID + NAME + VERSION (without < > and region)
  • It accepts the file as a command line parameter (useful to open through batch files or associate extensions)
  • Support for drag & drop
  • Lots of keyboard shortcuts

The tool keeps internally the version read from the file. If you edit a game's title, you will notice that it includes the version (from the description). The program will parse the edited text and will search for ##.## (eg. 01.05). If it is found, it stores 01 05 in the database. If the pattern ##.## is not found, it will use 01.00 by default So, it's important to always include the version in the game's description.

That was exactly the part that deank helped me to figure out. BTW I updated the icon for the PSN games in the program.

Build 1.4:

0- The import now merges the cheats. So if user A has 3 cheats, and user B has 2 cheats (1 common, 1 different). User A imports cheats from B (or B imports cheats from A), in both cases the database should contain 4 cheats.
1- Added extension .ps3cheat
2- Added a suggested name for export
3- Use F2 to edit individual cheat title
4- The OCX is required. I could remove it, but it would be a lot of work, due I would have to program all the functions of the OCX. You can make a SFX and put the OCX and the EXE, the EXE will automatically register the OCX.
5- TXT format can be used for that
6- Fixed the window title (it said PS3 Game Editor instead of PS3 Cheats Editor)

Changelog:

PS3 Cheats Editor 2.6.2:

Edits the cheats database for ps3usercheat (st.dat). Allows export/import cheats to the database in text and binary formats. 3.55 CFW is required.

Now the cheats compatible with the EBOOT hack can be identified easily. This version includes a cheats database for 520 games compiled by gingerbread at ps3hax and a link to his discussion thread. Thanks to SkillerCMPnow the EBOOT patcher supports code type: 0T00 (8bit), 1T00 (16bit), 2T00 (32bit), 4T00 (Serial codes), 5T00 (Copy codes)

Special thanks to skillerCMP, gingerbread, BahumatLord, haxxxen and bungholio for the tutorial about converting CU codes.

Build 2.2.0.1:

  • This version includes a cheats database for 414 games compiled by gingerbread at ps3hax and a link to his discussion thread.

Build 2.1.0.3:

  • This version includes a cheats database for 409 games compiled by gingerbread at ps3hax and a link to his discussion thread.

Build 2.1.0.1:

  • Support info files in .pdf, .tif, .rtf, .html and .txt

Build 2.0.2:

  • This version includes a database with 381 games compiled by gingerbread at ps3hax and a link to his discussion thread.

Build 1.5.02:

  • I updated the tool to install the st.dat. So, it is not longer required to extract it from the PKG

Build 1.5:

  • There was an issue importing the games that started with "PSN" and I fixed the bug in the build 1.5

If you find bugs, they are also features. This is a sample code for Dragon's Dogma BLES01356. All credits go to xtatu at the CMP Forums

[Register or Login to view code]


From haxxxen: Here are some new codes (credits to cmp staff and users, i only have ported the codes)

[Register or Login to view code]


More PlayStation 3 News...

 

Sponsored Links

Sponsored Links







Advertising - Affiliates - Contact Us - PS3 Downloads - PS3 Forums - Privacy Statement - Site Rules - Top - © 2015 PlayStation 3 News

Sponsored Links