Tutorial  Updated

How to Make Flash Game WAD Injects

This is not an April Fool's joke!

People have made countless injects of Virtual Console games on the Wii. That means they take a Virtual Console game WAD, then use a program such as “autoinjectuwadinjector” to put any ROM they want into the game. This process is known as “injecting”. One little-known thing (until now) is that you can do the same thing with Adobe Flash games! A few WiiWare games and video-streaming Channels on the Wii actually run on a Flash applet.

For this tutorial, we will be injecting Flash games using a base of the European-exclusive WiiWare game by the name of “Back to Nature”. The game is terrible, and one thing to blame for that is that it’s entirely Flash-based! The swf can even be extracted from the game and be played on a computer. Despite the fact the game is garbage, it gave us a nice gift - the ability to inject whatever Flash game you want into the app. We turned the WAD into a template. Even though the Internet Channel can play Flash games, it’s a hassle for the webpage containing the Flash game to load, and Flash is at the end of life. It’s a good time to take advantage of packaging Flash games into WADs.


What you need:

  • Base WAD, can be found on a site called MarioCube in the folder WADs > Flash Injects > Flash > Base.
    • If you want to get the Flash WAD working on a USA region Wii, download the USA WAD, else if you want to get it working on a Europe region Wii, download the Europe WAD.
  • A tool to unpack and pack a WAD (ShowMiiWADs, WadMii in Wii.cs Tools, Sharpii...)
  • A tool to unpack and pack a U8 archive (ShowMiiWADs, U8Mii in Wii.cs Tools, Sharpii, wszst...)
  • A text editor (Notepad is fine)
  • Brlyt tool (You will need to install an framework called ActiveX for this to run. It's old, so I'm not sure if it's compatible with newer versions of Windows.)
  • A tool to extract the banner and modify the icons (CustomizeMii...)


Editing 00000002.app


We will replace the SWF file in the WAD and optionally make some changes to a fun configuration file. Unpack the WAD using a tool such as ShowMiiWADs, then you will see a set of .app files. Extract the 00000002.app with your preferred tool to unpack a U8 archive. Replace `content/menu.swf` with the SWF of the Flash game you want to inject.


OPTIONAL: Open config/config.common.pcf with your preferred text editor. You can make some fun changes to this, but the base WAD has all the preferred settings.

  • mouse - should be "on" if you want to use the Wii Remote cursor as a mouse, else "off"
  • midi - enables use for a soundfont in DLS format. Haven’t tested this, but if you want to play with it, set it to "on". Else, set it to "off".
  • dls_file - uncomment this line to use it (remove the "#" at the start of the line). Set it to a path to the DLS file you want to use.
  • shared_object_capability - determines whether or not to make a save file, haven’t done testing with it. In most cases, should be "off".
  • vff_cache_size - if you plan to make a save file, you can change the number of kilobytes. Default is "96".
  • strap_reminder - should be "none". Set to "normal" if you want to enable the wrist strap reminder, or "no_ex" if you want to remove the transitioning image on the strap screen about using an extension controller.
  • supported_devices - should be "core, freestyle, classic". Not sure how this works, but it seems to enable or disable controllers. Other types of comma-separated controllers that this can be set to are "balance_checker", "codetrain", "guitar", and "future".
  • hbm_no_save - should be "off". This option probably enables the “Anything not saved will be lost” message when you access the Wii Menu or Reset button on the HOME Menu.
  • quality - should be "high", but can also be "low" or "medium" if you want to use those qualities for some reason.
  • qwerty_keyboard - should be "on" if you want to use the keyboard, else "off"

When you made your changes, pack 00000002.app back up with your preferred tool and re-pack the WAD with all of it’s contents.


Changing the icons and names:


Change the display name of the channel to your name of choice, and change its ID to something unique (It’s not recommended to modify the first letter of the title ID). Using CustomizeMii, Modify the images “IconVCPic” and “VCPic” to match your game.


Now, extract the banner.brlyt file and put it somewhere. Do the following customization steps:

  • Change the name to the name you chose previously and press the “set all” button.

  • Change the year to match your game and press the “set all” button.

  • Change the players amount to match your game. (e.g. 1, 1-4, 2-4)

  • Select the banner.brlyt file

  • Keep everything else exactly as is and save changes.

You are all done, install the WAD file onto your Wii. Ensure you have BootMii or Priiloader installed on your Wii before installing the inject, or test with Dolphin, because things can go wrong if you are not careful enough. If it doesn't work and black screens, then the game might not be compatible with the Wii. If it works, great.

Credits to dhtdht020 for helping me write this guide.
 
Last edited by Larsenv,

Paradiesling

Member
Newcomer
Joined
Feb 7, 2022
Messages
5
Trophies
0
Age
26
Location
Innsbruck
XP
27
Country
Austria
What region of the Flash Placeholder are you using? the USA or the Europe one?
Did you follow correctly the instructions in the OP post (#1)?
I didnt remember if I installed IOS 249, 250 and 251 with d2x CIOS about 10 years ago when I first did everything homebrew related, so I did this yesterday again. Didn't seem to affect anything
NTSC-U is for American consoles only
PAL is for European/Australian consoles only

Might the WADs from my friend @Zorg1996 incompatible with PAL Wiis?
Isn't there some kind of "workaround"?

On his website he says: Wads are only for NTSC(U) consoles . In case you download games like SRL (Single ROM Loader), their direct accesses or forwarders in wad format are RegionFree.

Since he is spanish I assumed he wouldn't make WADS for an american console... but maybe I'm wrong xD
 

Paradiesling

Member
Newcomer
Joined
Feb 7, 2022
Messages
5
Trophies
0
Age
26
Location
Innsbruck
XP
27
Country
Austria
In case there is no way to make it work for a PAL Wii, do you know where to download PAL Wad's?

My most wanted games are:
  • Plants vs Zombies 1 / 2
  • The worlds hardest game
  • Pokémon Mystery Dungeon: Adventure Squad
 

SaulFabre

I like Yoshis and the Wii/Wii U scene.
Member
Joined
Feb 6, 2019
Messages
3,186
Trophies
2
Age
25
Location
Ecuador
Website
saulfabreg-wiivc.blogspot.com
XP
7,831
Country
Ecuador
Since he is spanish I assumed he wouldn't make WADS for an american console... but maybe I'm wrong xD
He actually makes WADS for American consoles (NTSC-U), you were wrong xD
Another thing you can try for play NTSC WADs on PAL Wii (but it doesn't work on vWii of Wii U) is using @stev418's Custom NAND Loader 1.1. You can get instructions for how to use and download link here: https://gbatemp.net/threads/custom-nand-loader-mod-1-1.198242/
This needs the wwPacker 1.84 tool, get it here: https://gbatemp.net/download/wwpacker.36649/
You will also need the common-key.bin file to be placed in wwPacker folder, but unfortunately it is prohibited to share it on GBAtemp (Google is your friend for that, or just generate one using MakeKeyBin).

In case there is no way to make it work for a PAL Wii, do you know where to download PAL Wad's?

My most wanted games are:
  • Plants vs Zombies 1 / 2
  • The worlds hardest game
  • Pokémon Mystery Dungeon: Adventure Squad
Please DON'T ASK for WAREZ (ROMs, ISOs, CIAs, WADs, etc.) on anywhere on GBAtemp. It is STRICTLY PROHIBITED. GBAtemp is for discussion ONLY.
 

Paradiesling

Member
Newcomer
Joined
Feb 7, 2022
Messages
5
Trophies
0
Age
26
Location
Innsbruck
XP
27
Country
Austria
Okay thank you.

I got the common-key.bin, copy pasted the IOS56_forceNTSC_loader from the bin folder of the custom nand loader mod and renamed it to loader.bin and put it into the wwpacker folder. The WAD from Zorg I put also in the wwpacker folder.

But now when I drag the WAD on _wwpacker-Loader.bat it gives me an error.

Do I have to put the whole folder from the nand loader into wwpacker?
 

Zorg07

Well-Known Member
Newcomer
Joined
Jul 14, 2019
Messages
93
Trophies
0
XP
1,009
Country
Peru
Okay thank you.

I got the common-key.bin, copy pasted the IOS56_forceNTSC_loader from the bin folder of the custom nand loader mod and renamed it to loader.bin and put it into the wwpacker folder. The WAD from Zorg I put also in the wwpacker folder.

But now when I drag the WAD on _wwpacker-Loader.bat it gives me an error.

Do I have to put the whole folder from the nand loader into wwpacker?
It will not be possible, friend, because I patched it to PAL or Free Region, because internally, I have configured and mapped the game, only for the USA region, I have not edited anything in the PAL folders, also I used the Wad Place Holder version as a base USA, not PAL, which I would recommend so you can use these flash WADS that will only run properly and work on Wii USA, use and create an emunand NTSCU by Neek2o method.
 

mmilky

Member
Newcomer
Joined
Jul 1, 2010
Messages
13
Trophies
1
XP
164
Country
That doesn't seem to be the case, Shadow is comprised of five SWFs with a total size of 1.91 MB
Back to Nature's SWF is 5.11 MB

Anyway it works:

Even though I could move around with the dpad, I could not find the jump key.
Back to Nature isn't full screen for some reason.

If you look at memory at 0x80385F20 you'll find a list of possible values for keymap.ini
KEY_LEFT
KEY_RIGHT
KEY_HOME
KEY_END
KEY_INSERT
KEY_DELETE
KEY_BACKSPACE
KEY_SELECT
KEY_UP
KEY_DOWN
KEY_PAGEUP
KEY_PAGEDOWN
KEY_FORWARD
KEY_BACKWARD
KEY_ESCAPE
KEY_ENTER
KEY_TAB
KEY_CAPS
KEY_SHIFT
KEY_CTRL
KEY_BUTTON_LEFT
KEY_BUTTON_RIGHT
KEY_BUTTON_DOWN
KEY_BUTTON_UP
KEY_BUTTON_A
KEY_BUTTON_B
KEY_BUTTON_HOME
KEY_BUTTON_PLUS
KEY_BUTTON_MINUS
KEY_BUTTON_1
KEY_BUTTON_2
KEY_BUTTON_Z
KEY_BUTTON_C
KEY_CL_BUTTON_UP
KEY_CL_BUTTON_LEFT
KEY_CL_TRIGGER_ZR
KEY_CL_BUTTON_X
KEY_CL_BUTTON_A
KEY_CL_BUTTON_Y
KEY_CL_BUTTON_B
KEY_CL_TRIGGER_ZL
KEY_CL_RESERVED
KEY_CL_TRIGGER_R
KEY_CL_BUTTON_PLUS
KEY_CL_BUTTON_HOME
KEY_CL_BUTTON_MINUS
KEY_CL_TRIGGER_L
KEY_CL_BUTTON_DOWN
KEY_CL_BUTTON_RIGHT
If you map KEY_BUTTON_2 to KEY_BACKSPACE and rotate the arrow keys you should get a playable game.
Is there 'mouse button' among 'flash key list'?
'mouse left button' does not apply.
I want to apply 'VK_LBUTTON' to 'KEY_BUTTON_B '.
 

ExFabian

Member
Newcomer
Joined
Apr 2, 2021
Messages
17
Trophies
0
Age
19
XP
958
Country
Romania
Is it possible to make multiple wii remotes work with games that use different keys on the keyboard for each player? (ex. WASD for player 1, arrow keys for player 2)
 

Spectremint

Well-Known Member
Member
Joined
May 18, 2020
Messages
127
Trophies
0
Age
19
Website
spectremint.neocities.org
XP
1,212
Country
United States
For some reason the brlyt editor throws this message at me:

1661056418326.png

any clue on what it means?
 

redfire_mrt

Well-Known Member
Member
Joined
May 26, 2020
Messages
226
Trophies
0
XP
1,118
Country
United States
It will not be possible, friend, because I patched it to PAL or Free Region, because internally, I have configured and mapped the game, only for the USA region, I have not edited anything in the PAL folders, also I used the Wad Place Holder version as a base USA, not PAL, which I would recommend so you can use these flash WADS that will only run properly and work on Wii USA, use and create an emunand NTSCU by Neek2o method.
Or just use another placeholder, the PAL version to unpack and copy both the files expect for the 01.app from whatever NTSC base you have unpacked. Delete all of the files, expect the 01.app from the unpacked PAL WAD and paste everything from the NTSC.
 
  • Like
Reactions: SaulFabre

ordartz

Member
Newcomer
Joined
Aug 6, 2023
Messages
11
Trophies
0
XP
43
Country
Mexico
This happens whenever I try to open the game. Any solution, please?
 

Attachments

  • Dolphin 5.0-19368 _ JIT64 DC _ OpenGL _ HLE _ Menú de Wii (0000000100000002) 2023-08-09 03-41-16.mp4
    18.3 MB
  • Like
Reactions: SaulFabre

ExFabian

Member
Newcomer
Joined
Apr 2, 2021
Messages
17
Trophies
0
Age
19
XP
958
Country
Romania
This happens whenever I try to open the game. Any solution, please?
Try another swf of the same game (if you can find one, try your luck on internet archive). I remember this happened to me with an swf that was coded to only run when played on a specific website.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • K3Nv2
  • Xdqwerty
    what are you looking at?
  • BakerMan
    I rather enjoy a life of taking it easy. I haven't reached that life yet though.
    K3Nv2 @ K3Nv2: https://youtube.com/shorts/Tt5J7AfCK6E?si=g4dGzOkhACLJAovM