Homebrew [WIP] rehid:- Button remapping for 3ds

Kartik

Well-Known Member
OP
Member
Joined
Jun 6, 2015
Messages
653
Trophies
0
Location
github
XP
2,747
Country
India
@Kartik Congrats! I tested this version on several homebrew apps and I can get back to home with no problems! It also resets correctly the buttons when in the Home Menu. I've noticed another problem tho: if I pause the game and go to the Home Menu, and then get back to the game, the C-stick stops working (in-game). That's the case only if the input of the C-stick is remapped. Even if I close the software and relaunch it, the C-stick won't work (in this state, it works in other titles and in the Home Menu). After the console is rebooted, it works on the title again.
I also tried exiting the game and playing one that requires the use of the C-stick: it will work on that one, but it still won't work for the title that "broke" it.
Hope that's enough info. Thanks again for taking the time to develop such a useful and simple to use program!
Edit: fixed typo

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


That would be cool! I'd love to share some of my configs too
Please try this and tell me if it works
 

Attachments

  • 0004013000001D02.zip
    46.8 KB · Views: 164

Vandal101

Member
Newcomer
Joined
Mar 30, 2018
Messages
15
Trophies
0
Age
22
XP
139
Country
Brazil
I've been trying to map Samus Returns so I could use the D-Pad to move the character but it doesn't seem to be working, I don't think I put anything wrong in the config file.

Here it is if you want to have a look:

Edit: I didn't know you had to put "dpadtocpad":true in the config file.
 

Attachments

  • 00040000001BB200.zip
    486 bytes · Views: 169
Last edited by Vandal101,

Kris1

Well-Known Member
Member
Joined
Oct 21, 2020
Messages
119
Trophies
0
Location
your mom's
XP
256
Country
Chile
hi uh (noob question sorry) so after following the instructions and booting up my game the remapping doesn't work, i'm trying to swap x and b, my json file looks like this:
{
"remappings":[
{"get":"B", "press":"X"},
{"get":"X", "press":"B"}
]
}
i'm editing it w notepad++ if maybe that's the problem?? sorry i really just know almost nothing about this-
 

Kartik

Well-Known Member
OP
Member
Joined
Jun 6, 2015
Messages
653
Trophies
0
Location
github
XP
2,747
Country
India
hi uh (noob question sorry) so after following the instructions and booting up my game the remapping doesn't work, i'm trying to swap x and b, my json file looks like this:
{
"remappings":[
{"get":"B", "press":"X"},
{"get":"X", "press":"B"}
]
}
i'm editing it w notepad++ if maybe that's the problem?? sorry i really just know almost nothing about this-
Start your game, open rosalina menu, go to process list, scroll down and check whether there is a process named "rehid" and change the json file to this:-
{
"keys":[
{"get":"B", "press":"X"},
{"get":"X", "press":"B"}
]
}

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

I've been trying to map Samus Returns so I could use the D-Pad to move the character but it doesn't seem to be working, I don't think I put anything wrong in the config file.

Here it is if you want to have a look:

Edit: I didn't know you had to put "dpadtocpad":true in the config file.
Does it work now?
 
  • Like
Reactions: Kris1

Kris1

Well-Known Member
Member
Joined
Oct 21, 2020
Messages
119
Trophies
0
Location
your mom's
XP
256
Country
Chile
Start your game, open rosalina menu, go to process list, scroll down and check whether there is a process named "rehid" and change the json file to this:-
{
"keys":[
{"get":"B", "press":"X"},
{"get":"X", "press":"B"}
]
}

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


Does it work now?
I did that and when opening rosalina menu i found no "rehid" process... maybe i messed up the file location or smth? the rehid folder is in the root of the sd card and the rehid.json is in the folder, the extracted zip files (code.bin and exheader.bin) are both in luma/titles, i tried rebooting my 3ds and nothing happened, also reinserting and taking out the sd card but nothing either
 

lone_wolf323

Well-Known Member
Member
Joined
May 27, 2011
Messages
5,480
Trophies
2
XP
4,918
Country
Canada
I did that and when opening rosalina menu i found no "rehid" process... maybe i messed up the file location or smth? the rehid folder is in the root of the sd card and the rehid.json is in the folder, the extracted zip files (code.bin and exheader.bin) are both in luma/titles, i tried rebooting my 3ds and nothing happened, also reinserting and taking out the sd card but nothing either
Had you by chance have the game patching enabled on the luma page when holding start and power?
 
  • Like
Reactions: Kris1

Kartik

