halflife icon indicating copy to clipboard operation
halflife copied to clipboard

lightgamma, texgamma bug

Open hotactions opened this issue 13 years ago • 30 comments

When you change lightgamma cvar you always get killed or write more than 1 time you get client crashed this should be fixed.

also texgamma sometimes crashing client

hotactions avatar Feb 16 '13 18:02 hotactions

Please include all the information requested at https://github.com/ValveSoftware/halflife#reporting-issues.

Tele42 avatar Feb 16 '13 19:02 Tele42

@Tele42 , its easy to test yourself in game, no need to descriptive these, it has nothing todo with missleading description, its simple and imformative, i can upload record (.dem) on request.

hotactions avatar Feb 16 '13 19:02 hotactions

@hotactions, you are missing basic information like what game, what OS you are running on, and what video card/drivers are in use.

Tele42 avatar Feb 16 '13 19:02 Tele42

+1 OS details:

Processor Information: Vendor: GenuineIntel Speed: 2201 Mhz 8 logical processors 4 physical processors HyperThreading: Supported FCMOV: Supported SSE2: Supported SSE3: Supported SSSE3: Supported SSE4a: Unsupported SSE41: Supported SSE42: Supported

Network Information: Network Speed:

Operating System Version: "Fedora release 18 (Spherical Cow)" (32 bit) Kernel Name: Linux Kernel Version: 3.7.5-201.fc18.i686.PAE X Server vendor: Fedora Project X Server release: 11302000

Video Card: Driver: Intel Open Source Technology Center Mesa DRI Intel(R) Sandybridge Mobile

Driver Version: 2.1 Mesa 9.0.1 Desktop Color Depth: 24 bits per pixel Monitor Refresh Rate: 59 Hz

