Making map name different from filename?

Discussion in 'Mapping Questions & Discussion' started by Floof Waffles, Mar 4, 2017.

  1. Floof Waffles

    Floof Waffles L6: Sharp Member

    Messages:
    256
    Positive Ratings:
    156
    Hi, this is a bit of a weird question... but one of the things that breaks immersion is when I see, say, an official map which is referred to, in game, as say "cp_terminal_velocity_rc2" (obviously not actually an official map). This can be seen in screenshots and the server browser (Quickplay). (It's a weird niggle I have, I know)

    But some maps display different names which are more realistic, for example "cp_terminal_velocity_rc2" would be displayed as "Terminal Velocity" in the Quickplay menu or screenshots.
    How do you edit the map name in this way? I know that, if you go into Tools > Map Properties there are two options: Name and Map Description/Title. I highlighted the Name box, and it gave me a similar description to the one used for naming entities - so I definitely don't want to do that, if it's what I think it is. The other one, Map Description/Title, then is the most likely contender - however, as I couldn't find any documents about it online, and I'm new to mapping and really don't want to break anything (I understand that a lot of features in Hammer are unfinished and unutilized).
     
  2. Izotope

    aa Izotope Never releases maps

    Messages:
    619
    Positive Ratings:
    584
    These different map names are hardcoded into the game.
     
    • Thanks Thanks x 1
  3. Crowbar

    aa Crowbar perfektoberfest

    Messages:
    1,439
    Positive Ratings:
    1,186
    The game tries its best to guess a good name for the loading screen. It takes away the gamemode indentifier (only those it knows, won't work with new ones you invent or unofficial that haven't been considered; PD, for instance, has), then turns all underscores into spaces. That however still shows version number, but the deal's here just as with the gamemode prefix - it can be absent and we can't do much about it.
    Those maps however that have it actually different from the filename (like, cp_gravelpit has Gravel Pit and not Gravelpit) do have it hardcoded/
     
    • Thanks Thanks x 1
  4. Floof Waffles

    Floof Waffles L6: Sharp Member

    Messages:
    256
    Positive Ratings:
    156
    I see. Thank you!
     
  5. Floof Waffles

    Floof Waffles L6: Sharp Member

    Messages:
    256
    Positive Ratings:
    156
    Oh, and one more thing: Is it possible to change the position of the camera that shows the map as soon as you join the game?
     
  6. Idolon

    aa Idolon the worst admin

    Messages:
    1,548
    Positive Ratings:
    4,437
    Spectator cameras can be placed with info_observer_point. They have a setting for which one comes up first, while the rest show up in the order you place them.
     
    • Thanks Thanks x 1
  7. killohurtz

    aa killohurtz Distinction in Applied Carving

    Messages:
    1,005
    Positive Ratings:
    1,157
    • Thanks Thanks x 1
  8. Floof Waffles

    Floof Waffles L6: Sharp Member

    Messages:
    256
    Positive Ratings:
    156
    Okay! Thanks again! =D
     
  9. henke37

    aa henke37

    Messages:
    1,909
    Positive Ratings:
    446
    The thing with the loading screen and map select screen is that they run before the map has loaded. You can't put the name override in the map file. And surprise, surprise, only Valve has the power to setup name overrides.
     
    • Thanks Thanks x 1
  10. Floof Waffles

    Floof Waffles L6: Sharp Member

    Messages:
    256
    Positive Ratings:
    156
    Sorry for bump, but if this is how the map name is handled, what's the Map Description/Title box for?
     
  11. Crowbar

    aa Crowbar perfektoberfest

    Messages:
    1,439
    Positive Ratings:
    1,186
    My guess is that source is full of redundancy and such stuff that was added but implemented the other way or not at all.
    Also, mere hours isn't quite a bump.
     
    • Thanks Thanks x 1
  12. Izotope

    aa Izotope Never releases maps

    Messages:
    619
    Positive Ratings:
    584
    Didn't Half-Life 2 use that keyval to display new chapters on screen?
     
  13. ics

    aa ics http://ics-base.net

    Messages:
    691
    Positive Ratings:
    419
    Map Description/Title is a remnant from older games. TF2 doesn't use it. As others said, only Valve can apply different loading screen names vs map name and they have done so for the added community maps too.
     
  14. Pocket

    aa Pocket func_croc

    Messages:
    4,489
    Positive Ratings:
    2,219
    Even if they wanted to use that field to determine what's displayed in the loading screen, they couldn't, since the name appears before the game even starts loading the file into memory (or, in the case of server-hosted maps, starts downloading them) and the output freezes until it's done loading.
     
    • Thanks Thanks x 1
Tags: