ROM Hack CTRPluginFramework - Blank Plugin - Now with Action Replay

haxnume

Active Member
Newcomer
Joined
Nov 7, 2017
Messages
29
Trophies
0
Website
haxnume.hatenablog.com
XP
225
Country
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?
 

Nanquitas

Well-Known Member
OP
Member
Joined
Sep 29, 2015
Messages
2,345
Trophies
0
Age
30
Location
South of France :)
XP
3,336
Country
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. ;)
 

haxnume

Active Member
Newcomer
Joined
Nov 7, 2017
Messages
29
Trophies
0
Website
haxnume.hatenablog.com
XP
225
Country
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 ....).
 

Nanquitas

Well-Known Member
OP
Member
Joined
Sep 29, 2015
Messages
2,345
Trophies
0
Age
30
Location
South of France :)
XP
3,336
Country
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...
 

haxnume

Active Member
Newcomer
Joined
Nov 7, 2017
Messages
29
Trophies
0
Website
haxnume.hatenablog.com
XP
225
Country
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.
 

Nanquitas

Well-Known Member
OP
Member
Joined
Sep 29, 2015
Messages
2,345
Trophies
0
Age
30
Location
South of France :)
XP
3,336
Country
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
 

haxnume

Active Member
Newcomer
Joined
Nov 7, 2017
Messages
29
Trophies
0
Website
haxnume.hatenablog.com
XP
225
Country
Japan
Sorry to say unreasonable things

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

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

Nanquitas

Well-Known Member
OP
Member
Joined
Sep 29, 2015
Messages
2,345
Trophies
0
Age
30
Location
South of France :)
XP
3,336
Country
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. ^_^
 
  • Like
Reactions: Zidapi and haxnume

noctis90210

Well-Known Member
Member
Joined
Dec 24, 2013
Messages
969
Trophies
0
Age
37
XP
1,635
Country
@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...
 

dsrules

Well-Known Member
Member
Joined
Sep 20, 2005
Messages
8,700
Trophies
2
XP
6,264
Country
@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?
Code:
menu.c
#include "cheats.h"
char *builder_name = "";
void my_menus(void)
{
    overlayInit();
    new_entry("display value on screen", display);
 
}

Code:
cheat.h
#include "plugin.h"

void display(void);
{

}

Code:
cheat.c
#include "cheats.h"
#include "hid.h"
#include "global.h"
#include "ov.h"

Handle fsUserHandle = 0;
#define CALLBACK_OVERLAY (101)
#define TICKS_PER_MSEC (268123.480)

void overlayInit(void)
{
    initSharedFunc();
    plgRegisterCallback(CALLBACK_OVERLAY, (void*) overlayCallback, 0);
}
 

Nanquitas

Well-Known Member
OP
Member
Joined
Sep 29, 2015
Messages
2,345
Trophies
0
Age
30
Location
South of France :)
XP
3,336
Country
France
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
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. ;)

@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?
Hmm, does it have to use libShark2NTR ?
 

Nanquitas

Well-Known Member
OP
Member
Joined
Sep 29, 2015
Messages
2,345
Trophies
0
Age
30
Location
South of France :)
XP
3,336
Country
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.
 

Nanquitas

Well-Known Member
OP
Member
Joined
Sep 29, 2015
Messages
2,345
Trophies
0
Age
30
Location
South of France :)
XP
3,336
Country
France
@Nanquitas A doubt, this plugin, allows to make the register of codes existing in the site fort42 ?
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.


Hey, can't this plugin be made to work with games that require Mode 3 for NTR to work?
Nope, else it would already be done. There's not enough memory to run ctrpf in Mode3.
 
Last edited by Nanquitas,
  • Like
Reactions: Arck

TheWord21

Well-Known Member
Member
Joined
Jun 8, 2014
Messages
811
Trophies
0
Age
30
XP
398
Country
United States
ActionReplay is not implemented yet so only simple codes can be sued

Nope, else it would already by done. There's not enough memory to run ctrpf in Mode3.

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.
 

TheWord21

Well-Known Member
Member
Joined
Jun 8, 2014
Messages
811
Trophies
0
Age
30
XP
398
Country
United States
:rofl2::rofl2:
Oops, typo. Thanks for letting me know. ^_^

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.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    BakerMan @ BakerMan: well then show them how to scratch it (this is a verbalase joke)