WHDLoad MantisBT - BlackCrypt
View Issue Details
0005484BlackCrypt[All Projects] Generalpublic2022-01-20 11:252025-12-03 17:00
ReporterHexaae 
Assigned To 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionno change required 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
MachineUAE
CPU68060
CPUSpeed100
ChipSetAGA
GFXCardOther
ChipMem2 MB
FastMem256 MB
WorkbenchOS 3.9
KickROM40 - Kick 3.1
KickSoftNone
WHDLoad18.7
importedyes
Summary0005484: Minor glitch in main menu: visible colored line at the bottom of the screen if
DescriptionGameVersion: english,pal
SlaveVersion: 2.0 (16.05.06)

Minor glitch in main menu: visible colored line at the bottom of the screen if you ran something before (other games like BatmanCC WHDLoad or WB games...).
See picture https://i.ibb.co/QnFjTYv/image.png
It doesn't "clean" some HW registers before starting?
TagsNo tags attached.
Attached Files

Notes
(0012233)
Hexaae   
2022-12-30 14:00   
More clues:
Mmmh... It seems I've found a reproducible pattern:
run Deluxe Galaga from WB and quit. Now run Black Crypt.

I've also found that running from WB games like Lemmings 3 (All New Worlds of Lemmings) or WHDLoad version of Alien Breed 3D 2, will fix it: next time you launch Black Crypt the menu won't have the bottom line anymore.
(0014394)
Hexaae   
2025-02-15 18:23   
Or run Deluxe Galaga AGA WHDLoad, and then Black Crypt WHDLoad...
Maybe is DGalaga which trashes some chipmem?
(0014398)
Hexaae   
2025-02-15 23:37   
It's probably a not reset BPLCON<n> or something like that, not checked/cleared by BC on startup.
(0014718)
Hexaae   
2025-11-30 07:28   
Maybe a simple "Clear base and expansion memory with 0" would avoid that?
(0014720)
DJ Mike   
2025-11-30 15:12   
Have you tried this with WHDLoad 20 beta?
(0014722)
Hexaae   
2025-12-02 15:22   
Yes, I'm using 20 beta. Still happening... How to reproduce, f.e.:
1. run WHDLoad of Banshee, quit
2. run Black Crypt: you should see the line at the bottom.

Then if you run ArcadePool WHD, in some ways it resets something (clears 2MB chipmem with 0, registries, ... ?). At this point if you run BC again, the line is gone (!?).
(0014723)
DJ Mike   
2025-12-02 15:48   
(Last edited: 2025-12-02 15:49)
I've tried this on my real A1200/060 and in WinUAE, and I have not successfully reproduced it.

Can you clarify what video hardware you're using to display the game there? I can see scanlines - are you using a hardware scaler?

Possibly of significance is that Banshee displays an interlaced screen on startup.

WHDLoad resets all used chipmem on start so I would be very surprised if it's this.

(0014724)
Hexaae   
2025-12-02 22:42   
Here is my WinUAE current CFG (just change drives...):
https://gist.github.com/Hexaae/0aba2519089393ee8df8150a489f05eb

I even tried without booting Startup-Sequence (so no video drivers, commodities, nothing loaded and WB not even loaded...) and I was able to reproduce it with:
whdload SLAVE Banshee.slave PRELOAD
whdload SLAVE BlackCrypt.slave PRELOAD

Are you on EAB to send you PM with my game files?
(0014725)
Hexaae   
2025-12-02 23:41   
Another game is Aladdin (AGA) WHD: if run (and quit) before BC WHD, causes this bottom line glitch in main menu of Black Crypt.

From my very limited coder POV looks like BPLCONxxx or something else not initialized/reset properly left by other games before... and since BC won't reset them on launch, hence the line glitch. Just a possible idea...

Running games like "Lemmings 3" from WB, or ArcadePool WHD reset whatever it is the cause, and then BC runs again without this minor glitch.

