#1 2020-09-27 07:29:10

Black Mamba
Member
Canada
Reputation: +1449
Registered: 2012-12-01
Posts: 4,235
Windows 10 Chrome 85.0

Trying to solve the black screenshot problem in Windows 10

So I've been trying to find a way to make my game take screenshots while in game, but the screenshots in my ScreenShots folder are black. In addition to this, using the pb_getss command returns black screenshots in my client pb folder.

I am using Windows 10 Home, version 10.0.18362.
BF1942 is a full game installation (v1.61) from BF-League, not Origin or the SiMPLE HD version.
My PunkBuster client version is 2.110, the last stable version I believe. I do not have problems connecting to a test Internet server which uses server version 1.457 of PB, everything there seems to work but the PB screens themselves, whether they are taken client side or server-side with the !pb command.

I have tried many things to make the screenshots appear properly. The closest I got to making the PunkBuster screens appear was to get pink PB screenshots. Not much of an upgrade but still different from black screenshots.

What I have tried:

1) Turning off my antivirus: no effect
2) Turning off Administrator mode for the BF1942.exe: no effect
3) Turning off Compatibility Mode for BF1942.exe: no effect
4) Trying various Compatibility Modes: no effect, except for the folder in which local PB screenshots are saved.
5) Tried different resolutions and color depths: pink screenshots, when using 1920x1080x32 rather than 1920x1080x16. Changing the third number from 16 to 32 returns pink screenshots. So color depth seems to have a limited effect on PB screens. Nothing changes for screenshots in the ScreenShots folder.
6) Full permission are applied for the Battlefield 1942 main folder: no effect
7) Adding PnKBstrA.exe and PnkBstrB.exe to Windows Firewall as exceptions: no effect

This leads me to believe that the issue with black screenshots in Windows 10 is caused by the OS itself, although I haven't explored resetting my GFX card settings and drivers, but I doubt this is what it causing the issue. Most likely there seems to be some sort of permissions problem preventing PB and non-PB screenshots to be taken in BF1942.exe, and I don't know how to solve it.

If anyone has used Windows 10 and has successfully been able to take PB screens and normal TGA screenshots of themselves in-game, please let us know how you made it work. Thanks.

Last edited by Black Mamba (2020-09-27 07:36:55)

Offline

    Positive reputation 0   Negative reputation 0

#2 2020-09-27 09:04:33

henk
Administrator
Netherlands
Reputation: +251
Registered: 2018-07-07
Posts: 322
Windows 10 Chrome 85.0

Re: Trying to solve the black screenshot problem in Windows 10

I actually explained this already on this forum:
https://team-simple.org/forum/viewtopic … 28#p156428

Offline

    Positive reputation 0   Negative reputation 0

#3 2020-09-27 09:06:16

henk
Administrator
Netherlands
Reputation: +251
Registered: 2018-07-07
Posts: 322
Windows 10 Chrome 85.0

Re: Trying to solve the black screenshot problem in Windows 10

if someone has a webserver i can support you with a php-webpage for bf42-tga conversion to png/jpg

Offline

    Positive reputation 0   Negative reputation 0

#4 2020-09-27 09:09:52

llzkk
Player
Reputation: +46
Registered: 2020-07-19
Posts: 76
Windows 10 Firefox 80.0

Re: Trying to solve the black screenshot problem in Windows 10

I have a bit different problem on Win 7, where my .tga screenshot is fully transparent, although this problem is easy to fix, thanks to nice tool from microsoft called texconv smile Texture Tool

So maybe you should play a bit with this tool and you may be able to fix this case also wink

Hidden text

If someone wants the code (works for me) to fix .tga transparent problem:

texconv *.tga -ft PNG 

Put this code in .bat file, and then this .bat file + texconv.exe in bf's screenshots folder

Offline

    Positive reputation 0   Negative reputation 0

#5 2020-09-27 10:27:22

ziba128
Member
Reputation: +463
Location: EaglesNest_Safe
Registered: 2012-10-14
Posts: 1,271
Website
Android Opera 60.0

Re: Trying to solve the black screenshot problem in Windows 10

Why do you refuse to use any program for screen capture? big_smile They all work, including Shadowplay (if you got Nvidia GPU).

Offline

    Positive reputation 0   Negative reputation 0

#6 2020-09-27 14:54:14

