Advertising (This ad goes away for registered users. You can Login or Register)

DS3Remapper 0.3

Plugins for PSPs running on 6.XX
ali_ihsan21
Posts: 683
Joined: Wed Jan 26, 2011 11:04 am

Re: DS3Remapper 0.3

Post by ali_ihsan21 »

Sorry I dont have time to check your file but here is my ini and its working

[spoiler]###################
#Predefined remaps#
###################

#Maps Triangle, Circle, cross and Square to Right analog stick
TCCS2RA = true
#Maps digital pad to Right analog stick
DIGITAL2RA = false
#Swaps digital pad and left analog stick
SWAPPADAN = false

######################
#Analog stick options#
######################

#Disables analog stick
#Note: disable thumb will disable only the PSP analog thumb, the other two disable DS3 and PSP analog
DISABLETHUMB = false
DISABLELAN = false
DISABLERAN = false
#Mirrors one analog stick on the other (ex: MIRRORL will make the right analog behave like the left analog stick)
#Note: enabling both has the same effect as just enabling MIRRORR
MIRRORL = false
MIRRORR = false
#Swaps left and right analog sticks
SwAPAN = false
#Rotates analog stick 90º clockwise
ROTATE_L_CW = false
ROTATE_R_CW = false
#Rotates analog stick 90º counter-clockwise
ROTATE_L_CCW = false
ROTATE_R_CCW = false
#Inverts the analog stick axis (up is down, left is right)
INVERT_RX = false
INVERT_RY = false
INVERT_LX = false
INVERT_LY = false
#Swaps the X and Y axis from an analog stick (right is down, down is right, left is up, up is left)
SWAP_RAXIS = false
SWAP_LAXIS = false

#Left and right analogs sensitivity for button remapping (when the analog stick will trigger the button)
#Range is 0-128
#0: minimal input will trigger the button
#128: button will only be triggered when the stick is fully tilted
R_BSENSITIVITY = 64
L_BSENSITIVITY = 64

###############
#Button remaps#
###############
#Valid values (case sensitive): SELECT, START, UP, RIGHT, DOWN, LEFT,
# TRIANGLE, CIRCLE, CROSS, SQUARE,
# HOME, NOTE, SCREEN, VOLUP, VOLDOWN,
# L1, LTRIGGER, L_TRI, L2, L3,
# R1, RTRIGGER, R_TRI, R2, R3
#For button combos use "+". Example: NOTE = R3 + UP
#Note: psp RTRIGGER and LTRIGGER are the same as R1/L1 or R_TRI/L_TRI
#You can also leave it blank for no remaps
SELECT = SELECT
START = START
UP = UP
RIGHT = RIGHT
DOWN = DOWN
LEFT = LEFT
TRIANGLE = TRIANGLE
CIRCLE = CIRCLE
CROSS = CROSS
SQUARE = SQUARE
HOME = HOME
NOTE = NOTE
SCREEN = SCREEN
VOLUP = VOLUP
VOLDOWN = VOLDOWN
L1 = L1
L2 = L2
L3 = L3
R1 = R_TRI
R2 = R2
R3 = R3

#Right analog stick direction remapping
#You can map any key to the analog direction.
#This will put the up/down or right/left axis to neutral.
#Won't work if TCCS2RA is true
RUP =
RRIGHT =
RDOWN =
RLEFT =

#Right analog stick direction remapping
#You can map any key to the analog direction.
#This will put the up/down or right/left axis to neutral.
#Won't work if SWAPPADAN is true
#Won't work if DIGITAL2RA is true
LUP = true
LRIGHT = true
LDOWN = true
LLEFT = true[/spoiler]
Advertising
PSP-1000 6.20 16 GB Pro C-2
PSP-go 6.20 32 GB LME 2.3 White
PSP-go 6.60 24 GB Pro C-2 / LME 2.3 Black
PS Vita Slim 8 GB 3.60 Henkaku
PS TV 3.60 Henkaku 1 TB Samsung Story
Thank you RepRep, Total_Noob, Suloku, Omega2058, TheFlow
Hurpales
Posts: 3
Joined: Mon Mar 02, 2015 11:40 pm

Re: DS3Remapper 0.3

Post by Hurpales »

ali_ihsan21 wrote:Sorry I dont have time to check your file but here is my ini and its working

[spoiler]###################
#Predefined remaps#
###################

#Maps Triangle, Circle, cross and Square to Right analog stick
TCCS2RA = true
#Maps digital pad to Right analog stick
DIGITAL2RA = false
#Swaps digital pad and left analog stick
SWAPPADAN = false

######################
#Analog stick options#
######################