VendorID: 0x1002 DeviceID: 0x6742 Number of Monitors: 1 Number of Logical Video Cards: 2 Primary Display Resolution: 1366 x 768 Desktop Resolution: 1366 x 768 Primary Display Size: 13,54" x 7,64" (15,51" diag) 34,4cm x 19,4cm (39,4cm diag) Primary VRAM Not Detected

Sound card: Audio device: Intel CougarPoint HDMI

Memory: RAM: 5964 Mb

Miscellaneous: UI Language: English LANG: pl_PL.UTF-8 Microphone: Not set Total Hard Disk Space Available: 325908 Mb Largest Free Hard Disk Block: 262770 Mb

Installed software:

Recent Failure Reports:

scr_cs9

grz0 avatar Feb 16 '13 19:02 grz0

@Tele42 it doesen't matter its not issue with my software, hardware, please don't tell me what to do and i will not tell you where you should go, anyways....

Processor Information: Vendor: GenuineIntel Speed: 3477 Mhz 2 logical processors 1 physical processors HyperThreading: Supported FCMOV: Supported SSE2: Supported SSE3: Supported SSSE3: Supported SSE4a: Unsupported SSE41: Unsupported SSE42: Unsupported

Network Information: Network Speed:

Operating System Version: Windows 8 (32 bit) NTFS: Supported Crypto Provider Codes: Supported 311 0x0 0x0 0x0

Video Card: Driver: NVIDIA GeForce 8600 GTS

DirectX Driver Name:  nvd3dum.dll
Driver Version:  9.18.13.1090
DirectX Driver Version:  9.18.13.1090
Driver Date: 29 Dec 2012
DirectX Card: NVIDIA GeForce 8600 GTS
VendorID:  0x10de
DeviceID:  0x400
Number of Monitors:  1
Number of Logical Video Cards:  1
No SLI or Crossfire Detected
Primary Display Resolution:  1280 x 1024
Desktop Resolution: 1280 x 1024
Primary Display Size: 13.39" x 10.63"  (17.09" diag)
                                        34.0cm x 27.0cm  (43.4cm diag)
Primary Bus: PCI Express 16x
Primary VRAM: 512 MB
Supported MSAA Modes:  2x 4x 8x 

Sound card: Audio device: Speakers (SoundMAX Integrated D

Memory: RAM: 2047 Mb

Miscellaneous: UI Language: English Microphone: Not set Media Type: DVD Total Hard Disk Space Available: 78180 Mb Largest Free Hard Disk Block: 24832 Mb OS Install Date: Lap 01 2012 Game Controller: None detected

hotactions avatar Feb 16 '13 19:02 hotactions

@hotactions , providings you OS details with each report really helps when reproducing the bug, so thanks for including it.

alfred-valve avatar Feb 16 '13 20:02 alfred-valve

@alfred-valve thank you for examining it, i have really appreciate, i guess you need that for a logs, thanks again for your time spent coding engine.

hotactions avatar Feb 16 '13 22:02 hotactions

There's no need to reproduce this bug since lightgamma gives an unfair advantage when changed. That's the why use of this command on tournaments is restricted. Compare the screens below: the first one is with normal lightgamma (2.5) and the second one is with adjusted lightgamma (0.5). 2013-02-17_00002 2013-02-17_00003

As for the texgamma, it only changes the skybox gamma. At least, it's the only visible change I notice. Screens are with texgamma 2, 1 and 5: 2013-02-17_00004 2013-02-17_00005 2013-02-17_00006

Corre1ation avatar Feb 17 '13 07:02 Corre1ation

lightgamma is actually supposed to be locked to 2.5, there is a protection that prevents it to be changed, but that protection doesn't work correctly. Might be the same for texgamma. Maybe removing both cvars would be better.

AnAkkk avatar Feb 19 '13 21:02 AnAkkk

I think it's better to make these commands available only if sv_cheats is set to 1 as it's with timerefresh. This will remove any further discussions on use of these two commands.

Corre1ation avatar Feb 20 '13 08:02 Corre1ation

Next update will lock lightgamma and textgamma to default values unless sv_cheats is set.

I couldn't reproduce a crash when changing the lightgamma value (before my other changes) and being killed by changing that value is by design.

alfred-valve avatar Feb 28 '13 00:02 alfred-valve

If the lock is done at the same place as before, it's not going to work though. The current one doesn't work correctly.

AnAkkk avatar Feb 28 '13 00:02 AnAkkk

The lock isn't there, it is deep in the guts of the engine now.

alfred-valve avatar Feb 28 '13 00:02 alfred-valve

@alfred-valve, one's not able to reproduce this crash unless playing on a map. This is the point of exploiting this protection: you change this value in game menu, enter some server and play with adjusted lightgamma even though the value of 2.5 is still displayed in the console.

Corre1ation avatar Feb 28 '13 08:02 Corre1ation

Okay @Corre1ation , you can't change its value in cs 1.6 now anyway, so problem solved :)

alfred-valve avatar Feb 28 '13 17:02 alfred-valve

@alfred-valve, actually u can. just join ANY server, type sv_cheats 1 and then type lightgamma 0 and it works fine. i repeat, it works on ANY online servers. u shud check this and fix.

samiyjestkiy avatar Aug 29 '13 17:08 samiyjestkiy

There is code in CS that detects that change and then kills your player, so it doesn't work.

alfred-valve avatar Aug 29 '13 17:08 alfred-valve

I just tested and it does kill you ONCE, but that useless as even if lightgamma is back to 2.5, you still have the lightgamma you set before for the next rounds. What I've done is:

  1. sv_cheats 1 and lightgamma 0
  2. join a server
  3. I get instantly killed and lightgamma is set back to 2.5
  4. Next round, I respawn, and it's just as if lightgamma was still set to 0

Any reason why you don't just remove that cvar?

AnAkkk avatar Aug 29 '13 17:08 AnAkkk

yeap. u got killed ONCE and then u already have ALL TEXTURES bright so u can continue playing with /bright/ map. why wouldnt you make SV_CHEATS cvar available only for the server only? it would solve this problem/bug.

samiyjestkiy avatar Aug 29 '13 18:08 samiyjestkiy

It wouldn't solve this problem as the client can't know whether sv_cheats is enabled or not on the server, as there isn't a replicated cvar mechanism on HL1.

AnAkkk avatar Aug 29 '13 18:08 AnAkkk