Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up --- Bug Reports --- Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: DemulShooter (Dual light gun on DEMUL, Model2, Dolphin, Silent Hill, etc...)  (Read 398801 times)

0 Members and 2 Guests are viewing this topic.

totoplay

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 26
  • Last login:August 31, 2020, 03:29:52 am
  • I want to build my own arcade controls!
Thank you very much for your dedication and your kindness.

Replies to your questions:

Arcade Guns are made with Aimtrack, from their Pro Utility:
Trigger = Mouse left
Sm button = Mouse Right
Lg button = Joy Button 1 (no option for Mouse Middle)   note: even if I use Ultimarc utility middle clic doesn't work

HOTD3 PC
========
axis are working and both cursors move (shoot only possible from keyboard)

13:03 : -------------------- Program Start ----------------------
13:03 : Conf read OK
13:03 : P1 device = \\?\HID#VID_D209&PID_1601&MI_02#8&24d009cd&0&0000#{378de44c-56ef-11d1-bc8c-00a0c91405dd}
13:03 : P1 device handle = 4325909
13:03 : P2 device  = \\?\HID#VID_D209&PID_1602&MI_02#8&84a775a&0&0000#{378de44c-56ef-11d1-bc8c-00a0c91405dd}
13:03 : P2 device handle = 3933181
13:03 : Cmdline arg 1 : -target=windows
13:03 : Cmdline arg 2 : -rom=hod3pc
13:03 : Cmdline arg 3 : -v
13:03 : Reading Keyconfig...
13:03 : Can't read Keyconfig : La valeur était trop grande ou trop petite pour un Int16.
13:03 : Waiting for Windows Game hod3pc game to hook.....
13:03 : Attached to Process hod3pc.exe, ProcessHandle = 884
13:03 : hod3pc.exe = 0x00400000
13:03 : Memory Hack complete !
13:03 : LowLevel-MouseHook OK !
13:04 : hod3pc.exe closed

DOLPHIN - HOTD2/HOTD3 example
======================
It's getting better with DOLPHIN thanks to your latest README file...

13:10 : -------------------- Program Start ----------------------
13:10 : Conf read OK
13:10 : P1 device = \\?\HID#VID_D209&PID_1601&MI_02#8&24d009cd&0&0000#{378de44c-56ef-11d1-bc8c-00a0c91405dd}
13:10 : P1 device handle = 4325909
13:10 : P2 device  = \\?\HID#VID_D209&PID_1602&MI_02#8&84a775a&0&0000#{378de44c-56ef-11d1-bc8c-00a0c91405dd}
13:10 : P2 device handle = 3933181
13:10 : Cmdline arg 1 : -target=dolphin5
13:10 : Cmdline arg 2 : -ddinumber=2
13:10 : Cmdline arg 3 : -v
13:10 : Waiting for Dolphin  game to hook.....
13:10 : Attached to Process Dolphin.exe, ProcessHandle = 864
13:10 : Dolphin.exe = 0x00400000
13:10 : ControlsPtr address = 0x03C4CAE0
13:10 : DInput Keyboard/Mouse address = 0x03BC2480
13:10 : DInput Player2 device number in the list : 1
13:10 : DInput Device#2 address = 0x03C80D80
13:10 : Memory Hack complete !
13:15 : Dolphin.exe closed

Player 1: shoot and offscreen reload OK (just have to replace click2 by click1 as click2 seems not to work)
Player 2: Lg button doesn't work, no offscreen reload
   WiimoteNew.ini #1: D/S/FFF > Shoot = Trigger   - Reload = NO
   WiimoteNew.ini #2: D/F/SSS > Shoot = Sm button - Reload = NO
   WiimoteNew.ini #3: S/F/DDD > Shoot = Sm button - Reload = NO
   WiimoteNew.ini #4: S/D/FFF > Shoot = NO        - Reload = ?
   WiimoteNew.ini #5: F/D/SSS > Shoot = NO        - Reload = ?
   WiimoteNew.ini #6: F/S/DDD > Shoot = Trigger   - Reload = NO
 

argonlefou

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 759
  • Last login:Today at 04:52:21 pm
Arcade Guns are made with Aimtrack, from their Pro Utility:
Trigger = Mouse left
Sm button = Mouse Right
Lg button = Joy Button 1 (no option for Mouse Middle)   note: even if I use Ultimarc utility middle clic doesn't work
If it's really an aimtrak, and if you can use the original Aimtrak software to assign ID and Buttons, you should be able to affect a "middle click" event on a button onscreen or offscreen.
Note that the middle click is really required by DemulShoter for only 2 games (behind enemy lines - Model2), and HOD3 for windows (to select left-right path at the end of levels). As for Dolphin it should not be an issue as Wiimote buttons have to be set inside the emulator, so you can just replace whatever was initially middle click by corresponding ATRAK Button1 or Button2  :)

