ROM Hack Rune Factory 4 S Hacking Thread

JPAN

Member
OP
Newcomer
Joined
Nov 18, 2018
Messages
18
Trophies
0
Age
34
XP
1,243
Country
Portugal
I start this thread to share the findings of the Rune Factory 4 Special data structures.

Pretty much all data is identical to the 3ds structure, including all types documented at https://gbatemp.net/threads/rune-factory-4-rom-hacking-test-hack.529785/
In fact, I've been using the files from the hack in that thread with only an header modification in my playtrough.

The US version uses 9.x encryption while the J version uses 8.x encryption, so if you plan to decrypt your own rom, be wary of that.

I'll include a ready to use version of the 3ds hack for LayeredFS (minus accessory recipe changes until I figure if there are new accessories recipes or not) and a cheat file with the Field Stat codes (including one with Field Speed only, for lighter use). They were all tested in SXOS, but should work with Atmosphere and Edizon.


Feel free to use this thread to discuss anything RF4S Hacking related, be it cheats or Rom Hacking.

Edit 1:
After spending an afternoon trying to create a change item code (type, quantity, the works), I managed to find the format the items are stored and where they are stored. However, SX cheats do not allow me to create a simple "Press R3 to get 9 Lv10 materials" because of no way to store a register value. So, I'll dump here the item types, and how to make a "Create Item From Scratch" code:

Heap + 2dda399c = 1st backpack slot. Add 0x28 to it for the second slot and so on.

Items
0x0 ItemId + quantity<<11
0x2 1 if homemade
0x4-0xC levels of each item in the stack
0xd+ - 0x0
0x18 always 00 08 00 10
0x20 always 90 39 3a 74
0x24 always 0

Fish
0x0 ItemId + quantity<<11
0x2 1 if homemade
0x4 level
0x8 Size in milimeters
0x18 always 00 08 00 10
0x20 always 90 39 3a 74
0x24 always 0

Dish
0x0 ItemId + quantity<<11
0x2 1 if homemade
0x4 level
0x6 Ingredient 1
0x8 Ingredient 2
0xa Ing 3
0xc Ing 4
0xe Ing 5
0x10 Ing 6
0x12 != 0 for blue name
0x18 always 00 08 00 10
0x20 always 90 39 3a 74
0x24 always 0

Weapons, Tools and armor
0x0 ItemId + quantity<<11
0x2 1 if homemade
0x4 level
0x6 total level
0x8 Base weapon + ???<<10
0xa ???
0xc Build item 1 + build item 2<<10 + build item 3 <<20
0x10 upgrade item 1,2,3
0x14 upgrade item 4,5,6
0x16 upgrade item 7,8,9
0x18 always 00 08 00 10
0x20 always 90 39 3a 74
0x24 always 0


In order to create an item, fill the following code with the desired values:
Code:
[Override item in slot 1 with Material]
04100000 2dda399c 0000(ItemId + quantity<<11)
04100000 2dda39a0 09090909 //replace 09s with [level -1]
04100000 2dda39a4 09090909
04100000 2dda39a8 00000009
04100000 2dda39ac 00000000
08100000 2dda39b0 00000000 00000000
04100000 2dda39b8 10000800
04100000 2dda39bc 743a3990
04100000 2dda39c0 00000000


[Override item in slot 1 with Fish]
04100000 2dda399c 0000(ItemId + quantity<<11)
04100000 2dda39a0 0000000(level-1)
04100000 2dda39a4 0000(size in mm)
08100000 2dda39a8 00000000 00000000
08100000 2dda39b0 00000000 00000000
04100000 2dda39b8 10000800
04100000 2dda39bc 743a3990
04100000 2dda39c0 00000000

