AndersMalmgren / FreePIE

Programmable Input Emulator
644 stars 144 forks source link

Raze hydra emulation crashing steamvr? #181

Open marcob2178 opened 5 years ago

marcob2178 commented 5 years ago

Hi! I mam trying to use FreePIE for using custom vr controllers in steamvr using razer hydra emulation. I am using the sixense.dll and sixense_x64.dll from freepie (_fake ones) , but steamvr is giving me an error message on start "a key component of steamvr isn't working properly".

Is there any solution for this please ?

Thanks!

AndersMalmgren commented 5 years ago

If SteamVR is 64 bit you should replace the sixense.dll in the target folder with the sixense_x64.dll one and rename it to sixense.dll (it should overwrite the orginal)

maybe you can get some help here?

https://www.mtbs3d.com/phpBB/viewtopic.php?t=18265&p=161467

marcob2178 commented 5 years ago

The forum seems dead. I am trying to ask help, but in vain. I am following what they wrote in the forum

I have Renamed sixense_fake.dll as sixense.dll then copy it to C:\Program Files (x86)\SteamVR Hydra driver\hydra\bin\Win32

and

i have Renamed sixense_fakex64.dll as sixense_x64.dll then copy it to C:\Program Files (x86)\SteamVR Hydra driver\hydra\bin\x64.

Like described here:

https://www.mtbs3d.com/phpBB/viewtopic.php?t=18265&p=161467#p161467

Unfortunately the error I reported you, is what I am getting when doing what I just described :-(

https://imgur.com/Zncjid3

Sorry

My pc is 64 bit hence my steamvr should be the 64bit so the problem raise from the sixense_x64.dll that somehow gets steamvr crashed

AndersMalmgren commented 5 years ago

X86 indicates it's a 32 bit program and you shouldn't use the 64 bit dll.

marcob2178 commented 5 years ago

ok. sorry.

But I have done this

I have Renamed sixense_fake.dll as sixense.dll then copy it to C:\Program Files (x86)\SteamVR Hydra driver\hydra\bin\Win32

and

i have Renamed sixense_fakex64.dll as sixense_x64.dll then copy it to C:\Program Files (x86)\SteamVR Hydra driver\hydra\bin\x64

What should I have done instead ?

AndersMalmgren commented 5 years ago

That looks about right, can't really say what's wrong sadly

marcob2178 commented 5 years ago

How can I know for sure which of the 2 files (sixense_x64.dll or sixense_fake.dll) steamvr uses when booting ?

Because strangely if I remove the sixense_x64.dll file, I do not have the steamvr error message , but at that point I am not even sure that anything is running

How can I test that the driver are running and working properly?

Thanks!

AndersMalmgren commented 5 years ago

When I wrote the fake dlls I tested it against the sdk sample project. Maybe start there

marcob2178 commented 5 years ago

I have: 1) Installed "SteamVR" tool. 2) Installed "Sixense SDK for the Razer Hydra" tool. 3) Installed "SteamVR Driver for Razer Hydra" tool. 4) Open the folder with "SteamVR Driver for Razer Hydra" to find and replace the existing "sixense.dll" and "sixense_x64.dll" with the fakes .dll

"\ Steamapps \ common \ SteamVR Driver for Razer Hydra \ hydra \ bin \ Win32"

and

"\ Steamapps \ common \ SteamVR Driver for Razer Hydra \ hydra \ bin \ Win64"

5) Opened the folder with the "Sixense SDK for the Razer Hydra"

"\ Steamapps \ common \ Sixense SDK \ SixenseSDK \ samples \ win32 \ sixense_simple3d"

"\ Steamapps \ common \ Sixense SDK \ SixenseSDK \ samples \ x64 \ sixense_simple3d"

and replace "sixense.dll" and "sixense_x64.dll" with the renamed fake .dll

I have just tried to run these then

C:\Program Files (x86)\Steam\steamapps\common\Sixense SDK\SixenseSDK\samples\x64\sixense_simple3d\sixense_simple3d_x64.exe

C:\Program Files (x86)\Steam\steamapps\common\Sixense SDK\SixenseSDK\samples\win32\sixense_simple3d\sixense_simple3d.exe

But I get this error message

https://ibb.co/YPRS1B3

What am I doing wrong ?

Is it possible that the fake.dll are not updated for the 2019 steamvr updates ?

Have you tested it yourself by any chance recently?

Thanks!

AndersMalmgren commented 5 years ago

If everything is set up correctly then you need to send a Hydra button press from a FreePIE script to the sample program to get it started.

marcob2178 commented 5 years ago

Does it work on your end ? What version of the hydra drivers and other drivers ard installers are you using and I should use?

AndersMalmgren commented 5 years ago

I haven't tried it in ages, sorry, I don't have much time for freepie sadly, infact I have been trying for years for someone to take over it

marcob2178 commented 5 years ago

Would it be too much of work for you if i test it for you sending any feedback i can to figure out if the problem is somewhere in the coding?

AndersMalmgren commented 5 years ago

You have a link to were you can download the SDK sample app these days?

marcob2178 commented 5 years ago

Would this help?

https://github.com/ValveSoftware/driver_hydra

https://github.com/betavr/steamvr_driver_hydra/

https://github.com/ValveSoftware/openvr

marcob2178 commented 5 years ago

Please, is it possible to have help to figure out if the freepie razer hydra amulation is broken ans needs to be updated?

AndersMalmgren commented 5 years ago

were did you downbload hydra SDK that contains sixense_simple3d.exe

Cant seem to find it anymore

marcob2178 commented 5 years ago

I have just downloaded it using the console of steamvr and using this line

download_depot 42300 42301 9171813538594069977

to activate the console of steamvr you need to edit the properties of the .exe file of steamvr by adding -console into the "Target" space

i have uploaded the zipped file of what I have downloaded, here:

https://www.mediafire.com/file/65e4oowo3uqrt4g/Sixense_SDK.7z/file

Would this work ?

I think they might have removed from steamvr the sownload link. This is the original data you guys used back in time

https://steamdb.info/app/42300/