[Release] Online Gateway To CTRPF Code Converter

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

  1. DarkFlare69
    OP

    DarkFlare69 GBAtemp Psycho!

    Member
    11
    Dec 8, 2014
    United States
    Ohio
    Online Gateway To NTR Code Converter
    What is this?
    This is a program I started working on 2 days ago that will automatically convert Gateshark codes to NTR. The converter itself was written completely from scratch with no code taken from Nanquitas' Gateshark2NTR or from any other converter. I wrote one in Python a while ago, but it wasn't very good due to my limited knowledge of that language. This one is a major improvement over it. However, I am still a beginner at programming, so the source code is very dirty (which means don't comment on it, because I already am aware of how it isn't very well-written). I could improve it a lot, although it isn't really necessary as the program functions optimally for the end-user. If you are seriously trying to convert codes (not putting in random stuff to try and mess with the converter) it should work almost all of the time.

    Features:
    -Code Checker, to see if your codes will convert properly
    -Help pages, such as the NDS Codetype documentation
    -Optimization, to clean up the code once it's converted to NTR
    -Plugin builder, build the plugin file with one click
    -Copy to Clipboard, to easily copy all of the converted codes

    Advantages over other converters:
    -Online support for all plugins created using this converter
    -Can convert codes into either CTRPluginFramework plugins or lib 2 plugins
    -Menu features, such as folders and notes
    -Open Source
    -The source code of your plugin will be openly available inside of the /pluginMenu or /ctrpfMenu directory
    -Complete UI
    -Type/copy codes as text or load them from a file
    -All of the things listed above under "Features"

    Planned Improvements:
    -Improve the Code Checker to check for more potential errors

    Screenshots



    (Leave a like to show support)

    Changelog

    Support

    Download: https://github.com/DarkFlare69/Gateway-To-NTR-Converter/raw/master/Gateway To NTR Converter/Release/Gateway To NTR Converter.zip

    Source Code: https://github.com/DarkFlare69/Gateway-To-NTR-Converter

    Enjoy! :)
     
    Last edited by DarkFlare69, Apr 20, 2018
  2. Anonymous456

    Anonymous456 GBAtemp Regular

    Member
    1
    Jan 11, 2017
    United States
    It has online support? NICE!
     
    DarkFlare69 likes this.
  3. DarkFlare69
    OP

    DarkFlare69 GBAtemp Psycho!

    Member
    11
    Dec 8, 2014
    United States
    Ohio
    Yep, Gateshark2NTR manually blocked it. Mine uses a blank cheat menu with online support
     
  4. Vermil

    Vermil I don't need a SENPAI to notice me, Right SENPAI?

    Member
    2
    Aug 21, 2017
    Philippines
    Nightcore -Rockefeller Street
    Now this is what I've been looking for! Thanks:yay3ds:
     
  5. DarkFlare69
    OP

    DarkFlare69 GBAtemp Psycho!

    Member
    11
    Dec 8, 2014
    United States
    Ohio
    And for those of you who are wondering why the "optimize code" button exists in the first place, it is there only to improve readability. For beginners, seeing all of the 0's there can help them to create a bridge to understand exactly how the code was converted, while the "optimized" code will remove those. It won't really change anything during compilation; as I said it's only for readability.
     
    Anonymous456 and Vermil like this.
  6. ninjistix

    ninjistix GBAtemp Regular

    Member
    2
    Aug 8, 2016
    United States
    you just got yourself a subscriber congrats :D, and great work... i look forward to doing a lot of testing with this, providing i can find codes for Pokemon games, both original and non vc copies.
     
    DarkFlare69 likes this.
  7. Vermil

    Vermil I don't need a SENPAI to notice me, Right SENPAI?

    Member
    2
    Aug 21, 2017
    Philippines
    Nightcore -Rockefeller Street
    Is it only me or I really can't convert codes with button combinations (0xDD000000 XXXXXXXX)?
    Cuz it gives me a message on cmd:

    .\Sources\cheats.c: In Function 'Name_Of_Cheat' :
    .\Sources\cheats.c:19:4: error: expected ')' before '{' token
    {
    ^
    .\Sources\cheats.c:24:3: error: expected expression before '}' token
    }
    ^

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

    One of the codes that can't be converted:
     

    Attached Files:

  8. NintendoGamer28

    NintendoGamer28 GBAtemp Regular

    Member
    2
    Jan 15, 2017
    Here, activators Start + Right

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

    It seems the converter is writing the activator ID instead of ST, SE, DU etc.
     

    Attached Files:

    Vermil likes this.
  9. Vermil

    Vermil I don't need a SENPAI to notice me, Right SENPAI?

    Member
    2
    Aug 21, 2017
    Philippines
    Nightcore -Rockefeller Street
    Hope the next update will fix this stuff
     
  10. DarkFlare69
    OP

    DarkFlare69 GBAtemp Psycho!

    Member
    11
    Dec 8, 2014
    United States
    Ohio
    DD codes work fine, I've thoroughly tested them. Can you send me the code you're trying to convert and I'll see if there's some bug with it?

    EDIT: I must have messed up that part sometime while working on the program. I fixed activators and updated it. You can redownload it from the original download link
     
    Last edited by DarkFlare69, Dec 27, 2017
    Vermil likes this.
  11. David13

    David13 GBAtemp Regular

    Member
    1
    May 23, 2017
    France
    .
     
    Last edited by David13, Jan 27, 2018
  12. DarkFlare69
    OP

    DarkFlare69 GBAtemp Psycho!

    Member
    11
    Dec 8, 2014
    United States
    Ohio
    You can do those manually, it doesn't take any programming knowledge. The format is like this:
    upload_2017-12-27_13-40-33.png
    Code:
    new_spoiler("Spoiler names");
    new_entry("Codes inside of this spoiler");
    exit_spoiler();
    
     
  13. AJS

    AJS Newbie

    Newcomer
    1
    Dec 10, 2016
    Netherlands
    Hello DarkFlare69,

    Sorry for perhaps a dumb question, but I'm very new to the world of programming.
    Your program looks very promising, but I run in to a couple of problems I cannot seem to get resolved.

    I installed everything I needed from here (and subsequent links from that post): https://gbatemp.net/threads/tutorial-building-ntr-custom-firmware-cheat-plugins-w-cheat-menu.411189/

    And tried to run this code in your converter:

    [Money]
    D3000000 00000000
    607DB800 00000000
    B07DB800 00000000
    00000CDC 000F423F
    D2000000 00000000

    However, I seem to get different errors as output when I press the "Build cheat plugin" button.
    I have attached the cmd output below, perhaps you could shine your light on it?
     

    Attached Files:

  14. DarkFlare69
    OP

    DarkFlare69 GBAtemp Psycho!

    Member
    11
    Dec 8, 2014
    United States
    Ohio
    Yes, it's because I didn't add many exceptions for the titles, so it lets you put almost any character as the title. Remove any numbers or commas or pretty much anything that isn't a letter and see if it works. In the future I'll make it so you can use more characters
     
    AJS and Vermil like this.
  15. David13

    David13 GBAtemp Regular

    Member
    1
    May 23, 2017
    France
    THANK YOU :D
     
    Last edited by David13, Dec 28, 2017
  16. AJS

    AJS Newbie

    Newcomer
    1
    Dec 10, 2016
    Netherlands
    That worked like a charm, thanks!
     
    DarkFlare69 likes this.
  17. David13

    David13 GBAtemp Regular

    Member
    1
    May 23, 2017
    France
    ;
     
    Last edited by David13, Dec 28, 2017
  18. David13

    David13 GBAtemp Regular

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

    DarkFlare69 GBAtemp Psycho!

    Member
    11
    Dec 8, 2014
    United States
    Ohio
    Updated to v1.0.2. Changelog is in OP.
     
    Anonymous456 and Vermil like this.
  20. ninjistix

    ninjistix GBAtemp Regular

    Member
    2
    Aug 8, 2016
    United States
    suggestions/request
    • add version info to the program itself, so we know if we need to upgrade or not
    • possible auto update or notification of newer version
    • dark theme
    • support for sorting cheats into menu's and spoilers (i know you mentioned about manually doing it, but if the program can keep you from making mistakes why not)
    • unsure if there's support for cheat comments or info if not that would be great (also ties in with the one above)