Hacking Pasta CFW - A CFW that allows unsigned CIA to be installed on Old and New 3DS! (required ninjhax)

Status
Not open for further replies.

JoostinOnline

Certified Crash Test Dummy
Member
Joined
Apr 2, 2011
Messages
11,005
Trophies
1
Location
The Twilight Zone
Website
www.hacksden.com
XP
4,339
Country
United States
Lol why doing simple when else if has to be used xD
(it's a joke. It's obvious that switch was better at this point xD)
Well getting rid of some variables and having a default case are the main benefits. They certainly aren't groundbreaking changes, just good practice. If the patch sizes ever change (I have no idea if they would), the sizeof covers that too. Always prepare for the unexpected.
 
  • Like
Reactions: Vappy and VinsCool

VinsCool

Persona Secretiva Felineus
Global Moderator
Joined
Jan 7, 2014
Messages
14,600
Trophies
4
Location
Another World
Website
www.gbatemp.net
XP
25,207
Country
Canada
Well getting rid of some variables and having a default case are the main benefits. They certainly aren't groundbreaking changes, just good practice. If the patch sizes ever change (I have no idea if they would), the sizeof covers that too. Always prepare for the unexpected.
That's my point xD You simplified it a lot :P
 

davhuit

Well-Known Member
Member
Joined
Nov 23, 2005
Messages
994
Trophies
0
XP
550
Country
France
Yeah, I didn't tried yet but if the original roms are inside the GBA VC, it should be possible to inject other roms in it and check if they are compatible.
 

Apache Thunder

I have cameras in your head!
Member
Joined
Oct 7, 2007
Messages
4,432
Trophies
3
Age
36
Location
Levelland, Texas
Website
www.mariopc.co.nr
XP
6,800
Country
United States
Yeah exactly how the CIA and rom injection was built/done would be good to know. I had attempted to build a CIA of an unmodified GBA VC title as a test and even that wouldn't boot. I also tried building it using ScireM's 3DS Rom builder then extracting the CXI with 3DSExplorer. After converting that to CIA it wouldn't install. (though it did install while in Gateway mode. But Gateway can't boot GBA stuff, so can't test if it worked)

Probably encryption related. 3DS roms are usually zero key encrypted for Gateway. But PastaCFW and PBT CFW do not support that method of encryption for CIA files. (Gateway does however) Installing them while in Gateway mode works. But they do crash if loaded from PastaCFW/PBT.

I'm interested to know how you built yours. Looks like the sig checks in AGB_FIRM was a lie. :P
 

davhuit

Well-Known Member
Member
Joined
Nov 23, 2005
Messages
994
Trophies
0
XP
550
Country
France
I tried the classic method using a .3DS version but once extracted, the romfs folder is empty so it seems it require to unpack/rebuild the .cia directly.

It seems you also managed to get a region-free home menu or either to region-free those cias as your home menu is japanese and both icons of the GBA VC games are USA/EUR ones.
 

Ambassador

Well-Known Member
Member
Joined
May 30, 2015
Messages
217
Trophies
0
Age
33
XP
177
Country
Egypt
I tried the classic method using a .3DS version but once extracted, the romfs folder is empty so it seems it require to unpack/rebuild the .cia directly.

It seems you also managed to get a region-free home menu or either to region-free those cias as your home menu is japanese and both icons of the GBA VC games are USA/EUR ones.
no, romfs is not used in vc gba. gba rom are located in code.bin
 
Last edited by Ambassador,

Riku

Well-Known Member
Member
Joined
May 3, 2009
Messages
288
Trophies
0
XP
1,491
Country
United States
Yeah exactly how the CIA and rom injection was built/done would be good to know. I had attempted to build a CIA of an unmodified GBA VC title as a test and even that wouldn't boot. I also tried building it using ScireM's 3DS Rom builder then extracting the CXI with 3DSExplorer. After converting that to CIA it wouldn't install. (though it did install while in Gateway mode. But Gateway can't boot GBA stuff, so can't test if it worked)

Probably encryption related. 3DS roms are usually zero key encrypted for Gateway. But PastaCFW and PBT CFW do not support that method of encryption for CIA files. (Gateway does however) Installing them while in Gateway mode works. But they do crash if loaded from PastaCFW/PBT.

I'm interested to know how you built yours. Looks like the sig checks in AGB_FIRM was a lie. :P
It is require additional signature check patching, it's not that simple. Personally, I'm not familiar with VC ROM injecting at all, so I just used Ambassador game as template. I thought about writing tool to build GBA cias from scratch, but it requires figuring this part attached to the end of every ROM. It's most likely storing info about ROM id and size. For example, Mother 3 is 32MB ROM and there's no 32MB Ambassador games exist. Anyway, I don't have VC rom injecting expience and figuring this stuff out takes time.
 

Raugo

Well-Known Member
Member
Joined
Nov 22, 2014
Messages
630
Trophies
0
XP
2,451
Country
Spain
It is require additional signature check patching, it's not that simple. Personally, I'm not familiar with VC ROM injecting at all, so I just used Ambassador game as template. I thought about writing tool to build GBA cias from scratch, but it requires figuring this part attached to the end of every ROM. It's most likely storing info about ROM id and size. For example, Mother 3 is 32MB ROM and there's no 32MB Ambassador games exist. Anyway, I don't have VC rom injecting expience and figuring this stuff out takes time.

The Fire Emblem EU rom have 32MB rom.
 
  • Like
Reactions: Margen67

WeedZ