[Override item in slot 1 with Weapon]
04100000 2dda399c 0000(ItemId + quantity<<11)
04100000 2dda39a0 00(total level)000(level-1)
04100000 2dda39a4 0000(base weapon ID)
04100000 2dda39a8 (Build item 1 + build item 2<<10 + build item 3 <<20)
04100000 2dda39ac (upgrade item 1+ upgrade item 2<<10 ,upgrade item 3<<20)
04100000 2dda39b0 (upgrade item 1+ upgrade item 2<<10 ,upgrade item 3<<20)
04100000 2dda39b4 (upgrade item 1+ upgrade item 2<<10 ,upgrade item 3<<20)
04100000 2dda39b8 10000800
04100000 2dda39bc 743a3990
04100000 2dda39c0 00000000

Edit: added Item Index list as attatchment
Edit2: Updated cheat code to use UTF-8 Encoding and added Inf HP/RP and Time of Day codes.
 

Attachments

  • item IDs.txt
    23.5 KB · Views: 810
  • RF4 Hack + cheats.zip
    37.4 KB · Views: 1,330
Last edited by JPAN,

DEMONDICE

K-K-Kureiji
Member
Joined
Dec 7, 2013
Messages
1,014
Trophies
1
Age
33
XP
2,016
Country
United States
Awesome, I'll be following this thread. I'll give the mod a try. I'm hoping someone can convert the JP codes, as they somehow seem to have working gold, lumber and stone.
 
Last edited by DEMONDICE,

JPAN

