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

Author Topic: [Technical] Need help on some of my hacks.  (Read 2279 times)

SCD

  • RHDN Patreon Supporter!
  • Hero Member
  • *****
  • Posts: 568
  • SPOOOOON!
    • View Profile
[Technical] Need help on some of my hacks.
« on: August 19, 2018, 05:53:34 am »
Hi everyone,

I need help on some of the hacks that me & rainponcho worked on, the problem is the last time he was on here was a year ago, so I can’t get help from him to change & fix these because I don’t have the skills to do these myself.

Here’s what I need help on:

McDonald's Treasure Land Adventure Restoration: Make the title screen more like the Japanese version where they capitalized the "L" for "land" and added a extra text crediting Treasure.
http://www.romhacking.net/hacks/3557/

Minor Fixes for Mortal Kombat II: This will explain what I need help on: http://www.romhacking.net/forum/index.php?topic=25979.0
http://www.romhacking.net/hacks/3478/

Streets of Rage 2 Restoration (This hack I did all by myself, I just need to know if these are possible to do.): Is there a way to make the thud sound effect play anytime a person gets knocked down to the floor by a attack instead of being applied to just the throw attacks, this way it will make it more like how the sound effect was used in SOR3.
http://www.romhacking.net/hacks/2604/

If someone can help me on these, that would be great.
« Last Edit: November 15, 2018, 02:42:28 am by SCD »

ShadowOne333

  • Hero Member
  • *****
  • Posts: 983
    • View Profile
Re: [Technical] Need help on some of my hacks.
« Reply #1 on: September 18, 2018, 01:06:22 pm »
DuckTales Restoration: I want to change the cheeseburger and the Xenomorph looking alien back to their original sprites.
http://www.romhacking.net/hacks/1103/
For this one, do you have a comparison image on what both of them look like at the moment and what they should look like (you want them to look like)?

NVM, I managed to find which images you were talking about.
I managed to restore both the Cross in the coffin for the Transylvania stage, and also the Hamburger instead of the Ice Cream Cone:
https://ufile.io/awui6

All that's left to do is the Xenomorph-like creature, which I haven't tried modifying yet, but if you want to do so, the offset for the fat guy's sprites start at 0x003530 in the rom.
Simply open the ROM in any Tile Editor and you should be able to see his tiles, I recommend Tile Molester if you want to arrange them in a more eye-friendly way.
« Last Edit: September 18, 2018, 02:22:22 pm by ShadowOne333 »

SCD

  • RHDN Patreon Supporter!
  • Hero Member
  • *****
  • Posts: 568
  • SPOOOOON!
    • View Profile
Re: [Technical] Need help on some of my hacks.
« Reply #2 on: September 19, 2018, 03:24:56 am »
The cross on the coffin is already restored in my hack.

It also already has the hamburger & the Xenomorph-like creature as well, what I want to do is change them back to the ice cream cone & the fat alien.
« Last Edit: September 19, 2018, 04:51:52 am by SCD »

ShadowOne333

  • Hero Member
  • *****
  • Posts: 983
    • View Profile
Re: [Technical] Need help on some of my hacks.
« Reply #3 on: September 19, 2018, 11:09:59 am »
Here's a patch to restore the Ice Cream Cone:
https://ufile.io/ghk38

However, for the fat alien, that requires some more fancy stuff, as it seems whoever restored the Xenomorph alien also changed the sprite ASM routine somehow.
I ended up with a garbled mess of sprites moving left and right lol
So yeah, that would require some more work to be put back.

SCD

  • RHDN Patreon Supporter!
  • Hero Member
  • *****
  • Posts: 568
  • SPOOOOON!
    • View Profile
Re: [Technical] Need help on some of my hacks.
« Reply #4 on: September 20, 2018, 01:19:55 am »
The patch didn't work, it's still a burger.

When I tried changing the sprite myself, the ice cream sprite still had a light blue color in the middle part of it.

emerilfryer

  • Jr. Member
  • **
  • Posts: 15
    • View Profile
Re: [Technical] Need help on some of my hacks.
« Reply #5 on: September 23, 2018, 10:47:54 pm »
Try this for DuckTales. Puts back ice cream and fat alien (on top of last restoration patch)
http://s000.tinyupload.com/index.php?file_id=71533921974798157708

SCD

  • RHDN Patreon Supporter!
  • Hero Member
  • *****
  • Posts: 568
  • SPOOOOON!
    • View Profile
Re: [Technical] Need help on some of my hacks.
« Reply #6 on: September 25, 2018, 05:01:57 am »
I checked out your patch, it worked but it made the top part of Gizmo Duck red again, I changed it to grey in my hack.

Can you see if you can make the patch only restore the two sprites without making it change anything else?

emerilfryer

  • Jr. Member
  • **
  • Posts: 15
    • View Profile
