ROM Hack [Release] CTRPF Data Tool - A CTRPFData.bin Editor

RyDog

Lazy Animal Crossing hacks
OP
Member
Joined
Apr 26, 2015
Messages
1,698
Trophies
1
Age
24
XP
2,850
Country
United States
This is a tool to parse the CTRPFData.bin file that comes from using any NTR Plugins that use CTRPF.
Example of plugins using CTRPF:
Mario Kart 7
The Legend Of Zelda: Ocrania Of Time
Animal Crossing New Leaf
cbl61j6.png

What exactly is the purpose of this tool?
To add/remove/edit "free cheats" that you can make with the above plugins.
What is a "free cheat"
Since CTRPF doesn't support "Action Replay" yet @Nanquitas had a brilliant idea of instead, allowing the user to create cheat codes that will be constantly writing a value at an address with a specified size. Here, in this thread, you could potentially share other free cheats that are provided from other users so other users can enjoy your cheats!
Example template of sharing cheats:
Code:
Game:
Cheat Name:
Address:
Value:
Size:
So, it would look like this for a rupee modifier for A Link Between Worlds
Code:
Game: Zelda: A Link Between Worlds (USA)
Cheat Name: Rupee Modifier
Address: 168B5FA8
Value: XXXX
Size: 2 bytes
Replace XXXX with the value you want. 270F is 9,999.

Screenshot of this program:
upload_2017-9-12_23-9-47.png

Once you finished editing/adding your cheats, make sure to save your file!

Special thanks to:
@Nanquitas CTRPluginFramework
@Mega-Mew UI and idea

Source
Download
 
Last edited by RyDog,

RyDog

Lazy Animal Crossing hacks
OP
Member
Joined
Apr 26, 2015
Messages
1,698
Trophies
1
Age
24
XP
2,850
Country
United States
New update:

Version 1.0.1
  • Added a file integrity checker
  • Fixed a bug that would not decrement your cheatsCount value when removing a cheat
If the file integrity checker works too good, send me your CTRPFData.bin file so I can fix it for you.
 

RyDog

Lazy Animal Crossing hacks
OP
Member
Joined
Apr 26, 2015
Messages
1,698
Trophies
1
Age
24
XP
2,850
Country
United States
Note: The file integrity checker is checked when opening the file. The requirements for the CTRPFData.bin goes as follows:
  • File needs to be larger than 0x80 bytes
  • File needs to be a multiple of 0x40 (so it can be 0x80, 0xC0, 0x100, 0x140, 0x180, etc.)
  • File needs to be the same size as 0x80 + (the value at offset 0x34 * 0x40)

You can check the file integrity by opening it in HxD, and just looking these important things
upload_2017-9-13_22-57-21.png
 

Deleted member 411764

Well-Known Member
Member
Joined
Jan 15, 2017
Messages
260
Trophies
0
Age
22
XP
495
Country
United Kingdom
Cool


Code:
Game: The Legend Of Zelda: Triforce Heroes (EUR)
Cheat Name: Blinking Invincible Green/Original Link
Address: 028495C4
Value: 18
Size: 1 byte

Game: The Legend Of Zelda: Triforce Heroes (EUR)
Cheat Name: Blinking Invincible Blue Link
Address: 028595C4
Value: 18
Size: 1 byte

Game: The Legend Of Zelda: Triforce Heroes (EUR)
Cheat Name: Blinking Invincible Red Link
Address: 028695C4
Value: 18
Size: 1 byte

Game: The Legend Of Zelda: Triforce Heroes (EUR)
Cheat Name: Rupee Modifier
Address: 02C825A0
Value: 1869F
Size: 4 byte
 
Last edited by Deleted member 411764,

breaktemp

D-Sun who was called D-Moon
Member
Joined
Mar 17, 2008
Messages
1,064
Trophies
1
Location
TSU...no.1 in tha hood
Website
www.youtube.com
XP
847
Country
United States
@RyDog

It seems I am a bit late to the party.
Got the program, but a bit confused on how to get started.
I am trying to create code for this game :
Dragon Quest Monsters 2 - Iru to Ruka no Fushigi na Fushigi na Kagi (Japan)

With the game ID :
000400000000CF500

Thread here :
https://gbatemp.net/threads/ntr-cheat-how-to-create-your-own-plg-file.573618/

But a bit stumped with how to get started with this program.
I have the raw codes I want to add but unsure how to add or create them with this program.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • S @ salazarcosplay:
    and you convince your owner to help you break out of the virtual world to real world
  • BigOnYa @ BigOnYa:
    Eyes - "yawn"
    +1
  • S @ salazarcosplay:
    you bleack in to goverment computer systems to get cyborg schematics so you can get a robot body constructed
  • Xdqwerty @ Xdqwerty:
    btw @BigOnYa the health bar doesnt decrease when i take damage (and yes i put the "at the beggining of the scene change value of greenflatbar: set to Protagonistcopmode.Health::Health())
  • S @ salazarcosplay:
    i the protagonist
  • S @ salazarcosplay:
    human, robot, cyborg
  • S @ salazarcosplay:
    human with cyborg enhancements
  • S @ salazarcosplay:
    or like terminatior
  • S @ salazarcosplay:
    with living tissue
  • BigOnYa @ BigOnYa:
    @Xdqwerty there is health behaviour you can add to your character, then to use a health bar is lil more complicated, google n watch a few tutorial video on it, be too hard to explain here.
  • Xdqwerty @ Xdqwerty:
    @BigOnYa, the character has the health behavior
  • BigOnYa @ BigOnYa:
    I know you have to create a health and health max variable. Then there is a calculation you use in code to subtract width size of the health bar. Google few vids.
  • Xdqwerty @ Xdqwerty:
    @BigOnYa, the "greenflatbar" is one of the preset health bars btw
  • BigOnYa @ BigOnYa:
    Yea you can use any bar/sprite. It will just change the width. Ok good luck and have fun. I'm off to go shoot some pool at the bar. Talk to you later.
    +1
  • Xdqwerty @ Xdqwerty:
    @BigOnYa, why does the health behavior exist if you can just use a variable?
  • Xdqwerty @ Xdqwerty:
    and nope the number still doesnt change
  • Xdqwerty @ Xdqwerty:
    ok im gonna make my own asset
  • Xdqwerty @ Xdqwerty:
    nvm i think i fixed it
  • Xdqwerty @ Xdqwerty:
    @BigOnYa, I fixed it
    +1
  • S @ salazarcosplay:
    how are you\
  • Xdqwerty @ Xdqwerty:
    @salazarcosplay, we just talked like 2 hours ago
    Xdqwerty @ Xdqwerty: