Golden Sun Hacking Community
January 19, 2018, 05:40:48 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News:
 
  Home   Forum   DC Wiki Help Search Calendar Downloads Login Register  
Pages: [1] 2   Go Down
  Print  
Author Topic: How to increase HP and PP limit beyond 1999?  (Read 3448 times)
0 Members and 1 Guest are viewing this topic.

New User


Coins: 0
Offline Offline

Posts: 6

« on: May 29, 2016, 02:00:15 PM »

In editor, HP and PP seem to be in 32767.

How can I change HP & PP limit beyond 1999, up to 32767 with hex editing without IPS patch?
« Last Edit: May 29, 2016, 02:04:17 PM by GoldenSunFan1989 » Logged
View Profile
Fox
Fox McCloud, the Hacking Doctor
Mercury Clan

Prodigy
*

Coins: 28
Offline Offline

I am: certainly not a Gallant!
Clan Position: Head Gallant
Posts: 2403

« Reply #1 on: May 29, 2016, 02:08:20 PM »

You know that if you had an IPS patch, you can still see what it edits by using a program... For example, IPSelect can show you the addresses of what is edited...

http://forum.goldensunhacking.net/index.php?action=downloads;sa=view;down=40 = This one can increase it to 9999.

Opening that in IPSelect will show you this in the Hunk list:
0x0ADB2C - 0x0ADB30
0xFFFD80 - 0xFFFDD6 (Likely was free-space which was used because the above hunk didn't have enough room for the edit?)

If viewing in VBA, prefix with 08... (i.e. 080ADB2C) (In the event that code is edited... see VBA's Tools>Disassemble... (This should be one of those cases.)
« Last Edit: May 29, 2016, 02:13:47 PM by Fox » Logged

Golden Sun Docs: Broken Seal - The Lost Age - Dark Dawn | Mario Sports Docs: Mario Golf & Mario Tennis | Misc. Docs
Refer to Yoshi's Lighthouse for any M&L hacking needs...

Remember kids! Before you go on that interview, remember to wash your hands in teawater! *Coughs on hand* (Excuse me, I just coughed up a little teawater, so they're still clean!) You wouldn't want that hiring manager to be unimpressed.

May the force be with you!
Shoo! Why does it smell in here?
Maybe that's the wrong kind of force. *smirk*
View Profile

New User


Coins: 0
Offline Offline

Posts: 6

« Reply #2 on: May 29, 2016, 02:37:53 PM »

Numbers in hexes what I have to look for:
1999
9999
32767
Logged
View Profile
Fox
Fox McCloud, the Hacking Doctor
Mercury Clan

Prodigy
*

Coins: 28
Offline Offline

I am: certainly not a Gallant!
Clan Position: Head Gallant
Posts: 2403

« Reply #3 on: May 29, 2016, 02:53:28 PM »

Usually, numbers are built up in a calculation... (Although it is possible to use ldr-relative to load a 32-bit number...)

The mov instruction can only do 0-255 (00-FF), so such a number could be shifted/added to to get a bigger number... for example.... (The unpatched version.)
For most instructions, usually the first register listed is where the result goes.

@080ADB2C, in disassembler, we see:
mov r0, 0xDA //r0=0xDA .. The mov command sets it to the constant shown.
lsl, r0, r0, 0x3 // Same as r0 = r0 << 3.... Since we know what is in r0, we can see it as r0 = 0xDA << 3 ... which equals 0x6D0.) ; << is  bit-shift to the left, and you can tell how it works if you look at it in binary... also, Windows calculator should have it as well... (May be known as Lsh.)
add r0, 0xFF // Finally, because a bitshift wasn't enough to get to the number we need, we add 0xFF... So take what was last put in r0 (0x6D0), and add 0xFF to it... You get: 0x7CF ... Which is 1999 in decimal.
Logged

Golden Sun Docs: Broken Seal - The Lost Age - Dark Dawn | Mario Sports Docs: Mario Golf & Mario Tennis | Misc. Docs
Refer to Yoshi's Lighthouse for any M&L hacking needs...

Remember kids! Before you go on that interview, remember to wash your hands in teawater! *Coughs on hand* (Excuse me, I just coughed up a little teawater, so they're still clean!) You wouldn't want that hiring manager to be unimpressed.

May the force be with you!
Shoo! Why does it smell in here?
Maybe that's the wrong kind of force. *smirk*
View Profile

New User


Coins: 0
Offline Offline

Posts: 6

« Reply #4 on: May 29, 2016, 02:59:52 PM »

In what? Memory Viewer or Disassemble.
Logged
View Profile
Fox
Fox McCloud, the Hacking Doctor
Mercury Clan

Prodigy
*

Coins: 28
Offline Offline

I am: certainly not a Gallant!
Clan Position: Head Gallant
Posts: 2403

« Reply #5 on: May 29, 2016, 03:06:06 PM »

Well, you view code in Disassemble... you edit in memory viewer.


* disassemble1999.png (33.45 KB, 859x399 - viewed 114 times.)
Logged

Golden Sun Docs: Broken Seal - The Lost Age - Dark Dawn | Mario Sports Docs: Mario Golf & Mario Tennis | Misc. Docs
Refer to Yoshi's Lighthouse for any M&L hacking needs...

Remember kids! Before you go on that interview, remember to wash your hands in teawater! *Coughs on hand* (Excuse me, I just coughed up a little teawater, so they're still clean!) You wouldn't want that hiring manager to be unimpressed.

May the force be with you!
Shoo! Why does it smell in here?
Maybe that's the wrong kind of force. *smirk*
View Profile
Salanewt
His Sexiness
Mercury Clan

Oh yeah, baby!

Prodigy
*

Coins: 32
Offline Offline

I am: A part of the organization of Cool Cats, but more of a dog person in reality.
Emblems: Have a nice day.
Posts: 4565

« Reply #6 on: May 29, 2016, 03:59:33 PM »

Just to add to what Fox is saying, you need a hex editor to actually save the changes. Memory viewer is great for testing though.
Logged

Oh yeah baby, £ me harder.

Fusion is just a cheap tactic to make weak Adepts stronger.

Yoshi's Lighthouse is a hacking website in progress. Why not check it out if you like Yoshi or the Mario & Luigi games?
View Profile WWW
Fox
Fox McCloud, the Hacking Doctor
Mercury Clan

Prodigy
*

Coins: 28
Offline Offline

I am: certainly not a Gallant!
Clan Position: Head Gallant
Posts: 2403

« Reply #7 on: May 29, 2016, 04:04:28 PM »

Just to add to what Lord Squirtle just said, you can still save the changes without using another hex editor. Put your cursor at 0x08000000, press the save button, and save 0x1000000 bytes. (If GS2... But 0x800000 if GS1... depending on the size of the ROM.) The file will be of .DMP, but you can still change it to .gba. Works like a charm.
Logged

Golden Sun Docs: Broken Seal - The Lost Age - Dark Dawn | Mario Sports Docs: Mario Golf & Mario Tennis | Misc. Docs
Refer to Yoshi's Lighthouse for any M&L hacking needs...

Remember kids! Before you go on that interview, remember to wash your hands in teawater! *Coughs on hand* (Excuse me, I just coughed up a little teawater, so they're still clean!) You wouldn't want that hiring manager to be unimpressed.

May the force be with you!
Shoo! Why does it smell in here?
Maybe that's the wrong kind of force. *smirk*
View Profile
Salanewt
His Sexiness
Mercury Clan

Oh yeah, baby!

Prodigy
*

Coins: 32
Offline Offline

I am: A part of the organization of Cool Cats, but more of a dog person in reality.
Emblems: Have a nice day.
Posts: 4565

« Reply #8 on: May 29, 2016, 04:30:48 PM »

Oh yeah, I forgot you can do that!

Just to make sure, but does the hardmode scaling work for HP values that high?
Logged

Oh yeah baby, £ me harder.

Fusion is just a cheap tactic to make weak Adepts stronger.

Yoshi's Lighthouse is a hacking website in progress. Why not check it out if you like Yoshi or the Mario & Luigi games?
View Profile WWW

New User


Coins: 0
Offline Offline

Posts: 6

« Reply #9 on: May 29, 2016, 11:39:31 PM »

In memory Editor,

It seems like this: 1999
80ADB2C - DA 20 C0 00 FF 30 01 1C 34 23 FA 5E 33 68 00 2B
80ADB2E - C0 00 FF 30 01 1C 34 23 FA 5E 33 68 00 2B 01 DA
80ADB30 - FF 30 01 1C 34 23 FA 5E 33 68 00 2B 01 DA 00 23
« Last Edit: May 29, 2016, 11:47:28 PM by GoldenSunFan1989 » Logged
View Profile
Salanewt
His Sexiness
Mercury Clan

Oh yeah, baby!

Prodigy
*

Coins: 32
Offline Offline

I am: A part of the organization of Cool Cats, but more of a dog person in reality.
Emblems: Have a nice day.
Posts: 4565

« Reply #10 on: May 30, 2016, 12:04:10 AM »

It's a tad confusing the way you did it, but it didn't take long to figure out! :P

Quote
80ADB2C - DA 20 C0 00 FF 30

Is more accurately read as the following, since THUMB instructions are typically read in 16-bit format:

Quote
80ADB2C - 20DA 00C0 30FF

The first moves xDA to register 0 (r0); [218]
The second shifts it left by x03 (where x01 essentially multiplies by 2, x02 = by 4, x03 = by 8, x04 = by 16, and so forth); [218 x 8 = 1774] (Not literally multiplication, but the end result is similar)
The third adds xFF to this larger value; [1774 + 255 = 1999]


So all this means is that you have to change the second one to shift by a larger value. In this case, shifting xFE left by x07 will make it x7F00 while adding xFF will make it x7FFF. In other words, the value you want.

Quote
80ADB2C - 20FE 01C0 30FF

The above should do it. Please note that this only changes player values, as enemy stats are handled elsewhere. We can help out with that too if you want.
Logged

Oh yeah baby, £ me harder.

Fusion is just a cheap tactic to make weak Adepts stronger.

Yoshi's Lighthouse is a hacking website in progress. Why not check it out if you like Yoshi or the Mario & Luigi games?
View Profile WWW

New User


Coins: 0
Offline Offline

Posts: 6

« Reply #11 on: May 30, 2016, 12:34:06 AM »

After this, would I add it as IPS patch?
Logged
View Profile

I need saves to test encounters in GS Reloaded!

Great Member
***

Coins: 13
Offline Offline

Gender: Male
Posts: 722

« Reply #12 on: May 30, 2016, 06:00:44 AM »

ips patches are made with lunar ips, which uses your modded rom and the (backupped) untouched one to generate a patch by comparison between the two
Logged
View Profile

New User


Coins: 0
Offline Offline

Posts: 6

« Reply #13 on: May 30, 2016, 07:18:16 AM »

Well, I try to modify the not-modified game and save a dump, and I exit it and the game is not modified.

I tried it but the screen got white. When I patched it, the screen was white.
« Last Edit: May 30, 2016, 08:17:51 AM by GoldenSunFan1989 » Logged
View Profile
Salanewt
His Sexiness
Mercury Clan

Oh yeah, baby!

Prodigy
*

Coins: 32
Offline Offline

I am: A part of the organization of Cool Cats, but more of a dog person in reality.
Emblems: Have a nice day.
Posts: 4565

« Reply #14 on: May 30, 2016, 11:45:40 AM »

If you just want a patch so you can save the changes (especially as a means of applying them to a different ROM or sharing them), then the easiest way would be to use patching software and an unmodified copy of the ROM you are working with; something like LunarIPS or equivalent should work. This software basically compares the two ROMs and saves the changes in a format that makes them easier to apply to another ROM.

As for how to save anything you do in a modified ROM, using a hex editor will definitely work if you're not having luck with the dump. While there are many to choose from, I've grown quite attached to Hex Editor Neo myself if you want a recommendation.
Logged

Oh yeah baby, £ me harder.

Fusion is just a cheap tactic to make weak Adepts stronger.

Yoshi's Lighthouse is a hacking website in progress. Why not check it out if you like Yoshi or the Mario & Luigi games?
View Profile WWW
Pages: [1] 2   Go Up
  Print  
 
Jump to:  

Cbox
January 17, 2018, 04:07:51 PM
KyleRunner: :D
January 16, 2018, 08:44:56 PM
Fox: I must say... life can be complicated..... when you have question(s) (via email) ... and it seems like they sort of get ignored. :D ; Fun, (And sometimes, a person may respond, and completely not answer the question.... so like... 3-person conversation.) Hahahaha!!
January 15, 2018, 07:26:16 PM
Fox: (path) 1 text=(address) char=(address) free=(address) ; << Well, closer to this... but yeah... even if I do choose to have defaults in the code, I could still use this method for overrides.
January 15, 2018, 07:24:28 PM
Fox: So like (path) 0 text=(address) char=(address) len=(number) ; (path) 1 free=(address) ; Or something. But that's just a quick example.
January 15, 2018, 06:59:14 PM
Fox: Hopefully. I was wanting to make it so you could put in the addresses/etc. as one of the arguments in the path. Hm?
January 15, 2018, 03:37:07 PM
KyleRunner: Nice! I hope you'll add compatibility with others games (GS1, Mario Golf and Tennis) soon.
January 14, 2018, 11:40:09 PM
Fox: Okay. Posted (in Downloads section) an initial cutdown version for now, for my text compressor. Basically to separate the code from my Editor for anyone who wants to mess with it. It only supports GS2, because I still didn't add the addresses/etc. for the other games.
January 14, 2018, 05:01:00 PM
Fox: Okay! Going to need to think how I want it to work. Initial thoughts is maybe have a number of arguments in the filepath thing. And have a number of shortcuts (files) to be used as examples. Assuming there are no problems.
January 14, 2018, 10:38:24 AM
KyleRunner: Well... I'm used to editing text ina a text editor, so... yes! Thanks in advance!
January 13, 2018, 11:38:43 PM
Fox: (Text editor = Text Document like notepad.)
January 13, 2018, 11:38:21 PM
Fox: Would you prefer during the text editing in a text editor? (Like what gstoolkit lets you do?) I could probably make a separate tool or something to compress it.
January 13, 2018, 10:10:02 PM
KyleRunner: Ok. Once I finish my Lost Age translation, I'll try a Mario Golf one. Thanks. (But I'll need help).
January 13, 2018, 10:03:17 PM
Fox: If you want to make it "permanent" (part of a hack), then you'd edit code in the ROM that writes to this location of the IDs you'd want to change. (You can find these locations by using a breakpoint debugger like SDL-H or no$gba.)
January 13, 2018, 10:00:11 PM
Fox: Reload/switch = Recommended to be done through Debug mode/warp menu, ofcourse... since doors seem to appear as if they were disabled? ; 03001238:01 and B+Start to get to warp menu.
January 13, 2018, 09:55:39 PM
Fox: @Kyle Runner = It might be, but you'd have to use the correct addresses for Mario Golf, rather than for GS2 as I have it right now. ; @raijinken = Yes. 02000454 = ID of leader. (Change this and reload/switch room you are in, enjoy.)
January 13, 2018, 02:23:29 PM
raijinken: Hey guys, is it possible to somehow change the lead character on the map? Was wondering. I remember there was a cheat to use Jenna, but what if I wanted Isaac, or Piers?
January 13, 2018, 02:10:03 PM
KyleRunner: Hey, Fox *
January 13, 2018, 02:09:37 PM
KyleRunner: Hey, is your text editor compatible with Mario Golf (GBA)?
January 11, 2018, 08:33:13 PM
Fox: But if it isn't an oversight, I still can't imagine it being that useful.
January 11, 2018, 08:28:24 PM
Fox: part, ofcourse.

Affiliates
Temple of Kraden Golden Sunrise
Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.078 seconds with 22 queries.