View Issue Details

IDProjectCategoryView StatusLast Update
03550Cabalslavepublic2022-03-13 22:23
ReporterDanyPPC Assigned ToStingRay  
PrioritynormalSeverityfeatureReproducibilityalways
Status resolvedResolutionfixed 
Project InfoCabal (Ocean)
http://www.whdload.de/games/Cabal.html
Summary03550: [Cabal] CD32 Pad Option bug
DescriptionCD32 Pad option doesn't work well on:

A1200/030 Rev 1D.4 C= Kick 3.0 WHDLoad 18.2
A1200/ACA030 Rev 2B C= Kick 3.1 WHDLoad 18.2
A1200/030 Rev 1D.4 C= Kick 3.1 WHDLoad 18.2
A1200/PPC/060 Rev 1D.4 AmigaTech Kick 3.1 WHDLoad 18.2

Strange Pause and autofire option on first button.
The Game start in 2 Player Mode even if only the RED Button is pressed on the gamepad.

Tested with: CD32 original Pad, Boomerang CD32 pad, Kipper PSX Adapter, Competition Pro Honey Bee CD32 Pad.

On WinUAE 3.3.0 all is ok.
TagsNo tags attached.
Attached Files
usr.zip (35,610 bytes)
MachineA1200
CPU68030
CPUSpeed50
ChipSetAGA
GFXCardNone
ChipMem2 MB
FastMem64MB
WorkbenchOS 3.0
KickROM40 - Kick 3.1
KickSoftNone
WHDLoad18.2
imported

Activities

StingRay

StingRay

2016-08-31 21:09

developer   note ~05311

Can't reproduce. You can still start the single player game with F1 anyway. And what does "Strange pause and autofire option" mean? You need to provide a bit more useful info than that.
DanyPPC

DanyPPC

2016-08-31 21:24

reporter   note ~05312

At the start screen "CABAL" logo, when i press the RED button (1 Player) the game starts always in 2 player mode. Even if i press F1 the game starts in 1 player mode, but then the fire button doesn't work well, sometimes it make pauses after a shot, as it acts for the Play Button that pauses the game.
The second button launches 2 bombs at a time, and generally the direction down of the joystick isn't disabled at all.

All works as expected only on WinUAE, but on original machine i have to disable the 2 button option with CUSTOM3=0.
StingRay

StingRay

2016-08-31 23:10

developer   note ~05313

Why should the down direction be disabled? Disabled is down+fire when using the joypad option, nothing else.

As for the rest, I might create some test versions for you to try, I'll attach these to this ticket, you need to give me feedback then if/when something changes regarding the joypad problems.
DanyPPC

DanyPPC

2016-09-01 07:01

reporter   note ~05314

Of course.

I'll test new slaves on my Amiga Real machines !
WinUAE is only an option for a real Amiga User ;)
JOTD

JOTD

2019-06-25 22:44

developer   note ~06889

In fact we can detect joypad vs joystick using some custom code I use

If wrong detection of joystick as cd32 joypad, pressing button 2 presses ALL CD32 joypad buttons which triggers pause and other strange stuff.

Slave needs to be reassembled with my version of "ReadJoyPad.s" probably and add a "_detect_controller_types" call at the start. Sting will you do the honors?
DanyPPC

DanyPPC

2021-02-01 10:34

reporter   note ~09501

Noone is able to fix 2nd button problem for this game on real Amiga ?
JOTD

JOTD

2021-02-02 21:05

developer   note ~09505

first attempt to fix the issue, please try the attached slave and report back.

If it doesn't work, I have other leads
StingRay

StingRay

2021-02-03 09:08

developer   note ~09511

@JOTD: thanks for taking care of the joypad problem (@DanyPPC: everything can be fixed, it just requires someone to work on the problem and I had lots of other stuff to do in the last months so this patch had a somewhat low priority).

Once you you fixed the joypad problem, please send me the updated source as I have already done some other fixes in the meantime (not joypad related at all), thanks.
JOTD

JOTD

2021-02-03 09:22

developer   note ~09514

@Stingray my pleasure. Just wait for confirmation that it is fixed, as I just updated the readjoypad slave + added controller detect at startup. It may not be enough, and may require joypad read to be relocated in vblank
aardvark82

aardvark82

2021-06-26 02:53

reporter   note ~10440

The attached slave didn't fix the random pause bug on my A1200 with TF1260. I can't reproduce it on WinUAE.

It doesn't happen very frequently, about once per level in average.

Maybe add option to disable Play=Pause as a workaround?
JOTD

JOTD

2021-06-26 14:33

developer   note ~10442

> It may not be enough, and may require joypad read to be relocated in vblank

It's probably the issue, I'm going to do that. It fixes those issues.
JOTD

JOTD

2021-06-27 00:14

developer   note ~10452

can you test the newly attached slave?
aardvark82

