Old 06-27-2007, 06:48 PM   #1
Fragoon
Member
 
Join Date: Jun 2007
Posts: 11
Fragoon is a 1 bar user
Reputation: 10

Post rating: Votes: 0 Score: 0rate    
Default Axis Problem Solution - Dilong pu203 (maybe others too)

Like many others, lured by "DDR dancing controller is compatible" information in what they call it "features", I thought I'm another victim of Dilong Pu203 PS pad convertor.
Day of testing with different drivers and other stuff with no result and then I found something, what is already posted here:
http://www.stepmania.com/boards/view...ighlight=pu203

So values were different if both opposite arrows were pressed
Quote:
0 = Up (Left) pressed
255 = Down (Right) pressed
127 = None of them
128 = Both of them
That means, there is way to catch these values and convert them somehow!

And then I have written simple code in AutoHotkey thingy.
It converts dance mat arrows to keyboard arrows, so all you have to do is launch program before you run stepmania, and set stepmania to use keyboard arrows.

-------------------------Old version----------------------------

Here is compiled script:
http://www.geocities.com/lunaqix/Stepmania/RunSM.zip
(If your dance mat isn't properly detected, you have to use .ahk script file below and edit joystick number before run)


And here is .ahk file with script if you want to edit something (you need free AutoHotkey program to use it) :
http://www.geocities.com/lunaqix/Ste...AxisScript.zip


I hope it will also work with some other unsupported convertors. Even if not, I think with some it may be possible with little script modifications.

------------------------- Nevest Version-----------------------
http://www.stepmania.com/boards/view...?p=30931#30931

----------------- So far we know fix supports----------------
-Dilong pu203
-Radioshack Playstation to USB adapter (the 26-304 version)
Fragoon is offline   Reply With Quote
Old 07-02-2007, 10:49 PM   #2
AmpDivorax
Member
 
Join Date: May 2007
Posts: 7
AmpDivorax is a 1 bar user
Reputation: 10

Post rating: Votes: 0 Score: 0rate    
Default

I can confirm that this solution works with the Radioshack Playstation to USB adapter (the 26-304 version) and will most likely work with all other versions.
AmpDivorax is offline   Reply With Quote
Old 07-02-2007, 11:20 PM   #3
mik
Member
 
Join Date: Jul 2007
Posts: 3
mik is a 1 bar user
Reputation: 10

Post rating: Votes: 0 Score: 0rate    
Default

It works with the cheap *** adapter I just got from ebay. It has no name, but looks like the Dilong pu203. I am using the CF platform.
This should really work with any adapter. Absolutely awesome solution !!!
mik is offline   Reply With Quote
Old 07-03-2007, 12:11 AM   #4
mik
Member
 
Join Date: Jul 2007
Posts: 3
mik is a 1 bar user
Reputation: 10

Post rating: Votes: 0 Score: 0rate    
Default

It also works with both platforms :D ! I added to the script, so it fakes the other joystick controller using the keys 1, 2, 3, 4. Works great ! Here are the files : www.mikbox.com/arcade/SMHotKeys

One thing about the whole 127 vs 128 solution: You will have to calibrate your joysticks in the control panel first, otherwise the center might not be 127/127.
mik is offline   Reply With Quote
Old 07-06-2007, 08:03 PM   #5
sh4d0w_aLch3mis7
Member
 
Join Date: Jul 2007
Posts: 4
sh4d0w_aLch3mis7 is a 1 bar user
Reputation: 10

Post rating: Votes: 0 Score: 0rate    
Default not working!!!

i tried both fixes, but each time i run the script it begins flooding the system with the up command. when i open firefox or the start menu, the search box fills with 1's and 3's. i realize this means the problem has probably been fixed, but i cant choose a song like this...

help!!!

also, just checked to make sure it wasnt my pad and its not. the adapter goes crazy regardless of anything being plugged into it
sh4d0w_aLch3mis7 is offline   Reply With Quote
Old 07-06-2007, 08:55 PM   #6
Fragoon
Member
 
Join Date: Jun 2007
Posts: 11
Fragoon is a 1 bar user
Reputation: 10

Post rating: Votes: 0 Score: 0rate    
Default Re: not working!!!

Quote:
Originally Posted by sh4d0w_aLch3mis7
i tried both fixes, but each time i run the script it begins flooding the system with the up command. when i open firefox or the start menu, the search box fills with 1's and 3's. i realize this means the problem has probably been fixed, but i cant choose a song like this...

help!!!

also, just checked to make sure it wasnt my pad and its not. the adapter goes crazy regardless of anything being plugged into it
Try calibration in your adapter drivers.

Script still need some fixes. Too bad problems mostly depend on system and drivers, becouse it works pretty good on my 2 computers so it may be hard to find bugs. But I have some new ideas for improvements so we will see :)
Fragoon is offline   Reply With Quote
Old 07-07-2007, 07:26 AM   #7
sh4d0w_aLch3mis7
Member
 
Join Date: Jul 2007
Posts: 4
sh4d0w_aLch3mis7 is a 1 bar user
Reputation: 10

Post rating: Votes: 0 Score: 0rate    
Default

i cant calibrate while the script is running, it keeps constantly switching to the first tab in the game controllers window. calibration without the script does nothing :(

im lazy! i dont wanna have to order another adapter...

btw (if it matters) im running vista ultimate 32bit
sh4d0w_aLch3mis7 is offline   Reply With Quote
Old 07-08-2007, 08:38 PM   #8
Fragoon
Member
 
Join Date: Jun 2007
Posts: 11
Fragoon is a 1 bar user
Reputation: 10

Post rating: Votes: 0 Score: 0rate    
Default

Quote:
Originally Posted by sh4d0w_aLch3mis7
i cant calibrate while the script is running

btw (if it matters) im running vista ultimate 32bit
You have to calibrate before you run script, and yeah vista may matter.

Anyway new version of script is ready, now it should not send anything while there is nothing pressed and it supports second joypad remaped as w,a,s,d, buttons.
Only problem is with second joypad auto detection, I wasn't sure if it works so it's tuned off for now, and if your second dance mat isn't on 2nd port then you have to change it manually in script file.

It's also possible to autorun Stepmania while script beign launched, and script may auto turn off after you exit stepmania. Its possible by deleting some ";" (comments) in script file (Must be in same directory with StepMania.exe).

Files:

exe
http://www.geocities.com/lunaqix/Ste.../SMAxisEXE.zip

script
http://www.geocities.com/lunaqix/Ste...MAxisRemap.zip

-------------------------------------------------------
Thanks mik, I have completly forgot about 2nd dance mat while was working on first version of script.
Fragoon is offline   Reply With Quote
Old 07-10-2007, 09:16 AM   #9
sh4d0w_aLch3mis7
Member
 
Join Date: Jul 2007
Posts: 4
sh4d0w_aLch3mis7 is a 1 bar user
Reputation: 10

Post rating: Votes: 0 Score: 0rate    
Default

still not working :(

now it floods with a's and w's. also constantly goes up, like when im in a window with several items it will persistently head toward the top item, and when im scrolling thru the songs in SM it will try to go left, but slowly enough so that i can tap right much faster than it scrolls (an improvement over the last script, in which i could only keep it on a song)

i thought that it might just be the 2nd controller that was messed up so i edited out that section of code, but that changed lots of nothing (i did have fun looking at the code tho :D)

and yes, it seems to be calibrated fine. 127 127 and whatnot
sh4d0w_aLch3mis7 is offline   Reply With Quote
Old 07-10-2007, 02:48 PM   #10
Fragoon
Member
 
Join Date: Jun 2007
Posts: 11
Fragoon is a 1 bar user
Reputation: 10

Post rating: Votes: 0 Score: 0rate    
Default

Seems it may be vista what is making problems here. Probably it's something with Send, SendInput command but I'm not sure becouse it looks like it's ignoring every "if" condition.

Did some really small fixes in last script, but i doubt it will help.

You can try this script http://www.geocities.com/lunaqix/Ste...JoyKeyTest.zip
to check values sent by adapter and compare them with conditions simmilar to
Code:
if joyx<49.999
You may also remove ";" from
Code:
;ToolTip, %JoyNo% `n %joyx% `n %joyy%
to check it while script is runing.
Also try to remove
Code:
if joyxP != %joyx%
or/and
Code:
if joyx >= 0
for X and Y axis.

And last thing, maybe turning on XP compatibility will help.
Fragoon is offline   Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:48 PM.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.

Thanks to

SourceForge.net Logo