Black/transparent Hammer model browser background fix

Discussion in 'Tutorials & Resources' started by Seba, Jan 3, 2015.

  1. Seba

    aa Seba DR. BIG FUCKER, PHD

    Messages:
    2,363
    Positive Ratings:
    2,365
    I see this come up every once in a while and I realised that not everyone knows that this is fixable.

    Before:

    [​IMG]

    After:

    [​IMG]

    All you have to do is open Team Fortress 2/platform/resource/sourceschemebase.res in the text editor of your choice, find Panel.BgColor (should be around line 124), and change the Blank to something else defined in the ///////COLORS/////// section at the top of the file (you can also add your own color; the numbers are RGBA). I use AchievementsDarkGray, as seen in the above image.

    Note: Panel.BgColor also defines the color of a game's console, so setting it to 255 0 0 255 will also make your console red. As far as I know there is no way to change the model browser color without changing the console color.

    EDIT 2017-08-08: Apparently Valve moved a bunch of files from /platform/resource to a .vpk, and since this isn't in /tf you can't just place the new file in tf/custom and have it work; I'm looking for a workaround but there may not be one ¯\_(ツ)_/¯
     
    • Thanks Thanks x 30
    • Like Like x 2
    Last edited: Aug 8, 2017
  2. Crash

    aa Crash func_nerd

    Messages:
    3,158
    Positive Ratings:
    4,780
  3. ades

    ades L4: Comfortable Member

    Messages:
    165
    Positive Ratings:
    54
    Ty very much
     
  4. iiboharz

    aa iiboharz Meme Queen

    Messages:
    711
    Positive Ratings:
    1,034
    holy mother of god

    thank you.

    edit: wait a sec, I just did exactly this, no result.

    is there some other step? i'm 100% sure i did it completely right.
     
    Last edited: Jan 3, 2015
  5. henke37

    aa henke37

    Messages:
    1,890
    Positive Ratings:
    443
    This is going to get wiped the next time you validate the cache right?
     
  6. Seba

    aa Seba DR. BIG FUCKER, PHD

    Messages:
    2,363
    Positive Ratings:
    2,365
    This doesn't seem to work for some people; I know stega couldn't fix it either, even after I sent him my sourcescheme.res. I have no idea what could cause this, however :C

    I think so
     
  7. iiboharz

    aa iiboharz Meme Queen

    Messages:
    711
    Positive Ratings:
    1,034
    Oh well :C - it'll be helpful for someone.
     
  8. MegapiemanPHD

    aa MegapiemanPHD Doctorate in Deliciousness

    Messages:
    939
    Positive Ratings:
    472
    I'm having the same issue. Changing this doesn't seem to do anything.
     
  9. Crash

    aa Crash func_nerd

    Messages:
    3,158
    Positive Ratings:
    4,780
    Didn't work for me right away but redoing it/ resaving it a couple times kicked it in the butt and got it working.
     
  10. takabuschik

    aa takabuschik

    Messages:
    662
    Positive Ratings:
    314
    Thanks a lot man! I have no idea how you discovered this but it's a great temporary solution!
    Any chance Valve'll fix it if we nag them enough?

    And after checking it out, apparently you can select your OWN color!
    Here's how I did this:

    1) Open hammer, make a light entity and select the color field, select the wanted color, and copy it's rgb properties (first 3 numbers) (for example: mine is dark green, being "0 20 0"

    2) In the ///////colors/////// section of the sourceschemebase.res file, paste your 3 numbers and add 255 after them, to select it being 100% opaque (I think?), all in quotations. In front of it, put your color's name (What ever name you can come up with, it really doesn't matter) in quotations.
    Mine is, for example,
    3) Open hammer's model browser to check out if it's good
    4) Repeat stages 1-3 until satisfied.
     
  11. takabuschik

    aa takabuschik

    Messages:
    662
    Positive Ratings:
    314
    EDIT: apparently my method also completely messes up some other things, most notably the ingame console. So unless you're willing to have all your stuff painted "takagreen" stick to the default colors...
     
  12. Seba

    aa Seba DR. BIG FUCKER, PHD

    Messages:
    2,363
    Positive Ratings:
    2,365
    Panel.BgColor isn't used only in the modelviewer, it sets the color for several Source app elements, including console color. Thanks for reminding me, I'll put that in the OP.
     
  13. ics

    aa ics http://ics-base.net

    Messages:
    680
    Positive Ratings:
    416
    I put this issue forward, hopefully they will fix it soon enough. I cannot get the fix to work either no matter what i change the values for.
     
  14. radarhead

    aa radarhead Hands out ratings like cheap cigars

    Messages:
    1,004
    Positive Ratings:
    543
    I had no idea that the model browser wasn't supposed to be black!
     
    • Agree Agree x 1
  15. Shogun

    Shogun L6: Sharp Member

    Messages:
    262
    Positive Ratings:
    228
    Just out of curiosity, Does anyone know if this would this work for the CSGO SDK too? A lot of the models in the model browser have this same issue.
     
  16. Seba

    aa Seba DR. BIG FUCKER, PHD

    Messages:
    2,363
    Positive Ratings:
    2,365
    I can't get csgo sdk to launch because valve, but it should (as long as you edit csgo's file).
     
    • Thanks Thanks x 1
  17. Vel0city

    aa Vel0city func_fish

    Messages:
    1,916
    Positive Ratings:
    1,536
    Anybody knows the file that does the same in the SFM model browser? It's fixed in Hammer, but not in SFM, and the sourceschemebase.res file isn't present anywhere in the SFM folder.
     
  18. Tumbolisu

    aa Tumbolisu  I ⌄ I 

    Messages:
    944
    Positive Ratings:
    922
    I think the color is broken because hammer is supposed to use the sourcescheme.res file instead of the -base one. They have different colors set for Panel.BgColor.
    Also, there is no need to specify your own color name and shit. Just throw the RGBA value right in there.
     
  19. tyler

    aa tyler snail prince, master of a ruined tower

    Messages:
    5,033
    Positive Ratings:
    3,980
    excuse me it's AchievementsDarkGrey
     
    • Thanks Thanks x 1
  20. MaccyF

    aa MaccyF Notoriously Unreliable

    Messages:
    907
    Positive Ratings:
    1,467