Mapname.txt: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(→‎Counter-Strike: Source: so much for elaborate backstories)
m (Unicodifying, replaced: [[Image: → [[File: (2))
 
(7 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{lang|Mapname.txt}}
{{lang|Mapname.txt}}{{Delisted|csgo}}
You can ship the file <code><game>/maps/<mapname>.txt</code> with your [[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__


== [[Counter-Strike: Source]] ==
=== {{css|4}} ===
[[Image:Css_mapname_txt_assault.jpg|thumb|500px|{{css}} The plain text in the file <code>cstrike/maps/cs_assault.txt</code> is shown before players choose a team.]]
{{back|Counter-Strike: Source Level Creation}}
[[File:Css_mapname_txt_assault.jpg|thumb|500px|{{css}} The plain text in the file <code>cstrike/maps/cs_assault.txt</code> is shown before players choose a team.]]
{{css}} The text in that file is displayed as plain text in the UI when choosing a team. See the screenshot on the right.
{{css}} The text in that file is displayed as plain text in the UI when choosing a team. See the screenshot on the right.
{{warning|Mapname.txt previews have a 1036 character limit; any text after the 1036th character will be cut off!}}
{{warning|Mapname.txt previews have a 1036 character limit; any text after the 1036th character will be cut off!}}
{{clr}}
{{clr}}


== [[Counter-Strike: Global Offensive]] ==
=== {{csgo|4}} ===
[[image:csgoloadscreen.jpeg|thumb|500px|{{csgo}} An edited loading screen. The content of the file <code>csgo/maps/de_testingmap.txt</code> is:
{{back|Counter-Strike: Global Offensive Level Creation}}
[[File:csgoloadscreen.jpeg|thumb|500px|{{csgo}} An edited loading screen (2016). The content of the file <code>csgo/maps/de_testingmap.txt</code> is:
<pre>
<pre>
RULESHERE
RULESHERE
Line 25: Line 28:
! Result (English)
! Result (English)
|-
|-
| <pre>COMMUNITYMAPCREDITS:
| {{pre|COMMUNITYMAPCREDITS:
any other text</pre>
any other text}}
| Bomb Scenario Mission<br><br>''#SFUI_Rules_<gamemode>_Loading''<br><br><font color='#727272'>A community map created by:</font><br><font color='#ff9844'>any other text</font>
| Bomb Scenario Mission<br><br>''#SFUI_Rules_<gamemode>_Loading''<br><br><font color='#727272'>A community map created by:</font><br><font color='#ff9844'>any other text</font>
|-
|-
| <pre>RULESHERE
| {{pre|RULESHERE
any other text</pre>
any other text}}
| Bomb Scenario Mission<br><br>''#SFUI_Rules_<gamemode>_Loading''<br><br>any other text
| Bomb Scenario Mission<br><br>''#SFUI_Rules_<gamemode>_Loading''<br><br>any other text
|-
|-
| <pre>any other text</pre>
| {{pre|any other text}}
| Loading...any other text
| Loading...any other text
|-
|-
Line 44: Line 47:
* The key word <code>COMMUNITYMAPCREDITS:</code> or <code>RULESHERE</code> '''must''' be the first word of the text file to deliver the above result!
* The key word <code>COMMUNITYMAPCREDITS:</code> or <code>RULESHERE</code> '''must''' be the first word of the text file to deliver the above result!
}}
}}
[[Category:Counter-Strike: Global Offensive]]
[[Category:Counter-Strike: Source]]
[[Category:Plain text files]]

Latest revision as of 11:11, 8 January 2024

English (en)Deutsch (de)Translate (Translate)
Icon-delisted.png
This page documents information about a game or software, Counter-Strike: Global Offensive Counter-Strike: Global Offensive, that is no longer available for purchase or download digitally.
It is covered here for historical and technical reference.

In Counter-Strike: Source Counter-Strike: Source and Counter-Strike: Global Offensive 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 Day of Defeat: Source, Counter-Strike Counter-Strike, Counter-Strike: Condition Zero Counter-Strike: Condition Zero, Day of Defeat Day of Defeat, etc.…

Counter-Strike: Source Counter-Strike: Source

Counter-Strike: Source Level Creation
Counter-Strike: Source The plain text in the file cstrike/maps/cs_assault.txt is shown before players choose a team.

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.

Warning.pngWarning:Mapname.txt previews have a 1036 character limit; any text after the 1036th character will be cut off!

Counter-Strike: Global Offensive Counter-Strike: Global Offensive

Counter-Strike: Global Offensive Level Creation
Counter-Strike: Global Offensive An edited loading screen (2016). The content of the file csgo/maps/de_testingmap.txt is:
RULESHERE

<font color='#727272'>This is an example for the Valve Developer Community</font><font color='#ff9844'> Colored Text! </font> 

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:

CS:GO Loading screen texts (de_ map, classic game mode)
<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.
Note.pngNote:
  • 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: or RULESHERE must be the first word of the text file to deliver the above result!