ValveSoftware / halflife

Half-Life 1 engine based games
Other
3.72k stars 625 forks source link

[GoldSource - Bug] The game doesn't update custom.hpk when cl_logofile is set in a config #1052

Closed ghost closed 11 years ago

ghost commented 11 years ago

My steps (why I think that it's a problem): I reinstalled CS 1.6, then I placed my userconfig.cfg with cl_logofile "smiley" in cstrike folder, then I launched the game and made sure that current Spraypaint is "Smiley" in Options: image Then I started a new game and sprayed my logo on a wall. I expected to see "Smiley" spraypaint, but I saw default "lambda" spraypaint instead.

I found out that \common\Half-Life\cstrike\custom.hpk file wasn't created, so I went to Options, changed spraypaint to "skull", pressed OK, relaunched the game. custom.hpk was generated and when I used Spraypaint I saw what I excected to see (Skull logo). Then I executed cl_logofile "lambda" in console and tried to paint again, but I saw "Skull" logo instead of "lambda" and in Options the game said that current logo was "Lambda"

so the game doesn't update/create custom.hpk when I change cl_logofile using Console or Config files

My suggestion:

alfred-valve commented 11 years ago

you need to use the options UI to change sprays, it has extra logic to generate a valid tempdecal.wad , you can't just use the cvars.