Mapname.txt: Difference between revisions
Jump to navigation
Jump to search
Warning:Mapname.txt previews have a 1036 character limit; any text after the 1036th character will be cut off!
Note:
SirYodaJedi (talk | contribs) Tag: Undo |
SirYodaJedi (talk | contribs) m (Mapname.txt isn't a counter-strike exclusive thingy) |
||
Line 1: | Line 1: | ||
{{lang|Mapname.txt}} | {{lang|Mapname.txt}} | ||
In {{css|4}} and {{csgo|4}}, one can ship the file <code><game>/maps/<mapname>.txt</code> with their [[BSP|map file]] to display custom text for that map. | In {{css|4}} and {{csgo|4}}, one can ship the file <code><game>/maps/<mapname>.txt</code> with their [[BSP|map file]] to display custom text for that map. | ||
{{todo|So can other games, like {{dods|4}}, {{cs|4}}, {{czero|4}}, {{dod|4}}, etc.…}} | |||
__TOC__ | __TOC__ |
Revision as of 17:10, 22 June 2023
In Counter-Strike: Source and
Counter-Strike: Global Offensive, one can ship the file
<game>/maps/<mapname>.txt
with their map file to display custom text for that map.
Todo: So can other games, like
Day of Defeat: Source,
Counter-Strike,
Counter-Strike: Condition Zero,
Day of Defeat, etc.…




Counter-Strike: Source
The text in that file is displayed as plain text in the UI when choosing a team. See the screenshot on the right.

Counter-Strike: Global Offensive
The text in that file is displayed in the loading screen. The HTML tag
<font color='#FFFFFF'>...</font>
can be used for colors. Also, the following formats can be used:
<mapname>.txt content | Result (English) |
---|---|
COMMUNITYMAPCREDITS: any other text |
Bomb Scenario Mission #SFUI_Rules_<gamemode>_Loading A community map created by: any other text |
RULESHERE any other text |
Bomb Scenario Mission #SFUI_Rules_<gamemode>_Loading any other text |
any other text |
Loading...any other text |
none | Loading...YOUR TEXT FILE IS BLANK! If you intend for this space to be blank, open up '<mapname>.txt', enter a single space and save the file. |

- The #SFUI_Rules_<gamemode>_Loading mentioned in the table is actually a language and game mode specific string which is looked up from the text file
csgo/resource/csgo_<language>.txt
. On the screenshot on the right it is the string "Buy new weapons [...] Best out of 15 rounds". - The text "Bomb Scenario Mission" is game mode specific and generated from the map prefix "de_". Maps with "cs_" instead generate "Hostage Scenario Mission" and all other map names deliver "Elimination Mission", no matter the actual scenario!
- The key word
COMMUNITYMAPCREDITS:
orRULESHERE
must be the first word of the text file to deliver the above result!