Map photos not working after packing

Discussion in 'Mapping Questions & Discussion' started by Phil25, Oct 17, 2016.

  1. Phil25

    Phil25 L1: Registered

    Messages:
    49
    Positive Ratings:
    8
    Finished your Halloween map yet? :p

    I myself am stuck at making map photos work after packing them into the bsp. They appear just fine when I have them in my game directory and I checked with VIDE and Pakrat that they're under correct path in the bsp. When packing with VIDE, I tried entering the path both with slashes and backslashes.

    I sent the map to my friends and the photos didn't appear for them either. I followed multiple tutorials on these forums and the one on Valve dev wiki and none of them seem to point out there's something I'm missing. I'm starting to think the path is too long: "/materials/vgui/maps/menu_photos_surf_10x_redone_rv7_event" "/materials/vgui/maps/map_photos_surf_10x_redone_rv7_event"
     
    Last edited: Oct 17, 2016
  2. Tumbolisu

    aa Tumbolisu  I ⌄ I 

    Messages:
    951
    Positive Ratings:
    937
    Nope, it's just right. As long as you pack both the vmt and vtf it should be fine.
     
  3. ics

    aa ics http://ics-base.net

    Messages:
    723
    Positive Ratings:
    438
    Path is too long. It should be:
    "$basetexture" "VGUI/maps/menu_photos_mapname"

    After packing map, run sv_pure 2 on console before you start the map. This will load everything from bsp instead of disk and you can see errors better.
     
  4. Tumbolisu

    aa Tumbolisu  I ⌄ I 

    Messages:
    951
    Positive Ratings:
    937
    I thought we are talking about the packing path, not the vmt basetexture path. In fact, the basetexture path has to be correct considering it works before packing.
     
  5. ics

    aa ics http://ics-base.net

    Messages:
    723
    Positive Ratings:
    438
    I dont know what we are talking, i just assumed that the fault is within the vmt path.
     
  6. Narpas

    aa Narpas Failing at Scaling

    Messages:
    222
    Positive Ratings:
    207
    I think you're naming them wrong. According to the developer wiki, it should be "menu_photos_[mapname]", whereas you are using "map_photos_[mapname]". I could be wrong, though, as I'm only reading the wiki for this. Also, you probably don't need the "/materials/".
     
    • Agree Agree x 1
  7. ics

    aa ics http://ics-base.net

    Messages:
    723
    Positive Ratings:
    438
    You are correct, me and tumbo missed the whole map instead of menu. Good catch.
     
  8. Tumbolisu

    aa Tumbolisu  I ⌄ I 

    Messages:
    951
    Positive Ratings:
    937
    Yep, how didn't I (we) notice?
    Anyways, he does need the /materials/ as that is where materials are placed. Without it, the vmt and vtf will be placed in vgui which is not a valid location to store anything.
     
  9. Phil25

    Phil25 L1: Registered

    Messages:
    49
    Positive Ratings:
    8
    I apologize, the file I have does spell "menu_photos", I was writing it from memory when creating the thread, so that can't be it.

    Also, this is the directory the files are packed into, the vmt does say "vgui\maps\menu_photos_surf_10x_redone_rv7_event"

    An important thing to point out, I was testing the map while running a dedicated server. But when I started it on the listen server, the map photos showed. So I guess my question now is whether this could be a problem when I release it to my public server.

    Thanks for the help guys, and sorry for my mistake up there.
     
  10. ics

    aa ics http://ics-base.net

    Messages:
    723
    Positive Ratings:
    438
    If the images show up on you on listen server, then the paths are correct and they are not packed in correctly. Like i said, you can load up the packed map with sv_pure 2 on before you load it and you can see if all the content comes out from the packed bsp or not. It will also show missing textures with either missing or checkerboard.
     
  11. Phil25

    Phil25 L1: Registered

    Messages:
    49
    Positive Ratings:
    8
    I did do it and nothing about menu photos showed up.
     
  12. Phil25

    Phil25 L1: Registered

    Messages:
    49
    Positive Ratings:
    8
    So I grabbed a pre-packed version and packed the menu photos again with Pakrat instead VIDE, and yup, it turned out to be a problem with the packing. I haven't tested any other tools though and seem to have the latest version of VIDE.

    Thanks for all the support with this. Perhaps I was doing something wrong when packing in VIDE but since they did show on a listen server, I can't be certain.
     
    • Like Like x 2
  13. henke37

    aa henke37

    Messages:
    1,932
    Positive Ratings:
    456
    Note that the game won't use the photos when initially downloading the map. It only uses them when it already has the bsp file downloaded.
     
  14. Tumbolisu

    aa Tumbolisu  I ⌄ I 

    Messages:
    951
    Positive Ratings:
    937
    The loading screen is not the only instance of the menu photos. Once you have joined the game, right before choosing a team, you are presented with the map info. The map info can be opened midgame using the "i" button by default.
     
    • Agree Agree x 1