aardvark82

2021-06-27 01:13

reporter   note ~10453

Still pauses occasionally, but less frequently than the official slave.
This new slave introduced a bug with gunshot sounds, it skips about half of them.
JOTD

JOTD

2021-06-27 15:34

developer   note ~10459

Hi

updated. Can you test again? gunshot sounds should be back

> Strange Pause and autofire option on first button.
> The Game start in 2 Player Mode even if only the RED Button is pressed on the gamepad.

Can you confirm if the "start in 2 player" mode bug is gone too. And with which controller do you have spurious pause issues?
aardvark82

aardvark82

2021-06-27 21:26

reporter   note ~10461

Gunshot sounds are still bugged with the new slave, only when joypad mode is enabled though. The background music is also affected.

The player 2 bug is gone.

I have Monster Joystick CD32 and KTRL CD32+. I've had pauses with both but they are pretty rare now, can play 10+ minutes without any pauses.

Also, I made a feature request for grenade spam http://mantis.whdload.de/view.php?id=5270
aardvark82

aardvark82

2021-06-29 17:25

reporter   note ~10473

I tested my controllers with Amiga Test Kit, and apparently occasional phantom button presses do happen with the Play button while frantically pressing other buttons. Maybe it's an EMI interference issue.

So an option to disable Play=Pause could helpful, if this is a common issue with amiga.
JOTD

JOTD

2021-07-04 16:43

developer   note ~10491

changed another thing + fixed grenade spam & cpu dependent loop (x3)

can you test?
aardvark82

aardvark82

2021-07-05 14:04

reporter   note ~10495

Audio is fixed, but the victory music at the end of each screen cuts off prematurely now, just a minor thing.

Throwing requires two button taps, is that intentional? Still it's much better than grenade spam.

Paused a couple times during a playthrough, but could be due to above-mentioned phantom inputs.
JOTD

JOTD

2021-07-21 23:29

developer   note ~10581

here's an update with grenade throw fixed and 3 button support
Pascal De Maeseneire

Pascal De Maeseneire

2021-07-22 17:12

reporter   note ~10585

@JOTD
Hi,
I downloaded Your usr.Zip file to try it.
In Your Readme file it seems that there is a new slave v1.3 (21.07.2021).
But in the zip the slave is a version from 2016...
Is there a new one ... Can You check ?
Many Thanks,
Best regards,
Pascal
Solo Kazuki

Solo Kazuki

2021-07-22 19:42

reporter   note ~10586

Hi, JOTD. Can You also fix this twice grenade bug? It's about throwing two grenades when button is pressed just once.
JOTD

JOTD

2021-07-24 18:06

developer   note ~10588

yes, the twice grenade bug is now fixed. New usr.zip package attached too.
Solo Kazuki

Solo Kazuki

2021-07-25 13:00

reporter   note ~10593

For me it's working ok now.
Pascal De Maeseneire

Pascal De Maeseneire

2021-07-25 13:37

reporter   note ~10594

Hi,
For me too it works perfectly now (On my A500ACA500PLUS & my A1200).
Many Thanks,
Best regards,
Pascal
StingRay

StingRay

2021-07-25 15:55

developer   note ~10596

As all joypad related problems appear to be fixed, I'll create the final updated version of the patch in the coming days and hence have assigned this ticket back to me.
JOTD

JOTD

2021-07-25 16:10

developer   note ~10597

Last edited: 2021-07-25 16:11

perfect. Note that I have added delays where they were empty DBFs too (highscore and level picture). The latest source is in "usr.zip". Not changing it anymore

StingRay

StingRay

2022-03-12 13:44

developer   note ~10995

The new patch is now available. I have fixed various timing problems (for example, the "level complete" tune is now always fully played as I have patched the code to use the replayer data instead of a simple delay), fixed the blitter and vertical blank interrupt acknowledge, added optional NTSC compatibility and simplified the approach to read the joypad in the vertical blank interrupt. Source is in the archive and can also be found on my Github for those that are nosy and/or interested: https://github.com/MK1Roxxor/WHDLoad_Patches/blob/master/Games/Cabal_WHD.s
Excolion

Excolion

2022-03-13 20:57

reporter   note ~11001

Hello, I downloaded the pre-installed game package file "Cabal_v1.3_0638.lha" from Magix's google drive archive and tried it. The game opens, Ocean screen passes, then CABAL main screen with the music appears. At this point, when I press Fire again, the screen starts to transition to the next part but the game immediately crashes with the following error:

error during 'resload_Patch'
invalid command PLCMD_16418 $6 at address $9FB6D8 (Slave $428)

My system: Classic WB FULL, WinUAE 4.2.1 . A1200, 68020, 14 CPUSpeed, AGA, 2 + 8 MB RAM, OS 3.1 , Kick 3.1 , WHDLoad 17.1 .

