ROM Hack [Release] Online Gateway To CTRPF Code Converter

DarkFlare69

Well-Known Member
OP
Member
Joined
Dec 8, 2014
Messages
5,147
Trophies
2
Location
Chicago
XP
4,750
Country
United States
Updated to v1.0.5

-Added notes
-Improved help page to give more detailed information on how to use spoilers and notes
-Added titles to more popup text boxes


Notes can be created using *

Code:
+This is a spoiler
[Code1234]
D3000000 08000000
10000048 0000FFFF
D2000000 00000000
*This is a note for Code1234\nAnd if you want to use another line, you can use \n to create a new line.
-Exits the spoiler, you only need to type -
 
  • Like
Reactions: ninjistix

ninjistix

Well-Known Member
Member
Joined
Aug 8, 2016
Messages
340
Trophies
0
Age
36
XP
1,800
Country
United States
would it be possible to reverse the converted codes back to gateshark codes, lets say you found a old plugin source and want to port those codes to the newer lib?
 

DarkFlare69

Well-Known Member
OP
Member
Joined
Dec 8, 2014
Messages
5,147
Trophies
2
Location
Chicago
XP
4,750
Country
United States
would it be possible to reverse the converted codes back to gateshark codes, lets say you found a old plugin source and want to port those codes to the newer lib?
Yes, but it's a feature I won't be adding due to C being a lot more flexible than the NDS codetypes. There's many ways to write a NTR code, and unless it's written in the exact format that the program likes, it won't be possible to convert by the program, since the NDS codetypes are so limited in terms of flexibility
 

KillianMG

New Member
Newbie
Joined
Feb 10, 2018
Messages
3
Trophies
0
Age
19
XP
42
Country
France
Hi ,

where put the codes after doing this :
void Plugin Oras(void)
{
new_spoiler("Unlimited");
new_entry("Max/Inf HP v1.4", InfHP_note, InfHP);
new_entry("Money 999998", InfMoney_note, Infmoney);
exit_spoiler();
}

-----------------------------------------------------------------------------------------


I made his but but I'm not sure that his walk
code :
void Plugin Oras(void)
{
new_spoiler("Unlimited");
new_entry("Max/Inf HP v1.4", InfHP_note, InfHP);
new_entry("Money 999998", InfMoney_note, Infmoney);
exit_spoiler();
}

void InfHP(void)
{
if (READU32(offset + 0x81FB58C) < 0x08200000)
{
if (READU32(offset + 0x81FB92C) < 0x08200000)
{
offset = READU32(offset + 0x81FB58C);
WRITEU16(offset + 0x000000E, 0x000003E7);
WRITEU16(offset + 0x0000010, 0x000003E7);
offset = 0x00000000;
offset = READU32(offset + 0x81FB92C);
WRITEU16(offset + 0x000000E, 0x000003E7);
WRITEU16(offset + 0x0000010, 0x000003E7);
offset = 0;
data = 0;
}
}
}

void Infmoney(void)
{
WRITEU32(offset + 0x8C71DC0, 0x000F423E);
}
 

DarkFlare69

Well-Known Member
OP
Member
Joined
Dec 8, 2014
Messages
5,147
Trophies
2
Location
Chicago
XP
4,750
Country
United States
Hi ,

where put the codes after doing this :
void Plugin Oras(void)
{
new_spoiler("Unlimited");
new_entry("Max/Inf HP v1.4", InfHP_note, InfHP);
new_entry("Money 999998", InfMoney_note, Infmoney);
exit_spoiler();
}

-----------------------------------------------------------------------------------------


I made his but but I'm not sure that his walk
code :
void Plugin Oras(void)
{
new_spoiler("Unlimited");
new_entry("Max/Inf HP v1.4", InfHP_note, InfHP);
new_entry("Money 999998", InfMoney_note, Infmoney);
exit_spoiler();
}

void InfHP(void)
{
if (READU32(offset + 0x81FB58C) < 0x08200000)
{
if (READU32(offset + 0x81FB92C) < 0x08200000)
{
offset = READU32(offset + 0x81FB58C);
WRITEU16(offset + 0x000000E, 0x000003E7);
WRITEU16(offset + 0x0000010, 0x000003E7);
offset = 0x00000000;
offset = READU32(offset + 0x81FB92C);
WRITEU16(offset + 0x000000E, 0x000003E7);
WRITEU16(offset + 0x0000010, 0x000003E7);
offset = 0;
data = 0;
}
}
}

void Infmoney(void)
{
WRITEU32(offset + 0x8C71DC0, 0x000F423E);
}
Sorry, I don't understand what you're saying. The codes will be generated inside of cheats.c and the menu inside of create_menu.c. You can build using build.bat or by clicking build.
 

David13

Well-Known Member
Member
Joined
May 23, 2017
Messages
129
Trophies
0
Age
33
XP
358
Country
France
[QUOTE = "KillianMG, article: 7829084, membre: 441988"] merci [/ QUOTE]
There is a problem with your plg
 