#Disables analog stick
#Note: disable thumb will disable only the PSP analog thumb, the other two disable DS3 and PSP analog
DISABLETHUMB = false
DISABLELAN = false
DISABLERAN = false
#Mirrors one analog stick on the other (ex: MIRRORL will make the right analog behave like the left analog stick)
#Note: enabling both has the same effect as just enabling MIRRORR
MIRRORL = false
MIRRORR = false
#Swaps left and right analog sticks
SwAPAN = false
#Rotates analog stick 90º clockwise
ROTATE_L_CW = false
ROTATE_R_CW = false
#Rotates analog stick 90º counter-clockwise
ROTATE_L_CCW = false
ROTATE_R_CCW = false
#Inverts the analog stick axis (up is down, left is right)
INVERT_RX = false
INVERT_RY = false
INVERT_LX = false
INVERT_LY = false
#Swaps the X and Y axis from an analog stick (right is down, down is right, left is up, up is left)
SWAP_RAXIS = false
SWAP_LAXIS = false

#Left and right analogs sensitivity for button remapping (when the analog stick will trigger the button)
#Range is 0-128
#0: minimal input will trigger the button
#128: button will only be triggered when the stick is fully tilted
R_BSENSITIVITY = 64
L_BSENSITIVITY = 64

###############
#Button remaps#
###############
#Valid values (case sensitive): SELECT, START, UP, RIGHT, DOWN, LEFT,
# TRIANGLE, CIRCLE, CROSS, SQUARE,
# HOME, NOTE, SCREEN, VOLUP, VOLDOWN,
# L1, LTRIGGER, L_TRI, L2, L3,
# R1, RTRIGGER, R_TRI, R2, R3
#For button combos use "+". Example: NOTE = R3 + UP
#Note: psp RTRIGGER and LTRIGGER are the same as R1/L1 or R_TRI/L_TRI
#You can also leave it blank for no remaps
SELECT = SELECT
START = START
UP = UP
RIGHT = RIGHT
DOWN = DOWN
LEFT = LEFT
TRIANGLE = TRIANGLE
CIRCLE = CIRCLE
CROSS = CROSS
SQUARE = SQUARE
HOME = HOME
NOTE = NOTE
SCREEN = SCREEN
VOLUP = VOLUP
VOLDOWN = VOLDOWN
L1 = L1
L2 = L2
L3 = L3
R1 = R_TRI
R2 = R2
R3 = R3

#Right analog stick direction remapping
#You can map any key to the analog direction.
#This will put the up/down or right/left axis to neutral.
#Won't work if TCCS2RA is true
RUP =
RRIGHT =
RDOWN =
RLEFT =

#Right analog stick direction remapping
#You can map any key to the analog direction.
#This will put the up/down or right/left axis to neutral.
#Won't work if SWAPPADAN is true
#Won't work if DIGITAL2RA is true
LUP = true
LRIGHT = true
LDOWN = true
LLEFT = true[/spoiler]
I tried copying that directly to my .ini file but it gives no effect.
->seplugins
-->DS3Remapper
--->DS3Remapper.ini
--->DS3Remapper.prx
--->DS3nopergame
-->VSH (including ef0:/seplugins/DS3Remapper.prx 1)
-->GAME (including ef0:/seplugins/DS3Remapper.prx 1)

Have i done something wrong? Recovery detects them as enabled plugins but those doesn't work.
Advertising
marios92
Posts: 73
Joined: Thu Aug 21, 2014 3:15 pm

Re: DS3Remapper 0.3

Post by marios92 »

This can not work on ps vita TNV, right?
reprep
Posts: 1074
Joined: Tue Dec 17, 2013 4:38 pm

Re: DS3Remapper 0.3

Post by reprep »

If anyone still wondering why some games don't work with this plugin (Generally japanese ones), here is the answer. All failing games are using Read/Peek Buffer NEGATIVE Extra/Non-Extra. So if mode & 1, the game simply fails. Unfortunately i don't know the exact cause, memcpy simply fails.

EDIT: Scratch that, read a few posts below for a better explanation.
Last edited by reprep on Fri Apr 24, 2015 7:33 am, edited 1 time in total.
Thrawn
Posts: 115
Joined: Fri May 03, 2013 1:24 pm
Location: A$$-end of nowhere

Re: DS3Remapper 0.3

Post by Thrawn »

@reprep

Wait... wasn't the way it worked, that it copied the inputs from buffer and then into that nifty little plugin or vice versa (as far as I read in TN's post on the other thread)... if those Japanese games have the buffer set to negative, then its obvious that there can't be copied anything from or to. *Captain Obvious*

Maybe I'm completely wrong about that...