Black Mamba
Member
Canada
Reputation: +1449
Registered: 2012-12-01
Posts: 4,235
OS X Safari 13.1

Re: Trying to solve the black screenshot problem in Windows 10

henk wrote:

I actually explained this already on this forum:
https://team-simple.org/forum/viewtopic … 28#p156428

Thanks, can you explain in more details how to invert the alpha channel? Also, would this work for PB screens?

Offline

    Positive reputation 0   Negative reputation 0

#7 2020-09-27 20:19:42

Black Mamba
Member
Canada
Reputation: +1449
Registered: 2012-12-01
Posts: 4,235
OS X Safari 13.1

Re: Trying to solve the black screenshot problem in Windows 10

Using the WineD3D emulator I was able to make the game take in-game TGA screens that aren’t black, but the PB screens still refuse to work. henk would you like to take a look at this? I’m sure the answer can’t be too hard to figure out.

Offline

    Positive reputation 0   Negative reputation 0

#8 2020-09-27 20:40:37

llzkk
Player
Reputation: +46
Registered: 2020-07-19
Posts: 76
Windows 10 Firefox 80.0

Re: Trying to solve the black screenshot problem in Windows 10

Problem with PB screenshots is nothing new, it's been discussed on many forums about different games like BF2, BF3, BF4, COD, America's Army etc etc. and usually it can be problem with the system version, drivers or other anomalies that can be hard to find or guess. Black PB screenshots were first considered as method of cheaters who wanted to hide theirs *secrets* smile Although as I mentioned above it turns out, that it is not actually cheaters case but deeper problem.

Last edited by llzkk (2020-09-27 20:41:11)

Offline

    Positive reputation 0   Negative reputation 0

#9 2020-09-28 12:23:03

Arkos
Sedmin
Switzerland
Reputation: +2779
Registered: 2014-06-06
Posts: 7,044
Windows 7 Chrome 85.0

Re: Trying to solve the black screenshot problem in Windows 10

...

One problem could be, if the game is installed in ProgramFiles Folder, which is highly restricted in windows 10.

You could try installing it in C:\Games\...

...

Offline

    Positive reputation 0   Negative reputation 0

#10 2020-09-28 23:44:59

Black Mamba
Member
Canada
Reputation: +1449
Registered: 2012-12-01
Posts: 4,235
OS X Safari 13.1

Re: Trying to solve the black screenshot problem in Windows 10

Arkos wrote:

...

One problem could be, if the game is installed in ProgramFiles Folder, which is highly restricted in windows 10.

You could try installing it in C:\Games\...

...

I tried moving the game folder to a location outside ProgramFiles, PB screens are still black.

Offline

    Positive reputation 0   Negative reputation 0

#11 2020-09-29 17:51:09

Cicero_01
Member
United States
Reputation: +58
Registered: 2013-12-20
Posts: 106
Windows 10 Chrome 85.0

Re: Trying to solve the black screenshot problem in Windows 10

My Windows 10 machine displays .TGA files in Picasa Photo Viewer just fine but this is an old and unsupported app that came with Picasa, also unsupported anymore. My TGAs are blank in Paint, Irfan View, GIMP and such but they do show up in VLC Media Player from www.videolan.org.
It's basically a video display app but it also works for these still shots in TGA format. I use it all the time for video but this might solve your problem.

Offline

    Positive reputation 0   Negative reputation 0

#12 2020-10-18 09:14:06

llzkk
Player
Reputation: +46
Registered: 2020-07-19
Posts: 76
Windows 10 Firefox 81.0

Re: Trying to solve the black screenshot problem in Windows 10

So I think, this is what I've said,  it's actually a deeper problem. I bought recently a new laptop with ryzen (vega igpu) + radeon 5500M, and screenshots are also broken on win 10, although they're not completely transparent but broken in other way. Check some screens below:


dGPU Radeon 5500M:

broken 1:
b-dgpu1
fixed 1:
f-dgpu1
broken 2:
b-dgpu2
fixed 2:
f-dgpu2



Vega iGPU:

broken 1:
b-igpu1
fixed 1:
f-igpu1
broken 2:
b-igpu2
fixed 2:
f-igpu2

On dedicated gpu you can clearly spot the difference, on the other hand on integrated gpu you may not be able to see it at first glance, although on broken screenshots some elements like HUD are slighty brighter, so that means, they're a bit transparent.

Offline

    Positive reputation 0   Negative reputation 0

Board footer