joystick hook
Moderator: JeremyaFr
joystick hook
-
- Posts: 213
- Joined: Fri Dec 27, 2019 7:08 pm
Hi,
I have multiple controllers (cloche, thottle, pedals) and becouse the game don't support multiple controllers I use vjoy to merge it on one virtual controller.
This work, but the compromise is that I lose to force feedback becouse the game send the ffb to vjoy and not to real device.
I ask if there is way to "redirect" all ffb data to the first controller that support the force feedback that can be different from the device used to control the ship.
I have multiple controllers (cloche, thottle, pedals) and becouse the game don't support multiple controllers I use vjoy to merge it on one virtual controller.
This work, but the compromise is that I lose to force feedback becouse the game send the ffb to vjoy and not to real device.
I ask if there is way to "redirect" all ffb data to the first controller that support the force feedback that can be different from the device used to control the ship.
Last edited by JeremyaFr on Sun Jul 19, 2020 12:38 pm, edited 1 time in total.
Reason: Change title
Reason: Change title
- JeremyaFr
- Posts: 4007
- Joined: Mon Jan 18, 2010 5:52 pm
- Contact:
Hello,
You can try this patch:
I have not tested it.
If it works, I will create a hook for that.
You can try this patch:
Code: Select all
At offset 034A3E, replace 33C05E83C410C2080090 with 33C0405E83C410C20800.
If it works, I will create a hook for that.
-
- Posts: 213
- Joined: Fri Dec 27, 2019 7:08 pm
hi JeremyaFr,
thanks for your reply !!!
To be honest I don't have skill to create a hook.
I do only do a small change on some code in c++ but not more.
I suppose this is a binany change of dinput.dll. Is true ?
Do you have the possibility to send me the compiled dll or other to allow me to see if work ?
thanks for your reply !!!
To be honest I don't have skill to create a hook.
I do only do a small change on some code in c++ but not more.
I suppose this is a binany change of dinput.dll. Is true ?
Do you have the possibility to send me the compiled dll or other to allow me to see if work ?
- JeremyaFr
- Posts: 4007
- Joined: Mon Jan 18, 2010 5:52 pm
- Contact:
Hello,
A simple way to apply the patch is to use XwaExePatcher.
Open "patcher.xml" with Notepad and add that:
Then run "XwaExePatcherWindow.exe", select "XWingAlliance.exe", and click on "Apply" next to the added "force feedback". The patch will be applied to "XWingAlliance.exe".
A simple way to apply the patch is to use XwaExePatcher.
Open "patcher.xml" with Notepad and add that:
Code: Select all
<Patch Name ="force feedback">
<Item Offset="034A3E" From="33C05E83C410C2080090" To="33C0405E83C410C20800"/>
</Patch>
-
- Posts: 213
- Joined: Fri Dec 27, 2019 7:08 pm
hi JeremyaFr,
Many many thanks !!
Your patch work pefect at the first attemp and very easy to apply.
Thanks again ...
I don't known if this is the right place to ask:
Do you know where there are the lastest complete full dynamic cockpit with hypespace for x-wing , a-wing, etc..
(If possible ready to use)
Many many thanks !!
Your patch work pefect at the first attemp and very easy to apply.
Thanks again ...
I don't known if this is the right place to ask:
Do you know where there are the lastest complete full dynamic cockpit with hypespace for x-wing , a-wing, etc..
(If possible ready to use)
- blue_max
- Posts: 2296
- Joined: Wed Mar 20, 2019 5:12 am
You're probably looking for the VR mod. The latest public release is here:
https://www.dropbox.com/s/3dz5egxfboeg4 ... 1.zip?dl=0
Be aware that this version is not compatible with hook_d3d.dll. So if you update all the hooks, you'll have to disable that one.
- JeremyaFr
- Posts: 4007
- Joined: Mon Jan 18, 2010 5:52 pm
- Contact:
Hello,
Here is something to test.
I've included the joystick selected into a hook.
EDIT: link removed
This hook permits to select the joystick device with force feedback.
To select a joystick with force feedback, set JoystickDeviceIndex in "hook_joystick_ff.cfg".
The format is:
JoystickDeviceIndex = device index
The default value is 0, which select the first device.
When the value is -1, the last device will be selected.
Here is something to test.
I've included the joystick selected into a hook.
EDIT: link removed
This hook permits to select the joystick device with force feedback.
To select a joystick with force feedback, set JoystickDeviceIndex in "hook_joystick_ff.cfg".
The format is:
JoystickDeviceIndex = device index
The default value is 0, which select the first device.
When the value is -1, the last device will be selected.
- JeremyaFr
- Posts: 4007
- Joined: Mon Jan 18, 2010 5:52 pm
- Contact:
UPDATE
Hello,
I've uploaded the xwa_hook_joystick_ff hook to OneDrive and GitHub.
You can download it with XwaHooksSetup.
Hello,
I've uploaded the xwa_hook_joystick_ff hook to OneDrive and GitHub.
You can download it with XwaHooksSetup.
- ual002
- Posts: 983
- Joined: Wed Sep 24, 2008 2:23 am
Wait, so does this mean my x56 rhino will work now?
![Image](https://i.imgur.com/5vfNZHl.png?1)
![Image](https://i.imgur.com/JrFPoL6.png?1)
![Image](https://i.imgur.com/CYTyoW3.png?2)
![Image](https://i.imgur.com/Gy8vkc2.png?1)
![Image](https://i.imgur.com/MxJa1Af.png)
- JeremyaFr
- Posts: 4007
- Joined: Mon Jan 18, 2010 5:52 pm
- Contact:
The best way to know the answer is to test.
- ual002
- Posts: 983
- Joined: Wed Sep 24, 2008 2:23 am
Everybody coaxing me back into the fray it seems. lol
![Image](https://i.imgur.com/5vfNZHl.png?1)
![Image](https://i.imgur.com/JrFPoL6.png?1)
![Image](https://i.imgur.com/CYTyoW3.png?2)
![Image](https://i.imgur.com/Gy8vkc2.png?1)
![Image](https://i.imgur.com/MxJa1Af.png)
- ual002
- Posts: 983
- Joined: Wed Sep 24, 2008 2:23 am
Ok, reading this further... This affects force feedback and not native support for multiple control devices without the use of Vjoy correct?
![Image](https://i.imgur.com/5vfNZHl.png?1)
![Image](https://i.imgur.com/JrFPoL6.png?1)
![Image](https://i.imgur.com/CYTyoW3.png?2)
![Image](https://i.imgur.com/Gy8vkc2.png?1)
![Image](https://i.imgur.com/MxJa1Af.png)
- JeremyaFr
- Posts: 4007
- Joined: Mon Jan 18, 2010 5:52 pm
- Contact:
Correct.
For now, it's only for force feedback.
For now, it's only for force feedback.
- JeremyaFr
- Posts: 4007
- Joined: Mon Jan 18, 2010 5:52 pm
- Contact:
UPDATE
Hello,
I've updated the joystick hook.
I've included the patch that allows small movments.
Hello,
I've updated the joystick hook.
I've included the patch that allows small movments.
- JeremyaFr
- Posts: 4007
- Joined: Mon Jan 18, 2010 5:52 pm
- Contact:
UPDATE
Hello,
I've updated the joystick hook.
I've added a setting to enable or disable small movement.
Hello,
I've updated the joystick hook.
I've added a setting to enable or disable small movement.
Code: Select all
EnableSmallMovement = value
The default value is 1, which enable small movement.
When the value is 0, small movement is disabled.
- JeremyaFr
- Posts: 4007
- Joined: Mon Jan 18, 2010 5:52 pm
- Contact:
WIP
Hello,
Here is a WIP version of the joystick hook.
You can now have the main axis and buttons on separate controllers.
You can define more than 16 buttons and 4 POVs.
The hook zip contains a tool to configure the hook settings.
Download link:
EDIT: link removed
Hello,
Here is a WIP version of the joystick hook.
You can now have the main axis and buttons on separate controllers.
You can define more than 16 buttons and 4 POVs.
The hook zip contains a tool to configure the hook settings.
Download link:
EDIT: link removed
You do not have the required permissions to view the files attached to this post.
- ual002
- Posts: 983
- Joined: Wed Sep 24, 2008 2:23 am
And I have a working profile for the X-55 rhino. If anyone has interest I can post it here. I suspect the axis section might be different for you based on the order of your Stick/Throttle in windows.
![Image](https://i.imgur.com/5vfNZHl.png?1)
![Image](https://i.imgur.com/JrFPoL6.png?1)
![Image](https://i.imgur.com/CYTyoW3.png?2)
![Image](https://i.imgur.com/Gy8vkc2.png?1)
![Image](https://i.imgur.com/MxJa1Af.png)
- JeremyaFr
- Posts: 4007
- Joined: Mon Jan 18, 2010 5:52 pm
- Contact:
WIP
Hello,
I've updated the WIP version of the joystick hook.
I've fixed a bug with the numpad keys to move the look view in the cockpit when no joystick is connexted.
I've also reduced the look move speed.
EDIT: link removed
WARNNG: This fix will not work until the cockpit look hook is updated.
Hello,
I've updated the WIP version of the joystick hook.
I've fixed a bug with the numpad keys to move the look view in the cockpit when no joystick is connexted.
I've also reduced the look move speed.
EDIT: link removed
WARNNG: This fix will not work until the cockpit look hook is updated.
-
- Posts: 2
- Joined: Thu Sep 03, 2020 11:12 am
So basically what your saying is that we will no longer have an option not to install the Effects anymore?
No doubt this will eventually be incorporated into standard Joystick Hook, but why can't this be added to the cockpit look hook?
My question is, If you already have a working Joystick and you don't have Blue max's effects installed, will this impact any aspect of an already working game?
No doubt this will eventually be incorporated into standard Joystick Hook, but why can't this be added to the cockpit look hook?
My question is, If you already have a working Joystick and you don't have Blue max's effects installed, will this impact any aspect of an already working game?
- JeremyaFr
- Posts: 4007
- Joined: Mon Jan 18, 2010 5:52 pm
- Contact:
The joystick hook works with or without the effects.
For now, the above fix (related to numpad keys) will have no effect when the cockpit look is present. I'm not the maintainer of this hook.
With the WIP version of the joystick hook, there is a breaking change: the button settings from "config.cfg" file (joybuttonX settings) or the in-game menu will no longer work. You have to configure the buttons in the "JoystickConfig.txt" file or use the "XwaJoystickConfig.exe" tool.
For now, the above fix (related to numpad keys) will have no effect when the cockpit look is present. I'm not the maintainer of this hook.
With the WIP version of the joystick hook, there is a breaking change: the button settings from "config.cfg" file (joybuttonX settings) or the in-game menu will no longer work. You have to configure the buttons in the "JoystickConfig.txt" file or use the "XwaJoystickConfig.exe" tool.
-
- Posts: 2
- Joined: Thu Sep 03, 2020 11:12 am
That's fine thanks, as long as there isn't any need to have to install the effects, we should be able have a choice whether we want to install the effects or not, just saying they should be kept separate from your Hooks, sorry not everyone likes the Effects package and Dynamic cockpit stuff
- blue_max
- Posts: 2296
- Joined: Wed Mar 20, 2019 5:12 am
I will update the Cockpit Look Hook as Jeremy requested; but I would expect that you can also remove this hook altogether if you don't like/need it so that it doesn't interfere with Jeremy's joystick hook.
EDIT: Here's the updated cockpitlook hook, with the changes requested by Jeremy:
https://www.dropbox.com/s/3yvga6xz56m5q ... 5.zip?dl=0
EDIT: Here's the updated cockpitlook hook, with the changes requested by Jeremy:
https://www.dropbox.com/s/3yvga6xz56m5q ... 5.zip?dl=0
- JeremyaFr
- Posts: 4007
- Joined: Mon Jan 18, 2010 5:52 pm
- Contact:
WIP
Hello,
I've updated the WIP version of the joystick hook.
Now the Joystick Config tool automatically saves the "JoystickConfig.txt" file when the window is closed.
EDIT: link removed
Hello,
I've updated the WIP version of the joystick hook.
Now the Joystick Config tool automatically saves the "JoystickConfig.txt" file when the window is closed.
EDIT: link removed
- Ace Antilles
- Posts: 7922
- Joined: Sat Jan 22, 2000 12:01 am
- Contact:
MAJOR BUG!
With this hook you can't target ships using T or most keys correctly. It won't move from the ship you are on.
It's stuck in place no matter what you press, sometimes using Y can correct it.
I've tracked this down to the newest Joystick Hook. It's not related to the Cockpit Hook too afaik.
The one included below doesn't have the issue.
Last edited by Ace Antilles on Fri Sep 25, 2020 10:18 pm, edited 1 time in total.
Reason: Link removed
Reason: Link removed