Titles that differ from the filename?

Discussion in 'Mapping Questions & Discussion' started by Pocket, Jun 22, 2011.

  1. Pocket

    aa Pocket func_croc

    Messages:
    4,489
    Positive Ratings:
    2,215
    I know it's possible; I just don't know how. pl_goldrush shows up as "Gold Rush", for example, and pl_badwater is "Badwater Basin." I want to do something like that. I thought it might be in the Map Properties somewhere, but no dice.
     
  2. Ravidge

    aa Ravidge Grand Vizier

    Messages:
    1,544
    Positive Ratings:
    2,492
    You can't. This is hardcoded into the game by valve for their own maps
     
  3. gamemaster1996

    gamemaster1996 L13: Stunning Member

    Messages:
    1,065
    Positive Ratings:
    131
    Thought it was in the text file you make to add pictures for your map etc.

    By which I meant i thought there was a command for it in a file i remember being told to create along with a map. My memory sucks though so I may be wrong.
     
    Last edited: Jun 23, 2011
  4. Ravidge

    aa Ravidge Grand Vizier

    Messages:
    1,544
    Positive Ratings:
    2,492
    The menu photos are just a vtf and vmt pair.
    The chalkboard text can be edited with a txt.
    The loading screen mapname can not be edited.

    None of these three have anything to do with each other. I don't know what text file you're referring to.
     
  5. Psy

    aa Psy The Imp Queen

    Messages:
    1,705
    Positive Ratings:
    1,466
    Gotta love Valve and their LET'S HARDCODE EVERYTHING ways.
     
    • Thanks Thanks x 2
  6. tyler

    aa tyler snail prince, master of a ruined tower

    Messages:
    5,032
    Positive Ratings:
    3,978
  7. YM

    aa YM LVL100 YM

    Messages:
    7,099
    Positive Ratings:
    5,741
    Actually, they're not. When I was talking to Robin about the name for mann manor they were more than happy to hardcode the name for me so the map could just be cp_manor (I'd suggested cp_mann but they thought manor was better, and they were right!)
     
  8. grazr

    aa grazr Old Man Mutant Ninja Turtle

    Messages:
    5,436
    Positive Ratings:
    3,561
    That's all very well for you and your officialised map(s). Less "so well" for the hundreds of custom map makers and their unofficial maps.

    It's their hard-coding approach to everything that has resulted in the broken CTF modes and inability to customise modes like bag courrier or domination. It was nice of them to provide an A/D CTF HUD for our contest, though.
     
    • Thanks Thanks x 1
    Last edited: Jun 23, 2011
  9. LeSwordfish

    aa LeSwordfish semi-trained quasi-professional

    Messages:
    4,105
    Positive Ratings:
    6,003
    I could make a joke about how YM cant remember what not being officialised feels like, but i cant figure out to phrase it and i'm still a little bit scared of him anyway
     
    • Thanks Thanks x 3
  10. Mick-a-nator

    aa Mick-a-nator

    Messages:
    640
    Positive Ratings:
    314
    Pardon me for derailing the thread, but...

    YM isn't to be feared! His forum comments and chat messages are usually just straight to the point is all. I recommend following him on Twitter to get a better idea of him. :)

    Back to he thread topic, sure it's annoying to have so much stuff hard-coded, but the extra work to allow your average joe to make all these changes would be mammoth*, and the result would probably be baffling to Mr. J. Average too.

    * "Welcome to Team Fortress 2. After 15 years in development, hopefully, you will all have forgotten about Half Life 2: Episode 3."
     
  11. Sergis

    aa Sergis L666: ])oo]v[

    Messages:
    1,871
    Positive Ratings:
    1,130
    wouldnt it actualy be less work to make a bit of code that reads the mapname from a text file and make textfiles later instead of compiling every single mapname into the code?
     
  12. A Boojum Snark

    aa A Boojum Snark Toraipoddodezain Mazahabado

    Messages:
    4,769
    Positive Ratings:
    5,527
    I stand by my reason for this that I've had ever since the beginning. They can NOT make it available to everyone, simply because it is the loading screen. The game needs to put up the name of the map before it reads the map. So it can't be anything in the VMF or otherwise embedded in the BSP because it won't know it before it is too late.
     
    • Thanks Thanks x 1
  13. Mick-a-nator

    aa Mick-a-nator

    Messages:
    640
    Positive Ratings:
    314
    The code to read a map file name, and output it to the screen is going to be pretty small compared to the code that can read the map file name, find the correct associated txt file, find the correct data in the file, process the data, and output it to the screen. Also, I was encompassing everything that people complain about being hard-coded and exaggerating to convey my point. Boojum's point explains this example excellently.
     
  14. Sergis

    aa Sergis L666: ])oo]v[

    Messages:
    1,871
    Positive Ratings:
    1,130
    the initial code would be a bit more complex, but adding subsequent maps would be simplier. with big enough amount of maps, it'd outweigh the extra coding work.
     
  15. Pocket

    aa Pocket func_croc

    Messages:
    4,489
    Positive Ratings:
    2,215
    Couldn't the compiler be changed to put some metadata near the beginning of the file — similar to how video files say what codec to use — and set up the game to read that metadata along with the filename? Or is there some strict order to the way data is stored in BSP files that would get messed up?
     
  16. tyler

    aa tyler snail prince, master of a ruined tower

    Messages:
    5,032
    Positive Ratings:
    3,978
    Kinda like how it doesn't know to put the map photos up on the loading scre--

    Wait a second

    I think it might be possible

    Just like the map photos, it could easily be something that takes effect only the second time you play the map. Not hard at all.

    Although I don't like the idea of people spoofing map titles.
     
  17. Micnax

    aa Micnax I maek map

    Messages:
    2,049
    Positive Ratings:
    1,372
    Maybe have the option for it to ignore maps that use officialized titles?
     
  18. tyler

    aa tyler snail prince, master of a ruined tower

    Messages:
    5,032
    Positive Ratings:
    3,978
  19. Tom Hoen

    Tom Hoen L6: Sharp Member

    Messages:
    320
    Positive Ratings:
    245
    I can already see "you're on your way to pl <insert insult about your mama>"

    OR

    "you're on your way to pl JuStIn BiEbEr FeVeR"

    OR

    "you're on your way to pl please comment and rate my new video on http://....."

    There should be somekind of sensor to prevent these.
     
    • Thanks Thanks x 1
  20. Sergis

    aa Sergis L666: ])oo]v[

    Messages:
    1,871
    Positive Ratings:
    1,130
    that might be a good warning not to play the map :p