Hacking GBA injection

Will I answer dumb questions?

  • No!

    Votes: 18 32.7%
  • Hell, no!

    Votes: 37 67.3%

  • Total voters
    55

lordelan

Well-Known Member
Member
Joined
Jan 4, 2015
Messages
5,787
Trophies
1
Age
44
XP
6,517
Country
Germany
As long as your game compresses down to 8 megabytes or less (you can test by zipping your ROM to get a general idea, but obviously, don't feed this script the zip file, give it the raw gba file), here's how I did it:
  • Open command prompt/terminal window
  • Code:
    python inject_gba.py -z alldata.bin your-rom-file.gba

  • Put your-rom-file.adb that you get from the Python script onto your SD card where appropriate (/wiiu/games/your-gba-game/content) and rename it to alldata.bin
  • Run game through Loadiine
If you've used Python, before it's no different than running any other scripts, really. Just use -z if you have The Minish Cap as your base game, or -m if you have Mario.

Edit: As a side-note, FireRed works great, but you can't save. C'mon Nintendo, support more save formats! :P
With goomba I turned Zelda: Link's Awakening DX into a GBA rom which I then injected with your guide. Although -z isn't used any longer as it seems it worked like a charm and I'm happy to focus on that great game once I finished A Link to the Past.
Just to let you guys know that this thread is a great solution to even play all Gameboy (Color) games on your Wii U. :)
 
  • Like
Reactions: ajd4096
D

Deleted User

Guest
Why another GBA injection app? This one is even more complicated than the other one.
 

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
Why another GBA injection app? This one is even more complicated than the other one.
How is it "another one"? The is the one and only one that let us inject roms into the alldata.bin.
 

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
Oh it was such a long time I did this so I forgot it didn't inject really https://gbatemp.net/threads/release-agb_firm-signature-patcher-gba-rom-converter.390313/
But what makes this version so special?
It is for the Nintendo WiiU
sm7_facepalm.gif
 

ajd4096

Well-Known Member
OP
Member
Joined
Feb 17, 2009
Messages
179
Trophies
1
XP
562
Country
Some options changed again, just to mess with people's minds. :)

Three separate entry points now:
---
inject_gba for cli operation
---
inject_gba_batch for batch operation.
This does your basic "copy base/* -> foo/*, inject foo.gba into foo/content/alldata.psb.m".
You can create a desktop shortcut for drag-n-drool operation.
---
inject_gba_gui for click-n-drool wizard.
(There's still a bug in easygui if you click cancel in a file dialog. It's been patched but not updated on pypi yet.)
---
All support -h. Use it.
All support adding a prefix (goomba, pocketnes, whatever).
All support padding with 00 or FF.
All support "@optionsfile". (Might make it easier if you're writing a wrapper.)
The verbosity option is now less useless.

No save patches yet, still a WIP.
 

julienbdes

Well-Known Member
Member
Joined
Sep 3, 2015
Messages
175
Trophies
0
Age
34
XP
326
Country
Canada
I am not able to inject , inject gba get corrupted imput output not finding -z . I have à rom or 2 i want to inject anyone can assist me?
 

RoyMaster4

Well-Known Member
Member
Joined
Dec 13, 2008
Messages
112
Trophies
0
XP
223
Country
United States
I'm having difficulty with the installation. Yes, I've read the readme and followed it exactly, but I keep getting a syntax error in the middle of running it, which is preventing something from getting installed and also preventing the inject_gba executables from working properly. I'm currently using 3.5.2 (3.5.1 isn't available on the Python site but it should be close enough), but I've also tried it with 3.4.4 and obtained the same error. Reinstalling python did not fix the issue.

I've attached images of the error output - the first one is near the end of the installation procedure, and the second is when attempting to run inject_gba_gui. Help would be greatly appreciated.
 

Attachments

  • Install.png
    Install.png
    11.9 KB · Views: 230
  • Injectgbagui.png
    Injectgbagui.png
    8.8 KB · Views: 237

Djinni

New Member
Newbie
Joined
Jul 6, 2016
Messages
1
Trophies
0
Age
27
XP
41
Country
Go to your easy gui install folder, you can find it by following the file location where your cmd prompt says the syntax error occured. In this directory will be a file called choice_box.py. Open this with a text editor and scroll down to line -76-, it should say "except Exception, e:" <--replace this with "except Exception as e:"
 

piratesephiroth

I wish I could read
Member
Joined
Sep 5, 2013
Messages
3,453
Trophies
2
Age
103
XP
3,233
Country
Brazil
I modified some file I don't remembner, But right now this thing is just too cluttered with too many modules and python is awful so I don't think I'll mess with it again.
 

MajoraAKC

Well-Known Member
Newcomer
Joined
Jul 23, 2017
Messages
58
Trophies
0
XP
80
Country
Sweden
When using --pad00 the rom only gets padded to 8mb instead of 16mb. Is this intended?

I'm trying to inject a goomba color rom with no success. I've tried making the rom with goomba, then inject it. I've tried to use the prefix by selecting the goomba.gba file and injecting the .gbc rom along with it. I've tried with and without padding but I just can't get any of it to work. The screen just stays black when I try to boot the game. I've also tried a different game with my rom base (minish cap) and it worked so there's an issue somewhere with the injecting of the goomba rom.

Edit: It's actually 7.9mb
 
Last edited by MajoraAKC,

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    Veho @ Veho: The cybertruck is a death trap.