Open Ltek opened 7 months ago
A perfect report, thanks for this! I'll look into it.
Can you verify that you have these 2x entries in the emulator setup?
They should be generated there automatically, but I got a similar issue recently where the entry was not there.
I just verified this. The server log shows the message:
Skipped showing start menu: no game status found.
The game status is set through these curl calls. So once you add them, the pause menu should appear.
I just verified this. The server log shows the message:
Skipped showing start menu: no game status found.
The game status is set through these curl calls. So once you add them, the pause menu should appear.
they are there...
B. Joy2Key maps 'Z' to a cabinet button
This is the problem here: right now I only listen to native key events. So even if I read the "jobstick -> key" mapping from Popper I have to add additonal stuff to support joysticks. I already found libraries for this and keep you posted about the progress here.
My understanding is all hardware drivers (real hardware keyboards, generic usb button converters, etc) and software converter apps (J2K, Popper, VPX, etc) convert commands to OS native Virtual-key codes, which are device-independent.
If VPS is listening for what the OS is getting (the virtual key code) then it will not matter what device or hardware sends the code. VPS will not know, or care so commands sent from J2K, popper, etc will all be heard by VPS. And the benefit is that any command can be heard by VPS and leveraged if so desired. VPX does this and so does Popper (Popper's UI on this is horrible - like most of Popper's UX)
I did investigate and played around with some APIs a bit. With Java, the whole controller support is a bit tricky. There is a library available, but I wasn't able to achieve the expected results yet and the installation is tricky too. So this ticket may take a while longer.
I dont know java, at all but found this...
https://www.educative.io/answers/how-to-listen-to-and-take-action-on-keyboard-strokes-in-java
https://stackoverflow.com/questions/2168968/can-java-see-activity-of-my-keyboard
https://stackoverflow.com/questions/22955770/how-to-find-key-listener-on-any-where-in-window
I changed the title so that it matches the overall problem.
If I can avoid it, I'd like to skip the controller support and would recommend to use tools like Joy2Key for this like you already do. I installed it and mapped key "Z" in the tool and in the Studio. The pause menu was working for me this way.
I cant get VPS Pause menu or overlay to work - at all... I'm using the physical keyboard and tried multiple different key set in VPS settings.
I tried using Overlay and Pause Menu, and combining them using your check box.. the Pause menu button always pauses the table but -neither- show any menu. I also set it to show overlay on start... it does not.
I also tested with Exclusive Fullscreen on and off... same
Could you add a test button in VPS so we can test without running VPX?
btw, Z is usually mapped to nudge in VPX, I'd suggest not using that.
I'll see if I can add a test button for the pause menu. The new version will support to distribute assets on Popper screen when pause is pressed, so a preview function certainly helps to see how the screens are set up.
Ok, lets continue here. I added the test button for the pause menu. This should help with the setup. So the last status was that we have to figure out, why the shortcut is not working, right?
I added the button debounce with 2.16.0, so I assume this issue as fixed. There have been issues with the preferences refresh in the patch I gavie you. These should be fixed with the release too.
@syd711 Pause menu still not working... definitely need more delay, maybe even allow it to be a user definable delay.
Test today using Joy2Key (key mapper/reader I use to map Windows DirectInout buttons to Popper stuff like 'Play only'). When I press ']' (set for VPS Overlay), VPS is sending a keyboard 'P' command immediately.
Mmh, damn I kept the delay hard-coded as it was in the test version I gave you (1 sec). I thought this fixed the issue. So it is still showing up and hiding again immediately? Sure, I can add a configurable flag for this. I just want to make sure before if this is really the issue. I'm suprised that it is now not working (again?).
If it is coming on, its so fast its impossible to see. happy to let you remote in!
I had another ticket where the workaround was to select some random key for the overlay (which was previously empty). There is a bug that empty values are not checked properly which results in unnessessary key events.
If improved the key event handling and added the "debounce" option. If the menu still does not show, please attach the latest logs here again.
Any updates? Otherwise I would like to close this ticket.
I'll test today
And once again a baby(?) step forward. 2.18.5 contains a button recorder that hopefully fixes your controller issues.
no go... I tried mapping 3 different keys that I had never mapped before... including 'insert' since nothing uses that. The key grabber you put it sees all the codes just fine. But when a table is running (popper in the background) the Pause menu never comes up... with button press or directly using the keyboard. I have it set to 1s debounce.
log attached vpin-studio-ui.log vpin-studio-server.log
This issue is currently blocked by https://github.com/syd711/vpin-studio/issues/245
Blocking ticket has been fixed. You can try to use the VPX monitor which should now detect the game status and should not block the pause menu from opening.
I'll test soon as next ver is released
not ignoring this... just been working on Swamp Thing. Its almost done and I'll get back to testing VPS
I'm also working on a re-implementation of the key binding. The newer version will have controller support. So in combination with the VPX monitor, I'm positive that it will work much better.
So, we once again can continue here. The controller support is there, so we only need to figure out now, why the table start/end commands (curl commands) are not working for you. Or maybe they are now?
I tested controller mapping, its not working for me... I tried mapping both with a cabinet button (mapped to ']'), and directly with the keyboard key itself ']'.
Maybe the easiest was if to have Studio detect when 'P' key is pressed it will show Pause Menu... and not try have Studio invoke Pause 'P' on the backend... 'P' pauses VPX for me without any hiccups even when Studio is running
Pause menu will not to show. Overlay menu shows properly, game is Pausing properly