Hacking [RELEASE] Button Swap plugin for taiHEN

Scorp

Well-Known Member
OP
Member
Joined
Sep 23, 2010
Messages
248
Trophies
0
XP
296
Country
Kazakhstan
I was always annoyed by the fact that my favorite button layout does not change in japanese games (yes, that X/O for confirm). And games does not even bother about registry changes - they have it pre-built inside and does not care. Also I am sure there exist lot of people, who like O to confirm and just got annoyed with western style layout when playing their games.

And of course all this have to be working per game, as you do not want to have all your games with inverted controls, so globally changing the layout in registry is not an option.

So I wrote this little plugin for taiHEN, which solve the problem. Btw, if you find a game or app. which refuses to change layout - let me know, I will take a look.


Installation:

Put "buttonswap.suprx" in 'tai' folder in the root of your Vita.

Change config.txt in that directory to load plugin for title of your choice by adding new lines like below:
Code:
# titleid for your game (this one is for Root//Letter for example)
*PCSB01019
ux0:tai/buttonswap.suprx

After that just run the game and your buttons should be swapped (this would work only for this game).


Get recent version here: https://github.com/Scorpeg/Button-Swap/releases


.
 
Last edited by Scorp,
D

Deleted User

Guest
Amazing plugin! Good to see more taiHEN projects like these are emerging :)
 

Vitaminer

Banned!
Banned
Joined
Nov 22, 2016
Messages
286
Trophies
0
Age
59
XP
358
Country
United States
Plugin does swapping X and O, but if you want - you can do a custom remap inside invertButtons function.
Thanks for this plugin, I don't know if it is just me, but if I play a game that is originated from US or EUR, I want X to be confirm and triangle to cancel, but if I play a game(English) that is originated from JPN, I want O to confirm and X to cancel
 

Scorp

Well-Known Member
OP
Member
Joined
Sep 23, 2010
Messages
248
Trophies
0
XP
296
Country
Kazakhstan
Thanks for this plugin, I don't know if it is just me, but if I play a game that is originated from US or EUR, I want X to be confirm and triangle to cancel, but if I play a game(English) that is originated from JPN, I want O to confirm and X to cancel
That's really weird choice, as basically most US/EU games have O to cancel. Try button remap in Vita settings, that's the closest thing I can think of.
 

ayanekochan

Well-Known Member
Member
Joined
Aug 6, 2015
Messages
202
Trophies
0
Age
64
XP
133
Country
United States
Does this also change the buttons in game visually? Example is world of final fantasy us version. If I swap O and X does this also swap the visual menu for "O to attack" and "X to defend" etc?
 

Scorp

Well-Known Member
OP
Member
Joined
Sep 23, 2010
Messages
248
Trophies
0
XP
296
Country
Kazakhstan
Does this also change the buttons in game visually? Example is world of final fantasy us version. If I swap O and X does this also swap the visual menu for "O to attack" and "X to defend" etc?
Of course not. It does what I told in first post and nothing else.

By your logic plugin should magically search in all the images (which could encrypted/packed/etc.), auto-changing images (how it would ever find out which is button and which is not? idk, some AI would be implemented it seems) and all textes (which also could be encrypted/packed/etc.) buttons O to X? :) If you could have such a magic plugin, all translations hacks would be a breeze :) Unfortunately, that's a thing you can see in science fiction, not in a plugin for Vita.
 
Last edited by Scorp,

bosshunter

Member
Newcomer
Joined
Sep 28, 2016
Messages
19
Trophies
0
Location
Portugal
XP
120
Country
Portugal
Plugin does swapping X and O, but if you want - you can do a custom remap inside invertButtons function.
Could you elaborate on this?

I'm currently trying to make something like Macrofire (the good old PSP key remap plugin), but I'm having a hard time figuring out the custom remap.
 

Scorp

Well-Known Member
OP
Member
Joined
Sep 23, 2010
Messages
248
Trophies
0
XP
296
Country
Kazakhstan
Could you elaborate on this?

I'm currently trying to make something like Macrofire (the good old PSP key remap plugin), but I'm having a hard time figuring out the custom remap.
It is not really hard to do such a config, but it result in two different configs - like first you have to add your game in tai/config.txt to make plugin activated and then you would need to add config like:

[PCSG22345]
Cross = Triangle
Square = Cross​

So this would be not a button swap, but a different tool. And not very user-friendly to have two different configs to set. Anyway, I will keep it in mind, maybe will code later.
 

Gootah

Well-Known Member
Member
Joined
Aug 11, 2013
Messages
257
Trophies
0
Age
37
XP
506
Country
United States
I like where this is going....

Would it be possible to find out what dictates button mappings on a system level and swap that when certain apps are run? Jap games seem to not only swap keys for the game, but it's also swapped for system items that are called by the game (e.g. save menu).

In retrospect I should have tested the app before asking this...it might already be accounted for...
 

Scorp

