Spirit Tracks DPAD - need help applying patch

Started by BlackMod, January 24, 2023, 01:01:07 PM

Previous topic - Next topic

BlackMod

https://www.romhacking.net/reviews/4493
I'm trying to patch this to my rip of Spirit Tracks, but the instructions included with the patch are unclear to me.

QuoteApply Patch using the xdelta command line:

xdelta.exe -d -s (old_file) (delta_file) (decoded_new_file)

old_file should be a copy of Legend of Zelda Spirit Tracks US
delta_file is the patch (zelda_spirit_tracks_dpad.xdelta)
decoded_new_file is the filename after patching

The patch comes with "xdelta.exe" which I opened and typed in what I assumed was the command I was intended to use (including variations), but nothing happens when I press Enter. Not sure what I'm expected to do.

mziab

#1
Try Delta Patcher. It applies patches in that format and should be much easier to use.

Jorpho

Quote from: BlackMod on January 24, 2023, 01:01:07 PMThe patch comes with "xdelta.exe" which I opened and typed in what I assumed was the command I was intended to use (including variations)
Perhaps you should elaborate on what you are typing and where you are typing it.
This signature is an illusion and is a trap devisut by Satan. Go ahead dauntlessly! Make rapid progres!

BlackMod

Quote from: mziab on January 24, 2023, 05:16:49 PMTry Delta Patcher.
Thank you very much! This worked, though I had to turn off checksum validation for it to work. Don't know if that matters at all.
Quote from: Jorpho on January 24, 2023, 10:36:18 PMPerhaps you should elaborate on what you are typing and where you are typing it.

Picture link.

KingMike

It's probably not detecting it because it looks like you're using a "trimmed" ROM.
An unmodified ROM is 128MB.
"My watch says 30 chickens" Google, 2018

Jorpho

Quote from: BlackMod on January 25, 2023, 03:45:23 AMPicture link.
Is that Windows 10? Hold down Shift on your keyboard and right-click the folder in the sidebar; then select "Open Powershell window here". Then type cmd (and press enter). Then enter the command. Don't use parentheses.
This signature is an illusion and is a trap devisut by Satan. Go ahead dauntlessly! Make rapid progres!

mziab

#6
Quote from: Jorpho on January 26, 2023, 12:58:58 AMIs that Windows 10? Hold down Shift on your keyboard and right-click the folder in the sidebar; then select "Open Powershell window here". Then type cmd (and press enter). Then enter the command. Don't use parentheses.

A quicker way is to just type cmd into the address bar. Loved it ever since I discovered it.

Quote from: BlackMod on January 25, 2023, 03:45:23 AMThank you very much! This worked, though I had to turn off checksum validation for it to work. Don't know if that matters at all.

That depends on the actual differences between the expected ROM and yours. If the only difference is that your ROM is trimmed, it should just work.

BlackMod

Quote from: KingMike on January 25, 2023, 11:14:27 AMAn unmodified ROM is 128MB.
Strange. I ripped it myself using GodMode9. I guess it trims ROMs automatically?
Quote from: Jorpho on January 26, 2023, 12:58:58 AMIs that Windows 10? Hold down Shift on your keyboard and right-click the folder in the sidebar; then select "Open Powershell window here". Then type cmd (and press enter). Then enter the command. Don't use parentheses.
Yes, I am using Windows 10. Powershell gave me an error message, so I used a utility to verify the hashes.
File hashes.
I'm having trouble finding hashes to match these to, however...
Quote from: mziab on January 26, 2023, 04:38:32 AMThat depends on the actual differences between the expected ROM and yours.
It turns out the ROM the hacker used was a bad dump. Could that be the problem here?
Quote from: mziab on January 26, 2023, 04:38:32 AMtype cmd into the address bar
That's useful, but it opens command prompt, not PowerShell. Though it doesn't make a difference in this case. :laugh:

mziab

Quote from: BlackMod on January 27, 2023, 07:06:17 AMI'm having trouble finding hashes to match these to, however...It turns out the ROM the hacker used was a bad dump.

Yes, that's what this all boils down to. Have you checked if it works after applying the patch using DeltaPatcher with checksum validation disabled?

Quote from: BlackMod on January 27, 2023, 07:06:17 AMThat's useful, but it opens command prompt, not PowerShell. Though it doesn't make a difference in this case. :laugh:

The command prompt is exactly what you need. Jorpho's advice was a very roundabout way of launching that. You don't need that extra step of launching PowerShell to run the commands specified in the readme. Not that it matters in this instance, since DeltaPatcher accomplished the exact same thing.

Jorpho

Quote from: mziab on January 27, 2023, 07:22:53 AMJorpho's advice was a very roundabout way of launching that.
There aren't really many less "roundabout" ways. :P (Though I can't deny typing "cmd" in the address bar is definitely one of them.)

QuoteYou don't need that extra step of launching PowerShell to run the commands specified in the readme.
What's the alternative? If you don't run it from a command prompt, isn't the window going to close right away before any message can be seen?
This signature is an illusion and is a trap devisut by Satan. Go ahead dauntlessly! Make rapid progres!

mziab

Quote from: Jorpho on January 27, 2023, 09:47:08 AMWhat's the alternative? If you don't run it from a command prompt, isn't the window going to close right away before any message can be seen?

You don't need to open PowerShell to start cmd (the command prompt). That's all I'm saying. You can open a command prompt in the current folder using the aforementioned "type cmd into the address bar" trick.