Titles that differ from the filename?

  • If you're asking a question make sure to set the thread type to be a question!

Pocket

Half a Lambert is better than one.
aa
Nov 14, 2009
4,694
2,579
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.
 

Ravidge

Grand Vizier
aa
May 14, 2008
1,544
2,818
You can't. This is hardcoded into the game by valve for their own maps
 

gamemaster1996

L13: Stunning Member
Sep 30, 2009
1,064
134
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:

Ravidge

Grand Vizier
aa
May 14, 2008
1,544
2,818
Thought it was in the text file you make to add pictures for your map etc

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.
 

Psy

The Imp Queen
aa
Apr 9, 2008
1,706
1,491
Gotta love Valve and their LET'S HARDCODE EVERYTHING ways.
 

YM

LVL100 YM
aa
Dec 5, 2007
7,135
6,056
valve is jerks

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!)
 

grazr

Old Man Mutant Ninja Turtle
aa
Mar 4, 2008
5,441
3,814
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!)

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.
 
Last edited:
Feb 18, 2009
640
629
Pardon me for derailing the thread, but...

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

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."
 

Sergis

L666: ])oo]v[
aa
Jul 22, 2009
1,874
1,257
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."

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?
 

A Boojum Snark

Toraipoddodezain Mazahabado
aa
Nov 2, 2007
4,775
7,669
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.
 
Feb 18, 2009
640
629
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?

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.
 

Sergis

L666: ])oo]v[
aa
Jul 22, 2009
1,874
1,257
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.

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.
 

Pocket

Half a Lambert is better than one.
aa
Nov 14, 2009
4,694
2,579
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?
 

tyler

aa
Sep 11, 2013
5,102
4,621
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.

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.
 
May 2, 2009
320
306
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.
 

Sergis

L666: ])oo]v[
aa
Jul 22, 2009
1,874
1,257
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.

that might be a good warning not to play the map :p