ROM Hack Need some help related to editing mugshots in Pokémon Omega Ruby

CharizardMen99

Well-Known Member
OP
Member
Joined
Aug 20, 2015
Messages
147
Trophies
0
Age
23
XP
425
Country
Italy
With PKSM, I just managed to extract the folder with the mugshots from the game and I replaced and swapped a few mugshots since I wanted to try something, but the problem now is...

what do I need to do after I did everything I needed to do?

Do I need to rebuild something? or do something else?
 

The Real Jdbye

*is birb*
Member
Joined
Mar 17, 2010
Messages
23,252
Trophies
4
Location
Space
XP
13,805
Country
Norway
With PKSM, I just managed to extract the folder with the mugshots from the game and I replaced and swapped a few mugshots since I wanted to try something, but the problem now is...

what do I need to do after I did everything I needed to do?

Do I need to rebuild something? or do something else?
With Luma3DS' LayeredFS you can simply place the modified files in the correct locations on the SD card and they will be loaded (if game patches are enabled in config) Otherwise, normally you'd have to rebuild the RomFS, and I'm not sure what goes there for Pokemon because Game Freak are a bit odd and like to not use file names at all in archives in any of the DS or 3DS games, which can trip up some tools. Rebuilding the RomFS is something you would usually do with the same tool you used to unpack it, which is especially true for Pokemon as due to not having file names, one tool might (not sure if this is the case or not) name the files slightly differently than another, and then when rebuilding it won't work correctly if the names are wrong. LayeredFS is by far the easier option though. How to use LayeredFS is a bit much to get into here but you can probably find some good tutorials around.
 
Last edited by The Real Jdbye,

CharizardMen99

Well-Known Member
OP
Member
Joined
Aug 20, 2015
Messages
147
Trophies
0
Age
23
XP
425
Country
Italy
With Luma3DS' LayeredFS you can simply place the modified files in the correct locations on the SD card and they will be loaded (if game patches are enabled in config) Otherwise, normally you'd have to rebuild the RomFS, and I'm not sure what goes there for Pokemon because Game Freak are a bit odd and like to not use file names at all in archives in any of the DS or 3DS games, which can trip up some tools. Rebuilding the RomFS is something you would usually do with the same tool you used to unpack it, which is especially true for Pokemon as due to not having file names, one tool might (not sure if this is the case or not) name the files slightly differently than another, and then when rebuilding it won't work correctly if the names are wrong. LayeredFS is by far the easier option though. How to use LayeredFS is a bit much to get into here but you can probably find some good tutorials around.
You use that on pc or 3ds? Because I wanna try building a 3ds file for citra
 

The Real Jdbye

*is birb*
Member
Joined
Mar 17, 2010
Messages
23,252
Trophies
4
Location
Space
XP
13,805
Country
Norway
You use that on pc or 3ds? Because I wanna try building a 3ds file for citra
In that case, give this a try: https://gbatemp.net/threads/installing-mods-hacks-for-citra-3ds-emulator.521228/
As far as I remember, Game Freak uses their own archives inside the RomFS, which also contain multiple files. So before you can use your modified files, you need to put them back into the same archive(s) they came from. Once the RomFS is unpacked, you can use GARCTool to unpack the .bin files, replace whatever you want, and repack the folder again using the same tool before the RomFS is ready to be repacked with your edits. PKSM by itself does not seem like it allows you to repack the archives. Well, it is a save editing tool, not a modding tool after all.
GARCTool: https://projectpokemon.org/home/forums/topic/33035-kaphotics-xy-tools/
The tricky part is figuring out what file(s) the things you want to edit are in, since there are no filenames. There are probably incomplete lists scattered around the forum that should have most of the things people would want to edit.
 

CharizardMen99

Well-Known Member
OP
Member
Joined
Aug 20, 2015
Messages
147
Trophies
0
Age
23
XP
425
Country
Italy
In that case, give this a try: https://gbatemp.net/threads/installing-mods-hacks-for-citra-3ds-emulator.521228/
As far as I remember, Game Freak uses their own archives inside the RomFS, which also contain multiple files. So before you can use your modified files, you need to put them back into the same archive(s) they came from. Once the RomFS is unpacked, you can use GARCTool to unpack the .bin files, replace whatever you want, and repack the folder again using the same tool before the RomFS is ready to be repacked with your edits. PKSM by itself does not seem like it allows you to repack the archives. Well, it is a save editing tool, not a modding tool after all.
GARCTool: https://projectpokemon.org/home/forums/topic/33035-kaphotics-xy-tools/
The tricky part is figuring out what file(s) the things you want to edit are in, since there are no filenames. There are probably incomplete lists scattered around the forum that should have most of the things people would want to edit.
After I got the 0_.garc file, can I rebuild? Or I need to delete the original "0" file and the 0_ folder?
 

The Real Jdbye

*is birb*
Member
Joined
Mar 17, 2010
Messages
23,252
Trophies
4
Location
Space
XP
13,805
Country
Norway
The problem is that the og file does't have a file extension, so... I just delete the .garc and I'm ready to go?
Yeah. GARC is just the format, since like I said the RomFS doesn't have any file names, so they just decided to name it that. The important thing is that it's called the exact same thing as the old file so that the RomFS builder will put it in the right place. If you for example changed it to a different number, it might build the RomFS fine, but the game wouldn't find the file where it expects it and likely crash. And if it's named something other than just a number the RomFS builder might ignore it entirely.
 

CharizardMen99

Well-Known Member
OP
Member
Joined
Aug 20, 2015
Messages
147
Trophies
0
Age
23
XP
425
Country
Italy
Yeah. GARC is just the format, since like I said the RomFS doesn't have any file names, so they just decided to name it that. The important thing is that it's called the exact same thing as the old file so that the RomFS builder will put it in the right place. If you for example changed it to a different number, it might build the RomFS fine, but the game wouldn't find the file where it expects it and likely crash. And if it's named something other than just a number the RomFS builder might ignore it entirely.
I did it yesterday, and managed to make it work on citra, everything works.

But something strange I noticed is... that PK3DS option to export to .3ds is greyed out and not avaiable while it always was?
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    K3Nv2 @ K3Nv2: My therapy chair is padded