Well-Known Member
OP
Member
Joined
Jun 6, 2015
Messages
653
Trophies
0
Location
github
XP
2,747
Country
India
I did that and when opening rosalina menu i found no "rehid" process... maybe i messed up the file location or smth? the rehid folder is in the root of the sd card and the rehid.json is in the folder, the extracted zip files (code.bin and exheader.bin) are both in luma/titles, i tried rebooting my 3ds and nothing happened, also reinserting and taking out the sd card but nothing either
Make sure that game patching is on, and code.bin and exheader.bin are in a folder named `0004013000001D02` in `luma/titles` and not directly in `luma/titles`
 

Stefano_Lassandro

Well-Known Member
Newcomer
Joined
Dec 26, 2020
Messages
47
Trophies
0
XP
192
Country
Italy
Hi! I've got a crash report. I was using the CTRX file manager app and I get crashes every time I try going back to the Home Menu. I've moved rehid from the luma titles, and it doesn't crash anymore, so I'm pretty sure rehid is what's causing the crash. The crash dump will follow:
 

Attachments

  • crash_dump_00000001.zip
    345 bytes · Views: 161

Kartik

Well-Known Member
OP
Member
Joined
Jun 6, 2015
Messages
653
Trophies
0
Location
github
XP
2,747
Country
India
Hi! I've got a crash report. I was using the CTRX file manager app and I get crashes every time I try going back to the Home Menu. I've moved rehid from the luma titles, and it doesn't crash anymore, so I'm pretty sure rehid is what's causing the crash. The crash dump will follow:
Do any others app crash? Ctrxplorer is based around a very old lib called citrus and is doing some custom stuff to gain control over things, i guess that is what is most likely crashing.

EDIT: I just tested ctrxplorer and indeed it crashes, if no other titles crash, it is most likely an issue with ctrxplorer and I don't think it can be solved from rehid side of things. Disable rehid when you want to use ctrxplorer by disabling game patching and then enable it again when you want to use rehid.
 
Last edited by Kartik,

Stefano_Lassandro

Well-Known Member
Newcomer
Joined
Dec 26, 2020
Messages
47
Trophies
0
XP
192
Country
Italy
Do any others app crash? Ctrxplorer is based around a very old lib called citrus and is doing some custom stuff to gain control over things, i guess that is what is most likely crashing.

EDIT: I just tested ctrxplorer and indeed it crashes, if no other titles crash, it is most likely an issue with ctrxplorer and I don't think it can be solved from rehid side of things. Disable rehid when you want to use ctrxplorer by disabling game patching and then enable it again when you want to use rehid.
Oh I see now. Thanks for taking the time to check what the issue was about!
Edit (note): I've tested several other apps, no crashes.
 
Last edited by Stefano_Lassandro,

Nutez

Assimilator of Lumas
Member
Joined
Jan 2, 2018
Messages
175
Trophies
0
Location
The other side of paradise.
XP
1,813
Country
United Kingdom
Hi @Kartik, first of all, I think you should apply to get a proper developer account tag as recognition for all this ground-breaking work :D . Secondly, I don't really understand the code very well so I wanted to ask: do you think that rehid might cause the battery to drain slightly quicker than the regular hid? For example, does the irrst always get initiated even if N3DS buttons aren't included in a remap json? Thanks :) .
 

Kartik

Well-Known Member
OP
Member
Joined
Jun 6, 2015
Messages
653
Trophies
0
Location
github
XP
2,747
Country
India
Hi @Kartik, first of all, I think you should apply to get a proper developer account tag as recognition for all this ground-breaking work :D . Secondly, I don't really understand the code very well so I wanted to ask: do you think that rehid might cause the battery to drain slightly quicker than the regular hid? For example, does the irrst always get initiated even if N3DS buttons aren't included in a remap json? Thanks :) .
Yup irrst is always initialized but I don't think there is going to be a significant battery drain. The way it currently works, selectively initializing ir:rst might introduce bugs.I'll have to look into this further.
 
  • Like
Reactions: Nutez

Kartik

Well-Known Member
OP
Member
Joined
Jun 6, 2015
Messages
653
Trophies
0
Location
github
XP
2,747
Country
India
Yup irrst is always initialized but I don't think there is going to be a significant battery drain. The way it currently works, selectively initializing ir:rst might introduce bugs.I'll have to look into this further.
On further inspection and testing I can confirm this is not doable atm, it introduces lots of new bugs.

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

Also, is somebody good at adobe illustrator who can make a n3ds vector for me(something like this)? I need it for the upcoming homebrew app which will allow you to create remaps directly from 3ds. :)
 
Last edited by Kartik,

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    Psionic Roshambo @ Psionic Roshambo: https://www.youtube.com/@legolambs