Any idea why I'm getting this error? I get this error with only three games: Cabal, Fate Gates of Dawn and Darkmere. My other 50+ games work fine. One thing that may give an idea is, older versions of these games work without errors, for example Cabal 1.1 works fine and the previous version of Fate Gates of Dawn (1.0) works fine (FGoD currently inspected in #0005531). Unfortunately 1.2 and 2.0 versions of Darkmere both crashes with this type of error. Thanks in advance.
aardvark82

aardvark82

2022-03-13 21:28

reporter   note ~11002

Excolion, this is because you are using ancient WHDLoad version.
StingRay

StingRay

2022-03-13 21:30

developer   note ~11003

Last edited: 2022-03-13 21:30

Please update your WHDLoad version! The error occurs because PL_IFCxxx commands are not available in WHDLoad 17.1.

Excolion

Excolion

2022-03-13 22:23

reporter   note ~11005

Yes, it was way back when I purchased WHDLOAD key and I've been using that version all these years. I finally managed to update it and the games no longer crash, thanks a bunch!

Issue History

Date Modified Username Field Change
2016-08-31 20:24 DanyPPC New Issue
2016-08-31 21:09 StingRay Note Added: 0005311
2016-08-31 21:09 StingRay Assigned To => StingRay
2016-08-31 21:09 StingRay Status new => assigned
2016-08-31 21:24 DanyPPC Note Added: 0005312
2016-08-31 23:10 StingRay Note Added: 0005313
2016-09-01 07:01 DanyPPC Note Added: 0005314
2019-06-24 12:05 StingRay Assigned To StingRay =>
2019-06-25 22:44 JOTD Note Added: 0006889
2021-02-01 10:34 DanyPPC Note Added: 0009501
2021-02-01 21:26 JOTD Assigned To => JOTD
2021-02-01 21:26 JOTD Status assigned => acknowledged
2021-02-02 21:04 JOTD File Added: Cabal.zip
2021-02-02 21:05 JOTD Note Added: 0009505
2021-02-02 21:05 JOTD Status acknowledged => feedback
2021-02-03 09:08 StingRay Note Added: 0009511
2021-02-03 09:22 JOTD Note Added: 0009514
2021-06-26 02:53 aardvark82 Note Added: 0010440
2021-06-26 14:33 JOTD Note Added: 0010442
2021-06-27 00:13 JOTD File Deleted: Cabal.zip
2021-06-27 00:13 JOTD File Added: Cabal.zip
2021-06-27 00:14 JOTD Note Added: 0010452
2021-06-27 01:13 aardvark82 Note Added: 0010453
2021-06-27 15:31 JOTD File Deleted: Cabal.zip
2021-06-27 15:31 JOTD File Added: Cabal.zip
2021-06-27 15:34 JOTD Note Added: 0010459
2021-06-27 15:34 JOTD File Deleted: Cabal.zip
2021-06-27 15:34 JOTD File Added: Cabal.zip
2021-06-27 21:26 aardvark82 Note Added: 0010461
2021-06-29 17:25 aardvark82 Note Added: 0010473
2021-07-04 16:42 JOTD File Deleted: Cabal.zip
2021-07-04 16:43 JOTD File Added: Cabal.zip
2021-07-04 16:43 JOTD Note Added: 0010491
2021-07-05 14:04 aardvark82 Note Added: 0010495
2021-07-12 21:34 JOTD Status feedback => confirmed
2021-07-21 23:28 JOTD File Deleted: Cabal.zip
2021-07-21 23:28 JOTD File Added: usr.zip
2021-07-21 23:29 JOTD Note Added: 0010581
2021-07-22 17:12 Pascal De Maeseneire Note Added: 0010585
2021-07-22 19:42 Solo Kazuki Note Added: 0010586
2021-07-24 18:06 JOTD Note Added: 0010588
2021-07-24 18:06 JOTD File Deleted: usr.zip
2021-07-24 18:06 JOTD File Added: usr.zip
2021-07-25 13:00 Solo Kazuki Note Added: 0010593
2021-07-25 13:37 Pascal De Maeseneire Note Added: 0010594
2021-07-25 15:55 StingRay Note Added: 0010596
2021-07-25 15:55 StingRay Assigned To JOTD => StingRay
2021-07-25 16:10 JOTD Note Added: 0010597
2021-07-25 16:11 JOTD Note Edited: 0010597
2022-03-12 13:44 StingRay Note Added: 0010995
2022-03-12 13:45 StingRay Status confirmed => resolved
2022-03-12 13:45 StingRay Resolution open => fixed
2022-03-13 20:57 Excolion Note Added: 0011001
2022-03-13 21:28 aardvark82 Note Added: 0011002
2022-03-13 21:30 StingRay Note Added: 0011003
2022-03-13 21:30 StingRay Note Edited: 0011003
2022-03-13 22:23 Excolion Note Added: 0011005