HOTD3 PC
========
axis are working and both cursors move (shoot only possible from keyboard)
[...]
Thanks for the log it was really helpfull !!
So let's assume you correctly choose Keyboard for both players and correctly set all keys :
DemulShooter gets HOD3 buttons by reading the registry and there are 2 possible Keys to read into. A lazy copy/paste bug in my code was preventing the program to look into the second one....but it should also be windows10 not allowing DemulShooter to access the registry....
Please try the attached .exe, I corrected the bug and added default values for the key so that both issues should be covered.
If this is still not working, please paste again a new -v debug file !

Default keys value added are the game's own default keys (AZERTY keyboard) :
P1 Shoot = X        P2 Shoot = N
P1 Reload = Z       P2 Reload = B
P1 Right = G         P2 Right = L
P1 LEft = D           P2 Left = J

DOLPHIN - HOTD2/HOTD3 example
======================
It's getting better with DOLPHIN thanks to your latest README file...
Player 1: shoot and offscreen reload OK (just have to replace click2 by click1 as click2 seems not to work)
Player 2: Lg button doesn't work, no offscreen reload
   WiimoteNew.ini #1: D/S/FFF > Shoot = Trigger   - Reload = NO
   WiimoteNew.ini #2: D/F/SSS > Shoot = Sm button - Reload = NO
   WiimoteNew.ini #3: S/F/DDD > Shoot = Sm button - Reload = NO
   WiimoteNew.ini #4: S/D/FFF > Shoot = NO        - Reload = ?
   WiimoteNew.ini #5: F/D/SSS > Shoot = NO        - Reload = ?
   WiimoteNew.ini #6: F/S/DDD > Shoot = Trigger   - Reload = NO
Ok, so far debug file is good, everything is fine this time.
Your large button is not working ? Is the cursor moving fine with the 2nd lightgun ? you should see it movind inside Dolphin wiimote setting window

An I do not understand the meaning of those lines  ? Is this (B) / (A) / (Shake) settings for P2 in Dolphin ?
WiimoteNew.ini #6: F/S/DDD
« Last Edit: July 19, 2016, 11:51:03 am by argonlefou »

fjser

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 61
  • Last login:March 30, 2020, 08:12:06 am
  • I want to build my own arcade controls!
Thank you very much for your dedication and your kindness.

Replies to your questions:

Arcade Guns are made with Aimtrack, from their Pro Utility:
Trigger = Mouse left
Sm button = Mouse Right
Lg button = Joy Button 1 (no option for Mouse Middle)   note: even if I use Ultimarc utility middle clic doesn't work

HOTD3 PC
========
axis are working and both cursors move (shoot only possible from keyboard)

13:03 : -------------------- Program Start ----------------------
13:03 : Conf read OK
13:03 : P1 device = \\?\HID#VID_D209&PID_1601&MI_02#8&24d009cd&0&0000#{378de44c-56ef-11d1-bc8c-00a0c91405dd}
13:03 : P1 device handle = 4325909
13:03 : P2 device  = \\?\HID#VID_D209&PID_1602&MI_02#8&84a775a&0&0000#{378de44c-56ef-11d1-bc8c-00a0c91405dd}
13:03 : P2 device handle = 3933181
13:03 : Cmdline arg 1 : -target=windows
13:03 : Cmdline arg 2 : -rom=hod3pc
13:03 : Cmdline arg 3 : -v
13:03 : Reading Keyconfig...
13:03 : Can't read Keyconfig : La valeur était trop grande ou trop petite pour un Int16.
13:03 : Waiting for Windows Game hod3pc game to hook.....
13:03 : Attached to Process hod3pc.exe, ProcessHandle = 884
13:03 : hod3pc.exe = 0x00400000
13:03 : Memory Hack complete !
13:03 : LowLevel-MouseHook OK !
13:04 : hod3pc.exe closed

DOLPHIN - HOTD2/HOTD3 example
======================
It's getting better with DOLPHIN thanks to your latest README file...

13:10 : -------------------- Program Start ----------------------
13:10 : Conf read OK
13:10 : P1 device = \\?\HID#VID_D209&PID_1601&MI_02#8&24d009cd&0&0000#{378de44c-56ef-11d1-bc8c-00a0c91405dd}
13:10 : P1 device handle = 4325909
13:10 : P2 device  = \\?\HID#VID_D209&PID_1602&MI_02#8&84a775a&0&0000#{378de44c-56ef-11d1-bc8c-00a0c91405dd}
13:10 : P2 device handle = 3933181
13:10 : Cmdline arg 1 : -target=dolphin5
13:10 : Cmdline arg 2 : -ddinumber=2
13:10 : Cmdline arg 3 : -v
13:10 : Waiting for Dolphin  game to hook.....
13:10 : Attached to Process Dolphin.exe, ProcessHandle = 864
13:10 : Dolphin.exe = 0x00400000
13:10 : ControlsPtr address = 0x03C4CAE0
13:10 : DInput Keyboard/Mouse address = 0x03BC2480
13:10 : DInput Player2 device number in the list : 1
13:10 : DInput Device#2 address = 0x03C80D80
13:10 : Memory Hack complete !
13:15 : Dolphin.exe closed

Player 1: shoot and offscreen reload OK (just have to replace click2 by click1 as click2 seems not to work)
Player 2: Lg button doesn't work, no offscreen reload
   WiimoteNew.ini #1: D/S/FFF > Shoot = Trigger   - Reload = NO
   WiimoteNew.ini #2: D/F/SSS > Shoot = Sm button - Reload = NO
   WiimoteNew.ini #3: S/F/DDD > Shoot = Sm button - Reload = NO
   WiimoteNew.ini #4: S/D/FFF > Shoot = NO        - Reload = ?
   WiimoteNew.ini #5: F/D/SSS > Shoot = NO        - Reload = ?
   WiimoteNew.ini #6: F/S/DDD > Shoot = Trigger   - Reload = NO

For Aimtrak to use middle mouse button you need to install the latest version of the utility AND  the latest firmware for the guns.  My utility was too old, when I upgraded from ultimarc website, i got the option for middle mouse in the config utility, but it didnt work. Most guns can have their firmware upgraded as well (tricky process, so be careful). You need to email Andy at Ultimar for the firmware files (he got back to me within a day)

fjser

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 61
  • Last login:March 30, 2020, 08:12:06 am
  • I want to build my own arcade controls!
FYI to anyone using rocket launcher to run dolphin, it was defaulting to switching "render to main window" back to false whenever it launched. To fix this you can open the dolphin.ahk file from the rocketlauncher\modules\dolphin folder in a text editor and change the line that references it from a default of "false" to "true",  As an alternative, it appears you can add this line to the dolphin.ini file instead.  I just edited the AHK.  Im not at home atm or else i would post the actual change. If anyone needs it, let me know. 

Also - you can tell if Dolphin has this setting correct by hitting alt-tab once the game loads. If you see two copies of dolphin running, then the settings is not correct/working.

totoplay

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 26
  • Last login:August 31, 2020, 03:29:52 am
  • I want to build my own arcade controls!
HOT3 PC
======
EXCELLENT! it is working with DemulShooter_4.0_testHOD3

DOLPHIN 5
=======
values like F/S/DDD <=> (A) / (B) / (Shake)
As you see I tried all combinations.

I thought it was impossible to use middle click with ARCADE GUNS whatever utility you use:
- ARCADE GUNS PRO UTILITY: impossible to select
- AIMTRACK UTILITY : doesn't work if selected

... but "fjser" proves otherwise, I contact Andy.

THANKS

Note : argonlefou, is it possible for you to use a different solution than middle clic because anybody without the correct firmware will have the same problem.

argonlefou

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 759
  • Last login:Today at 04:52:21 pm
HOT3 PC
======
EXCELLENT! it is working with DemulShooter_4.0_testHOD3
Nice ! So here's the full package v4.1, including this feature and corresponding README

DOLPHIN 5
=======
values like F/S/DDD <=> (A) / (B) / (Shake)
As you see I tried all combinations.
Ok ok I see, unfortunately you did try with the only game not reloading with this base-configuration  ;D
See a few posts back, hod3 & hod2 need offscreen shoot to reload, so try this :
Wiimote Button B : S | F   
Wiimote IR Hide : F
It should reload with yout sm button

But I really don't understand how your gun is configured... usually aimtrak has 2 values per buttons : 1 for onscreen press and the other for offscreen press
If you tell me that right-click is on sm button, I don't understant what happen when you press the trigger off-screen  :dizzy:


Note : argonlefou, is it possible for you to use a different solution than middle clic because anybody without the correct firmware will have the same problem.
I'm not "using" middle click, exactly.
I'm getting raw information for each gun and I have to take care of middle click event, as when DemulShooter is runnning, emulators usually can't get mouse events anymore. So the event would be lost

Every game using middle click can use anything instead : as you see for Hod3, DemulShooter is converting raw mouse data to keyboard key.
So a middle click is only simulating a keyboard Key, and It's the same for Dolphin.
Luckily every button of the aimtrak (not mouse clicks, joystick buttons) are recognized by autohotkey.

As example :
Your lg button is set to "Joystick Button1"
So you just have to convert "Button1" to "G" for example with a small script, and set Reload key in Hot3pc to "G". And the large button  will be used to Reload. Same thing for Dolphin
Middle click is not needed, but it's still available for those who have it ;)
« Last Edit: July 20, 2016, 03:44:36 am by argonlefou »

totoplay

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 26
  • Last login:August 31, 2020, 03:29:52 am
  • I want to build my own arcade controls!
Thanks to your last advice everything works!

For those who are interested in playing 2P Wii games:
- Attack of the movies 3D
- Resident Evil The Darkside Chronicles
- Resident Evil The Umbrella Chronicles

argonlefou

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 759
  • Last login:Today at 04:52:21 pm
Glad to hear that  ;D
Have fun !

hyo2012

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 54
  • Last login:September 18, 2020, 01:14:34 am
  • I want to build my own arcade controls!
I have a question.

In demulshooter v4.1 zip file, readme.txt  Section IV : Execution
-ddinumber : Dolphin's DirectInput number for P2 device (optional, default = 2)

but   Section VIII : Dolphin,
8) If you don't specify the -ddinumber option, the default value will be 3

which is right?


And about blue estate, I use steam version, and your no-corss hair patch is not working
when I copy patch file and excute blue estate, it crash.
I think Steam patched blue estate recently so your BEGame.upk file is differ from Steam game file.
If I send my BEGame.upk file from Steam Blue estate, can you make no-cross hair file?

Thank you :)

argonlefou

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 759
  • Last login:Today at 04:52:21 pm
I have a question.

In demulshooter v4.1 zip file, readme.txt  Section IV : Execution
-ddinumber : Dolphin's DirectInput number for P2 device (optional, default = 2)

but   Section VIII : Dolphin,
8) If you don't specify the -ddinumber option, the default value will be 3

which is right?
Default value is 3 ! Sorry for the typo (again )
I reuploaded the zip package  above with a correct readme

And about blue estate, I use steam version, and your no-corss hair patch is not working
when I copy patch file and excute blue estate, it crash.
I think Steam patched blue estate recently so your BEGame.upk file is differ from Steam game file.
If I send my BEGame.upk file from Steam Blue estate, can you make no-cross hair file?

Thank you :)
Damn it, and it has to be the only game where the crossair is not a simple  image to replace but code to modify  :D
If you can host your Begame.upk somewhere, I'll download it and look at it.
I do not make any promise though, I don't know if I still have the tools to do it and the biggest issue is that I can't find anywhere how to see wich version of game I have, I can't find a patch to add (even if Steam says there is a "Patch1" dating from 2015) and I may not be able to test the hack as I'm doing it

fjser

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 61
  • Last login:March 30, 2020, 08:12:06 am
  • I want to build my own arcade controls!
Thanks to your last advice everything works!

For those who are interested in playing 2P Wii games:
- Attack of the movies 3D
- Resident Evil The Darkside Chronicles
- Resident Evil The Umbrella Chronicles

How are you guys playing games like Resident Evil with the aimtrak only?  i thought they required the nunchuk control stick to move/look around?

hyo2012

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 54
  • Last login:September 18, 2020, 01:14:34 am
  • I want to build my own arcade controls!
I upload my Steam version Blue Estate file.

https://mega.nz/#!wtomVDIS!vAUzvHZeCkW7TTInYzWIDvdL5MzALLAmGiXET0I-zfA

Thank you and you don't have to do it. :)


totoplay

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 26
  • Last login:August 31, 2020, 03:29:52 am
  • I want to build my own arcade controls!
Thanks to your last advice everything works!

For those who are interested in playing 2P Wii games:
- Attack of the movies 3D
- Resident Evil The Darkside Chronicles
- Resident Evil The Umbrella Chronicles

How are you guys playing games like Resident Evil with the aimtrak only?  i thought they required the nunchuk control stick to move/look around?

These 2 Resident Evil games are rail shooters, try them they are fully playable with lightguns

argonlefou

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 759
  • Last login:Today at 04:52:21 pm
I upload my Steam version Blue Estate file.

https://mega.nz/#!wtomVDIS!vAUzvHZeCkW7TTInYzWIDvdL5MzALLAmGiXET0I-zfA

Thank you and you don't have to do it. :)
As I said I can't test, but here's the modified file :
https://mega.nz/#!lZIVmJiI!_zw5CNtYW4Sac7jrT6OldBZAl35AdkXwDCDKgqtyQ4A

I you could test it and tell me if it's working ?
« Last Edit: July 21, 2016, 05:22:46 am by argonlefou »

hyo2012

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 54
  • Last login:September 18, 2020, 01:14:34 am
  • I want to build my own arcade controls!
It works!!!  Thanks a lot!!!  ;D

Awesome man!!

argonlefou

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 759
  • Last login:Today at 04:52:21 pm
Thanks !
I updated 1st post with the 2 versions of BEGame.upk
To know which one is needed, just check md5 sum of the original BEGame.upk file

dgrace

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 320
  • Last login:Yesterday at 01:10:59 am
  • I want to build my own arcade controls!
Okay, so when I enter DemulShooter.exe -target=demul07a -rom=ninjaslt -noresize -v,  the DemulShooter icon shows up in the systray but then when I click on the game in demul the rom won't work.  I downloaded a ninjaslt rom online and it still won't work.  But if I just try and load the ninjasltu rom from Demul the game loads fine.  But then if I enter in cmd DemulShooter.exe -target=demul07a -rom=ninjasltu -noresize -v I get this "Unsupported Demul rom parameter: "ninjasltu." But that's the only rom I can get working in Demul.  If only the ninjaslt rom (and not ninjasltu) works in demulshooter does anyone know where I can get a working ninjaslt rom or is there a way for Demulshooter to also recognize the ninjasltu rom since that's the only one I can get working in demul?  Thanks

argonlefou

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 759
  • Last login:Today at 04:52:21 pm
Use -rom=ninjaslt in DemulShooter for any version of the Ninja Assault game you use in Demul (including ninjasltu which was the only one I managed to play with too)

