argonlefou / DemulShooter

Enable dual lightgun play in arcade games and emulator
109 stars 15 forks source link

Elevator Action Death Parade and Teknoparrot #166

Closed Styx78 closed 9 months ago

Styx78 commented 9 months ago

Hello, I would like to use DemulShooter with teknopparot but I can't do it. I use teknoparrot with "attratcion Doors" Enable I don't use the game.exe included with JConfig.exe because it doesn't work with teknoparrot. The crc of my game.exe is BBDFE625

my problem is : Whilst DemulShooter and Teknoparrot works, the aiming is offset along the x axis and shakes a lot when you get closer to the edges. I have no problem if I use teknoparrot alone. in-game calibration doesn't change anything

Thanks for your help

argonlefou commented 9 months ago

Hi, Just to understand correctly: Are you trying to run DemulShooter to handle game inputs while running the game with Teknoparrot ?

Or are you using DemulShooter to get outputs while the game is running and controled by Teknoparrot ?

Styx78 commented 9 months ago

I try to run DemulShooter to handle game inputs while running the game with Teknoparrot. With teknoparrot alone I cannot use off-screen reload

argonlefou commented 9 months ago

Thanks for the details.

You won't be able to use DemulShooter to handle game inputs with Teknoparrot. DemulShooter will only work with clean game dump.

Jconfig was released a bit after so I didn't try with it but I don't think it would work.

So : either you use TP and TP input system, or clean game dump as a Standalone with DemulShooter

I'll update the wiki to add these details TP and JConfig were not supporting the game when I wrote it

Styx78 commented 9 months ago

I have trouble telling the difference. I thought DemuShooter was used to manage inputs, regardless of whether we use Teknoparrot, Jconfig or GameLoader. THANKS

argonlefou commented 9 months ago

No, you're mixing software that are not doing the same thing at all.

Teknoparrot added it's own RawInput control code a few years ago, making it possible to use multiple lightguns for games. DemulShooter was not needed anymore for games emulated under Teknoparrot, so input support is no more updated for TP (old code still existing and may work for old TP emulated games, but there will be no update). If you have issue with how TP is handling controls with a specific game, you need to ask them to change things.

For this Elevator Action, I updated DemulShooter to hook the game before TP added any support to it. So only the clean game running standalone (without TP) can be controled by DemulShooter. Running it with TP would obsiously change hi the binary behave, thus breaking compatibility with DS Same thing goes for Jconfig for this game, released afterward with a modified exe.

So you have to choose to run the game :

On top of that, DemulShooter can handle outputs to feed recoil, rumble or LED. This usually can be used with any loader (TP, Jconfig, Etc...) as I'm just reading values and hacking the code is not necessary

Styx78 commented 9 months ago

Many thanks for your explanations. I understand better now. I think these explanations will help a lot of people.

carolis15 commented 3 months ago

I'm having the same problem as the OP, but I´m using DS just for Outputs and TP for everything else. But if I run the game with DS the aiming is off in the X axis. There is no diffrence if I use the -noinput command

argonlefou commented 3 months ago

There is absolutely no reason for DS to act on Axis values if the -noinput switch is properly used. This switch even prevent DS from writing values to the game's memory

You can still join a debug file