Skip to content

Renaming Map Locations

Saborknight edited this page Oct 14, 2020 · 5 revisions

It is possible to change the names of certain locations on a map! For instance, the city "Kavala" on Altis could be renamed to "Spirit of the Winds" and would then be shown as that on the player's map.

Steps to renaming a location

Find out the name of the place

First we need to find out the name, and the classname of the place that we want to rename. If you're looking to change the name of an Altis location, for instance, then look for the altis_map.pbo file, under Arma 3/Addons/altis_map.pbo and check the config file for the Names class. All the location names are inside that.

Note: You'll need to convert the .bin file to a readable format using the "CfgConvert" tool from "Arma 3 Tools" (download from Steam).

Add the name to the 2BNB Extras mod

In 2bnb-extras/addons/map_locations you'll find an *.hpp file with the name of the map you want to make changes on. In the file, and inside the Name class, you can add renames to the map locations. These must be in this format:

class Kavala {
	name="My new awesome name!";
};

If the *.hpp file for the relevant map doesn't exist yet, make one. The file MUST contain:

class [map name] : CAWorld {
	class Names {
		class [location classname] {
			name="[new name of location]";
		};
	};
};

Then in the config.cpp file, you MUST put a reference to the file you just made:

class CfgWorlds {
	class CAWorld;
	#include "altis.hpp";
	#include "[map name].hpp";
};

(Replace all square brackets [] with the appropriate details)