[Release] Online Gateway To CTRPF Code Converter

Discussion in '3DS - ROM Hacking, Translations and Utilities' started by DarkFlare69, Dec 27, 2017.

  1. David13

    David13 Advanced Member

    Newcomer
    1
    May 23, 2017
    France
    
     
    Last edited by David13, Jan 27, 2018
    DarkFlare69 likes this.
  2. DarkFlare69
    OP

    DarkFlare69 GBAtemp Psycho!

    Member
    11
    Dec 8, 2014
    United States
    Ohio
    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 -
     
    ninjistix likes this.
  3. ninjistix

    ninjistix GBAtemp Regular

    Member
    1
    Aug 8, 2016
    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?
     
  4. DarkFlare69
    OP

    DarkFlare69 GBAtemp Psycho!

    Member
    11
    Dec 8, 2014
    United States
    Ohio
    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
     
  5. Wiiucoop

    Wiiucoop Member

    Newcomer
    1
    Dec 27, 2016
    United States
    NVM
     
    Last edited by Wiiucoop, Jan 27, 2018
  6. David13

    David13 Advanced Member

    Newcomer
    1
    May 23, 2017
    France
    
     
    Last edited by David13, Jan 27, 2018
  7. KillianMG

    KillianMG Newbie

    Newcomer
    1
    Feb 10, 2018
    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);
    }
     
  8. DarkFlare69
    OP

    DarkFlare69 GBAtemp Psycho!

    Member
    11
    Dec 8, 2014
    United States
    Ohio
    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.
     
  9. KillianMG

    KillianMG Newbie

    Newcomer
    1
    Feb 10, 2018
    France
    thank you
     
  10. David13

    David13 Advanced Member

    Newcomer
    1
    May 23, 2017
    France
    [QUOTE = "KillianMG, article: 7829084, membre: 441988"] merci [/ QUOTE]
    There is a problem with your plg
     
  11. DarkFlare69
    OP

    DarkFlare69 GBAtemp Psycho!

    Member
    11
    Dec 8, 2014
    United States
    Ohio
    did i answer your question or are you still having an issue?
     
  12. KillianMG

    KillianMG Newbie

    Newcomer
    1
    Feb 10, 2018
    France
    oui vous avez répondu à ma question, David 13 non j'utilise le code de la passerelle

    — Posts automatically merged - Please don't double post! —

    yes you answered my question, no problem in my Plg
     
    DarkFlare69 likes this.
  13. Garcia111907o

    Garcia111907o Member

    Newcomer
    1
    Dec 20, 2017
    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
     
  14. Garcia111907o

    Garcia111907o Member

    Newcomer
    1
    Dec 20, 2017
    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
     
  15. DarkFlare69
    OP

    DarkFlare69 GBAtemp Psycho!

    Member
    11
    Dec 8, 2014
    United States
    Ohio
    Do you have a Gateway? If so, I can help
     
  16. David13

    David13 Advanced Member

    Newcomer
    1
    May 23, 2017
    France
    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 :)

    — Posts automatically merged - Please don't double post! —

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

    — Posts automatically merged - Please don't double post! —

    Should I use "while" ? ^^
     
  17. DarkFlare69
    OP

    DarkFlare69 GBAtemp Psycho!

    Member
    11
    Dec 8, 2014
    United States
    Ohio
    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, Feb 23, 2018
  18. David13

    David13 Advanced Member

    Newcomer
    1
    May 23, 2017
    France
    — Posts automatically merged - Please don't double post! —

    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
    [​IMG]

    — Posts automatically merged - Please don't double post! —

    THANK YOU :)
     
    Last edited by BORTZ, Feb 27, 2018
  19. DarkFlare69
    OP

    DarkFlare69 GBAtemp Psycho!

    Member
    11
    Dec 8, 2014
    United States
    Ohio
    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.
     
  20. David13

    David13 Advanced Member

    Newcomer
    1
    May 23, 2017
    France
    OK, THANK YOU ^^
     
  21. DarkFlare69
    OP

    DarkFlare69 GBAtemp Psycho!

    Member
    11
    Dec 8, 2014
    United States
    Ohio
    np
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice