Logi G25 pedals + PPJoy problem Win7_32b

Which joystick to buy? Which graphic card? Which...

Moderators: Uros, Tom, OXO

Post Reply
User avatar
Czary
Posts: 16
Joined: Wed Oct 04, 2006 11:01 am

Logi G25 pedals + PPJoy problem Win7_32b

Post by Czary » Sun Dec 11, 2011 2:17 am

Hello, as you can see on the picture below, I've set a virtual joystick using PPJoy and GlovePie to act as rudder pedals. It uses accelerator and clutch pedals of Logitech G25. In Windows game controllers panel it works fine, but I can't assign it to Condor. If I press any of the pedals, Condor gets pedal from G25 instead of PPJoy Virtual Joystick 3 axis 1.
I've looked into the controls.ini file and I've found, that controllers have some code names (my mouse is [{6F1D2B60-D5A0-11CF-BFC7-444553540000}]) so I've tried to find this code in windows registry but with no luck. My idea was to paste code of PPJoy Virtual Joystick 3 code into controls.ini - but as I compared mouse registry key values and controls.ini code -they don't match.

Any idea to make Condor see my virtual joystick ?

Best regards, Czarek.
You do not have the required permissions to view the files attached to this post.

User avatar
Tima (TSD)
Posts: 1608
Joined: Mon Dec 12, 2005 9:08 am
Location: St.Petersburg, Russia
Contact:

Re: Logi G25 pedals + PPJoy problem Win7_32b

Post by Tima (TSD) » Sun Dec 11, 2011 8:51 am

There are 2 options.
1. You need to make PPJoy moving while pedals not moving during controls assignment in Condor. I don't know details about GlovePie but with Autohotkey i did this using small separate script.
2. Try to press "Zaawansowane..." button, in the appeared dialog choose PPJoy as preferred device and try to assign controls in Condor. I didn't try this and so can not guarantee result ;).
Image

User avatar
Czary
Posts: 16
Joined: Wed Oct 04, 2006 11:01 am

Re: Logi G25 pedals + PPJoy problem Win7_32b

Post by Czary » Sun Dec 11, 2011 11:40 am

Hi, thanks for the answer. I've already set PPjoy Virtual Joystick as preferred device, but it didtn't help.
Can you help me with the script for the AutoHotKey ? AHK script should move my PPjoy axis left to right without pressing any of the pedals, then I press assign in condor ?

User avatar
Tima (TSD)
Posts: 1608
Joined: Mon Dec 12, 2005 9:08 am
Location: St.Petersburg, Russia
Contact:

Re: Logi G25 pedals + PPJoy problem Win7_32b

Post by Tima (TSD) » Sun Dec 11, 2011 12:39 pm

If you already have Autohotkey installed, also have PPJoy.dll and PPJoy.ahk the here is the script:

Code: Select all

#include PPJ.ahk

OnExit, ExitHandler

PPJ_Init()   ; Grab the Joystick

XVal := 50
delta := 1

Loop {

   PPJ_SetAxis(1, Xval) ;Axis 1 is the X axis
   Sleep 10
   XVal := XVal + delta

   if (XVal = 100)
   {
	delta := -1
	XVal := 99
   }

   if (XVal = 0)
   {
	delta := 1
	XVal := 1
   }
}

Return

a::
	PPJ_Term()
	exitapp
Return

ExitHandler:
   PPJ_Term()   ; Release the Joystick
ExitApp
It exits by pressing button "A" on the keyboard. If you don't have some of the components mentioned above then let me know.

You should start this script, then start Condor, go to assignment dialog and double click rudder assignment. After couple of seconds it will be assigned to PPJoy.
Image

User avatar
Czary
Posts: 16
Joined: Wed Oct 04, 2006 11:01 am

Re: Logi G25 pedals + PPJoy problem Win7_32b

Post by Czary » Sun Dec 11, 2011 3:13 pm

Thnks a lot, but no luck this time. As I run the script and go to assign options it doesn't change anything in my inputs. Should it move my virtual controler also in game controllers manager in windows ? My only PPjoy axis is still - no movement there.

User avatar
Tima (TSD)
Posts: 1608
Joined: Mon Dec 12, 2005 9:08 am
Location: St.Petersburg, Russia
Contact:

Re: Logi G25 pedals + PPJoy problem Win7_32b

Post by Tima (TSD) » Sun Dec 11, 2011 3:23 pm

Sure. It should move PPJoy axis in the windows game controllers manager. But it is mandatory to have PPJoy.dll in the working folder of this script or else it is useless. Do you have it (dll)?
Image

User avatar
Czary
Posts: 16
Joined: Wed Oct 04, 2006 11:01 am

Re: Logi G25 pedals + PPJoy problem Win7_32b

Post by Czary » Sun Dec 11, 2011 7:06 pm

What I did - I reinstalled AHK to different location (read somewhere that installing and running scripts at Program Files directory in Win7 sometimes generates some problems), put all the files in one place as you can see on the picture. But to be sure :
1. GlovePIE is not running when I'm to ssign controls to Condor.
2. Run script you've pasted above (I've called the file G25rudder.ahk).
3. Go to the windows game controllers manager - but nothing moves here.

I wonder if my PPjoy Virtual Joystick is set properly, but in the other hand it works with GlovePIE as expected with clutch and accelerator pedals...
You do not have the required permissions to view the files attached to this post.

User avatar
Tima (TSD)
Posts: 1608
Joined: Mon Dec 12, 2005 9:08 am
Location: St.Petersburg, Russia
Contact:

Re: Logi G25 pedals + PPJoy problem Win7_32b

Post by Tima (TSD) » Sun Dec 11, 2011 8:20 pm

I have no idea what's wrong :(... On my win7-64 this script (and all others which use ppjoy) works without any problems.
Image

User avatar
Tima (TSD)
Posts: 1608
Joined: Mon Dec 12, 2005 9:08 am
Location: St.Petersburg, Russia
Contact:

Re: Logi G25 pedals + PPJoy problem Win7_32b

Post by Tima (TSD) » Sun Dec 11, 2011 8:37 pm

Maybe this ppjoy.dll can't work with your ppjoy driver? I see that we have the same DLLs. My driver details are:

date: 4-Nov-2011
version: 0.84.5.0
driver file: C:\Windows\system32\DRIVERS\PPortJoy64.sys

Another thing - game controllers manager should have focus or else joystick position will not be moved. On the screenshot below it has focus and moving. As soon as i click to other window it stops moving.
You do not have the required permissions to view the files attached to this post.
Image

User avatar
Tima (TSD)
Posts: 1608
Joined: Mon Dec 12, 2005 9:08 am
Location: St.Petersburg, Russia
Contact:

Re: Logi G25 pedals + PPJoy problem Win7_32b

Post by Tima (TSD) » Sun Dec 11, 2011 9:02 pm

I searched Internet on this subject and found the following about ppjoy.dll:
"By default, this DLL only allows access to the FIRST PPJoy Virtual Joystick.
If you want to control a different virtual joystick, then:

(first make a backup and) open your PPJoy.dll file in a hexidecimal editor (XVI32 is a good one)

Go to address $140E

You'll probably see something like: PPJoyIOCTL1

That's a reference to the FIRST PPJoy device.
To control the 2nd virtual joystick, simply change that digit to: PPJoyIOCTL2
To control the 5th virtual joystick, simply change that digit to: PPJoyIOCTL5"

Looks like this is the cause of your problem because you have PPJoy #3 while i have #1.
Image

User avatar
Czary
Posts: 16
Joined: Wed Oct 04, 2006 11:01 am

Re: Logi G25 pedals + PPJoy problem Win7_32b

Post by Czary » Mon Dec 12, 2011 10:37 pm

Works ! Works ! Works !

It was your last idea - my PPjoy was no 3 and that's why the script was not working. I've removed this controller and addes a new PPjoy Virtual Joystick and it started working right away.

Thank you very much for your help, now I can use my pedals to control rudder :mrgreen:

User avatar
Tima (TSD)
Posts: 1608
Joined: Mon Dec 12, 2005 9:08 am
Location: St.Petersburg, Russia
Contact:

Re: Logi G25 pedals + PPJoy problem Win7_32b

Post by Tima (TSD) » Tue Dec 13, 2011 6:06 am

One more piece of experience with PPJoy ;).
Image

Post Reply