Wouldn't the solution to that be, to actually simply edit the game itself in advance so it enables the buffer for us? Just some roundabout thinking here.
The internet is a bottomless barrel of sh*t, we try to fill it, everyday. But we fail, because its bottomless.
Rockmankb
Posts: 1
Joined: Sat Apr 11, 2015 2:06 pm

Re: DS3Remapper 0.3

Post by Rockmankb »

Hey guys,

First off I want to say amazing work and that I am really really appreciative for all you guys have done to get this plugin to work as well as it does!

I am in the middle of consolizing my psp go and was wondering if anyone has figured out a way to map the Screen button to the dual shock 3 yet? The R3 button would be the most preferable, with the L1 + R1 combo as my second choice.

I've scoured both the original thread (the one called "l3 and r3 can be used") and this one as well and I don't see anything definitive.

I would appreciate any help you guys can give me as this is quite honestly the last hurdle I need to get past in order to finish my project.

Thanks!
ali_ihsan21
Posts: 683
Joined: Wed Jan 26, 2011 11:04 am

Re: DS3Remapper 0.3

Post by ali_ihsan21 »

Rockmankb wrote:Hey guys,

First off I want to say amazing work and that I am really really appreciative for all you guys have done to get this plugin to work as well as it does!

I am in the middle of consolizing my psp go and was wondering if anyone has figured out a way to map the Screen button to the dual shock 3 yet? The R3 button would be the most preferable, with the L1 + R1 combo as my second choice.

I've scoured both the original thread (the one called "l3 and r3 can be used") and this one as well and I don't see anything definitive.

I would appreciate any help you guys can give me as this is quite honestly the last hurdle I need to get past in order to finish my project.

Thanks!
I'm begging for that for ages, inform me if you can ;)
PSP-1000 6.20 16 GB Pro C-2
PSP-go 6.20 32 GB LME 2.3 White
PSP-go 6.60 24 GB Pro C-2 / LME 2.3 Black
PS Vita Slim 8 GB 3.60 Henkaku
PS TV 3.60 Henkaku 1 TB Samsung Story
Thank you RepRep, Total_Noob, Suloku, Omega2058, TheFlow
reprep
Posts: 1074
Joined: Tue Dec 17, 2013 4:38 pm

Re: DS3Remapper 0.3

Post by reprep »

Here is an analysis why it fails for some games (mostly japanese ones) if anyone is still interested. What this plugin does is converting non-extra calls to extra calls, read the right analog stick and extra buttons of Dualshock 3, do the remapping if specified and return the result. It makes this by this line "sceCtrlReadBuf((SceCtrlData *)buffer, nBufs, 1, mode | 4)" this line transforms the non-extra calls to extra calls by mode | 4 and convert the input from PSP Pad to Dualshock 3 by passing 1 as arg3 instead of the usual 0 the games use.

Have a look at ctrl.c by uOFW for explanation of sceCtrlReadBuf https://github.com/uofw/uofw/blob/maste ... trl/ctrl.c

Problem we have here lies at line 1950
"if (arg3 != 0 && (mode & READ_BUFFER_POSITIVE))
return SCE_ERROR_NOT_SUPPORTED;"

this means if the game uses READ_BUFFER_POSITIVE as mode argument, and we use 1 as arg3 after converting it via DS3Remapper, it simply fails with error code SCE_ERROR_NOT_SUPPORTED. That is why these games stop reading buttons when DS3Remapper is On.

Thanks to qwikrazor87 for making me notice this.
Thrawn
Posts: 115
Joined: Fri May 03, 2013 1:24 pm
Location: A$$-end of nowhere

Re: DS3Remapper 0.3

Post by Thrawn »

Oh man, I wish I would have listened to programing class in school a little more... or at least if someone would have explained stuff properly to me... -_-

So to sum it up... if we have an incompatible title, which uses the read buffer we come into somewhat as an access violation because that nifty plugin also uses the read buffer.
So sony was clever here and in order to prevent an access violation and a possible crash they just implemented a check and send our poor argument flying out of the buffer with a nice error... did I somewhat hit the nail?

I guess this can not be circumvented...
The internet is a bottomless barrel of sh*t, we try to fill it, everyday. But we fail, because its bottomless.
reprep
Posts: 1074
Joined: Tue Dec 17, 2013 4:38 pm

Re: DS3Remapper 0.3

Post by reprep »

I probably solved the compability issue of Japanese games. Please contact me if you have FF Type 0 (normal of Eng patched) or some other games which have compatibility problems with DS3Remapper.

EDIT: Patching Read buffer games to Peak buffer creates problems with controller reading like extra-sensitive controls so this is a no go. Patching should be done to the ctrl module of psp by disabling the check.
Last edited by reprep on Sun Oct 11, 2015 3:55 pm, edited 1 time in total.
Locked

Return to “Plugins”