User Tools

Site Tools


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

ArmA 3 Dummy Config for Class CfgWorlds

ArmA 3 Forum, ArmA 3, ArmA 3 Config, ArmA 3 Missions, ArmA 3 3D Modeling, ArmA 3 Scripting, ArmA 3 Terrain, ArmA 3 Texturing, ArmA 3 Tools

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 scratching their heads of whats up as their WRP data + config were separated to two different pbos.

Early August 2017 Mikero again changed pboProject to warn you about missing worldName in config next to WRP file.

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
	{
		// pboProject requires
		worldName = "\pmc\pmc_iraq_baghdad\pmc_iraq_baghdad.wrp";
 
		// arma3 requires for forests to appear in mapview (M)
		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.txt · Last modified: 2024/08/02 17:24 by snakeman

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki

All PMC web site download services are temporarily suspended until web site yearly fees have been recovered, want to download addons/mods? Then Support PMC.

If you are grateful for all the work PMC has done in the past 25 years, use Support PMC page.