WHDLoad MantisBT - Virocop
View Issue Details
0004178Virocop[All Projects] Generalpublic2019-08-10 16:232019-08-17 23:33
ReporterHexaae 
Assigned ToJOTD 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionunable to reproduce 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
MachineA1200
CPU68060
CPUSpeed75
ChipSetAGA
GFXCardOther
ChipMem2 MB
FastMem512 MB
WorkbenchOS 3.1.4
KickROM45 - Kick 3.1.4
KickSoftNone
WHDLoad18.6beta
importedyes
Summary0004178: Joystick 2nd button not working to switch weapon.
DescriptionGameVersion: english,pal
SlaveVersion: 1.4 (02.08.19)

Joystick 2nd button not working to switch weapon.
TagsNo tags attached.
Attached Files

Notes
(0006962)
JOTD   
2019-08-10 22:36   
(Last edited: 2019-08-10 22:37)
@Hexaae works fine here (have you tried in WinUAE?). what's the config? tried with 2 button joy & joypad blue button?

(0006964)
Hexaae   
2019-08-11 04:16   
Yes, with WinUAE 2.4.1, using Speedlink USB Competition Pro.
2nd button does nothing in Virocop AGA. Works fine with other games…
Attached my version: https://gofile.io/?c=gLvwnX
(0006965)
JOTD   
2019-08-11 09:07   
(Last edited: 2019-08-11 09:29)
2.4.1 seriously Luca plase upgrade to latest!

with WinUAE 4.1 I cannot reproduce the issue with your version I just downloaded. I can switch weapons with 2nd/blue button in joypad / 2 button joystick mode.

What other games have you tried that work BTW?

(0006966)
Hexaae   
2019-08-11 12:04   
Ah ah ah, sorry, was 4.2.1 of course ;)
All other games with 2nd button do work fine: Lionheart, Bubble & Squek, The Blues Brothers, etc. etc.

Please, can you pass me your lowlevel.library, maybe the issue is there?
(0006967)
JOTD   
2019-08-11 19:52   
nope. lowlevel library isn't used. I've used your install archive and it works for me... Have you tried with "num dot" (second button in keyboard?)
(0006971)
Hexaae   
2019-08-11 20:53   
Sorry I don't understand what you mean with "num dot"...
Only way to switch weapon in ViroCop AGA for me is using SPACEBAR key, because 2nd joystick button does nothing. Even using a gamepad (XBox One BT gamepad configured as CD32 pad for WinUAE) does nothing with 2nd button.
I expected it can be used to switch weapon...
(0006972)
JOTD   
2019-08-11 22:54   
numerical "dot" (next to numpad 0) is the num key winuae assigns to second button. If that works (when using keyboard configured as joystick), well, I don't know. It should work anyway.

(0006973)
Hexaae   
2019-08-11 23:02   
No doesn't work as second button "numpad ." in Virocop AGA.

I'm also sure of the bug happening only with Vircop AGA: ALL other games with 2nd button (by default or added by WHDLoad SLAVE) do work fine as expected.
Are you sure JOTD you don't have SPACEBAR mapped already to your 2nd joystick button?
(0006974)
Hexaae   
2019-08-11 23:10   
https://i.ibb.co/k1n85Lj/image.png
This is my emu setting: notice I use Configurations, not std "Game Ports Panel" of WinUAE...
(0006975)
JOTD   
2019-08-11 23:11   
(Last edited: 2019-08-11 23:12)
no I don't have spacebar mapped... I'm using the same routine that works in other games (deluxe galaga) and noone ever reported that issue. Can't you just not use configurations and standard game ports panel just to check?

Can you try it on a real amiga?

(0006976)
Hexaae   
2019-08-11 23:49   
As I supposed, switching to "Game Ports Panel" in WinUAE does finally work with Virocop AGA:
https://i.ibb.co/j6nnS6n/image.png

Maybe the routines to detect 2nd button are a bit buggy in this game? Because ALL other games have no issues with 2nd button when I use my "Configuration #1"...
(0006977)
JOTD   
2019-08-12 09:27   
Err, the real referee is a real amiga machine. If it works on amiga, then there's no bug.