Re: [Technical] Need help on some of my hacks.
« Reply #7 on: September 25, 2018, 12:14:27 pm »
Should recolor Gizmo grey again. Use on top of restoration.
http://s000.tinyupload.com/index.php?file_id=03373684455913274608

Noticed an unmentioned easter egg? Tail wag when ducking
https://www.romhacking.net/hacks/1103/

ShadowOne333

  • Hero Member
  • *****
  • Posts: 983
    • View Profile
Re: [Technical] Need help on some of my hacks.
« Reply #8 on: September 26, 2018, 11:53:42 am »
Good to know that the fat alien was put back in thanks to emerilfryer :)

Also, SCD, one last thing regarding Ducktales that perhaps you would be interested in.
The colors of the fat alien from the animated series had a different color to the one found in the game.

Here's a comparison:


Perhaps you would be interested in flipping over the colors of the alien, so that the Pink is used for his clothing and the aqua color is used for his skin, might resemble the one from the TV show a lot closer.
If you could too, perhaps modifying the palette for it to closer match the one from the show.

SCD

  • RHDN Patreon Supporter!
  • Hero Member
  • *****
  • Posts: 568
  • SPOOOOON!
    • View Profile
Re: [Technical] Need help on some of my hacks.
« Reply #9 on: September 28, 2018, 02:14:53 am »
@emerilfryer I tried the patch, it still made the top part of Gizmo Duck red again.

@ShadowOne333 Yeah I am going to give the fat alien its accurate colors from the old cartoon.

Here's how I'm going to make him look:

emerilfryer

  • Jr. Member
  • **
  • Posts: 15
    • View Profile
Re: [Technical] Need help on some of my hacks.
« Reply #10 on: September 28, 2018, 05:14:40 pm »
No problem here. Clean rom?
- clean rom -- DuckTales (USA).nes
- DuckTales Restoration.ips
- fat alien, ice cream, gizmo fix

SCD

  • RHDN Patreon Supporter!
  • Hero Member
  • *****
  • Posts: 568
  • SPOOOOON!
    • View Profile
Re: [Technical] Need help on some of my hacks.
« Reply #11 on: September 29, 2018, 01:53:38 am »
I followed your method and it worked, the top part of Gizmo Duck stayed grey.

Thanks for helping me on this, you're the best.

I submitted the updated patch and it's on this site now.

That's one hack down, six more to go.
« Last Edit: September 30, 2018, 11:50:08 am by SCD »

emerilfryer

  • Jr. Member
  • **
  • Posts: 15
    • View Profile
Re: [Technical] Need help on some of my hacks.
« Reply #12 on: October 27, 2018, 10:47:25 pm »
I examined Mega Man Zero 2. From some trace logs, it appears new code is pushed into 836ec00, which looks like tilemap data. Corrupting an original rom, I get a similar destruction effect.

There's tons of free space in the rom around 8360000 area. Maybe it's an asm typo? Do you have the source code for this hack? If not, I'll try running a disasm on this area since it looks rather suspicious. But I don't understand at all what sorcery was done to get blood to show. Not going to enjoy spending time fixing this time-sucker but it's surprising that blood works. Don't understand at all how it works so no MMZ3 until/if I get this one done.


edit:
https://github.com/emerilfryer1/RetroArch/blob/sandbox/.abc/mmz2_tilemap.ips

Use this on top of the rhdn Mega Man Zero 2 patch. I relocated the affected tilemap to a new region.


edit:
Quote
Streets of Rage 2 Restoration: Is there a way to make the the death screams of both the players & the enemies to play while their still in the air instead of after they hit the ground?
(This hack I did all by myself, I just need to know if this is possible to change.)

I think yes.

Code: [Select]
wait fading
00:BC4A  4A AA  TST.L   $005E(A2)                A0=0000BBA0 A1=FFFFF000 A2=FFFFEF00 A3=FFFFECF8 A4=FFFFFCE0 A5=FFFFF700 A6=FFFFEC80 A7=FFFFFFF2 D0=FFFFC000 D1=51B2FFFF D2=00000C0F D3=FFFF06B4 D4=0000001E D5=4F60FFFF D6=0000FFFF D7=00B10000 XnZvC
00:BC4E  6B 26  BMI     #$26 [00:BC76]           A0=0000BBA0 A1=FFFFF000 A2=FFFFEF00 A3=FFFFECF8 A4=FFFFFCE0 A5=FFFFF700 A6=FFFFEC80 A7=FFFFFFF2 D0=FFFFC000 D1=51B2FFFF D2=00000C0F D3=FFFF06B4 D4=0000001E D5=4F60FFFF D6=0000FFFF D7=00B10000 XNzvc


