ROM Hack [Tute WIP] Injecting VC roms for noobs.

Mikecrowfone

Banned!
OP
Banned
Joined
Jul 25, 2014
Messages
250
Trophies
0
Age
33
XP
40
Country
United States
Thanks to various memebers, I was able to gain some understanding on how this process works. If I have used your information without quoting please let me know so I can credit you. I'll be adding information as they become available.

I did some dirty GBC-injection job.

1. unpack BBB's pokemon rom with ctrtool (which produces un-encrypted exefs.bin, exheader.bin, romfs.bin)

2. inject whatever gbc rom into romfs.bin with hex editor

3. find and edit correct IVFC hash value with hex editor (romfs.bin)

4. modify rsf file

5. with cell9's tools, i was able to recreate cci file


makerom.exe -f cci -target d -rsf gw.rsf -o 3dsrom.3ds -exheader exheader.bin -code code.bin -icon icon.bin -banner banner.bin -romfs romfs.bin -alignwr


So here's my slightly clearer instructions for how to inject VC roms. (It's not complete because I don't fully understand every single step.

  1. Unpack a VC.3ds rom with ctrtool (could someone come up with a command to do so?)
  2. Inject your desired gbc rom into romfs.bin using a hex editor. [Assuming a rudimentary knowledge of hex editing, this should basically involve opening the .gbc rom with a hex editor. Copying everything, pasting it into romfs.bin in the relevant sections. Can someone clarify how to determine the portion to be overwritten?)
  3. Find and edit correct IVFC value with hex editor in romfs.bin (I believe this is required to fix crc issues when using makerom. I have no idea how to edit though. There is a chance that the latest makerom build does not require you to do this?)
  4. Modify rsf file (Can someone explain this too?)
  5. Technically, the command I quote above should work since you have the edited romfs.bin, exheader, rsf file. So you'll be using makerom for this to work.
OPTIONALS


Custom banner

By default makerom will generate a 128mb file which is idiotic considering most gbc roms are ~3-5mb in size.

http://3dbrew.org/wiki/NCSD#Card_Info_Header

Look at Writable Address [media units] in the list in 3DSExplorer, that's the pointer to the NAND save. It seems to always be at 0x200 in the ROM. This info is no longer shown in 3DSExplorer 1.5.3.1 so you have to use 1.5.3.0 or older for that part.

You can super trim the ROM first, add blank space equal to the size of the save to the end of the ROM (you'll have to know this beforehand, can be checked by saving first and then looking at the save area in a hex editor, or to be safe just add a few MBs), and point that address there. The address is in media units which is in blocks of 0x200, so setting that to 0x1374 for example would point the save file location to 0x26E800.
If you already have a save, you can also copy that before super trimming and paste it into the new blank area (or simply paste it at the end of the ROM and point the Writable Address there, that might be easier)

No guarantees on whether it will work but it should.
 
  • Like
Reactions: Margen67

Mikecrowfone

Banned!
OP
Banned
Joined
Jul 25, 2014
Messages
250
Trophies
0
Age
33
XP
40
Country
United States
Can someone just please break this down with download links and in an easy guide cause I cant work out shit!

Download links will come once the proper instructions have been finalized. Finding the download links are super easy. If you can't find them, chances are you aren't looking hard enough or you're lazy.
 

gamesquest1

Nabnut
Former Staff
Joined
Sep 23, 2013
Messages
15,153
Trophies
2
XP
12,247
Errrmmm, this is more like a [vague idea of what to do]

You can't call something a tutorial with the most important steps missing,

I can do this myself and to make a new friendly guide would probably not be possible, it's quite complicated doing it manually and I don't want to have to explain the process over and over.....its not a noob friendly process basically,

I would suggest any noob just hang tight and await a noob friendly tool that does the work for you
 
  • Like
Reactions: overlord00

Reecey

Mario 64 (favorite game of all time)
Member
Joined
Mar 7, 2010
Messages
5,870
Trophies
2
Location
At Home :)
XP
4,485
Country
if you cant understand how to download a file chances are you wont be able to do this or even get close...sorry reecey

Sorry Yeah looks like it :( I was getting so excited as well like a little child with a new toy to be able to play M&DK, I feel let down now :cry:
 

gamesquest1

Nabnut
Former Staff
Joined
Sep 23, 2013
Messages
15,153
Trophies
2
XP
12,247
Well with the Romfs creator.....the process will be easier than ever.....i would guess in the next day or so you will have a simple bat script to automate it all
 
  • Like
Reactions: Reecey

alexenochs

Well-Known Member
Member
Joined
Aug 30, 2010
Messages
466
Trophies
1
XP
870
Country
United States
Well with the Romfs creator.....the process will be easier than ever.....i would guess in the next day or so you will have a simple bat script to automate it all

yes but it seems reecy is talking about a game boy advance game and in this case would not be possible unless there is a gbc version of mario vs donkey kong? and really gamesquest1? in the next day or so? the 21st is my birthday that would be a kick a$$ present from the forum xD
 

sion_zaphod

Ex-Galactic President; confidence trickster; etc
Member
Joined
Sep 4, 2011
Messages
513
Trophies
1
Age
45
Location
Wales
XP
2,090
Country
Do you need a Gateway flash card to play injected roms? Can they be played just from SD like normal dlc? Or do they need a modded console with emu nand?
 

Reecey

Mario 64 (favorite game of all time)
Member
Joined
Mar 7, 2010
Messages
5,870
Trophies
2
Location
At Home :)
XP
4,485
Country
yes but it seems reecy is talking about a game boy advance game and in this case would not be possible unless there is a gbc version of mario vs donkey kong? and really gamesquest1? in the next day or so? the 21st is my birthday that would be a kick a$$ present from the forum xD

It is a GBC VC game that was what I was hoping on. No your rite it is GBA but I thought we can already play GBA games its GBC we cant play?
 

alexenochs

Well-Known Member
Member
Joined
Aug 30, 2010
Messages
466
Trophies
1
XP
870
Country
United States
gba games do not run on the 3ds in virtual console the only way you can currently play ANY gba game on 3ds is if you have the ambassador titles and these are technically not virtual console as they are running from litterally GBA on a chip inside the 3ds you cant even put your console in sleep mode when running these 10 games and chances are even if gateway manages to get these running it would be a long time before someone made them interchangeable with another rom
 

Reecey

Mario 64 (favorite game of all time)
Member
Joined
Mar 7, 2010
Messages
5,870
Trophies
2
Location
At Home :)
XP
4,485
Country
gba games do not run on the 3ds in virtual console the only way you can currently play ANY gba game on 3ds is if you have the ambassador titles and these are technically not virtual console as they are running from litterally GBA on a chip inside the 3ds you cant even put your console in sleep mode when running these 10 games and chances are even if gateway manages to get these running it would be a long time before someone made them interchangeable with another rom

But all the pokemon games work, legend of zelda etc.. they have for along time now.
 

alexenochs

Well-Known Member
Member
Joined
Aug 30, 2010
Messages
466
Trophies
1
XP
870
Country
United States
on the flip side of news reecey mario vs donkey kong is one of the ambassador games that was released on the 3ds heres the list
F-Zero Maximum Velocity
Super Mario Advance 3
The Legend of Zelda: Minish Cap
Fire Emblem: The Sacred Stones
Kirby and the Amazing Mirror
Mario Kart Advance
Mario vs. Donkey Kong
Metroid Fusion
Wario Land 4
Wario Ware, Inc. Mega Microgame$

and gateway has said (when they gave 2.3b to the public) that they would work on it after the next update so maybe you will see these come soon only time will tell also..there is a gba emulator being developed by st4rk but i dont think thats his main focus right now as he is making 3Dnes
 

Reecey

Mario 64 (favorite game of all time)
Member
Joined
Mar 7, 2010
Messages
5,870
Trophies
2
Location
At Home :)
XP
4,485
Country
I'm just going to shut up now cause I don't know what I am talking about and I'm starting to feel a bit silly, its to early for a Saturday for me to get too serious :lol:
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • BigOnYa @ BigOnYa:
    Did you feed the hamster in your internet router? It prob died and is running slow now.
  • Xdqwerty @ Xdqwerty:
    @BigOnYa, why did you start saying my pc has a hamster in the first place?
    +1
  • BigOnYa @ BigOnYa:
    Its actua!ly just a old joke, meaning its slow. Was just kidding around with you.
    +1
  • BigOnYa @ BigOnYa:
    I bet @AncientBoi has some hamsters hidden somewhere tho....
    +2
  • Psionic Roshambo @ Psionic Roshambo:
    I think Game streaming should work like this.... Local Hardware able the run the game fine, game engine and common assets stored locally, all FMV and music and textures could be streaming
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    Some temporary storage
  • Xdqwerty @ Xdqwerty:
    also @BigOnYa im making some progress on my gdevelop project, implemented various mechanics
  • Psionic Roshambo @ Psionic Roshambo:
    They went all in on streaming, should have been more of a hybrid approach
    +1
  • BigOnYa @ BigOnYa:
    Or free government supplied high speed internet be nice also. Like Obama care. Xdqwerty that's cool, its time consuming but rewarding once done or playable, to see what you've made from scratch. Animations take forever, but worth it.
    +1
  • Xdqwerty @ Xdqwerty:
    @BigOnYa, although the bullets are a bit buggy
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    Not to mention this would be a massive pain to pirate
  • Xdqwerty @ Xdqwerty:
    @BigOnYa,
    and the visual aspect of the game is quite crude (the sprite that looks best is that of the protagonist just because he is a stickman with sunglasses)
    +1
  • BigOnYa @ BigOnYa:
    There is a bullets behaviour you assign to your character, that makes the code easier, under "behaviours"
  • Xdqwerty @ Xdqwerty:
    i meant that when the character is pointing to the right, the bullets spawn where they should, but when he is on the right, they move to the right but the spawn point is incorrect
  • BigOnYa @ BigOnYa:
    Itch.io has lots of free assets also. Under the bullets behavior tab, there is a "rotate bullets" option, can try that. Or in the code can try
    - fire bullet Player.X(PlayerDirection)
  • Xdqwerty @ Xdqwerty:
    im taking a break for today anyway
    +1
  • BigOnYa @ BigOnYa:
    YEa gotta after a while, looking at code for long periods will bug your eyes.
    +1
  • BigOnYa @ BigOnYa:
    That's cool tho, I'm proud of you going back to it, not giving up. It is difficult at first to learn, but fun once you get the hang of it. I think I've watched every tutorial video there is, but I still struggle sometimes to get stuff to work right. But gotta keep trying dif things, and eventually you will get it right.
    +1
  • K3Nv2 @ K3Nv2:
    Lol McDonald's has a grandma mcflurry
  • Xdqwerty @ Xdqwerty:
    @K3Nv2, furry grandma?
  • BigOnYa @ BigOnYa:
    It sounds good actually, I like butterscotch
  • K3Nv2 @ K3Nv2:
    It sucked don't know wtf these little bits and pieces are they use now
    K3Nv2 @ K3Nv2: It sucked don't know wtf these little bits and pieces are they use now