User Tools

Site Tools


arma3:terrain:dummy-config-for-class-cfgworlds

This is an old revision of the document!


Dummy Config for Class CfgWorlds

Binarizing terrain WRP requires config.cpp namely class CfgWorlds to be present in the same directory as the WRP file otherwise all vegetation (trees and rocks) foliage will not work in-game map (M) view.

Early 2017 Mikero changed pboProject to give warning (not an error, a warning) about this issue. Since then many people were stratching their heads of whats up as their WRP data + config were separated to two different pbos.

This can be fixed / avoided by adding dummy config to the pbo where your WRP file is located.

Terrain dummy config with WRP file:

class CfgPatches
{
	class PMC_iraq_baghdad_wrp
	{
		units[] = {};
		weapons[] = {};
		requiredVersion = 1;
		requiredAddons[] =
		{
			"A3_Map_Stratis"
		};
	};
};
 
class CfgWorlds
{
	class Stratis;
	class PMC_iraq_baghdad: Stratis
	{
		minTreesInForestSquare = 2;
		minRocksInRockSquare = 2;
	};
};

This would require no additions to your normal <TERRAIN_NAME>_cfg config.cpp entry as you obviously are already using “PMC_iraq_baghdad_wrp” as requiredAddons[] entry.

Credits from this dummy config goes to kju!

arma3/terrain/dummy-config-for-class-cfgworlds.1488797047.txt.gz · Last modified: 2017-03-06 10:44 by snakeman