• Login
  • Register
  • Dolphin Forums
  • Home
  • FAQ
  • Download
  • Wiki
  • Code


Dolphin, the GameCube and Wii emulator - Forums › Game Modifications › Cheats, Hacks, & Game Patches v
« Previous 1 ... 15 16 17 18 19 Next »

Possible to tell if an Address is a Base Address (Static)?
View New Posts | View Today's Posts

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Thread Modes
Possible to tell if an Address is a Base Address (Static)?
10-27-2016, 12:08 AM
#1
Zerowalker Offline
Member
***
Posts: 208
Threads: 19
Joined: Jan 2016
As Topic states.

Is it possible to know if the address will be static, the value unchanged for the entire Game?
Or is everything just trial and error for that?

ThanksSmile
Find
Reply
10-27-2016, 07:12 AM
#2
gamemasterplc Offline
Above and Beyond
*******
Posts: 1,111
Threads: 7
Joined: Mar 2016
You can know if an address is static because it either can be accessed using an offset of register 13 or the rtoc or its within the BSS with the starting address mentioned at offset 0xD8 of the DOL and the size at offset 0xDC of the DOL.
Website is gamemasterplc.com. Youtube Channel is gamemasterplc.
Website Find
Reply
10-27-2016, 08:42 PM
#3
Zerowalker Offline
Member
***
Posts: 208
Threads: 19
Joined: Jan 2016
That was way beyond me.

First, what is rtoc?
I have seen that function several times, and sometimes it seems to be r1, and other times r2, which doesn't make sense?

And what's special about register 13?

And BSS, no clue what that is?

the last part made no sense to me either, but then again i haven't looked at a DOL either so i guess it will make sense when i do;P

ThanksSmile
Find
Reply
10-27-2016, 09:32 PM (This post was last modified: 10-27-2016, 09:37 PM by gamemasterplc.)
#4
gamemasterplc Offline
Above and Beyond
*******
Posts: 1,111
Threads: 7
Joined: Mar 2016
The way I mentioned is the only mostly reliable way that isn't trial and error. The BSS is a static read/write data section that has to be initialized when the game launches. The rtoc is always r2 and is a pointer to a normally read only data section. Register 13 is a pointer to an initalized read/write data section.
Website is gamemasterplc.com. Youtube Channel is gamemasterplc.
Website Find
Reply
10-27-2016, 10:05 PM
#5
Zerowalker Offline
Member
***
Posts: 208
Threads: 19
Joined: Jan 2016
Ah, so wait, when it's a pointer, i know what that is from a programming standpoint.
But is that when the address contains a address as a value?
Cause i see that and it can continue a lot until i finally reach some value.

so wait, r13 must always point to a place in BSS?
I thought it was a global register?
Find
Reply
10-27-2016, 10:13 PM (This post was last modified: 10-27-2016, 10:15 PM by gamemasterplc.)
#6
gamemasterplc Offline
Above and Beyond
*******
Posts: 1,111
Threads: 7
Joined: Mar 2016
Register 13 never points to the bss it points to a different read/write data section.
Website is gamemasterplc.com. Youtube Channel is gamemasterplc.
Website Find
Reply
10-28-2016, 12:12 AM
#7
Zerowalker Offline
Member
***
Posts: 208
Threads: 19
Joined: Jan 2016
Oh, i think i kinda get it maybe.

Also, do you know how to make a Gecko Button Activated code not ignore every other code below it?

for example i have this code:

204cb000 00000062
05346814 45117Ef5
0534681c C5B4C9C9
05346824 C4098000

And i assume i should add "1" to the activator, but it still doesn't prevent every code below it to be ignored until this one is true:S
Find
Reply
10-28-2016, 07:03 AM
#8
gamemasterplc Offline
Above and Beyond
*******
Posts: 1,111
Threads: 7
Joined: Mar 2016
You need to add a E2000001 80008000 after the last line you want to be activated by a button press unless if you do it through assembly by loading the button activator address value and doing an AND of the button you want pressed and checking if it's not zero.
Website is gamemasterplc.com. Youtube Channel is gamemasterplc.
Website Find
Reply
10-28-2016, 10:42 PM
#9
Zerowalker Offline
Member
***
Posts: 208
Threads: 19
Joined: Jan 2016
Ah will try it out.

Btw, do you know if it's possible to redirect an address?
Say something reads to address 0x48, but i want to redirect it to 0x66 instead?
I know that i can replace values and all that, but i wonder if there is something that acts like a true pointer, redirection.

ThanksSmile
Find
Reply
« Next Oldest | Next Newest »


  • View a Printable Version
  • Subscribe to this thread
Forum Jump:


Users browsing this thread: 2 Guest(s)



Powered By MyBB | Theme by Fragma

Linear Mode
Threaded Mode