Think of the -rom parameter as a game parameter, not a rom version specific parameter.
Same thing apply for hotd2o & hotd2p variation of hotd2 (though I didn't download those roms to test with DemulShooter, it should work as they share most of their content with the hotd2 rom), use -rom=hotd2

That indeed may be confusing :-\

dgrace

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 320
  • Last login:Yesterday at 01:10:59 am
  • I want to build my own arcade controls!
That did it.  Sorry I was confused.  Ninja Assault is working perfectly in dual mode, including off screen reload.  This is so awesome.  I can't thank you enough.

dgrace

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 320
  • Last login:Yesterday at 01:10:59 am
  • I want to build my own arcade controls!
I was messing with Dolphin all day yesterday and finally got it working. I can say the following games work perfectly in dual mode:

- LA Machineguns/Ny Gunblade
- Both Resident Evils
-Gunslingers
-Martian Panic
-Dead Space Extraction
-HOTD 2&3 & Overkill
-Chicken Riot & Blaster
-Dino Strike
-Ghost Squad
-Target Terror
-Will be testing more today

Attack of the Movies 3D is tricky because you have to hit A&B to start the game after it's loaded but I believe 'B' is set to 'click 0' (off screen reload I believe?) in the config file, so if I change that the game loads but now I can't shoot or reload player 1 (just player 2).  Any ideas? I'm sure it's a simple fix.


argonlefou

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 759
  • Last login:Today at 04:52:21 pm
Attack of the Movies 3D is tricky because you have to hit A&B to start the game after it's loaded but I believe 'B' is set to 'click 0' (off screen reload I believe?) in the config file, so if I change that the game loads but now I can't shoot or reload player 1 (just player 2).  Any ideas? I'm sure it's a simple fix.
Click0 is left click
If I'm not wrong House of the Dead Overkill asks for the same (A+B button to start)
That's why I arbitrary put A button to click2 (which is middle click, and also reload for Hotd Overkill) so that both can be pressed at the same time
« Last Edit: July 24, 2016, 03:07:29 pm by argonlefou »

dgrace

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 320
  • Last login:Yesterday at 01:10:59 am
  • I want to build my own arcade controls!
Thanks, i'll try that out and let you know.

I've started looking into the pcsx2 nuvee plugin (i had to first translate all that French LOL) in order to play PS2 games with an aimtrak.  Man that seems complicated.  I think i might wait until someone else creates a simpler plugin for light guns or PCSX2 creates some kind of raw input option like MAME and Supermodel.

Also, I was curious if you've had any luck getting aimtrak guns to work with the PS1 emulator (i.e. EXPSE).

Thanks

argonlefou

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 759
  • Last login:Today at 04:52:21 pm
I've started looking into the pcsx2 nuvee plugin (i had to first translate all that French LOL) in order to play PS2 games with an aimtrak.  Man that seems complicated.  I think i might wait until someone else creates a simpler plugin for light guns or PCSX2 creates some kind of raw input option like MAME and Supermodel.
You should try, it's worth it.
Not sure anyone will release a better system before a loooooooooooooong time  :(

Also, I was curious if you've had any luck getting aimtrak guns to work with the PS1 emulator (i.e. EXPSE).
Never tried ! Not so much games that I'd like to play
But it seems Nuvee plugin also supports PS1 (never tried)

dgrace

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 320
  • Last login:Yesterday at 01:10:59 am
  • I want to build my own arcade controls!
Hello, I am trying to get this to work in Hyperspin via RocketLauncherUI and am having some trouble.  In the User Functions.AHK I have the following:

StartGlobalUserFeatures(){
Global systemName, romName, emuPath
Log("StartGlobalUserFeatures - Starting")
if ( (systemName="Sega Naomi" or "Sammy Atomiswave" ) and (romName="lupinsho" or romName="confmiss" or romName="hotd2" or romName="deathcox" or romName="mok" or romName="ninjaslt"or romName="rangrmsn" or romName="xtrmhnt2" or romName="xtrmhunt") )
Run("DemulShooter.exe -demul=07a -rom=" . romName . " -noresize", emuPath)
Log("StartGlobalUserFeatures - Ending")
}


For Sega Naomi games (Demul) I get the following error message:
Error: Failed attempt to launch program or document:
Action: <DemulShooter.exe>

Specifically: The system cannont find the file specified.
etc........

I have the DemulShooter folder (with all the DemulShooter files) within the Emulator folder. 

Help please?


fjser

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 61
  • Last login:March 30, 2020, 08:12:06 am
  • I want to build my own arcade controls!
Hello, I am trying to get this to work in Hyperspin via RocketLauncherUI and am having some trouble.  In the User Functions.AHK I have the following:

StartGlobalUserFeatures(){
Global systemName, romName, emuPath
Log("StartGlobalUserFeatures - Starting")
if ( (systemName="Sega Naomi" or "Sammy Atomiswave" ) and (romName="lupinsho" or romName="confmiss" or romName="hotd2" or romName="deathcox" or romName="mok" or romName="ninjaslt"or romName="rangrmsn" or romName="xtrmhnt2" or romName="xtrmhunt") )
Run("DemulShooter.exe -demul=07a -rom=" . romName . " -noresize", emuPath)
Log("StartGlobalUserFeatures - Ending")
}


For Sega Naomi games (Demul) I get the following error message:
Error: Failed attempt to launch program or document:
Action: <DemulShooter.exe>

Specifically: The system cannont find the file specified.
etc........

I have the DemulShooter folder (with all the DemulShooter files) within the Emulator folder. 

Help please?


 I see two problems:

1) You are using an old version of the commandline.

2) Looks like you do not demulshooter in the folder with your emulator.  The emupath parameter is looking for demulshooter exe in the same folder as the emulator that calls it (model 2, demul, dolphin, pclauncher).  For my setup, I just put a copy of demul in every emulator folder.  I will eventually change this to clean it up a bit, but for now, no harm no foul. Here is my User Functions.ahk (Again, i could clean this up some, and it requires copies of the demulshooter in each emulator folder, but it works)  Make sure your ROM names match yours (especially for dolphin)

