This mod changes the HUD to fit a 16:9 aspect ratio. It was made for the 0-00 NTSC Gamecube release of Metroid Prime, and compatibility with other releases of the game (such as the PAL version, Player's Choice, or Metroid Prime Trilogy) is not guaranteed. This mod is also intended to be used with Dolphin's widescreen hack setting, and probably won't be useful on a real console. Created by Aruki. If you run into problems, you can contact me on Twitter: @__Aruki

---

How to install:

* You will need a tool that can unpack the game's ISO. Which one you should use depends on how you intend to run the modified files. You can either create a new ISO file, or you can run the unpacked files directly in Dolphin.
- If you want to create a new ISO, I recommend using GC Iso Tool: http://www.wiibackupmanager.co.uk/gcit.html
- If you want to run the unpacked files directly, you can have Dolphin unpack the files. Right click the game -> Properties -> Filesystem -> right-click Disc -> Extract All Files.

* Extract PakTool.exe and zlib1.dll into the game directory. Open a command line window in this folder (shift + right-click -> Open command window here) 

* Unpack GGuiSys.pak and NoARAM.pak and dump list files for them using these commands:
- PakTool GGuiSys.pak
- PakTool NoARAM.pak
- PakTool -d GGuiSys.pak
- PakTool -d NoARAM.pak

* Extract the contents of GGuiSys-pak and NoARAM-pak into the corresponding folders that PakTool has created.

* Repack the pak files using PakTool:
- PakTool -ra mp1 GGuiSys
- PakTool -ra mp1 NoARAM

* You now have the mod installed.
- Before creating a new ISO with GC Iso Tool, make sure you delete all the extra files added during the installation process.
- To run the unpacked files in Dolphin directly, go to Options -> Configure -> Paths. Set "DVD Root" to point to the folder with the unpacked files, and set "Apploader" to point to the extracted apploader.img in this folder. Then run the game by opening the unpacked .dol file directly.

* To fix frustum culling problems (seeing stuff pop in and out near the left/right edges of the screen), use this AR code: 043452A8 C342CB78
- Alternately, if you know how to use a hex editor, you can patch the .dol file directly to fix frustum culling. Jump to the offset 0x342208 and replace the four bytes there (which should be 0xFF401090) with the value 0xC342CB78.

* To run the game in widescreen, you must be running the game in Dolphin. Go to Options -> Graphics Settings -> General and set Aspect Ratio to "Force 16:9". Then go to the Enhancements tabs and check "Widescreen Hack". You may also want to play with some of the other enhancements such as turning up the internal resolution if your PC can handle it.

---

This mod was created with very limited knowledge of the FRME format (which control the layout of UI frames) and no means of exporting custom geometry. There are no proper editors for this format yet either, so everything was done via manually hex editing files. Here are the known shortcomings of this mod, some of which could be improved with better knowledge and tools:

* The geometry of the Combat Visor can be modified so that only a couple pieces of the top part of the HUD are stretched, which would allow keeping the energy bar at its original size and allowing the beam/visor icons to fit into their squares more neatly. If this is done then the Scan Visor geometry for the energy bar can also be left as-is.
* The geometry of the Thermal Visor and X-Ray Visor can be modified so they fit the screen better without stretching. (In this mod, Thermal is stretched and X-Ray is unmodified, neither of which is ideal.)
* The Scan Visor scan window is too large and extends past the range of where you can actually scan things. Unfortunately this is not easily fixable because the scan window is made up of 6 different models, and the way they're arranged to create the window is hardcoded.
* The pause menu can likely be at least partially improved to reduce stretching with a better understanding of the FRME format.
* On the file select menu, the "Cancel | Erase" text when you erase a file is not center aligned. The widgets for this text are the exact same widgets that are used for the "Normal Mode | Hard Mode | Options" text when you create a new file, but the latter is left-aligned while the former is center-aligned. It appears that the game applies a hardcoded horizontal offset to align the erase text to the center of the screen, assuming a 4:3 aspect ratio. Due to that, this isn't really easily fixable.
* The Metroid Prime logo on the title screen can't be unstretched because it's baked into the video file used as the backdrop for the front-end UI.
* I don't know what controls the world name text that appears on the screen when you load a file, so I don't know if that can be unstretched.

---

Files:

* GGuiSys.pak:
b10e1dcd.FRME - Combat Visor HUD
e47cd0dc.FRME - Scan Visor HUD (energy bar)
f176a9d5.FRME - Scan Visor Flat HUD (scan gauge)
143aca19.FRME - Thermal Visor HUD
bf687554.FRME - Morph Ball HUD
6352720c.FRME - Pause Menu
b101fa1d.FRME - Pause Menu Controls
97ff54de.FRME - Map Screen UI

* NoARAM.pak:
556f0c4a.TXTR - Nintendo Logo
a078a2e8.TXTR - Retro Studios Logo
32aeaaae.TXTR - Dolby Logo
d411b6bb.TXTR - Title Screen "Press Start" Text
128e283d.FRME - File Select Menu
854ef9b3.FRME - Front-End Options Menu
5867fcf1.FRME - Fusion Menu
33181a6b.FRME - Fusion Link Screen
b7a308bd.FRME - Helmet
2f972d0c.FRME - Base HUD (Beam/Visor Squares)