Member
OP
Newcomer
Joined
Nov 18, 2018
Messages
18
Trophies
0
Age
34
XP
1,243
Country
Portugal
The "all field speed" freezes my console ;(

EDIT: All codes freeze my console, I'm in atmosphere 0.11

I'm sorry, but I don't have Atmosphere, only SXOS. These codes would be identical in both cheat formats, so I don't know why it's not working. Can you at least load the cheats (freezes in-game) or not even that? If not loading at all, try changing the (LFCR) endings for simple (LF) endings (Linux type), sometimes mine don't work because of it.

Also, for everyone, new "codes" posted in main post.
 

TheXaver16

Active Member
Newcomer
Joined
May 7, 2017
Messages
34
Trophies
0
Age
26
XP
211
Country
I'm sorry, but I don't have Atmosphere, only SXOS. These codes would be identical in both cheat formats, so I don't know why it's not working. Can you at least load the cheats (freezes in-game) or not even that? If not loading at all, try changing the (LFCR) endings for simple (LF) endings (Linux type), sometimes mine don't work because of it.

Also, for everyone, new "codes" posted in main post.

Cant even load the cheats, it freezes in edizon and cant do anything but to force shut down the console
 
  • Like
Reactions: Mizo

DEMONDICE

K-K-Kureiji
Member
Joined
Dec 7, 2013
Messages
1,014
Trophies
1
Age
33
XP
2,016
Country
United States
So here are the JP codes for the game:

[Freeze1200]
04100000 2dcfc7a4 00000000
04100000 2dcfc7a8 0000000C

[HP]
04100000 30e4d030 0001869F

[RP]
04100000 30e4d034 0FFFF000

[MONEYetc]
04000000 003d1e18 3B9AC9FF
04000000 00C90CA8 0001869F
02000000 003d1e1c 0000270F
02000000 003d1e20 0000270F
02000000 003d1e24 0000270F
02100000 30e4d95c 0000270F

[ItemLv10Num9(RSUp)]
80200000
52110000 2dd18d6C
92511100 000087FF
92611100 00004800
A2100410 2dd18d6C
04100000 2dd18d70 09090909
04100000 2dd18d74 09090909
01100000 2dd18d78 00000009
20000000

[EquipItemNumKeep9]
52110000 2DD18D94
C0221400 00001000
92511100 000087FF
92611100 00004800
A2100410 2DD18D94
20000000

[CopyItem(RSDown)]
52110000 2dd18f5C
C0251400 00000000
54110000 2dd18d6C
A4100410 2dd18f5C
54110000 2dd18d70
A4100410 2dd18f60
54110000 2dd18d74
A4100410 2dd18f64
54110000 2dd18d78
A4100410 2dd18f68
54110000 2dd18d7c
A4100410 2dd18f6C
54110000 2dd18d80
A4100410 2dd18f70
54110000 2dd18d84
A4100410 2dd18f74
54110000 2dd18d88
A4100410 2dd18f78
54110000 2dd18d8c
A4100410 2dd18f7C
54110000 2dd18d90
A4100410 2dd18f80
20000000

[MainFieldStatMax]
40010000 00000000 2DD17860
300E0000 00000012
04110000 00000000 7FDFF7FF
04110000 00000004 FFFFFDFF
04110000 00000008 FFFFFFFF
04110000 0000000C FFFFFFFF
78010000 00000010
310E0000

[LeftDownFieldStatMax]
40010000 00000000 2DD179A0
300E0000 00000012
04110000 00000000 7FDFF7FF
04110000 00000004 FFFFFDFF
04110000 00000008 FFFFFFFF
04110000 0000000C FFFFFFFF
78010000 00000010
310E0000

[RightDownFieldStatMax]
40010000 00000000 2DD17AE0
300E0000 00000012
04110000 00000000 7FDFF7FF
04110000 00000004 FFFFFDFF
04110000 00000008 FFFFFFFF
04110000 0000000C FFFFFFFF
78010000 00000010
310E0000

[LeftUpFieldStatMax]
40010000 00000000 2DD17C20
300E0000 00000012
04110000 00000000 7FDFF7FF
04110000 00000004 FFFFFDFF
04110000 00000008 FFFFFFFF
04110000 0000000C FFFFFFFF
78010000 00000010
310E0000

[RightUpFieldStatMax]
40010000 00000000 2DD17D60
300E0000 00000012
04110000 00000000 7FDFF7FF
04110000 00000004 FFFFFDFF
04110000 00000008 FFFFFFFF
04110000 0000000C FFFFFFFF
78010000 00000010
310E0000

[SpringFieldStatMax]
40010000 00000000 2DD17EA0
300E0000 00000008
04110000 00000000 7FDFF7FF
04110000 00000004 FFFFFDFF
04110000 00000008 FFFFFFFF
04110000 0000000C FFFFFFFF
78010000 00000010
310E0000

[SummerFieldStatMax]
40010000 00000000 2DD17FE0
300E0000 00000004
04110000 00000000 7FDFF7FF
04110000 00000004 FFFFFDFF
04110000 00000008 FFFFFFFF
04110000 0000000C FFFFFFFF
78010000 00000010
310E0000

[AutumFieldStatMax]
40010000 00000000 2DD18120
300E0000 00000002
04110000 00000000 7FDFF7FF
04110000 00000004 FFFFFDFF
04110000 00000008 FFFFFFFF
04110000 0000000C FFFFFFFF
78010000 00000010
310E0000
78010000 00000010
300E0000 00000002
04110000 00000000 7FDFF7FF
04110000 00000004 FFFFFDFF
04110000 00000008 FFFFFFFF
04110000 0000000C FFFFFFFF
78010000 00000010
310E0000
78010000 00000010
300E0000 00000002
04110000 00000000 7FDFF7FF
04110000 00000004 FFFFFDFF
04110000 00000008 FFFFFFFF
04110000 0000000C FFFFFFFF
78010000 00000010
310E0000

[WinterFieldStatMax]
40010000 00000000 2DD18260
300E0000 0000000C
04110000 00000000 7FDFF7FF
04110000 00000004 FFFFFDFF
04110000 00000008 FFFFFFFF
04110000 0000000C FFFFFFFF
78010000 00000010
310E0000

They seem to have working codes for gold and item quality. Would you be able to convert them over since creating them from scratch isn't going so well?
 
Last edited by DEMONDICE,
  • Like
Reactions: TunaKetchup

DrYoshi

Well-Known Member
Newcomer
Joined
May 1, 2019
Messages
82
Trophies
0
Age
27
XP
477
Country
United States
Is it possi
So here are the JP codes for the game:

[Freeze1200]
04100000 2dcfc7a4 00000000
04100000 2dcfc7a8 0000000C

[HP]
04100000 30e4d030 0001869F

[RP]
04100000 30e4d034 0FFFF000

[MONEYetc]
04000000 003d1e18 3B9AC9FF
04000000 00C90CA8 0001869F
02000000 003d1e1c 0000270F
02000000 003d1e20 0000270F
02000000 003d1e24 0000270F
02100000 30e4d95c 0000270F

[ItemLv10Num9(RSUp)]
80200000
52110000 2dd18d6C
92511100 000087FF
92611100 00004800
A2100410 2dd18d6C
04100000 2dd18d70 09090909
04100000 2dd18d74 09090909
01100000 2dd18d78 00000009
20000000

[EquipItemNumKeep9]
52110000 2DD18D94
C0221400 00001000
92511100 000087FF
92611100 00004800
A2100410 2DD18D94
20000000

[CopyItem(RSDown)]
52110000 2dd18f5C
C0251400 00000000
54110000 2dd18d6C
A4100410 2dd18f5C
54110000 2dd18d70
A4100410 2dd18f60
54110000 2dd18d74
A4100410 2dd18f64
54110000 2dd18d78
A4100410 2dd18f68
54110000 2dd18d7c
A4100410 2dd18f6C
54110000 2dd18d80
A4100410 2dd18f70
54110000 2dd18d84
A4100410 2dd18f74
54110000 2dd18d88
A4100410 2dd18f78
54110000 2dd18d8c
A4100410 2dd18f7C
54110000 2dd18d90
A4100410 2dd18f80
20000000

[MainFieldStatMax]
40010000 00000000 2DD17860
300E0000 00000012
04110000 00000000 7FDFF7FF
04110000 00000004 FFFFFDFF
04110000 00000008 FFFFFFFF
04110000 0000000C FFFFFFFF
78010000 00000010
310E0000

[LeftDownFieldStatMax]
40010000 00000000 2DD179A0
300E0000 00000012
04110000 00000000 7FDFF7FF
04110000 00000004 FFFFFDFF
04110000 00000008 FFFFFFFF
04110000 0000000C FFFFFFFF
78010000 00000010
310E0000

[RightDownFieldStatMax]
40010000 00000000 2DD17AE0
300E0000 00000012
04110000 00000000 7FDFF7FF
04110000 00000004 FFFFFDFF
04110000 00000008 FFFFFFFF
04110000 0000000C FFFFFFFF
78010000 00000010
310E0000

[LeftUpFieldStatMax]
40010000 00000000 2DD17C20
300E0000 00000012
04110000 00000000 7FDFF7FF
04110000 00000004 FFFFFDFF
04110000 00000008 FFFFFFFF
04110000 0000000C FFFFFFFF
78010000 00000010
310E0000

[RightUpFieldStatMax]
40010000 00000000 2DD17D60
300E0000 00000012
04110000 00000000 7FDFF7FF
04110000 00000004 FFFFFDFF
04110000 00000008 FFFFFFFF
04110000 0000000C FFFFFFFF
78010000 00000010
310E0000

[SpringFieldStatMax]
40010000 00000000 2DD17EA0
300E0000 00000008
04110000 00000000 7FDFF7FF
04110000 00000004 FFFFFDFF
04110000 00000008 FFFFFFFF
04110000 0000000C FFFFFFFF
78010000 00000010
310E0000

[SummerFieldStatMax]
40010000 00000000 2DD17FE0
300E0000 00000004
04110000 00000000 7FDFF7FF
04110000 00000004 FFFFFDFF
04110000 00000008 FFFFFFFF
04110000 0000000C FFFFFFFF
78010000 00000010
310E0000

[AutumFieldStatMax]
40010000 00000000 2DD18120
300E0000 00000002
04110000 00000000 7FDFF7FF
04110000 00000004 FFFFFDFF
04110000 00000008 FFFFFFFF
04110000 0000000C FFFFFFFF
78010000 00000010
310E0000
78010000 00000010
300E0000 00000002
04110000 00000000 7FDFF7FF
04110000 00000004 FFFFFDFF
04110000 00000008 FFFFFFFF
04110000 0000000C FFFFFFFF
78010000 00000010
310E0000
78010000 00000010
300E0000 00000002
04110000 00000000 7FDFF7FF
04110000 00000004 FFFFFDFF
04110000 00000008 FFFFFFFF
04110000 0000000C FFFFFFFF
78010000 00000010
310E0000

[WinterFieldStatMax]
40010000 00000000 2DD18260
300E0000 0000000C
04110000 00000000 7FDFF7FF
04110000 00000004 FFFFFDFF
04110000 00000008 FFFFFFFF
04110000 0000000C FFFFFFFF
78010000 00000010
310E0000

They seem to have working codes for gold and item quantity. Would you be able to convert them over since creating them from scratch isn't going so well?
Does the [MONEYetc] code give max lumber, stone, and renown? I had a old version of the jp codes that only had 4 cheats for it, 1 gave max renown and one gave max money, but i deleted it yesterday since i thought i did not need it any longer... so I can't reference it.
 

DEMONDICE

K-K-Kureiji
Member
Joined
Dec 7, 2013
Messages
1,014
Trophies
1
Age
33
XP
2,016
Country
United States
Is it possi

Does the [MONEYetc] code give max lumber, stone, and renown? I had a old version of the jp codes that only had 4 cheats for it, 1 gave max renown and one gave max money, but i deleted it yesterday since i thought i did not need it any longer... so I can't reference it.
I have no idea. I haven't tested it, I'm on the EU version myself. Someone in the other thread said they work and their screenshot showed max money, but they didn't show anything else.
 

DEMONDICE

K-K-Kureiji
Member
Joined
Dec 7, 2013
Messages
1,014
Trophies
1
Age
33
XP
2,016
Country
United States
I found the cheat file I referenced, when I used one of the cheats I got max prince points and gold even though prince points are not listed as a cheat on the list??? This was last year that it happened.
https://gbatemp.net/download/rune-factory-4-special-jap-cheat-file.36044/
Those cheats are here:

[HP energy unlimited]
580F0000 035D1BE0
780F0000 000A5C58
640F0000 00000000 409D6086

[RP energy unlimited]
580F0000 035D1BA0
780F0000 000A6188
640F0000 00000000 40A00000

[Skills MAX]
580F0000 00C91230
780F1000 00000574
640F0000 00000000 0001869F

[Money MAX]
580F0000 003DF8F0
780F1000 0000DA80
640F0000 00000000 000F423F

So it isn't the same as the ones I posted above. But who knows, it may be more than just money.

Honestly, if any of the JP cheats can be converted, it would be fantastic!
 
Last edited by DEMONDICE,

DrYoshi

Well-Known Member
Newcomer
Joined
May 1, 2019
Messages
82
Trophies
0
Age
27
XP
477
Country
United States
Those cheats are here:

[HP energy unlimited]
580F0000 035D1BE0
780F0000 000A5C58
640F0000 00000000 409D6086

[RP energy unlimited]
580F0000 035D1BA0
780F0000 000A6188
640F0000 00000000 40A00000

[Skills MAX]
580F0000 00C91230
780F1000 00000574
640F0000 00000000 0001869F

[Money MAX]
580F0000 003DF8F0
780F1000 0000DA80
640F0000 00000000 000F423F

So it isn't the same as the ones I posted above. But who knows, it may be more than just money.

Honestly, if any of the JP cheats can be converted, it would be fantastic!
One of those cheats gave me max prince points for some reason. I have no idea why tbh.
 

mobad

Active Member
Newcomer
Joined
Apr 7, 2007
Messages
28
Trophies
1
XP
250
Country
Canada

Attachments

  • c03c9f6a862543f9.txt
    2.1 KB · Views: 510
Last edited by mobad,
  • Like
Reactions: pkshsw

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    Xdqwerty @ Xdqwerty: @Psionic Roshambo, atleast there was some neat filler there