ROM Hack Bravely Second Money Hex Offsets

Animeman1000

Well-Known Member
Newcomer
Joined
May 9, 2016
Messages
71
Trophies
0
Location
Orlando, FL
Website
tinyurl.com
XP
69
Country
United States
OK, thanks man.

It'd be great if someone just made a dang Save Editor that does all this for us. lol

so in that example
18630 * (2^2) = lvl 10 for tiz
18630 * 4 = 67320 = 01 06 F8 => covert => [F8 06 01] <-this is what you type @
0x106A

18630 * 4....I calculated 74520, not 67320. Also does 0x106A mean:

WLv8oRD.jpg
 
Last edited by Animeman1000,

Gamerjin

Well-Known Member
Member
Joined
May 25, 2016
Messages
2,755
Trophies
1
XP
6,396
Country
United States
i redid that and yes, youre right(i somehow swap the 8 and 6 :( ). 74520 = 01 23 18 in hex. convert it over to little => 18 23 01. and no, its 3 bytes [00 11 22], 0x106C is where the 01 for freelancer and if we use lvl 10 knight (18630*(8)= 149040 => 02 46 30 => 30 46 02) the 30 to get 31 for 0x160C
so, in the end lvl freelancer and lvl 10 knight will look like this:
0x1060 00 00 00 00 00 00 00 00 00 18 23 31 46 02 00
________ 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F
____________________________________________^^ here @ 106C is where the overlapping bytes from lancer (01) and knight (30) are added together.

i'm........not good at explaining things. so if confuses you, im sorry. :(
 
  • Like
Reactions: Animeman1000

Animeman1000

Well-Known Member
Newcomer
Joined
May 9, 2016
Messages
71
Trophies
0
Location
Orlando, FL
Website
tinyurl.com
XP
69
Country
United States
i redid that and yes, youre right(i somehow swap the 8 and 6 :( ). 74520 = 01 23 18 in hex. convert it over to little => 18 23 01. and no, its 3 bytes [00 11 22], 0x106C is where the 01 for freelancer and if we use lvl 10 knight (18630*(8)= 149040 => 02 46 30 => 30 46 02) the 30 to get 31 for 0x160C
so, in the end lvl freelancer and lvl 10 knight will look like this:
0x1060 00 00 00 00 00 00 00 00 00 18 23 31 46 02 00
________ 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F
____________________________________________^^ here @ 106C is where the overlapping bytes from lancer (01) and knight (30) are added together.

I'm........not good at explaining things. so if confuses you, I'm sorry. :(

So let's say I wanna edit Yew's Freelancer which is level 3 right now. The Hex, which is offset 12EF, has:
xadClhv.jpg

Do I multiply that value by 4? How do I get the value. Really wanting to understand.
 

Gamerjin

Well-Known Member
Member
Joined
May 25, 2016
Messages
2,755
Trophies
1
XP
6,396
Country
United States
do you want to go to lvl 10? if so, and the offsets hold true, then:
0x12EF JP (2^0)
0X12EF 18630 * (2^0)
0X12EF 18630 * (1) x^0 = 1 (no matter what x is)
0X12EF 00 48 C6 => convert to little => C6 48 00
and i thought this might happen. Yew offset is starting at 0x12EF, so that means:
0x12EF = C6
0x12F0 = 48
0x12F1 = 00

and yes, i know hex editing can be tricky, especially when dealing with little indian, cuz you have to remember to flip the byte order:
ie. your level 3 jp: 08 01 00 => convert back to big => 00 01 08 => 0x108 (264 in decimal)

--------------------- MERGED ---------------------------

just to recap:
the JP muiltplier is found in this post:
https://gbatemp.net/threads/bravely-second-money-hex-offsets.416169/page-3#post-6399407

multiplier is incremented by one in every next job, so it's going like that:
2^0 -> 2^1 -> 2^2 -> 2^3 -> 2^4 -> 2^5 -> 2^6 -> 2^7 -> 2^0
 
  • Like
Reactions: Animeman1000

Gamerjin

Well-Known Member
Member
Joined
May 25, 2016
Messages
2,755
Trophies
1
XP
6,396
Country
United States
ive attach a basic dec to hex converter
use it like this:
DtH.bat "decimal#"
it will tell you the right hex code.
DtH.bat 18630
hex=C6 48 00
ive already check it, and its correct
all you have to do is the multiplying...

--------------------- MERGED ---------------------------

i also dug a little and found this:
https://www.reddit.com/r/bravelydef..._second_vs_bravely_default_jobs_comparison/#s

It has the table youre looking for, muiltply the jp values and put those numbers into my batch file and you have a somewhat easy system...
 

Attachments

  • DtH.zip
    275 bytes · Views: 184
Last edited by Gamerjin,
  • Like
Reactions: Animeman1000

Gamerjin

Well-Known Member
Member
Joined
May 25, 2016
Messages
2,755
Trophies
1
XP
6,396
Country
United States
dth was just shorthand for "Decimal to Hex" technically, since its a batch file, you can rename to anything you want, in most case you can right-click->rename or if in windows usually F2 can rename it as well. just must sure you give it a decimal number, i didn't design it to go both ways.
 

Gamerjin

Well-Known Member
Member
Joined
May 25, 2016
Messages
2,755
Trophies
1
XP
6,396
Country
United States
oh! yeah you had it right, DtH # where # is a decimal number.

--------------------- MERGED ---------------------------

i forgot to mention, you will need to extract out of the zip file...
 

Gamerjin

Well-Known Member
Member
Joined
May 25, 2016
Messages
2,755
Trophies
1
XP
6,396
Country
United States
yeah it does that when i post too quickly... /: |.

Ok, reworked the batch file so it prompt you for a decimal #
 

Attachments

  • DtH V2.0.zip
    292 bytes · Views: 147

Animeman1000

Well-Known Member
Newcomer
Joined
May 9, 2016
Messages
71
Trophies
0
Location
Orlando, FL
Website
tinyurl.com
XP
69
Country
United States
Yeah. lol

Also I edited the comment cause I had another question, but I'll re-ask here.

Let's say I want the job level to be 11. I would take the JP value, for example 28629, and multiply by (2^10), which is 29316096? Then I put that in the bat file and the hex is what I insert into the offset of the job?
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    K3Nv2 @ K3Nv2: Yeah forgot to turn that off