Well-Known Member
OP
Member
Joined
Sep 23, 2010
Messages
248
Trophies
0
XP
296
Country
Kazakhstan
I like where this is going....

Would it be possible to find out what dictates button mappings on a system level and swap that when certain apps are run? Jap games seem to not only swap keys for the game, but it's also swapped for system items that are called by the game (e.g. save menu).

In retrospect I should have tested the app before asking this...it might already be accounted for...
You're missing the point. Tool is not only used to swap it for japanese games, it could be also used to do exact opposite - for people who like asian layout to switch it only for titles they play in english (and there are lot of them, believe me, I got at least 6 responses from different people, who use O/X layout). Also I do not know the 100% working way to find out, what layout game/app uses.

No, japanese games does not affect real system save. So if save is not custom - buttons in it would be set according to system (so you will get in japanese your layout). This is actually one of the problems why I made plugin - as it was very distraction to have in whole game O to confirm and only in save - X to confirm, I was occasionally going back and forth because of that.
 

Gootah

Well-Known Member
Member
Joined
Aug 11, 2013
Messages
257
Trophies
0
Age
37
XP
506
Country
United States
You're missing the point. Tool is not only used to swap it for japanese games, it could be also used to do exact opposite - for people who like asian layout to switch it only for titles they play in english (and there are lot of them, believe me, I got at least 6 responses from different people, who use O/X layout). Also I do not know the 100% working way to find out, what layout game/app uses.

No, japanese games does not affect real system save. So if save is not custom - buttons in it would be set according to system (so you will get in japanese your layout). This is actually one of the problems why I made plugin - as it was very distraction to have in whole game O to confirm and only in save - X to confirm, I was occasionally going back and forth because of that.

Didn't miss the point of the tool, I understand that it is a remapper, just was more interested in X/O of course. I'll test today. Thanks a lot for the work!
 

Scorp

Well-Known Member
OP
Member
Joined
Sep 23, 2010
Messages
248
Trophies
0
XP
296
Country
Kazakhstan
Didn't miss the point of the tool, I understand that it is a remapper, just was more interested in X/O of course. I'll test today. Thanks a lot for the work!
It is not a remapper. It is just switch X with O and vice versa for the app you set in config. Nothing more, nothing else.
 

Gootah

Well-Known Member
Member
Joined
Aug 11, 2013
Messages
257
Trophies
0
Age
37
XP
506
Country
United States
It is not a remapper. It is just switch X with O and vice versa for the app you set in config. Nothing more, nothing else.

Ah OK, my bad. I stated it was for Jap games because that's what I would use it for. It will swap them not matter what region, I got that. Didn't meat to make it seem like the plugin was limited to JAP games.
 

kftX

Well-Known Member
Newcomer
Joined
Aug 13, 2016
Messages
48
Trophies
0
Age
37
XP
79
Country
I was always annoyed by the fact that my favorite button layout does not change in japanese games (yes, that X/O for confirm). And games does not even bother about registry changes - they have it pre-built inside and does not care. Also I am sure there exist lot of people, who like O to confirm and just got annoyed with western style layout when playing their games.

And of course all this have to be working per game, as you do not want to have all your games with inverted controls, so globally changing the layout in registry is not an option.

So I wrote this little plugin for taiHEN, which solve the problem. Btw, if you find a game or app. which refuses to change layout - let me know, I will take a look.


Installation:

Put "buttonswap.suprx" in 'tai' folder in the root of your Vita.

Change config.txt in that directory to load plugin for title of your choice by adding new lines like below:
Code:
# titleid for your game (this one is for Root//Letter for example)
*PCSB01019
ux0:tai/buttonswap.suprx

After that just run the game and your buttons should be swapped (this would work only for this game).


Get recent version here: https://github.com/Scorpeg/Button-Swap/releases


.

Thanks for the great plugin, I wanted one of these for a while. No more getting the buttons wrong in translated games!
 

Scorp

Well-Known Member
OP
Member
Joined
Sep 23, 2010
Messages
248
Trophies
0
XP
296
Country
Kazakhstan
here is some enum values from PSP2 SDK:

PSP2_CTRL_CIRCLE = 0x002000, //!< Circle button.
PSP2_CTRL_CROSS = 0x004000, //!< Cross button.
Explain, why you are telling this to me. Do you think I do not know how to patch eboot? You ever checked what plugin does? As it does same thing, just without need to patch each and every eboot.bin on the planet.

Hint: Try to patch eboot for Root//Letter using your method and fail miserabily.
 
Last edited by Scorp,

Vitaminer

Banned!
Banned
Joined
Nov 22, 2016
Messages
286
Trophies
0
Age
59
XP
358
Country
United States
That's really weird choice, as basically most US/EU games have O to cancel. Try button remap in Vita settings, that's the closest thing I can think of.

Well I play a lot of suikoden back in the days when I had the PS2, it's got X to confirm and triangle to cancel, I guess the suikoden series have made me to get used to this control scheme.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    HiradeGirl @ HiradeGirl: Have a nice day. Life. Week. Month. year.