How can one find a certain hex value in an N64 game?
Moderator: General Mods
-
- Sir Robin the Not-Quite-So-Brave-As-Sir-Lancelot
- Posts: 446
- Joined: Mon May 11, 2009 4:44 am
- Location: USA
- Contact:
How can one find a certain hex value in an N64 game?
Okay, so, I want to find a way to modify character/boss sizes in Castlevania LOD by using a program called LemAsm (I know, it's old, but I haven't been able to find anything good with google). There is a hex edit mode, and what I want to know is, how is one supposed to find what value(s) you need to change? Is there a better program or way to do this?
"Just because I don't LISTEN doesn't mean I don't CARE!" -Homer Simpson
From my rudimentary understanding of the concept, you record the values before you take an action, then after the action you record what hex has changed. For example, take a copy of the hex before and after you hit a boss and compare which values changed to identify which value is associated with its hitpoints total.
The rest is just trial and error.
The rest is just trial and error.
-
- Sir Robin the Not-Quite-So-Brave-As-Sir-Lancelot
- Posts: 446
- Joined: Mon May 11, 2009 4:44 am
- Location: USA
- Contact:
you would need to learn a bit about n64 hardware and programming. google it, find something like this or better. read the cpu and memory mapping portions. I'm sure some n64 emus have memory viewers and can log to an output file. use one, start logging code from when a boss is not on screen, and hopefully not even in memory yet. then move to the point where he gets loaded into memory, or worst case on screen. then you can stop logging. read through the asm output (it would look like this if it were snes asm, look about halfway down for some cheaply commented code), and figure out how the model was loaded to memory from the cartridge (good luck). convert those memory locations to physical file locations. then you can use lemasm to change whatever you can figure out. yeah I know "not gonna happen" right. maybe start simpler like changing the "MARIO" in the nes game to "NERD".
[url=http://www.alexchiu.com/affiliates/clickthru.cgi?id=phonymike]ultimate immortality[/url]
[url=http://www.sloganizer.net/en/][img]http://www.sloganizer.net/en/image,zsnes,white,purple.png[/img][/url]
[url=http://www.sloganizer.net/en/][img]http://www.sloganizer.net/en/image,zsnes,white,purple.png[/img][/url]
-
- Sir Robin the Not-Quite-So-Brave-As-Sir-Lancelot
- Posts: 446
- Joined: Mon May 11, 2009 4:44 am
- Location: USA
- Contact:
-
- Sir Robin the Not-Quite-So-Brave-As-Sir-Lancelot
- Posts: 446
- Joined: Mon May 11, 2009 4:44 am
- Location: USA
- Contact:
Would it be a similar process like those hackers that made the Super Smash Bros Brawl cheat codes for the Ocarina cheat software? I thought they just pinpointed the hex values and experimented with them until the found the the ones for 0.5, 1.0 1.5.....4.0 size variables. Or did they do it some other way?
"Just because I don't LISTEN doesn't mean I don't CARE!" -Homer Simpson
-
- Sir Robin the Not-Quite-So-Brave-As-Sir-Lancelot
- Posts: 446
- Joined: Mon May 11, 2009 4:44 am
- Location: USA
- Contact:
-
- ZSNES Shake Shake Prinny
- Posts: 5632
- Joined: Wed Jul 28, 2004 4:15 pm
- Location: PAL50, dood !
To add onto phonymike's post, N64 games upload custom video operations to the n64 hardware.
You have to get used to the custom functions used in the game itself to know what variable means what on the actual video output.
Only then the the debugger log will actually mean something.
You have to get used to the custom functions used in the game itself to know what variable means what on the actual video output.
Only then the the debugger log will actually mean something.
皆黙って俺について来い!!
Pantheon: Gideon Zhi | CaitSith2 | Nach | kode54
Code: Select all
<jmr> bsnes has the most accurate wiki page but it takes forever to load (or something)
-
- Sir Robin the Not-Quite-So-Brave-As-Sir-Lancelot
- Posts: 446
- Joined: Mon May 11, 2009 4:44 am
- Location: USA
- Contact:
Are there any programs out there that can help with find out what goes to what? What kind of debugger would I need? Or rather, do any of these tools exist on romhacking.net and/or zophar.net (or related)? Hmmm...getting used to those custom functions will take time to get used to like you just said. Another challenge for me to face....
"Just because I don't LISTEN doesn't mean I don't CARE!" -Homer Simpson
-
- ZSNES Shake Shake Prinny
- Posts: 5632
- Joined: Wed Jul 28, 2004 4:15 pm
- Location: PAL50, dood !
Your best bet is to get in touch with the 64 emu scene.
皆黙って俺について来い!!
Pantheon: Gideon Zhi | CaitSith2 | Nach | kode54
Code: Select all
<jmr> bsnes has the most accurate wiki page but it takes forever to load (or something)
-
- Sir Robin the Not-Quite-So-Brave-As-Sir-Lancelot
- Posts: 446
- Joined: Mon May 11, 2009 4:44 am
- Location: USA
- Contact:
-
- Seen it all
- Posts: 2302
- Joined: Mon Jan 03, 2005 5:04 pm
- Location: Germany
- Contact:
-
- Sir Robin the Not-Quite-So-Brave-As-Sir-Lancelot
- Posts: 446
- Joined: Mon May 11, 2009 4:44 am
- Location: USA
- Contact:
All I saw on RHDN were game specific utilities for these.
So, there you have it. I wish there was a way to see the hex values and change them.
So, there you have it. I wish there was a way to see the hex values and change them.
"Just because I don't LISTEN doesn't mean I don't CARE!" -Homer Simpson
-
- ZSNES Shake Shake Prinny
- Posts: 5632
- Joined: Wed Jul 28, 2004 4:15 pm
- Location: PAL50, dood !
You also want to have a look at the documentation instead of plain utilities.
Especially when there's a document for exactly what you want to do (for SM64, so you only have to apply a similar recipe for the castlevania custom video routines).
Especially when there's a document for exactly what you want to do (for SM64, so you only have to apply a similar recipe for the castlevania custom video routines).
皆黙って俺について来い!!
Pantheon: Gideon Zhi | CaitSith2 | Nach | kode54
Code: Select all
<jmr> bsnes has the most accurate wiki page but it takes forever to load (or something)