There are no routines to detect 2nd button. There are routines to detect joypad vs normal joystick. There is no way to tell if 2nd button is there or not. And joypad read routine is always active, trying to read all CD32 controller buttons, and if all bits are set to 1 including ghost button bits (because it's not a CD32 joypad), just marks the blue button as read.

The routine is - granted - slightly different from the routine used in other games you mentionned. I'll check for blatant differences just in case.

Maybe you could ask Toni for the difference (you can quote our discussion here)

(0006979)
Hexaae   
2019-08-12 10:19   
Yes, just opened a thread: http://eab.abime.net/showthread.php?p=1337887#post1337887
Maybe it's a WinUAE bug indeed…

In case would it be possible to add a Custom3=1 to force 2nd button detection for Virocop AGA?
(0006981)
JOTD   
2019-08-12 12:35   
note: there's no forcing 2nd button. The routine reads all buttons including the second button.

Can you guide me to configure from game ports panel to configurations? I'd like to see what happens anyway. Just curious.
(0006982)
Hexaae   
2019-08-12 13:36   
Oh, so there's no way to force it simulating some specific conditions on startup...

Just switch to Configuration #1.
In config mode you can remap or add (!) function to key/mouse/joy/pad input, for example you could remap button 4 and 5 on the joystick to act like fire0 and fire1.

To reproduce the issue with Virocop AGA switching to Configuration #1 is enough, no need to remap anything...
(0006985)
haynor666   
2019-08-12 21:57   
Work fine on real A1200 with Python joystick switched to 2 button config (sega).
(0006987)
JOTD   
2019-08-17 23:33   
winuae cornercase bug

Issue History
2019-08-10 16:23administratorNew Issue
2019-08-10 16:23administratorStatusnew => assigned
2019-08-10 16:23administratorAssigned To => JOTD
2019-08-10 22:36JOTDNote Added: 0006962
2019-08-10 22:36JOTDNote Edited: 0006962bug_revision_view_page.php?bugnote_id=6962#r1007
2019-08-10 22:37JOTDNote Edited: 0006962bug_revision_view_page.php?bugnote_id=6962#r1008
2019-08-11 04:16HexaaeNote Added: 0006964
2019-08-11 09:07JOTDNote Added: 0006965
2019-08-11 09:29JOTDNote Edited: 0006965bug_revision_view_page.php?bugnote_id=6965#r1012
2019-08-11 09:29JOTDNote Edited: 0006965bug_revision_view_page.php?bugnote_id=6965#r1013
2019-08-11 12:04HexaaeNote Added: 0006966
2019-08-11 19:52JOTDNote Added: 0006967
2019-08-11 20:53HexaaeNote Added: 0006971
2019-08-11 22:54JOTDNote Added: 0006972
2019-08-11 22:54JOTDNote Edited: 0006972bug_revision_view_page.php?bugnote_id=6972#r1015
2019-08-11 23:02HexaaeNote Added: 0006973
2019-08-11 23:10HexaaeNote Added: 0006974
2019-08-11 23:11JOTDNote Added: 0006975
2019-08-11 23:12JOTDNote Edited: 0006975bug_revision_view_page.php?bugnote_id=6975#r1017
2019-08-11 23:49HexaaeNote Added: 0006976
2019-08-12 09:27JOTDNote Added: 0006977
2019-08-12 09:27JOTDNote Edited: 0006977bug_revision_view_page.php?bugnote_id=6977#r1019
2019-08-12 10:19HexaaeNote Added: 0006979
2019-08-12 12:35JOTDNote Added: 0006981
2019-08-12 13:36HexaaeNote Added: 0006982
2019-08-12 21:57haynor666Note Added: 0006985
2019-08-17 23:33JOTDStatusassigned => closed
2019-08-17 23:33JOTDResolutionopen => unable to reproduce
2019-08-17 23:33JOTDNote Added: 0006987