Author Topic: Stam/Hit/Evade/Mg.Def Tabs now working!!  (Read 6705 times)

Grobycftw

  • Architect of Kajar
  • Porrean (+50)
  • *
  • Posts: 85
  • Chilling in the Bend of Time
    • View Profile
Stam/Hit/Evade/Mg.Def Tabs now working!!
« on: March 11, 2021, 02:15:26 am »
Hey guys, I just found out that someone has made a little patch to edit the Stats that Tabs gives!!! It works it's amaziiiingg!!  :o :o :o

you can download the patch here :
http://www.romhacking.net/hacks/5807/

it's very easy to use, you need to download Asar.exe first from SMW to apply the "patch.asm" (well known Mario Hacking Forum) :

https://www.smwcentral.net/?p=section&a=details&id=25953


To apply the patch, simply open Axar.exe :
it will ask "Enter Patch Name" -> Drag and drop "patch.asm" then press enter
now it will ask "Enter Rom Name" -> Drag and drop your rom
and there you go! but this patch by default make Tabs gives +2 stats


I just found out how to edit the "patch.asm" so you can change the amount!
I open it in HxD (hex editor) , if you look at the end you'll see (look at image below)

so for exemple : If I want to make Power tabs to give 1 Power and 1 Stam

you will have this

%IncreaseStatBy1($000B, $63) ; power.
%IncreaseStatBy1($000C, $63) ; stamina.

you can simply remove the line if you want only 1 Power or 1 Stam

%IncreaseStatBy1($000B, $63) ; power.
or
%IncreaseStatBy1($000C, $63) ; stamina.


So what we have here is not actually "new" tabs, we are still limited to 3 different Tabs maximum, but we can make combination of any stats!! (I think)!
I haven't tried to put 5 stats in one tabs yet, but this is amaziiiing! We will convert Speed tabs to Hit tabs in our hack!! :D

Shoutout to Phi for this wonderful tool! Huge thanks!

Boo the Gentleman Caller

  • Guru of Life Emeritus
  • Hero of Time (+5000)
  • *
  • Posts: 5262
    • View Profile
Re: Stam/Hit/Evade/Mg.Def Tabs now working!!
« Reply #1 on: March 11, 2021, 10:15:01 am »
This is awesome! Great work to all that worked on the research, coding, and release of the hack. And thanks for sharing Grobyc!

I love that 25+ years later we are still making strides in Chrono Trigger hacking. :D

Mauron

  • Guru of Reason Emeritus
  • Errare Explorer (+1500)
  • *
  • Posts: 1763
  • Nu-chan
    • View Profile
    • Maurtopia
Re: Stam/Hit/Evade/Mg.Def Tabs now working!!
« Reply #2 on: March 11, 2021, 01:26:54 pm »
Unfortunately that will break when PCs level. There's a second set of data that needs to be modified to preserve stat bonuses.

Grobycftw

  • Architect of Kajar
  • Porrean (+50)
  • *
  • Posts: 85
  • Chilling in the Bend of Time
    • View Profile
Re: Stam/Hit/Evade/Mg.Def Tabs now working!!
« Reply #3 on: March 11, 2021, 09:52:05 pm »
 :o You are right Mauron, I just tested it and it overwrite when the PC level's up, what is that second set of data? Is it related to the PC stats growth?
Do you have a solution for this?  :shock:

Mauron

  • Guru of Reason Emeritus
  • Errare Explorer (+1500)
  • *
  • Posts: 1763
  • Nu-chan
    • View Profile
    • Maurtopia
Re: Stam/Hit/Evade/Mg.Def Tabs now working!!
« Reply #4 on: March 12, 2021, 03:10:01 am »
I've got most of a solution, but it needs a little tweaking.

IHBP

  • Architect of Kajar
  • Chronopolitan (+300)
  • *
  • Posts: 379
    • View Profile
Re: Stam/Hit/Evade/Mg.Def Tabs now working!!
« Reply #5 on: March 12, 2021, 08:02:29 am »
What about level tabs? Like a Rare Candy for your Chronomon.

Mauron

  • Guru of Reason Emeritus
  • Errare Explorer (+1500)
  • *
  • Posts: 1763
  • Nu-chan
    • View Profile
    • Maurtopia
Re: Stam/Hit/Evade/Mg.Def Tabs now working!!
« Reply #6 on: March 12, 2021, 01:07:45 pm »
Different enough that they're out of scope for this hack.

inuksuk

  • Earthbound (+15)
  • *
  • Posts: 40
    • View Profile
Re: Stam/Hit/Evade/Mg.Def Tabs now working!!
« Reply #7 on: March 13, 2021, 05:08:31 pm »
Unfortunately that will break when PCs level. There's a second set of data that needs to be modified to preserve stat bonuses.

Oh dang, I didn't realize that either. Is it the block at 0C0000-0C022F? Or is that just the data that gets copied into RAM at 7E2600-7E282F.

Mauron

  • Guru of Reason Emeritus
  • Errare Explorer (+1500)
  • *
  • Posts: 1763
  • Nu-chan
    • View Profile
    • Maurtopia
