ROM Hack Editing the RomFS folder in pk3ds makes Pokemon Sun mod unplayable... never did this before...

ataricore

Well-Known Member
OP
Newcomer
Joined
Sep 21, 2017
Messages
53
Trophies
0
Age
31
XP
161
Country
United Kingdom
Ok, so I extract everything from the decrypted rom and put the RomFS folder into pk3ds and edit it just as I used to a few weeks ago when I successfully modded Pokemon Sun a few times. Now, however, when I try to play a mod I make I get a black screen and a load of error messages on the console (playing it on Citra but the previous mods I've made and decrytped unedited roms still work on it).

This leads me to believe it's something to do with something pk3ds is doing to the file. I'm just doing a simple mod editing the wild encounters. I edit the wild encounters, hit save, close pk3ds then rebuild the game in DotNet (which works for rebuilding the extracted non-edited decrypted rom, leaving me to believe it must be something to do with what pk3ds is doing to the RomFS folder).

If anyone could help, it'd be very much appreciated. I did actually to get it to work one time but what I must've done that was slightly different I can't for the life of me remember.

@Majickhat55
 

Majickhat55

The Red Woman
Member
Joined
Mar 28, 2016
Messages
4,936
Trophies
1
Age
37
Location
Asshai
XP
2,973
Country
United States
I'd suggest to use a more updated version of PK3DS, as well as using one program to pack/repack these garcs. It could be bad edits, a bug in your version of PK3DS or incompatibilities with using two different programs to pack/unpack the files.
 

ataricore

Well-Known Member
OP
Newcomer
Joined
Sep 21, 2017
Messages
53
Trophies
0
Age
31
XP
161
Country
United Kingdom
I'd suggest to use a more updated version of PK3DS, as well as using one program to pack/repack these garcs. It could be bad edits, a bug in your version of PK3DS or incompatibilities with using two different programs to pack/unpack the files.
I'm using the version of pk3ds you sent me, is that the latest one? I can't seem to find a more updated version. What program do you use to rebuild the rom? Is DotNet the best option or? I am using just one program to repack these files, by the way. I'm basically only using pk3ds for the editing and DotNet for the repacking. I'm curious as to what changed seeing as though I got it to work fine thanks to your help a few weeks ago (then I got busy and hadn't been able to keep at it and now I'm back to it and stuck on this :blink:)
 
D

Deleted User

Guest
Personally, I just use ctrtool and RomFS Rebuilder.

Extract the RomFS using
Code:
ctrtool --intype=romfs --romfsdir=romfsdir romfs.bin
The RomFS should be extracted to a directory named romfsdir. From there, you can make edits with Pk3DS.

Once you're done editing, rebuild using RomFS Rebuilder. When done, the file should be about 1.8GB, give or take.

Probably not the most efficient way of going about it, but it's worked for me in the past.

Links:
https://github.com/profi200/Project_CTR/releases
https://github.com/SciresM/RomFS-Builder
 
  • Like
Reactions: Majickhat55

ataricore

Well-Known Member
OP
Newcomer
Joined
Sep 21, 2017
Messages
53
Trophies
0
Age
31
XP
161
Country
United Kingdom
Hallelujah! I thought pk3ds must be messing up some file in the RomFS folder so I duplicated the RomFS folder, edited the a folder (where it seems most editable things on pk3ds are in the RomFS folder) then just replaced the a folder from the unedited extracted rom files with the one I just edited in pk3ds from the duplicated RomFS folder.

Basically, it seems pk3ds for some reason is messing up some file or files in the RomFS when it's edited (outside of the a folder in the case of editing wild encounters). Whether that's just my version or a more common problem, I'm not sure. But this took me a few days to figure out so anyone reading this who has encountered the same issue, I hope this helps. :gba:
 
Last edited by ataricore,

Majickhat55

The Red Woman
Member
Joined
Mar 28, 2016
Messages
4,936
Trophies
1
Age
37
Location
Asshai
XP
2,973
Country
United States
I use the version of PK3DS I sent you (The x64 version) to unpack/repack the garc files or make random edits. I use the newest version to randomize the game. Then I either use CTRTool, 3DSTool or HackingToolKit to rebuild the RomFS/ExeFS... I always build a .3DS with the old school 3DS Builder and then convert that to a .cia if needed. I've never had any incompatibility issues using those methods.

I've never used DotNet.
 
  • Like
Reactions: ataricore

ataricore

Well-Known Member
OP
Newcomer
Joined
Sep 21, 2017
Messages
53
Trophies
0
Age
31
XP
161
Country
United Kingdom
I use the version of PK3DS I sent you (The x64 version) to unpack/repack the garc files or make random edits. I use the newest version to randomize the game. Then I either use CTRTool, 3DSTool or HackingToolKit to rebuild the RomFS/ExeFS... I always build a .3DS with the old school 3DS Builder and then convert that to a .cia if needed. I've never had any incompatibility issues using those methods.

I've never used DotNet.
Ah ok I would actually suggest DotNet, as I found it the easiest to use but maybe you find one of those better but maybe worth a try. Ah, I never convert anything to CIA but maybe you do because you play it on an actual 3DS or something?

It's just strange how that version you sent me the other week worked great back then but now messes up some files somewhere in the RomFS folder. Found a workaround now but still a bit odd.

Anyway, I hope to finally get my first video uploaded tonight. Got Citra working at full speed finally and a hack worthy of an upload with plenty of more interesting ideas in the pipeline. Ta. :grog:
 

Majickhat55

The Red Woman
Member
Joined
Mar 28, 2016
Messages
4,936
Trophies
1
Age
37
Location
Asshai
XP
2,973
Country
United States
Yeah I don't even rebuild .CIAs anymore. I just use LayeredFS, for console edits but I've never had an issue with just using PK3DS in that regard... Sometimes it's the edits, and then obviously that entire rebuild is going to be messed up no matter how many times you unpack/repack it. I always tell people to keep their original romfs.bin/exefs.bin separate from their extracted(edited) versions, that way if something goes wrong you don't have to dump the game all over again.

Not saying you made a mistake, but if you did and then rebuilt the Romfs it's almost impossible to reverse it. So if I had to guess it's something you did to the RomFS between the last time you packed it and the most recent time you extracted it; not the program.
 

ataricore

Well-Known Member
OP
Newcomer
Joined
Sep 21, 2017
Messages
53
Trophies
0
Age
31
XP
161
Country
United Kingdom
Yeah I don't even rebuild .CIAs anymore. I just use LayeredFS, for console edits but I've never had an issue with just using PK3DS in that regard... Sometimes it's the edits, and then obviously that entire rebuild is going to be messed up no matter how many times you unpack/repack it. I always tell people to keep their original romfs.bin/exefs.bin separate from their extracted(edited) versions, that way if something goes wrong you don't have to dump the game all over again.

Not saying you made a mistake, but if you did and then rebuilt the Romfs it's almost impossible to reverse it. So if I had to guess it's something you did to the RomFS between the last time you packed it and the most recent time you extracted it; not the program.
Yeah I actually even dumped the rom each time I tried to do it to make extra sure it wasn't the rom that had some how got corrupted. I'm just thankful it's a file outside the "a" folder in the RomFS folder where most things seem to be stored, otherwise I probably wouldn't be able to do anything lol or it'd take me a long time to find.

I was just editing the newly dumped RomFS on pk3ds as I did before, though, but it just seems to mess with a file not in the a folder for some reason, so idk how it'd be anything I'm doing. The only thing I'm thinking may have happened is if something to do with a Windows update changed a setting somewhere on my computer but idk lol Windows can be a bit of minefield.
 
  • Like
Reactions: Majickhat55

Majickhat55

The Red Woman
Member
Joined
Mar 28, 2016
Messages
4,936
Trophies
1
Age
37
Location
Asshai
XP
2,973
Country
United States
Well it messes with a lot of files that aren't in the "A" folder..... Depending on what you edited. Also, if you edit things like the Shop you need to be using the code.bin (and the corresponding .cro file) from the update of your current version of the game. Or you'll crash, freeze, arm9 error etc.... It's true for other things as well that were updated with official patches.
 
  • Like
Reactions: ataricore

ataricore

Well-Known Member
OP
Newcomer
Joined
Sep 21, 2017
Messages
53
Trophies
0
Age
31
XP
161
Country
United Kingdom
Well it messes with a lot of files that aren't in the "A" folder..... Depending on what you edited. Also, if you edit things like the Shop you need to be using the code.bin (and the corresponding .cro file) from the update of your current version of the game. Or you'll crash, freeze, arm9 error etc.... It's true for other things as well that were updated with official patches.
True, yeah I actually got worried for a second after you said that but I tested the rom I just built and it works so it would seem anything to do with wild encounters is confined to the a folder.

Yeah and it comes up with a warning before editing anything on the the .cro tab, right? Haven't attempted to do that yet as I don't know how to do that process yet. Is it hard? At the moment, I'm compensating for that by adding items I want earlier in the game as pickup items.
 

WARlord1903

Well-Known Member
Newcomer
Joined
Aug 14, 2017
Messages
90
Trophies
0
Location
Kekistan
XP
206
Country
United States
I can't for the life of me figure out how to randomize Pokemon Sun or Moon, but there was one time that I thought I was successful, when I actually screwed up the entire game.

I booted up my game and everything was normal, until the scene with Kukui ended. It cut to the scene where your mom tells the Meowth to go wake you up, but instead she just kept on saying either empty text bubbles or "Searching for a trade partner..." Everything carried on the same until I went upstairs to get my hat and bag, and then it crashed. I have absolutely no clue what I did.
 

Majickhat55

The Red Woman
Member
Joined
Mar 28, 2016
Messages
4,936
Trophies
1
Age
37
Location
Asshai
XP
2,973
Country
United States
Well you can't edit the items you actually pickup in the overworld as they're scripted. You can only edit the items received through the move "pickup".

.cro edits are no different than gaex Ines

Sent from my SAMSUNG-SM-N910A using Tapatalk
 

Majickhat55

The Red Woman
Member
Joined
Mar 28, 2016
Messages
4,936
Trophies
1
Age
37
Location
Asshai
XP
2,973
Country
United States
I can't for the life of me figure out how to randomize Pokemon Sun or Moon, but there was one time that I thought I was successful, when I actually screwed up the entire game.

I booted up my game and everything was normal, until the scene with Kukui ended. It cut to the scene where your mom tells the Meowth to go wake you up, but instead she just kept on saying either empty text bubbles or "Searching for a trade partner..." Everything carried on the same until I went upstairs to get my hat and bag, and then it crashed. I have absolutely no clue what I did.
What were you trying to randomize lol?
 

Majickhat55

The Red Woman
Member
Joined
Mar 28, 2016
Messages
4,936
Trophies
1
Age
37
Location
Asshai
XP
2,973
Country
United States
TMs, Starters, Wild Pokemon, Trainers, Gifts, Shops, etc.. I didn't even touch the text section.
Yeah that's weird.... If you were using PK3DS perhaps you clicked the "randomize garcs" by mistake. Other than that nothing I know of would cause that to happen Lol. Unless of course you put the edited garcs in the wrong place before rebuilding.

I'd definitely try again with a fresh dump.
 

WARlord1903

Well-Known Member
Newcomer
Joined
Aug 14, 2017
Messages
90
Trophies
0
Location
Kekistan
XP
206
Country
United States
Yeah that's weird.... If you were using PK3DS perhaps you clicked the "randomize garcs" by mistake. Other than that nothing I know of would cause that to happen Lol. Unless of course you put the edited garcs in the wrong place before rebuilding.

I'd definitely try again with a fresh dump.
Oh yeah, I've dumped and edited it tons of times after this, still with no luck.
 

ataricore

Well-Known Member
OP
Newcomer
Joined
Sep 21, 2017
Messages
53
Trophies
0
Age
31
XP
161
Country
United Kingdom
Well you can't edit the items you actually pickup in the overworld as they're scripted. You can only edit the items received through the move "pickup".

.cro edits are no different than gaex Ines

Sent from my SAMSUNG-SM-N910A using Tapatalk
Ah yeah just found that out testing it lol damn ok so how do I go about editing the .cro?
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • K3Nv3 @ K3Nv3:
    I use to like agp content channel went to shit after he died
  • _Ruri_ @ _Ruri_:
    @Sicklyboy, Yeah, time is a huge factor. I have a lot of time on my hands lately because I’ve taken a gap year before starting college so I’ve got a lot of time to kill and MMOs are a blessing for that. I’m playing solo currently and it’s super chill even without a guild tbh.
    +1
  • Xdqwerty @ Xdqwerty:
    @_Ruri_, switching topics I think one of the reasons anime is so popular is bc of fanservice
  • K3Nv3 @ K3Nv3:
    Fanatical bundles are starting to suck
  • _Ruri_ @ _Ruri_:
    @Xdqwerty, Well it’s definitely a good part lol. Imho it’s mainly because western animation doesn’t provide as much 2D animated content of the same variety, quality and quantity that Japan does. There are a lot of people complaining about fanservice though lol, at least online, but it’s probably just a vocal minority
    +1
  • Xdqwerty @ Xdqwerty:
    @_Ruri_, most (well known) western cartoons are comedies and stuff, while anime aside from fanservice also has way more linear plots
    +1
  • _Ruri_ @ _Ruri_:
    @Xdqwerty, Yeah, there are a lot more anime with serious plots compared to western cartoons, where they’re mostly satire. Drawings are also way more detailed in anime than western cartoons
    +1
  • Xdqwerty @ Xdqwerty:
    @_Ruri_, although anime can have more "stiff" animation compared to western cartoons
    +1
  • _Ruri_ @ _Ruri_:
    @Xdqwerty, Hmm, I don’t see it. I haven’t noticed much difference in animation “stiffness” between the two, except for fighting anime of course. Though it might be because they’re a lot of times adapted from manga?
  • Xdqwerty @ Xdqwerty:
    @_Ruri_, and as I mentioned there is more fanservice in anime
    +1
  • Xdqwerty @ Xdqwerty:
    Like, way more
    +1
  • _Ruri_ @ _Ruri_:
    @Xdqwerty, Yeah lol. Way, way, WAAAY more. Also hentai lol
    +1
  • Xdqwerty @ Xdqwerty:
    @_Ruri_, and ecchi
    +1
  • _Ruri_ @ _Ruri_:
    Yup
    +1
  • Xdqwerty @ Xdqwerty:
    @_Ruri_, I don't think hentai and probably ecchi have a proper western equivalent
    +1
  • _Ruri_ @ _Ruri_:
    @Xdqwerty, Yeah, there isn’t, not that I can think of at least. Closest thing I have is people posting porn on Deviantart lol
    +1
  • BigOnYa @ BigOnYa:
    Sucks my property tax went up, I owe almost $4k. Guess gonna have to make wifey get a 2nd job in evenings.
  • _Ruri_ @ _Ruri_:
    ;-;
  • K3Nv3 @ K3Nv3:
    @BigOnYa, at least you'll be my valentine tomorrow
    +1
  • _Ruri_ @ _Ruri_:
    Oh yeah tomorrow is Valentine’s Day
  • K3Nv3 @ K3Nv3:
    Sticky day
  • Xdqwerty @ Xdqwerty:
    I downloaded sm64 coop dx for my brother
  • Xdqwerty @ Xdqwerty:
    @_Ruri_, maybe I will be alone again this year's valentine's day
  • _Ruri_ @ _Ruri_:
    @Xdqwerty, Me too lol 👍
    _Ruri_ @ _Ruri_: @Xdqwerty, Me too lol 👍