CTRPluginFramework - Blank plugin

Discussion in '3DS - ROM Hacking, Translations and Utilities' started by Nanquitas, Oct 25, 2017.

  1. haxnume

    haxnume Member

    Newcomer
    12
    3
    Nov 7, 2017
    Japan
    And I want to apologize again.
    It said that nfc does not work, apparently seems to be a bug at v 02.0

    I also found a problem at the same time
    Although ctrpfdata.bin of v0.2.0 and v0.3.0 seems to be incompatible,

    Since ctrpftool does not seem to correspond to ctrpfdata.bin of v0.3.0,
    I can not rescue ctrpfdata.bin.
    Since ctroftool seems not to be yours, there is nothing I can do but there is workaround?
     
  2. Nanquitas
    OP

    Nanquitas GBAtemp Addict

    Member
    2,152
    1,816
    Sep 29, 2015
    France
    South of France :)
    Indeed, I changed the format between them, added some things that can be used to check the file.
    The author of the tool was notified of the changes and the tool should have been updated.
    I'll check with him and see what can be done to update it. ;)
     
  3. haxnume

    haxnume Member

    Newcomer
    12
    3
    Nov 7, 2017
    Japan
    I forgot that there was a serious problem.
    An attempt to return to the home menu when CTRPF v0.3.0 is executed will result in an exception handle.
    Is there a workaround for this?
    I remember that it existed since v.0.2.0
    It did not occur at least on official builds (ctgp 7, mk 7, kirby, ancl etc ....).
     
  4. Nanquitas
    OP

    Nanquitas GBAtemp Addict

    Member
    2,152
    1,816
    Sep 29, 2015
    France
    South of France :)
    This depends on the console (Old3DS/New3DS) and the game. It happens when the 3DS don't have enough memory to jump to the home menu.
    No workaround for now, except disabling the homebutton, but it's game specific so...
     
  5. haxnume

    haxnume Member

    Newcomer
    12
    3
    Nov 7, 2017
    Japan
    Since I sometimes push the home button by mistake, I certainly want you to implement that function.
    And I also want to implement a soft reset function etc.
    But I think it is difficult. Actually, Pokemon has its function officially implemented, but resetting is implemented as soft reload, so if you run ntrcfw, it gets infinite loading.
     
  6. Nanquitas
    OP

    Nanquitas GBAtemp Addict

    Member
    2,152
    1,816
    Sep 29, 2015
    France
    South of France :)
    As I said, it's game specific. I implemented it for some plugins, targeting 1 game, I can't implement it for a plugin that is meant to be used on multiple games.
    It's on the thinking list (to think of a solution :P), but for now nothing planned.

    Soft reset can not be implemented, it would only lead to a lot of issue and the difficulty is quite high.
    You have a Reboot option in Tools, it's a full reset. :P
     
  7. haxnume

    haxnume Member

    Newcomer
    12
    3
    Nov 7, 2017
    Japan
    Sorry to say unreasonable things

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

    I will go to bed so I have tomorrow
    Japan is already late night
    I am sorry to say only certain things
     
  8. Nanquitas
    OP

    Nanquitas GBAtemp Addict

    Member
    2,152
    1,816
    Sep 29, 2015
    France
    South of France :)
    Don't apologize, I like request even if I'm not able to fulfill most of them because of my poor skills. :rofl2:
    But they give another way to think, and that can lead to others ideas.

    Also, I know that the homemenu crash is annoying, I'm also looking to optimize things in order to reduce the memory needs, but it's not that easy since the framework is on constant evolution and not a finished product, the needs are always changing, and the fix of one day can become a cause of crash for a new feature that'll be implemented the next day. :rofl:

    I'm still in a learning process, so I know that the code is trash and everything can be improved. We'll get there with baby steps. ^_^
     
    Zidapi and haxnume like this.
  9. haxnume

    haxnume Member

    Newcomer
    12
    3
    Nov 7, 2017
    Japan
    Good morning
    Today I got up early to get the manual completed
    I think I will make a page of ctrpfdata.bin, but could you contact with Rydog?
    I am sorry if I made impossible
     
  10. noctis90210

    noctis90210 GBAtemp Advanced Fan

    Member
    742
    108
    Dec 24, 2013
    @Nanquitas
    hello, good day, just want to ask if this method is woking for all games?
    SD -> plugin -> game -> plugin.plg for load a plugin for all games.

    cuz the process i know before was put the plg file in plugin->titleidofacertaingame->plugin.plg
    and if theres lots of games, i need to create a folder with specific title id and paste the pluin there...
     
  11. dsrules

    dsrules GBAtemp Psycho!

    Member
    3,700
    520
    Sep 20, 2005
    @Nanquitas , how do I code a simple overlay using libShark2NTR_dev.a? like display the value at address 0x00100000 at the upper left screen

    these are all I got, can you fill in the codes?
    Warning: Spoilers inside!
     
  12. Nanquitas
    OP

    Nanquitas GBAtemp Addict

    Member
    2,152
    1,816
    Sep 29, 2015
    France
    South of France :)
    I updated the tools to support last version of the file. He'll work on a few things and will release an update when he's done. ;)

    Hmm, does it have to use libShark2NTR ?
     
  13. Nanquitas
    OP

    Nanquitas GBAtemp Addict

    Member
    2,152
    1,816
    Sep 29, 2015
    France
    South of France :)
    @dsrules : I made you a blank plugin with only display entry if you want (sources on the archive).
    I didn't tried it, but it should work.
    You can add a few things like key detection to increase/decrease the address to read in game to make it easier to use.

    In menu.c you have your function display:
    Code:
    void    display(u32 state)
    {
        // If cheat is enabled
        if (state)
        {
            u32     address = 0x12345678; ///< Change the address here
            u32     bufId = g_bufferId == -1 ? 0 : !g_bufferId;
    
            // Update overlay string
            xsprintf(g_drawBuffer[bufId], "[%08X] = %08X", address, READU32(address));
            // Swap overlay buffer
            g_bufferId = bufId;
    
        }
        // Else if it's disabled
        {
            // Disable overlay
            g_bufferId = -1;
        }
    }
    
    Too big to be joined, here the filetrip download.
     
  14. BlueFox gui

    BlueFox gui SOMEONE

    Member
    2,070
    2,596
    Feb 4, 2016
    Brazil
    NAS TERRAS DE HUE BR
    i was messing the hexadecimal in sonic generations and luma crashed :' )
     
  15. Ryumaru

    Ryumaru Creator of themes for 3DS

    Member
    2,420
    1,051
    Feb 1, 2015
    Brazil
    @Nanquitas A doubt, this plugin, allows to make the register of codes existing in the site fort42 ?
     
  16. TheWord21

    TheWord21 GBAtemp Advanced Fan

    Member
    731
    176
    Jun 8, 2014
    United States
    Hey, can't this plugin be made to work with games that require Mode 3 for NTR to work?
     
  17. Nanquitas
    OP

    Nanquitas GBAtemp Addict

    Member
    2,152
    1,816
    Sep 29, 2015
    France
    South of France :)
    I don't understand the word "register" in your sentence. If you mean using, then yes and no, ActionReplay is not implemented yet so only simple codes can be used.
    If you meant create, then yes, the searcher allows you to create codes.


    Nope, else it would already be done. There's not enough memory to run ctrpf in Mode3.
     
    Last edited by Nanquitas, Nov 17, 2017 at 10:26 AM
    Arck likes this.
  18. TheWord21

    TheWord21 GBAtemp Advanced Fan

    Member
    731
    176
    Jun 8, 2014
    United States
    Blast... also, I had no idea that codes could be "sued" as opposed to used. I'm surprised anti-cheaters haven't launched lawsuits yet.
     
  19. Nanquitas
    OP

    Nanquitas GBAtemp Addict

    Member
    2,152
    1,816
    Sep 29, 2015
    France
    South of France :)
    :rofl2::rofl2:
    Oops, typo. Thanks for letting me know. ^_^
     
  20. TheWord21

    TheWord21 GBAtemp Advanced Fan

    Member
    731
    176
    Jun 8, 2014
    United States
    No problem. You kinda made that joke easy for me... anyway, about Mode 3, I've heard people say that you need a certain amount of space or else the plugin won't work. So, they've tried using this/BlankCheatMenu for Ultra Moon, and they're not having much luck.