Re: Stam/Hit/Evade/Mg.Def Tabs now working!!
« Reply #8 on: March 13, 2021, 06:23:56 pm »
The data at 0x0C0000 is just initial stats.

Code: [Select]
Battle 2F FF 1 Power Adder + tabs. (PC only)
Battle 30 FF 1 Stamina Adder (PC only)
Battle 31 FF 1 Speed adder + tabs (PC only)
Battle 32 FF 1 Hit Adder + tabs (PC only)
Battle 33 FF 1 Evade Adder (PC only)
Battle 34 FF 1 Magic Adder (PC only)
Battle 35 FF 1 Magic Defense Adder (PC only)

So 7E262F is the value that needs to be modified for Crono's Power bonus.

At the moment I've gotten everything working except the number displayed when a tab is applied.

Mauron

  • Guru of Reason Emeritus
  • Errare Explorer (+1500)
  • *
  • Posts: 1763
  • Nu-chan
    • View Profile
    • Maurtopia
Re: Stam/Hit/Evade/Mg.Def Tabs now working!!
« Reply #9 on: March 14, 2021, 01:03:15 am »
Alright, I got the number working. Here's a patch.

To customize your tabs, go to Itemizer in Temporal Flux. Item Type should be set to 02 - Tab. Unused 01 will be the stat, and Unused 2 will be the amount added.

An item type of 00 defaults to a Speed + 1 tab, to support the original game's data.

Code: [Select]
0B power
0C stamina
0D speed
0E magic
0F hit
10 evade
11 magic defense

This also implements my stat growth hack, so could have some extra free space to work with.

If everything works nicely, I'll add this to Itemizer later. There might still be something I missed.

Grobycftw

  • Architect of Kajar
  • Porrean (+50)
  • *
  • Posts: 85
  • Chilling in the Bend of Time
    • View Profile
Re: Stam/Hit/Evade/Mg.Def Tabs now working!!
« Reply #10 on: March 14, 2021, 11:42:05 pm »
A-Maziiiiiiingg  8) Thank you Mauron!! SO much possibilities unlocked now!   :wink:

*Just tested it from a fresh rom, M.Def works even after leveling two level!!! Ill try the other stats soon :D


**Thanks Boo the Gentleman Caller, I sure love it too! Always been thrilled with Chrono Trigger & Chrono Cross  :D , so many good things has been done and so many still left to do  8)  :lol:
« Last Edit: March 16, 2021, 02:04:27 am by Grobycftw »

synthesis14

  • Iokan (+1)
  • *
  • Posts: 3
    • View Profile
Re: Stam/Hit/Evade/Mg.Def Tabs now working!!
« Reply #11 on: March 16, 2021, 04:23:25 am »
Hello everyone, I've been trying to include this into my mod but I seem to have a few issues, I patched my rom and then once I modified the "Power Tab" for it to add 3 Hit instead of 1 Power, it DOES add 3 Hit, and then once I level up, I lose the 3 Hit, but I also gain 3 Magic, I also have a similar issue when I modify the "Power Tab" for it to add Magic instead of Power and when I modify the "Power Tab" for it to add Evade instead of Power.

After modifying the unused 1 value this is the result

0B - Power (working properly)
0C - Speed (working properly)
0D - Stamina (working properly)
0E - Magic but in fact Evade after leveling up
0F - Hit but in fact Magic after leveling up
10 - Evade but in fact Hit after leveling up
11 - Magic Def (working properly)

I do not want to insult anyone's work but might it be possible that those 3 values were assigned incorrectly? If i look at them attentively it seems those three values are mixed up, Magic should be Evade, Evade should be Hit and Hit should be Magic instead.

Thanks and nice job once again!
« Last Edit: March 16, 2021, 05:03:32 am by synthesis14 »

Mauron

  • Guru of Reason Emeritus
  • Errare Explorer (+1500)
  • *
  • Posts: 1763
  • Nu-chan
    • View Profile
    • Maurtopia
Re: Stam/Hit/Evade/Mg.Def Tabs now working!!
« Reply #12 on: March 16, 2021, 05:03:44 am »
I probably mixed something up. I blame Square. For some baffling reason, they stored stats in 3 different orders depending on where you're looking at things.

Thanks for the extensive testing.

synthesis14

  • Iokan (+1)
  • *
  • Posts: 3
    • View Profile
Re: Stam/Hit/Evade/Mg.Def Tabs now working!!
« Reply #13 on: March 16, 2021, 05:09:20 am »
This is something I've been looking foward to for a long time, if there is anything I can do to make it a reality I will! Thanks to YOU for making this possible, your work is incredible!
« Last Edit: March 16, 2021, 05:12:18 am by synthesis14 »

synthesis14

  • Iokan (+1)
  • *
  • Posts: 3
    • View Profile
Re: Stam/Hit/Evade/Mg.Def Tabs now working!!
« Reply #14 on: March 18, 2021, 02:59:52 am »
I made a modified version of your patch that fixed the issues I mentioned although the stats are in a slightly different order, feel free to claim it as your own as I only made slight adjustements to your work.

The stats order is now

0B - Power
0C - Speed
0D - Stamina
0E - Evade
0F - Magic
10 - Hit
11 - Magic Def

Great work once again and thanks alot!