Hacking How can I browse through a game's filesystem to find/extract specific files?

dj505

Inexperienced Romhacker
OP
Member
Joined
Oct 4, 2014
Messages
556
Trophies
0
Location
Most likely at the arcade
Website
www.youtube.com
XP
844
Country
Canada
I'm trying to figure out how I can look through a PS3 game's contents and extract certain files for modification; is there any way I can do this?

Edit: It seems I can browse through some of the game's files (audio and some pictures) but I can't find the files I'm actually looking for... I already know what format they should be in, but I can't find where they're placed
 
Last edited by dj505,

dj505

Inexperienced Romhacker
OP
Member
Joined
Oct 4, 2014
Messages
556
Trophies
0
Location
Most likely at the arcade
Website
www.youtube.com
XP
844
Country
Canada
I think I've figured it out - looks like most of the game's data is in a psarc file. I've never looked at the contents of a PS3 game before (mostly just 3DS) so I had no clue where to start looking, but I think I found it.
 

Zero72463

Well-Known Member
Member
Joined
Jun 27, 2016
Messages
1,383
Trophies
0
XP
1,496
Country
United States
I think I've figured it out - looks like most of the game's data is in a psarc file. I've never looked at the contents of a PS3 game before (mostly just 3DS) so I had no clue where to start looking, but I think I found it.

Alright if you need anymore help just ask me. The thing about packing files and unpacking files for PS3 is that sometimes you don't get all the data when unpacking (most of the time you do), but packing usually crashes the game because the headers and other data is incorrect. So if you need help with that or modifying the files inside the psarc file I would love to try to help. Anyways good luck.
 

dj505

Inexperienced Romhacker
OP
Member
Joined
Oct 4, 2014
Messages
556
Trophies
0
Location
Most likely at the arcade
Website
www.youtube.com
XP
844
Country
Canada
Alright if you need anymore help just ask me. The thing about packing files and unpacking files for PS3 is that sometimes you don't get all the data when unpacking (most of the time you do), but packing usually crashes the game because the headers and other data is incorrect. So if you need help with that or modifying the files inside the psarc file I would love to try to help. Anyways good luck.
Thanks! I'm not really trying to modify the file for use in the same game, but using a file of the same format and exporting it into a completely different game on a different coneole (sounds crazy, but I know it's possible). Looks like most of the (thousands of) files are in .farc format, how do I extract those?
 

Zero72463

Well-Known Member
Member
Joined
Jun 27, 2016
Messages
1,383
Trophies
0
XP
1,496
Country
United States
Thanks! I'm not really trying to modify the file for use in the same game, but using a file of the same format and exporting it into a completely different game on a different coneole (sounds crazy, but I know it's possible). Looks like most of the (thousands of) files are in .farc format, how do I extract those?

This is a QuickBMS script made to unpack .farc for Little Big Planet 3, but it should work on other games. One fact about game modding is BMS is pretty bad so if you ever are going to program your own tools don't use BMS. Although in this situation it seems the best option.
 

dj505

Inexperienced Romhacker
OP
Member
Joined
Oct 4, 2014
Messages
556
Trophies
0
Location
Most likely at the arcade
Website
www.youtube.com
XP
844
Country
Canada
In fact http://aluigi.altervista.org/quickbms.htm contains lots of scripts for these games you could try, but like I said BMS is limited.
So, I open up the file in a hex editor (cuz there's some stuff I need to change in the header) and it looks encrypted or compressed or something. Is there a certain way I have to decompress/decrypt the file? I've worked with this specific filetype before and it's not supposed to look like that
 
Last edited by dj505,

Zero72463

Well-Known Member
Member
Joined
Jun 27, 2016
Messages
1,383
Trophies
0
XP
1,496
Country
United States
So, I open up the file in a hex editor (cuz there's some stuff I need to change in the header) and it looks encrypted or compressed or soemthing. Is there a certain way I have to decompress/decrypt the file?

If it's encrypted you might as well give up. Check out the quickbms page it will give info for running the script and unpacking the files. Like I said though if the game is ever encrypted its usually hard to unpack the files then repack them. If you want you can add me on Skype and we can talk a bit more about what exactly you want to do.
 

godreborn

Welcome to the Machine
Member
Joined
Oct 10, 2009
Messages
38,471
Trophies
3
XP
29,138
Country
United States
a psarc is like a collection of files. there's an app to extract them, but I've forgotten the name of it. psarcs r not encrypted btw.
 

godreborn

Welcome to the Machine
Member
Joined
Oct 10, 2009
Messages
38,471
Trophies
3
XP
29,138
Country
United States
what files? afaik, the only encrypted files for the ps3 r self/sprx/edat/sdat/and eboot.bin. all other files r either normal, encoded, or compressed with zlib.
 

Zero72463

Well-Known Member
Member
Joined
Jun 27, 2016
Messages
1,383
Trophies
0
XP
1,496
Country
United States
what files? afaik, the only encrypted files for the ps3 r self/sprx/edat/sdat/and eboot.bin. all other files r either normal, encoded, or compressed with zlib.

I have seen developers encrypt their games files before. Sony doesn't require it, but developers have the option and some do.
 

dj505

Inexperienced Romhacker
OP
Member
Joined
Oct 4, 2014
Messages
556
Trophies
0
Location
Most likely at the arcade
Website
www.youtube.com
XP
844
Country
Canada
If that's the case then it could be compressed.
This is what the file looks like in a hex editor (starting from the beginning of the file):
upload_2017-7-4_19-17-13.png
 

godreborn

Welcome to the Machine
Member
Joined
Oct 10, 2009
Messages
38,471
Trophies
3
XP
29,138
Country
United States
developers can choose to encrypt game data with the sdk, but I've never seen an encrypted file inside of a psarc file before, but I suppose it's possible. that file above is not compressed with zlib. zlib will start with 78 DA in hex which should kinda look an x and a u in the text field followed by the level of compression for the third byte. that's common for files in the flash at least, so I suspect compressed game files will use the same compression. it's hard to tell from that screenshot, but u can usually tell what kind of file it is by the beginning or the end of the file. image files will likely tell u at the end of the file (i.e. DDS or TRUEVISION - tga) in hex, but I've seen other like gtf (used with the coldboot) tell u at the beginning. there should be a table of contents for the psarc, so the names of files should be correct when extracted. I think psarc is meant to speed up load times btw which is y it's used. the wii u either uses psarc or a similar format to compress game content from what I remember.

edit: btw, if it were encrypted, it would have a header with the firmware version written to it.
 

Luke94

Well-Known Member
Member
Joined
Sep 2, 2016
Messages
1,153
Trophies
0
Age
29
XP
1,645
Country
Poland
This thread might be 4 years old. Sorry if I'm dumping old thread,but is it about extracting assets from Sony PS3 games original copies? I think it's very important to me to know my friend needs to know. She's making Shadow the Werehog perhaps for Sonic Unleashed modding purposes. This game wasn't officially recompiled on PC by Sega and Sonic Team.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    Xdqwerty @ Xdqwerty: @btjunior, you act like if you were about 10