start fading
00:BC50  51 EA  STFa    $0049(A2) [00:BC3C]      A0=0000BBA0 A1=FFFFF000 A2=FFFFEF00 A3=FFFFECF0 A4=FFFFFCE0 A5=FFFFEE00 A6=FFFFEC80 A7=FFFFFFF2 D0=00020000 D1=51B2FFFF D2=00000C0E D3=FFFF06B4 D4=0000001E D5=4F60FFFF D6=0000FFFF D7=00B10000 xnzvc
00:BC54  35 7C  MOVE.w  #$003C,$003A(A2)         A0=0000BBA0 A1=FFFFF000 A2=FFFFEF00 A3=FFFFECF0 A4=FFFFFCE0 A5=FFFFEE00 A6=FFFFEC80 A7=FFFFFFF2 D0=00020000 D1=51B2FFFF D2=00000C0E D3=FFFF06B4 D4=0000001E D5=4F60FFFF D6=0000FFFF D7=00B10000 xnzvc
00:BC5A  35 7C  MOVE.w  #$0008,$0000(A2)         A0=0000BBA0 A1=FFFFF000 A2=FFFFEF00 A3=FFFFECF0 A4=FFFFFCE0 A5=FFFFEE00 A6=FFFFEC80 A7=FFFFFFF2 D0=00020000 D1=51B2FFFF D2=00000C0E D3=FFFF06B4 D4=0000001E D5=4F60FFFF D6=0000FFFF D7=00B10000 xnzvc
00:BC60  70 00  MOVEQ   #$00,D0                  A0=0000BBA0 A1=FFFFF000 A2=FFFFEF00 A3=FFFFECF0 A4=FFFFFCE0 A5=FFFFEE00 A6=FFFFEC80 A7=FFFFFFF2 D0=00020000 D1=51B2FFFF D2=00000C0E D3=FFFF06B4 D4=0000001E D5=4F60FFFF D6=0000FFFF D7=00B10000 xnzvc
00:BC62  30 2A  MOVE.w  $000C(A2),D0             A0=0000BBA0 A1=FFFFF000 A2=FFFFEF00 A3=FFFFECF0 A4=FFFFFCE0 A5=FFFFEE00 A6=FFFFEC80 A7=FFFFFFF2 D0=00000000 D1=51B2FFFF D2=00000C0E D3=FFFF06B4 D4=0000001E D5=4F60FFFF D6=0000FFFF D7=00B10000 xnZvc
00:BC66  41 FA  LEA     $0010(PC),A0             A0=0000BBA0 A1=FFFFF000 A2=FFFFEF00 A3=FFFFECF0 A4=FFFFFCE0 A5=FFFFEE00 A6=FFFFEC80 A7=FFFFFFF2 D0=00000002 D1=51B2FFFF D2=00000C0E D3=FFFF06B4 D4=0000001E D5=4F60FFFF D6=0000FFFF D7=00B10000 xnzvc
00:BC6A  30 30  MOVE.w  $00(A0,D0),D0            A0=0000BC78 A1=FFFFF000 A2=FFFFEF00 A3=FFFFECF0 A4=FFFFFCE0 A5=FFFFEE00 A6=FFFFEC80 A7=FFFFFFF2 D0=00000002 D1=51B2FFFF D2=00000C0E D3=FFFF06B4 D4=0000001E D5=4F60FFFF D6=0000FFFF D7=00B10000 xnzvc
00:BC6E  72 00  MOVEQ   #$00,D1                  A0=0000BC78 A1=FFFFF000 A2=FFFFEF00 A3=FFFFECF0 A4=FFFFFCE0 A5=FFFFEE00 A6=FFFFEC80 A7=FFFFFFF2 D0=00000234 D1=51B2FFFF D2=00000C0E D3=FFFF06B4 D4=0000001E D5=4F60FFFF D6=0000FFFF D7=00B10000 xnzvc

play death sfx
00:BC70  4E B9  JSR     ($00040008)              A0=0000BC78 A1=FFFFF000 A2=FFFFEF00 A3=FFFFECF0 A4=FFFFFCE0 A5=FFFFEE00 A6=FFFFEC80 A7=FFFFFFF2 D0=00000234 D1=00000000 D2=00000C0E D3=FFFF06B4 D4=0000001E D5=4F60FFFF D6=0000FFFF D7=00B10000 xnZvc

I imagine it could be moved around to play on 0 hp condition, somewhere earlier than this.
« Last Edit: October 28, 2018, 07:22:07 pm by emerilfryer »

SCD

  • RHDN Patreon Supporter!
  • Hero Member
  • *****
  • Posts: 568
  • SPOOOOON!
    • View Profile
Re: [Technical] Need help on some of my hacks.
« Reply #13 on: November 06, 2018, 08:33:15 am »
I finally tested the patch for Mega Man Zero 2, it fixed it. Thanks for helping me on this.

