Help with Gateshark conditions and other formulas

Nojtuag

Well-Known Member
OP
Newcomer
Joined
Jun 1, 2020
Messages
45
Trophies
0
Age
43
XP
215
Country
United States
I need some Gateshark Guru to help with these questions. The code works, but only works at the stage selection screen. If it moves away from this screen then the code no longer works.

Let's play with Kirby Triple Deluxe

Here's the code from the database:
Code:
[99 Lives]
D3000000 10000000
24000088 00000063

Link to the structure

If we look at D3 structure:
0xD3D3000000YYYYYYYYSets the offset to YYYYYYYY


This makes no sense at all. So we're setting the offset which is 24000088 to 10000000 which that should equal to 34000088?

Questions:
1. Besides, this code only triggers if you're at the stage selection where you can walk back between stages. How do we make it so that it stays infinitive regardless which screen you're on?
2. 0xC = Repeat the following block YYYYYYYY times; which value would indicate an infinite loop? 00000000? How would we use it to do the loops?
3. How does the button trigger code works?
0xDDDD000000YYYYYYYYGATEWAY ONLY: Activates with the button code YYYYYYYY


I tried:
[Press A to activate the code]
DD000000 00000001
24000088 00000063

or

DD000000 00000001
D3000000 10000000
24000088 00000063

4. Would it be possible to set a condition to reactivate the codes every 3 seconds since 0xD0 = Ends the last conditional block?
 

Nojtuag

Well-Known Member
OP
Newcomer
Joined
Jun 1, 2020
Messages
45
Trophies
0
Age
43
XP
215
Country
United States
nvm; I think I know how the code works... took me awhile, but I did it :D

[Press A to gain 99 stars each time you collects]

DD000000 00000001 //joker command - press A (Enable this code only if you want to enable button press for the action to happen)

C0000000 FFFFFFFF - //loop how many times; All 'F' means Infinite.

D3000000 10000000 - Increase offset by YYYYYYYYY

25AA5EC0 00000063 - Offsets + value

D0000000 00000000 - Stop loop once once loop value reached (I believe this line can be remove, but I keep it just incase game crashes)
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
  • K3Nv2 @ K3Nv2:
    It must be the 1st already
  • BakerMan @ BakerMan:
    1st of what?
  • BakerMan @ BakerMan:
    may?
  • K3Nv2 @ K3Nv2:
    Oh yeah it's in September
  • Xdqwerty @ Xdqwerty:
    @BakerMan, yea i think its different
  • BakerMan @ BakerMan:
    ok, because here it's in september, right before the fuckin school year starts
  • Xdqwerty @ Xdqwerty:
    good night
  • BakerMan @ BakerMan:
    as to you
  • K3Nv2 @ K3Nv2:
    How do you know if the night will be good when you're asleep
  • BakerMan @ BakerMan:
    because i didn't say i was asleep
  • BakerMan @ BakerMan:
    i said i was sleeping...
  • BakerMan @ BakerMan:
    sleeping with uremum
  • K3Nv2 @ K3Nv2:
    Even my mum slept on that uremum
  • TwoSpikedHands @ TwoSpikedHands:
    yall im torn... ive been hacking away at tales of phantasia GBA (the USA version) and have so many documents of reverse engineering i've done
  • TwoSpikedHands @ TwoSpikedHands:
    I just found out that the EU version is better in literally every way, better sound quality, better lighting, and there's even a patch someone made to make the text look nicer
  • TwoSpikedHands @ TwoSpikedHands:
    Do I restart now using what i've learned on the EU version since it's a better overall experience? or do I continue with the US version since that is what ive been using, and if someone decides to play my hack, it would most likely be that version?
  • Sicklyboy @ Sicklyboy:
    @TwoSpikedHands, I'll preface this with the fact that I know nothing about the game, but, I think it depends on what your goals are. Are you trying to make a definitive version of the game? You may want to refocus your efforts on the EU version then. Or, are you trying to make a better US version? In which case, the only way to make a better US version is to keep on plugging away at that one ;)
  • Sicklyboy @ Sicklyboy:
    I'm not familiar with the technicalities of the differences between the two versions, but I'm wondering if at least some of those differences are things that you could port over to the US version in your patch without having to include copyrighted assets from the EU version
  • TwoSpikedHands @ TwoSpikedHands:
    @Sicklyboy I am wanting to fully change the game and bend it to my will lol. I would like to eventually have the ability to add more characters, enemies, even have a completely different story if i wanted. I already have the ability to change the tilemaps in the US version, so I can basically make my own map and warp to it in game - so I'm pretty far into it!
  • TwoSpikedHands @ TwoSpikedHands:
    I really would like to make a hack that I would enjoy playing, and maybe other people would too. swapping to the EU version would also mean my US friends could not legally play it
  • TwoSpikedHands @ TwoSpikedHands:
    I am definitely considering porting over some of the EU features without using the actual ROM itself, tbh that would probably be the best way to go about it... but i'm sad that the voice acting is so.... not good on the US version. May not be a way around that though
  • TwoSpikedHands @ TwoSpikedHands:
    I appreciate the insight!
    TwoSpikedHands @ TwoSpikedHands: I appreciate the insight!