News: 11 March 2016 - Forum Rules
Current Moderators - DarkSol, KingMike, MathOnNapkins, Azkadellia, Danke

Author Topic: .ips patching for games installed to Wii as a channel  (Read 2200 times)

nesssnightmare

  • Jr. Member
  • **
  • Posts: 5
    • View Profile
.ips patching for games installed to Wii as a channel
« on: May 14, 2020, 04:00:43 pm »
I'm translating a game for Wii that installs to the system as a channel. It can't be played straight from the disc. I've been running it on Dolphin Emulator during translation.

The files are installed to the simulated Wii File System inside the Dolphin Emulator/WFS/title folder. Once I access them there they can be edited for translation.

The files number in the 100,000+ and are well over 8gb in size once installed. Not a big deal until you want to try to share the hack.

The translation is going fine and is somewhere around 70-75% finished but is there any way to create an .ips file or similar to distribute the translation without distributing the actual files themselves?

Or any other method I might not be aware of...?

Any ideas...?

Thanks in advance.

FAST6191

  • Hero Member
  • *****
  • Posts: 2898
    • View Profile
Re: .ips patching for games installed to Wii as a channel
« Reply #1 on: May 16, 2020, 09:29:29 am »
IPS is limited to files 16 megs or smaller (minus a few bytes), and also does not handle relocations (like you might get inside a Wii ROM or file, especially archive files, on the Wii that uses pointers).
To that end best not to use IPS. If you have seen it used on anything on the Wii it is usually an individual file with a small mod that it is used for.

There are however plenty of patchers that can handle large sizes and relocated data. Xdelta is popular in a few circles, bsdiff also does good stuff.

Encryption of discs on the Wii is however a problem (there is a reason most mod installers patch IOS rather than just outright write a modded IOS module into place. Likewise for disc based stuff people will be told to fish out files with wii scrubber, https://wit.wiimm.de/ or the like, though that also means people that insist on downloading WBFS files, super scrubbed isos and the like can also play without having to rebuild things, which was not actually an option until somewhat recently), and if it is also going to be the case here then you get to replicate that method.
I prefer to give people two choices
1) A nice batch file and program that can tear about the ROM/channel/ISO, patch everything for them at file level and stitch it all back together. Batch file is Windows but nothing stopping you for repeating for the various other operating systems you care to do it for, don't know what there is for Android.
2) A list of files to patch, a bunch* of patches for said files and a link to the patching format. This is OS agnostic but harder to implement.
Nothing stopping you from having 2) as a nice big NFO/readme inside the download for 1).

I have seen the file system aware tools combined with a patcher in the past to make essentially another patching format and custom patcher (Jump Ultimate Stars on the DS being a nice example).

Some people on the Wii also abuse various exploits to run patching programs for their hacks (today smash brothers is probably the most notable but there were many others prior, during and since). Make one of those if you want, however I am not a fan of seeing them as the exclusive means of doing it.

*bunch of patches is simple but it is also possible to say note that something like a tar file is almost a bunch of files just put together and predictably so. To that end you could explode something into the however many thousands of files, tar the lot, patch the tar and then. If the patcher has some kind of content detection (think like compression reading forward or back) it might end up as a smaller patch size overall, though if you do have 8 gigs that might make things larger or shoot up patch making time into the days if you have to do 8 gig read ahead/look back for thousands of files.

nirvanausual

  • Newbie
  • *
  • Posts: 1
    • View Profile
Re: .ips patching for games installed to Wii as a channel
« Reply #2 on: May 29, 2020, 01:40:33 pm »
I've been adding ROM Hacks to my SNES emulator on my Wii, but I'm having troubles. The emulator doesn't show .ips files on my SD card. So I attempted to change the files to .smc or .sfc files, and then I could see them, but the ROM hacks wouldn't boot up with the emulator. Does any know why? Any help is appreciated. Thanks guys


FAST6191

  • Hero Member
  • *****
  • Posts: 2898
    • View Profile
Re: .ips patching for games installed to Wii as a channel
« Reply #3 on: May 29, 2020, 04:27:14 pm »
IPS is a list of changes to a ROM and not something run by itself. Some emulators on the PC will allow you to apply them at runtime but that is less common on console/non PC emulators. Not sure what goes for the various SNES emulators on the Wii at this point but assuming it is not the case then you will have to patch the ROMs with them.

Various patchers available on
http://www.romhacking.net/?page=utilities&category=2&platform=&game=&author=&os=&level=&perpage=20&title=&desc=IPS&utilsearch=Go

Do remember to read any readmes/release notes that come with the hacks as some things may want extra headers, specific versions of a game or the like.