<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://wiki.splashdamage.com/index.php?action=history&amp;feed=atom&amp;title=Locations</id>
	<title>Locations - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.splashdamage.com/index.php?action=history&amp;feed=atom&amp;title=Locations"/>
	<link rel="alternate" type="text/html" href="https://wiki.splashdamage.com/index.php?title=Locations&amp;action=history"/>
	<updated>2026-04-07T18:53:27Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.31.0</generator>
	<entry>
		<id>https://wiki.splashdamage.com/index.php?title=Locations&amp;diff=3337&amp;oldid=prev</id>
		<title>Ducks: Batch update</title>
		<link rel="alternate" type="text/html" href="https://wiki.splashdamage.com/index.php?title=Locations&amp;diff=3337&amp;oldid=prev"/>
		<updated>2007-11-21T15:31:36Z</updated>

		<summary type="html">&lt;p&gt;Batch update&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Locations help indicate to players the location of their team-mates and objectives. By placing an [[Entity info_location|info_location]] entity, an area of a map can be assigned a title which is then referred to by in-game text messages and prompts. Location names are localised for different language editions of the game.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&lt;br /&gt;
[[Image:Locations_area22.jpg|frame|none|Location information in use on Area 22 via team-only messages. ]]&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
&lt;br /&gt;
An [[Entity info_location|info_location]] entity should be created in or around the area to be named. It should then be assigned {{keyname|[[Entity info_location#location_name|location_name]]}} and {{keyname|[[Entity info_location#commandmap_name|commandmap_name]]}} values that match a location definition inside {{filename|locations.locstr}} (generally, {{keyname|location_name}} and {{keyname|commandmap_name}} should both be set to the same string)&lt;br /&gt;
&lt;br /&gt;
The {{keyname|[[Entity info_location#range_min|range_min]]}} and {{keyname|[[Entity info_location#range_max|range_max]]}} values should be set to encompass the named area. &lt;br /&gt;
&lt;br /&gt;
=== Files ===&lt;br /&gt;
'''Mappers are advised to use locations already defined in locations.locstr and locations.lang rather than creating their own.'''&lt;br /&gt;
&lt;br /&gt;
Location names are identified in the same manner as all other localised strings. &lt;br /&gt;
&lt;br /&gt;
* The [[Entity info_location|info_location]] entity refers to a location name, e.g. {{keyvalue|locs/area22/explosives_testing}}&lt;br /&gt;
* Location names are defined in {{filename|/base/localization/locstr/maps/locations.locstr}}, which refer to localised strings, e.g. '#str_00110103'&lt;br /&gt;
* Localised location strings are defined in {{filename|/base/localization/english/strings/locations.lang}}, e.g. 'Explosives Testing'&lt;br /&gt;
&lt;br /&gt;
So to add a new location name:&lt;br /&gt;
* Add it to {{filename|locations.lang}} (for each language) with the same name in each&lt;br /&gt;
* Refer to the {{filename|locations.lang}} entries from {{filename|locations.locstr}}&lt;br /&gt;
* Refer to the entry in {{filename|locations.locstr}} in the [[Entity info_location|info_location]] entity.&lt;br /&gt;
&lt;br /&gt;
== Localisation ==&lt;br /&gt;
[[Image:Locations_area22_deutsch.jpg|frame|none|German localised location information in use on Area 22 via team-only messages. ]]&lt;br /&gt;
&lt;br /&gt;
Localised versions of location names are stored in different folders within the {{filename|/base/localization}} directory. For example, all Polish translations lie in {{filename|/base/localization/polish}} and Italian in {{filename|/base/localization/italian}}. The file formats are identical for all languages.&lt;br /&gt;
&lt;br /&gt;
== Debugging ==&lt;br /&gt;
[[Image:Locations_area22debug1.jpg|frame|left|Location entity above Area 22's Jamming Generator]]&lt;br /&gt;
The console command {{consolecmd|g_debugLocations}} can be used to debug issues with locations. When turned on ({{consolecmd|g_debugLocations 1}}) all location entities are drawn as red cubes. The game highlights in green the one it thinks is appropriate for where the player is standing. This can be used to ensure location radii have been set up correctly.&lt;br /&gt;
&lt;br /&gt;
{{clear}}&lt;br /&gt;
[[Image:Locations_area22debug2.jpg|frame|none|Location entity near the GDF last spawn in Area 22]]&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
* [[Entity info_location|info_location]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Advanced Level Design]]&lt;/div&gt;</summary>
		<author><name>Ducks</name></author>
		
	</entry>
</feed>