I don't have the source code for it, sorry.

Take your time on Mega Man Zero 3.

That's cool to know that it might be possible to do that to Streets of Rage 2, let me know if there's a way to move the codes.

I updated the description of what I need help on my Super Ghouls'n Ghosts Restoration hack.
« Last Edit: November 06, 2018, 10:05:44 am by SCD »

emerilfryer

  • Jr. Member
  • **
  • Posts: 15
    • View Profile
Re: [Technical] Need help on some of my hacks.
« Reply #14 on: November 06, 2018, 08:58:59 am »
I started working on MMZ4 blood on my own to see what happened. Almost 3 stages done. I want to open-source the work when done since others may want to make a few adjustments or check for mistakes.

It's mostly a copy-paste of missing code from JPN => USA / EURO -- one missing draw sprite call for blood, positions, direction. Sometimes it's really messy conversion due to compiler optimizations, goofy fancy orientation math, branching, register preserving.

I thought I saw an error or two in the MMZ 2/3 slash code but I'm unsure without examining both source and mod.

Do you have a usa (and japan) no$gba save file for MMZ3 during the monkey boss? I should be able to trampoline a patch somewhere else and fix it up. Just don't want to play that far into the game with other things todo.

acediez

  • Full Member
  • ***
  • Posts: 226
    • View Profile
Re: [Technical] Need help on some of my hacks.
« Reply #15 on: November 06, 2018, 09:37:00 am »
Thanks emerilfryer, I've been watching this thread in hopes of someone coming here to help improving the Zero Restoration patches.

Since you're working on Zero 4 too, please consider also restoring the vocalized audio tracks (prologue and credits) from the japanese version.
https://tcrf.net/Mega_Man_Zero_4

SCD

  • RHDN Patreon Supporter!
  • Hero Member
  • *****
  • Posts: 568
  • SPOOOOON!
    • View Profile
Re: [Technical] Need help on some of my hacks.
« Reply #16 on: November 06, 2018, 09:54:41 am »
That's cool that you're making a restoration hack for MMZ4, I agree with acediez, you should try and restore the vocalized audio tracks (prologue and credits) from the Japanese version.

Alright, let me know if the slash code for both games are all right.

Sadly, I don't have a no$gba save files for both versions of MMZ3 during the monkey boss. Sorry about this.

emerilfryer

  • Jr. Member
  • **
  • Posts: 15
    • View Profile
Re: [Technical] Need help on some of my hacks.
« Reply #17 on: November 06, 2018, 09:16:29 pm »
I think this'll work on Super Ghouls n Ghosts (current rhdn patch). Remove the clam opening animation and the heart sprite.
https://github.com/emerilfryer1/RetroArch/blob/sandbox/.abc/sgng_unrestore1.ips


I'll give vocals a thought. Probably just finding where the pcm data lives and copying over. How to tell engine to play it will be the mystery. But doing a "full" playthrough will take me a long time anyway; dissecting blood code gets tiresome, even if often enough it's the same recycled asm "template". I'm using macros though to try recovering some of my time. It's nice when you get a bunch of enemies who use nearly the exact same drawing method.


And I'll be playing Metal Slader Glory every so often to amuse me. Given how small free time I get a week.


@SCD: I saw your Mario Kart Super Circuit hack. Did you also put back the Shy Guys war bonnets in-race?
https://tcrf.net/Mario_Kart:_Super_Circuit

SCD

  • RHDN Patreon Supporter!
  • Hero Member
  • *****
  • Posts: 568
  • SPOOOOON!
    • View Profile
Re: [Technical] Need help on some of my hacks.
« Reply #18 on: November 07, 2018, 01:00:23 am »
Thanks for the patch, that was really nice of you.

Alright, it should be easy to restore the original tracks.

Take your time on fixing my Mega Man Zero 3 Restoration hack.

No, I didn't know that the Shy-Guys wore the war-bonnets in-race as well, I thought it was just the title card for the track. If you can help me on restoring them, that would be great.

emerilfryer

  • Jr. Member
  • **
  • Posts: 15
    • View Profile
Re: [Technical] Need help on some of my hacks.
« Reply #19 on: November 08, 2018, 10:41:57 pm »
This is alpha patch for Streets of Rage 2 (USA). Use on top of SCD restoration patch, although it likely works on vanilla rom too.
https://github.com/emerilfryer1/RetroArch/raw/sandbox/.abc/sor2_usa_death_alpha1.ips

- Remove checksum hasher = faster boot
- Change death scream to when hit, instead of fading

Needs some checking by others.


Known problem
- Timer death. Unsure how to do handle this yet.
- Do Japan later.


When finished, I'll release the source code so others can add it to their own hacks. And/or release just death screams patch on-site with source.