Possibly an Enlightened Being
Global Moderator
Joined
Jan 13, 2015
Messages
3,825
Trophies
1
Location
The State of Denial
Website
gbatemp.net
XP
5,666
Country
United States
It is require additional signature check patching, it's not that simple. Personally, I'm not familiar with VC ROM injecting at all, so I just used Ambassador game as template. I thought about writing tool to build GBA cias from scratch, but it requires figuring this part attached to the end of every ROM. It's most likely storing info about ROM id and size. For example, Mother 3 is 32MB ROM and there's no 32MB Ambassador games exist. Anyway, I don't have VC rom injecting expience and figuring this stuff out takes time.
So? what? They just have to be the same size?
 

gamesquest1

Nabnut
Former Staff
Joined
Sep 23, 2013
Messages
15,153
Trophies
2
XP
12,247
It is require additional signature check patching, it's not that simple. Personally, I'm not familiar with VC ROM injecting at all, so I just used Ambassador game as template. I thought about writing tool to build GBA cias from scratch, but it requires figuring this part attached to the end of every ROM. It's most likely storing info about ROM id and size. For example, Mother 3 is 32MB ROM and there's no 32MB Ambassador games exist. Anyway, I don't have VC rom injecting expience and figuring this stuff out takes time.
is the additional AGB_FIRM signature check patch going to be shared or.....not:(

pretty sure i got the custom GBA cia files figured out, but no way of confirming i done it correctly :P
 

Scarlet

Onion Soup
Editorial Team
GBAtemp Patron
Joined
Jan 7, 2015
Messages
5,164
Trophies
2
Location
Middleish North-Right
Website
scarlet.works
XP
14,871
Country
United Kingdom
is the additional AGB_FIRM signature check patch going to be shared or.....not:(

pretty sure i got the custom GBA cia files figured out, but no way of confirming i done it correctly :P
Can't you just install it to check, or do you not have a copy of Cubic Ninja?
 
Status
Not open for further replies.

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • TwoSpikedHands @ TwoSpikedHands:
    I just found out that the EU version is better in literally every way, better sound quality, better lighting, and there's even a patch someone made to make the text look nicer
  • TwoSpikedHands @ TwoSpikedHands:
    Do I restart now using what i've learned on the EU version since it's a better overall experience? or do I continue with the US version since that is what ive been using, and if someone decides to play my hack, it would most likely be that version?
  • Sicklyboy @ Sicklyboy:
    @TwoSpikedHands, I'll preface this with the fact that I know nothing about the game, but, I think it depends on what your goals are. Are you trying to make a definitive version of the game? You may want to refocus your efforts on the EU version then. Or, are you trying to make a better US version? In which case, the only way to make a better US version is to keep on plugging away at that one ;)
  • Sicklyboy @ Sicklyboy:
    I'm not familiar with the technicalities of the differences between the two versions, but I'm wondering if at least some of those differences are things that you could port over to the US version in your patch without having to include copyrighted assets from the EU version
  • TwoSpikedHands @ TwoSpikedHands:
    @Sicklyboy I am wanting to fully change the game and bend it to my will lol. I would like to eventually have the ability to add more characters, enemies, even have a completely different story if i wanted. I already have the ability to change the tilemaps in the US version, so I can basically make my own map and warp to it in game - so I'm pretty far into it!
  • TwoSpikedHands @ TwoSpikedHands:
    I really would like to make a hack that I would enjoy playing, and maybe other people would too. swapping to the EU version would also mean my US friends could not legally play it
  • TwoSpikedHands @ TwoSpikedHands:
    I am definitely considering porting over some of the EU features without using the actual ROM itself, tbh that would probably be the best way to go about it... but i'm sad that the voice acting is so.... not good on the US version. May not be a way around that though
  • TwoSpikedHands @ TwoSpikedHands:
    I appreciate the insight!
  • The Real Jdbye @ The Real Jdbye:
    @TwoSpikedHands just switch, all the knowledge you learned still applies and most of the code and assets should be the same anyway
  • The Real Jdbye @ The Real Jdbye:
    and realistically they wouldn't

    be able to play it legally anyway since they need a ROM and they probably don't have the means to dump it themselves
  • The Real Jdbye @ The Real Jdbye:
    why the shit does the shitbox randomly insert newlines in my messages
  • Veho @ Veho:
    It does that when I edit a post.
  • Veho @ Veho:
    It inserts a newline in a random spot.
  • The Real Jdbye @ The Real Jdbye:
    never had that i don't think
  • Karma177 @ Karma177:
    do y'all think having an sd card that has a write speed of 700kb/s is a bad idea?
    trying to restore emunand rn but it's taking ages... (also when I finished the first time hekate decided to delete all my fucking files :wacko:)
  • The Real Jdbye @ The Real Jdbye:
    @Karma177 that sd card is 100% faulty so yes, its a bad idea
  • The Real Jdbye @ The Real Jdbye:
    even the slowest non-sdhc sd cards are a few MB/s
  • Karma177 @ Karma177:
    @The Real Jdbye it hasn't given me any error trying to write things on it so I don't really think it's faulty (pasted 40/50gb+ folders and no write errors)
  • DinohScene @ DinohScene:
    run h2testw on it
    +1
  • DinohScene @ DinohScene:
    when SD cards/microSD write speeds drop below a meg a sec, they're usually on the verge of dying
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    Samsung SD format can sometimes fix them too
  • Purple_Heart @ Purple_Heart:
    yes looks like an faulty sd
  • Purple_Heart @ Purple_Heart:
    @Psionic Roshambo i may try that with my dead sd cards
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    It's always worth a shot
    Psionic Roshambo @ Psionic Roshambo: It's always worth a shot