; Use this function to define any code you want to run in every module on start
StartGlobalUserFeatures(){
Global systemName, romName, emuPath
Log("StartGlobalUserFeatures - Starting")
if ( (systemName="Sega Naomi" or "Sammy Atomiswave" or "Shotgun Games" ) and (romName="lupinsho" or romName="confmiss" or romName="hotd2" or romName="deathcox" or romName="mok" or romName="ninjaslt"or romName="rangrmsn" or romName="xtrmhnt2" or romName="xtrmhunt") )
Run("DemulShooter.exe -target=demul07a -rom=" . romName . " -noresize", emuPath)
if ( (systemName="Sega model 2" or "Shotgun Games") and (romName="bel" or romName="gunblade" or romName="hotd" or romName="rchase2" or romName="vcop" or romName="vcop2") )
Run("DemulShooter.exe -target=model2m -rom=" . romName, emuPath)
if ( (systemName="Nintendo Wii" or "Shotgun Games") and (romName="ghostsqu" or romName="hotdo" or romName="targter" or romName="House of the Dead 2 and 3" or romName="Gunblade NY and LA" or romName="Resident Evil the Darkside Chronicles" or romName="Resident Evil the Umbrella Chronicles" or romName="Attack of the Movies 3D") )
Run("DemulShooter.exe -target=dolphin5 -ddinumber=5" , emuPath)
if ( (systemName="PC Games" or "Shotgun Games") and (romName="Silent Hill The Arcade Game") )
Run("DemulShooter.exe -target=ttx -rom=sha", "d:\arcade\emulators\pclauncher")
if ( (systemName="PC Games" or "Shotgun Games") and (romName="House of the Dead 3") )
Run("DemulShooter.exe -target=windows -rom=hod3pc", "d:\arcade\emulators\pclauncher")
Log("StartGlobalUserFeatures - Ending")
}

; Use this function to define any code you may need to stop or clean up in every module on exit
StopGlobalUserFeatures(){
   Log("StopGlobalUserFeatures - Starting")
   ; INSERT CODE HERE
   Log("StopGlobalUserFeatures - Ending")
}

fjser

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 61
  • Last login:March 30, 2020, 08:12:06 am
  • I want to build my own arcade controls!
I've started looking into the pcsx2 nuvee plugin (i had to first translate all that French LOL) in order to play PS2 games with an aimtrak.  Man that seems complicated.  I think i might wait until someone else creates a simpler plugin for light guns or PCSX2 creates some kind of raw input option like MAME and Supermodel.
You should try, it's worth it.
Not sure anyone will release a better system before a loooooooooooooong time  :(

Also, I was curious if you've had any luck getting aimtrak guns to work with the PS1 emulator (i.e. EXPSE).
Never tried ! Not so much games that I'd like to play
But it seems Nuvee plugin also supports PS1 (never tried)

Hi argonlefou -

When you set up the pcsx2 emulator, do you have to unplug and replug in your lightguns to get them into guncon mode everytime you want to use them for ps2 games?  trying to decided if i can make this all work cleanly with my cabinet. I would love to get the time crisis series up and running in my cab

argonlefou

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 759
  • Last login:Today at 04:52:21 pm

Hi argonlefou -

When you set up the pcsx2 emulator, do you have to unplug and replug in your lightguns to get them into guncon mode everytime you want to use them for ps2 games?  trying to decided if i can make this all work cleanly with my cabinet. I would love to get the time crisis series up and running in my cab
No no, I can let them in "normal" mode to play with PCSX2/Nuvee   :)

fjser

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 61
  • Last login:March 30, 2020, 08:12:06 am
  • I want to build my own arcade controls!
Re: DemulShooter (Dual light gun on DEMUL)
« Reply #187 on: July 27, 2016, 02:21:39 pm »
Ok guys, update v2.0 is available :
The only visible change is full support for Ninja Assault, with possibility to use up/down/validate buttons in JVS bios menu. Moreover, this game emulation did not handle right click to reload, so I handle it with DemulShooter so that it works the same way as other games for you

Small non-visible change, but because of this game I had to switch from a per-system command to a per-game command to launch the program.
Please read updated instructions on 1st post  :)


This is great work man!  Much appreciated.  I'm having an issue.  I'm running the demulshooter program with AHK and it's showing up fine in the tool bar.  My issue is when i run demul (7a), the game shows up less than 1/4 the size and pushed up to the left upper corner.  Do you know what is causing this?  I'm running Windows 10, have .Net 2.0 frame work all activated.  Thanks for the help!
So far I don't see what could cause that...some hints for you to test :
- Does this happen too when you launch Demul without DemulShooter ?
If yes, have you tried ALT+ENTER to switch fullscreen->windowed->fullscreen ?
If not, does this happen with AND without -noresize argument for DemulShooter ?


can you recommend a link to guide me through setup?

argonlefou

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 759
  • Last login:Today at 04:52:21 pm