Would be possible to add some kind of reset registers and clean chipmem with 0 at launch in the slave, and see if this is enough to workaround the glitch?
(0014726)
Wepl   
2025-12-03 08:01   
probably a WinUAE problem
(0014727)
Hexaae   
2025-12-03 08:31   
As far as I can remember I was able to reproduce it randomly (but at that time I didn't find a reproducible scheme) also on my real A1200+B1260... My
It's also strange it gets reset after I run another game like those mentioned. If it was a WinUAE issue is expect to reproduce it every time I launch BC.
Looks like the glitch appears only when mem/registries are in a specific situation....
(0014728)
DJ Mike   
2025-12-03 09:22   
(Last edited: 2025-12-03 09:38)
Even with your config, running in WinUAE 5.3.1 or 6.0.2 beta 7, I could not reproduce this issue.

Only last thing I can think is to post what's in your S:WHDLoad.prefs file.

If you get this reproducibly on real hardware then there is something to investigate, but without that there is nothing to go on.

(0014729)
Hexaae   
2025-12-03 09:41   
Mmmh... here is my S:WHDLoad.prefs:
https://paste.sh/wVijlhX9#_b5V8MANvG2jhqAOqKf6P_-X
Tried also to rename my S:WHDLoad_startup and _cleanup (where I simply run C:UAE-Configuration to reenable JIT etc. from WB) but nothing changed.

I tried also with QuickConfig A1200+4MB FAST from WinUAE and NO Startup-Sequence, but was still the same (Aladding, and then BC):
https://i.ibb.co/pBmWLvWk/image.png

A real mystery! :-O

Last step I can try is pure WB3.1 fresh install hard-disk file + WHDLoad 20beta and see if I can still reproduce it with QuickConfig and no SSeq...
(0014730)
DJ Mike   
2025-12-03 09:42   
I agree a fresh config might help narrow it down.
(0014731)
DJ Mike   
2025-12-03 09:57   
I would make everything fresh - WinUAE, config, WHDLoad, games (try grabbing Retroplay's versions if you haven't already). i.e. nothing carried over from your old WinUAE setup.
(0014734)
Hexaae   
2025-12-03 10:33   
I use retroplay's versions from Turr...FTP.
In the meanwhile I tested it with WB31 fresh install hdf + WHDLoad only (no WHDLoad.prefs and startup/cleanup in S:, just C:WHDload), QuicksStart A1200+4MB, no SSeq: https://i.ibb.co/MD6WtSv3/image.png
Still the same purple line at the bottom after I run Aladdin and then BC...

I start to wonder if YOU have a custom cfg that workarounds the bug at this point... ;-)

Will try with latest WinUAE 6.xbeta and re-download games from Retroplay's...
(0014735)
Hexaae   
2025-12-03 10:37   
(Can you read a post "private" if I upload my games files on my OneDrive? Or only assigned dev can read those posts?)
(0014736)
DJ Mike   
2025-12-03 11:30   
(Last edited: 2025-12-03 11:33)
I can see private posts. I suggest an entire, self-contained bundle containing everything needed to run the games as you're running them.

FWIW I don't run with JIT enabled (because that itself can be problematic). But, even if I enable JIT I don't see the bug.

(0014737)
Hexaae   
2025-12-03 16:52   
Sorry guys...
Wepl was absolutely right. It was a WinUAE version issue, which I thought was highly unlikely, since I had never seen a similar case in other games (I have 374 WHD on my HD, plus others that can be launched from WB).
Changing WinUAE version the problem actually disappeared.

Still weird to me the fact it goes away if I launch first ArcadePool (WHD), or Lemmings 3 (WB), and reappears only when I launch some specific games, without any other issue ever found in other games launched before/after... Wow...
(0014738)
DJ Mike   
2025-12-03 17:00   
Toni Wilen has said the custom chipset emulation had a lot of edge case hacks prior to version 6, which means almost certainly something in one game could have changed the screen behaviour.

Anyway, I will close this report now since it is not a WHDL issue.


Issue History
2022-01-20 11:25administratorNew Issue
2022-01-20 11:25administratorStatusnew => assigned
2022-01-20 11:25administratorAssigned To => CFOU
2022-12-30 14:00HexaaeNote Added: 0012233
2025-02-15 18:23HexaaeNote Added: 0014394
2025-02-15 23:37HexaaeNote Added: 0014398
2025-11-30 07:28HexaaeNote Added: 0014718
2025-11-30 15:12DJ MikeNote Added: 0014720
2025-12-02 15:22HexaaeNote Added: 0014722
2025-12-02 15:48DJ MikeNote Added: 0014723
2025-12-02 15:49DJ MikeNote Edited: 0014723bug_revision_view_page.php?bugnote_id=14723#r1755
2025-12-02 22:42HexaaeNote Added: 0014724
2025-12-02 23:41HexaaeNote Added: 0014725
2025-12-03 08:01WeplNote Added: 0014726
2025-12-03 08:31HexaaeNote Added: 0014727
2025-12-03 09:22DJ MikeNote Added: 0014728
2025-12-03 09:37DJ MikeNote Edited: 0014728bug_revision_view_page.php?bugnote_id=14728#r1758
2025-12-03 09:38DJ MikeNote Edited: 0014728bug_revision_view_page.php?bugnote_id=14728#r1759
2025-12-03 09:41HexaaeNote Added: 0014729
2025-12-03 09:42DJ MikeNote Added: 0014730
2025-12-03 09:57DJ MikeNote Added: 0014731
2025-12-03 10:33HexaaeNote Added: 0014734
2025-12-03 10:37HexaaeNote Added: 0014735
2025-12-03 11:30DJ MikeNote Added: 0014736
2025-12-03 11:32DJ MikeNote Edited: 0014736bug_revision_view_page.php?bugnote_id=14736#r1763
2025-12-03 11:33DJ MikeNote Edited: 0014736bug_revision_view_page.php?bugnote_id=14736#r1764
2025-12-03 16:52HexaaeNote Added: 0014737
2025-12-03 17:00DJ MikeNote Added: 0014738
2025-12-03 17:00DJ MikeAssigned ToCFOU =>
2025-12-03 17:00DJ MikeStatusassigned => closed
2025-12-03 17:00DJ MikeResolutionopen => no change required
2025-12-03 17:00DJ MikeNote Edited: 0014738bug_revision_view_page.php?bugnote_id=14738#r1766