KillianMG

New Member
Newbie
Joined
Feb 10, 2018
Messages
3
Trophies
0
Age
19
XP
42
Country
France
oui vous avez répondu à ma question, David 13 non j'utilise le code de la passerelle

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

yes you answered my question, no problem in my Plg
 
  • Like
Reactions: DarkFlare69

Garcia111907o

Active Member
Newcomer
Joined
Dec 20, 2017
Messages
28
Trophies
0
Age
39
XP
131
Country
United States
Thanks for putting something like this out there. Do you have or know of a good guide out there for finding/creating gateshark cheats for games?

What I'm trying to do is create NTR plugins for VC Injections of some retro games. I'm having the damnedest time figuring out how to find/create the gateshark codes that I can then convert to an NTR plugin.

Thx
 

Garcia111907o

Active Member
Newcomer
Joined
Dec 20, 2017
Messages
28
Trophies
0
Age
39
XP
131
Country
United States
Thanks for putting something like this out there. Do you have or know of a good guide out there for finding/creating gateshark cheats for games?

What I'm trying to do is create NTR plugins for VC Injections of some retro games. I'm having the damnedest time figuring out how to find/create the gateshark codes that I can then convert to an NTR plugin.

Thx
 

DarkFlare69

Well-Known Member
OP
Member
Joined
Dec 8, 2014
Messages
5,147
Trophies
2
Location
Chicago
XP
4,750
Country
United States
Thanks for putting something like this out there. Do you have or know of a good guide out there for finding/creating gateshark cheats for games?

What I'm trying to do is create NTR plugins for VC Injections of some retro games. I'm having the damnedest time figuring out how to find/create the gateshark codes that I can then convert to an NTR plugin.

Thx
Do you have a Gateway? If so, I can help
 

David13

Well-Known Member
Member
Joined
May 23, 2017
Messages
129
Trophies
0
Age
33
XP
358
Country
France
Do you have a Gateway? If so, I can help
Hi darkFlare, I want to create a code with a loop but I do not know how to do it. Can you help me thanks :)

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

Hi darkFlare, I want to create a code with a loop but I do not know how to do it. Can you help me thanks :)
I know the code is C0000000 but I do not know how to write it in cheat.c
Thank you

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

Should I use "while" ? ^^
 

DarkFlare69

Well-Known Member
OP
Member
Joined
Dec 8, 2014
Messages
5,147
Trophies
2
Location
Chicago
XP
4,750
Country
United States
Hi darkFlare, I want to create a code with a loop but I do not know how to do it. Can you help me thanks :)

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


I know the code is C0000000 but I do not know how to write it in cheat.c
Thank you

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

Should I use "while" ? ^^
While is used when there's an indefinite amount of iterations. In this case, you should use a for loop.

Code:
for (int i = 0; i < 10; i++)
{
    WRITEU32(0x12345678 + (i * 4), 0xFFFFFFFF);
}

This initializes an integer called "i" with the value 0. The middle part, i < 10, tells it to stay in the loop unless this condition is false. The last part, i++, tells it to add 1 to i after every iteration. So pretty much it will loop through this code 10 times before exiting.
 
Last edited by DarkFlare69,

David13

Well-Known Member
Member
Joined
May 23, 2017
Messages
129
Trophies
0
Age
33
XP
358
Country
France
--------------------- MERGED ---------------------------

Oh yes, I forgot :)
You know how other hackers do to find these codes because personally I can not have access to these hexadecimals. Thank you
1519388965-top-0035.png


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

THANK YOU :)
 
Last edited by BORTZ,

DarkFlare69

Well-Known Member
OP
Member
Joined
Dec 8, 2014
Messages
5,147
Trophies
2
Location
Chicago
XP
4,750
Country
United States
[QUOTE = "DarkFlare69, poste: 7847579, membre: 357590"] While est utilisé quand il y a une quantité indéfinie d'itérations. Dans ce cas, vous devez utiliser une boucle for.

Code:
pour (int i = 0; i <10; i ++)
{
    WRITEU32 (0x12345678 + (i * 4), 0xFFFFFFFF);
}

Ceci initialise un entier appelé "i" avec la valeur 0. La partie du milieu, i <10, lui dit de rester dans la boucle sauf si cette condition est fausse. La dernière partie, i ++, lui dit d'ajouter 1 à i après chaque itération. Donc, à peu près, il va parcourir ce code 10 fois avant de quitter. [/ QUOTE]

Ok, Thank you :)

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

Oh yes, I forgot :)
You know how other hackers do to find these codes because personally I can not have access to these hexadecimals. Thank you
1519388965-top-0035.png


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

THANK YOU :)
I've only used CTRPF a couple times, so I'm not sure how you would get access to that memregion. Try making a ram dump and viewing that area in a hex editor.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    OctoAori20 @ OctoAori20: Nice nice-