By reading your quote, I'm not sure to understand for what kind of setup you'd like to have help ?  :(

fjser

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 61
  • Last login:March 30, 2020, 08:12:06 am
  • I want to build my own arcade controls!
sorry quoted wrong person..looking for a helpful link on configuring pcsx2/nuvee

argonlefou

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 759
  • Last login:Today at 04:52:21 pm
I'll try to write something on Friday about PCSX2/Nuvee

I almost finished what I was working on for House of Dead Overkill (windows)

Brian74

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1089
  • Last login:Today at 03:10:54 pm
  • Yep... I built that!!
I am using this cmd "DemulShooter.exe -target=dolphin5 -ddinumber=3 -v

and this is the debug

2:45 PM : -------------------- Program Start ----------------------
2:45 PM : Conf read OK
2:45 PM : P1 device = \\?\HID#VID_D209&PID_1601&MI_02#7&6f69e7b&0&0000#{378de44c-56ef-11d1-bc8c-00a0c91405dd}
2:45 PM : P1 device handle = 6556733
2:45 PM : P2 device  = \\?\HID#VID_D209&PID_1602&MI_02#7&23fea4a1&0&0000#{378de44c-56ef-11d1-bc8c-00a0c91405dd}
2:45 PM : P2 device handle = 65593
2:45 PM : Cmdline arg 1 : -target=dolphin5
2:45 PM : Cmdline arg 2 : -ddinumber=3
2:45 PM : Cmdline arg 3 : -v
2:45 PM : Waiting for Dolphin  game to hook.....

It dont go any farther, any ideas?
         

argonlefou

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 759
  • Last login:Today at 04:52:21 pm
I am using this cmd "DemulShooter.exe -target=dolphin5 -ddinumber=3 -v

and this is the debug

2:45 PM : -------------------- Program Start ----------------------
2:45 PM : Conf read OK
2:45 PM : P1 device = \\?\HID#VID_D209&PID_1601&MI_02#7&6f69e7b&0&0000#{378de44c-56ef-11d1-bc8c-00a0c91405dd}
2:45 PM : P1 device handle = 6556733
2:45 PM : P2 device  = \\?\HID#VID_D209&PID_1602&MI_02#7&23fea4a1&0&0000#{378de44c-56ef-11d1-bc8c-00a0c91405dd}
2:45 PM : P2 device handle = 65593
2:45 PM : Cmdline arg 1 : -target=dolphin5
2:45 PM : Cmdline arg 2 : -ddinumber=3
2:45 PM : Cmdline arg 3 : -v
2:45 PM : Waiting for Dolphin  game to hook.....

It dont go any farther, any ideas?
It's waiting for dolphin.exe to be executed
If you are launching it, are you using a supported version of dolphin?

Brian74

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1089
  • Last login:Today at 03:10:54 pm
  • Yep... I built that!!
Yes I am launching it threw the dolphin gui and then launching demulshooter. I am using the version you posted   Download, install (http://dl-mirror.dolphin-emu.org/4.0.2/dolphin-x86-4.0.2.exe)
         

argonlefou

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 759
  • Last login:Today at 04:52:21 pm
You have to use -target=dolphin4 if you're using dolphin v4.0.2 ! :)

Brian74

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1089
  • Last login:Today at 03:10:54 pm
  • Yep... I built that!!
Yep I was doing that. Copied wrong one, updated to 5.0 now I can control pl2 but buttons are not working. Using notepad while demulshooter running I see it working but not in the emu.
         

argonlefou

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 759
  • Last login:Today at 04:52:21 pm
Ok that's already better !

I'll need a little more help to know what could be wrong. When you say it's working in notepad, you're talking about P2 lightguns left/right/middle click making "S", "D", and "F" letters in notepad ?
So P2 axis are working good, and P1 axis/buttons too ?

you can still post a debug log but if axis are working good I think the program started good
You can try also with the keyboard to press keys and see if Dolphin reacts. If not, it may be more of a Wiimote configuration issue

Brian74

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1089
  • Last login:Today at 03:10:54 pm
  • Yep... I built that!!
Got it! Now I have Dolphin and Demul working, now just need to work on the rest. Thank you so much!!
         

Brian74

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1089
  • Last login:Today at 03:10:54 pm
  • Yep... I built that!!
I have two revolution x guns that are connected to a a-pac that I would like to use with model 2. Any idea how to go about that?
         

argonlefou

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 759
  • Last login:Today at 04:52:21 pm
Absolutely not  :(
And without any a-pac at home to test with,  I can't even say if it's possible.

According to the documentation, it's emulating joystick, and there's a way to calibrate analog directions so that thay correspond fully to your screen.
But without any information on how data are sent, I can't say much more
« Last Edit: July 31, 2016, 06:28:58 am by argonlefou »