[RELEASE] Button Swap plugin for taiHEN

Discussion in 'PS Vita - Hacking & Homebrew' started by Scorp, Dec 20, 2016.

  1. Scorp
    OP

    Scorp GBAtemp Regular

    Member
    247
    82
    Sep 23, 2010
    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, Dec 20, 2016
    k7ra, Nirmonculus, ramersonw and 3 others like this.


  2. laharl22

    laharl22 GBAtemp Advanced Maniac

    Member
    1,553
    162
    Dec 19, 2014
    France
    Thank you
     
  3. Voxel

    Voxel Clumsy Coder

    Member
    GBAtemp Patron
    Voxel is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    5,181
    5,841
    Jun 27, 2015
    United Kingdom
    England, UK
    Amazing plugin! Good to see more taiHEN projects like these are emerging :)
     
  4. Vitaminer

    Vitaminer GBAtemp Regular

    Member
    168
    20
    Nov 22, 2016
    United States
    Any ways I can make X to confirm, triangle to cancel?
     
  5. Scorp
    OP

    Scorp GBAtemp Regular

    Member
    247
    82
    Sep 23, 2010
    Kazakhstan
    Plugin does swapping X and O, but if you want - you can do a custom remap inside invertButtons function.
     
    Last edited by Scorp, Dec 20, 2016
  6. Vitaminer

    Vitaminer GBAtemp Regular

    Member
    168
    20
    Nov 22, 2016
    United States
    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
     
  7. Scorp
    OP

    Scorp GBAtemp Regular

    Member
    247
    82
    Sep 23, 2010
    Kazakhstan
    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.
     
  8. ayanekochan

    ayanekochan GBAtemp Regular

    Member
    197
    18
    Aug 6, 2015
    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?
     
  9. Scorp
    OP

    Scorp GBAtemp Regular

    Member
    247
    82
    Sep 23, 2010
    Kazakhstan
    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, Dec 21, 2016
  10. bosshunter

    bosshunter Member

    Newcomer
    17
    9
    Sep 28, 2016
    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.
     
  11. Scorp
    OP

    Scorp GBAtemp Regular

    Member
    247
    82
    Sep 23, 2010
    Kazakhstan
    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.
     
  12. Gootah

    Gootah GBAtemp Regular

    Member
    117
    9
    Aug 11, 2013
    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...
     
  13. Scorp
    OP

    Scorp GBAtemp Regular

    Member
    247
    82
    Sep 23, 2010
    Kazakhstan
    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.
     
  14. Gootah

    Gootah GBAtemp Regular

    Member
    117
    9
    Aug 11, 2013
    United States
    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!
     
  15. Scorp
    OP

    Scorp GBAtemp Regular

    Member
    247
    82
    Sep 23, 2010
    Kazakhstan
    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.
     
  16. Gootah

    Gootah GBAtemp Regular

    Member
    117
    9
    Aug 11, 2013
    United States
    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.
     
  17. kftX

    kftX Member

    Newcomer
    48
    13
    Aug 13, 2016
    Thanks for the great plugin, I wanted one of these for a while. No more getting the buttons wrong in translated games!
     
  18. xym814
    This message by xym814 has been removed from public view by T-hug, Dec 24, 2016, Reason: warez.
    Dec 24, 2016
  19. Scorp
    OP

    Scorp GBAtemp Regular

    Member
    247
    82
    Sep 23, 2010
    Kazakhstan
    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, Dec 24, 2016
  20. pratamaaudi

    pratamaaudi Member

    Newcomer
    25
    1
    Mar 9, 2014
    Indonesia
    Is it possible to swap d-pad with analog ?
     
  21. Vitaminer

    Vitaminer GBAtemp Regular

    Member
    168
    20
    Nov 22, 2016
    United States
    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.