SA2 - Tree Fix?

Discussion in 'Engineering & Reverse Engineering' started by Marcus101RR, Apr 18, 2018.

  1. Marcus101RR

    Marcus101RR

    Provisional Member
    30
    0
    6
    USA, Florida
    http://leafosgaming.wixsite.com/leafos
    Hello,

    I wondering if there is any fix that makes the trees work like they should in Dreamcast/Gamecube copies. What is the deal with the trees anyway? I have been looking around Steam as well as related fixes, but they speak of Hex Viewers and I tried one and I could not find the so called offset they claim to have those fixes. Any idea where the Tree glitch is located at?
     
  2. MainMemory

    MainMemory

    Have no fear...Amy Rose is here! Tech Member
    4,425
    72
    28
    SonLVL
    I believe the only "fix" for the trees is one that makes them appear fully grown all the time. AFAIK nobody really knows why the trees are broken or how to properly fix them.
     
  3. Forgive my ignorance, but what exactly is wrong with the trees?
     
  4. Blue Spikeball

    Blue Spikeball

    Member
    705
    62
    28
    The Chao Garden trees planted by your Chao are glitched, as the graphics always depict them as saplings regardless of their growth. There's no fix, but a common workaround is hex editing the game exe so that they're depicted as being fully grown all the time.
     
  5. Marcus101RR

    Marcus101RR

    Provisional Member
    30
    0
    6
    USA, Florida
    http://leafosgaming.wixsite.com/leafos
    Can you direct to to this fix? Is it available somewhere.


    This pretty much sums it up, the tree itself does grow, the but the graphics of the sapling remains small.
     
  6. MainMemory

    MainMemory

    Have no fear...Amy Rose is here! Tech Member
    4,425
    72
    28
    SonLVL
  7. Marcus101RR

    Marcus101RR

    Provisional Member
    30
    0
    6
    USA, Florida
    http://leafosgaming.wixsite.com/leafos
    I used that, but didn't notice any fixes. The Hero Garden Fruit still gives 99 stats, and the Trees still grow like midgets. My guess Is I have to manually patch my exe?
     
  8. MainMemory

    MainMemory

    Have no fear...Amy Rose is here! Tech Member
    4,425
    72
    28
    SonLVL
    Well, no, anything that can be done by patching the EXE can also be done with the mod loader.
     
  9. Marcus101RR

    Marcus101RR

    Provisional Member
    30
    0
    6
    USA, Florida
    http://leafosgaming.wixsite.com/leafos

    Well if the mod loader is the fix, and the patch is from CHao World Extended, then I can say with certainty, it is not fixed. I am running the sonic2app.exe of Chao World Extended, and running the 7.5 version of Chao World Extended mod only. Hero Garden Fruit is still 99, and Trees still grow like midget saplings all day with floating leaves of adult trees. I can fix the Hero Fruit with Cheat engine easily, but the tree thing is a whole different ball game.
     
  10. MainMemory

    MainMemory

    Have no fear...Amy Rose is here! Tech Member
    4,425
    72
    28
    SonLVL
    OK, the fix you've been looking for is here.
     
  11. Marcus101RR

    Marcus101RR

    Provisional Member
    30
    0
    6
    USA, Florida
    http://leafosgaming.wixsite.com/leafos
    Now, this requires a decrypted exe because any changes made to the default one will make it refuse to run. Use any free hex editor (I use Frhed) and go to offset 4869224. Change the default value of 63 (99%) to 28 (40%). You've now fixed the stamina value given by fruits in the Hero garden!

    So where do I get the encrypted one? Damn it sega, wish you just fix this.
     
  12. MainMemory

    MainMemory

    Have no fear...Amy Rose is here! Tech Member
    4,425
    72
    28
    SonLVL
    The encrypted EXE is the one that you get from Steam. The decrypted EXE is one that I made. But as I said before, any changes that you make by editing the EXE can also be done with the mod loader.
    Add the following to mods\Codes.lst:
    Code (Text):
    1. patch "Hero Garden Fruit Fix"
    2. write8 8A6468 40
    3.  
    4. patch "Chao Garden Tree Fix"
    5. write8 1329149 0x7D
    6. write16 1329154 0xAD9C
    7. write16 1329160 0xDBE4
    8. write16 132916C 0xFD04
    9. write16 1329178 0x1C9C
    10. write16 1329184 0x3DDC
    11. write16 1329190 0x64FC