Main > Lightguns |
VR lighthouse based tracking for lightguns |
<< < (8/11) > >> |
Toasty833:
Thanks for the response. I gave Retroarch a try, and sure enough, the gun mapping is fine for the standard MAME core, and probably the offshoots too for games that run better through them. The other console cores (NES, PS1) I've tried have all been fairly easy to setup through RA, so I'll probably stick to those going forwards. I think all I've got left is Dolphin, which I haven't tried setting up yet, and a few native PC versions of games. Aside from CXBX everything else looks like it's working fine. |
greymatr:
I've had a look at CXBX and was able to replicate everything Toasty was saying. So after a lot of testing and coding things, I found I was able to make a small one line change to the DemulShooter code and it allows the Vive controller via Virtual Desktop to work. I've attached the compiled exe's (standard and x64) and a txt file with the code change. When running the exe it needs to be done from the command line like this: demulshooter -target=chihiro -rom=vcop3 -usesinglemouse i.e. must have -usesinglemouse. I only tested vcop3 but it should work for all games though and other platforms. I tested it on a newly unzipped DemulShooter (latest version) and I found out that you must run the DemulShooter_GUI.exe first and choose a device for P1. I also don't know for sure that added P2,P3,P4 etc will have any effect. It seems you need to choose a hardware mouse for P1 or the mouse clicks don't work, the crosshair still moves around though. I think this should also work for other programs that fake the mouse movement and clicks. For instance I think this may work for certain Wiimote guns programs etc. By the way, thanks for that reply ThatOneSeong. It was enlightening. I think choices like this get made earlier on in making a program and then get harder and harder to fix later on. So it just becomes the way it is. Edit 1: I should mention specifically that the DemulShooter version that it needs to overwrite the exe's is version v12.2 https://github.com/argonlefou/DemulShooter/releases/tag/v12.2 |
Toasty833:
Hey, great stuff. Works perfectly with my gun. Well, there was one issue, and it's that CXBX seems to have the same 16:9 offset thing going on. I found mention of a command line option that would fix this for DS, but it didn't work anymore. Checking the code, it turns out that -ForceXratio has been changed to -ForceScalingX at some point in the last year, so running DS with -ForceScalingX=4/3, everything lines up. Game works good, although I think my AHK script conflicts slightly with DS, I had some occasional right click failures and using my off-screen reload caused a left click to be sent first. I also started using launchbox and found that it didn't support AHK 2.0, so I changed the off-screen script to match v1 instead so launchbox can auto run and close AHK on emulator exit. And finally, I tried out Dolphin, which works fine. |
greymatr:
Edit: This may be irrelevant now, see next post Does the AHK script always send a left click first with DS and does it still do it after converting to v1? I'm not sure about the right click failures. It may be possible to write the same functionality into DS but I'll have to investigate how the clicks work. As I only figured out the position and the line I changed made both work |
greymatr:
I've got a new DemulShooter mod to test. This adds offscreen reload along the borders like the AHK does. So to use it, again paste the exe files into DemulShooter v12.2 ( https://github.com/argonlefou/DemulShooter/releases/tag/v12.2 ) use DemulShooter_GUI.exe etc. and run the command line like e.g.: demulshooter -target=chihiro -rom=vcop3 -usesinglemouse -offx=20 -offy=30 This means that the first left 20 pixels and the last right 20 pixels will change the left click (shoot) to right click (reload). And the top 30 pixels and bottom 30 pixels will do the same. A value a 0 will have no reload effect or leaving either -offx or -offy from the commandline. I've put the changes again in a txt file in a directory should it need to be changed with a new version of DemulShooter. I don't think the -ForceScalingX=4/3 option would affect anything for the reload. I tried to use it but seemed like it was more inaccurate for me when I did. But then I don't have a calibrated Virtual Desktop going. I'm using it more like a mouse atm. I also didn't realise I could run the game in 4:3 res, I was using 16:9. So I found that there is the two options, change the video mode res or turn on/off Maintain Aspect Ratio but any combo I tried didn't seem to need the ForceScalingX option. If it's a problem then let me know. Hopefully this means you won't need to run the AHK script with DS |
Navigation |
Message Index |
Next page |
Previous page |