User Tools

Site Tools


arma3:terrain:separate-data-layers

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
arma3:terrain:separate-data-layers [2017/02/10 09:35] – created separate-data-layers initial page. snakemanarma3:terrain:separate-data-layers [2024/08/02 21:41] (current) – links added. snakeman
Line 1: Line 1:
 ====== ArmA 3 Terrain Separate Data\Layers into Smaller PBOs ====== ====== ArmA 3 Terrain Separate Data\Layers into Smaller PBOs ======
 +
 +[[https://www.pmctactical.org/forum/viewforum.php?f=68|ArmA 3 Forum]], [[:arma3|ArmA 3]], [[arma3:config|ArmA 3 Config]], [[arma3:missions|ArmA 3 Missions]], [[arma3:modeling|ArmA 3 3D Modeling]], [[arma3:scripting|ArmA 3 Scripting]], [[arma3:terrain|ArmA 3 Terrain]], [[arma3:texturing|ArmA 3 Texturing]], [[arma3:tools|ArmA 3 Tools]]
  
 **How to separate your large ArmA 3 terrain Data\Layers PBO into individual PBO files.** **How to separate your large ArmA 3 terrain Data\Layers PBO into individual PBO files.**
Line 10: Line 12:
 ====== _run_Separate_WRP_Dir.bat ====== ====== _run_Separate_WRP_Dir.bat ======
  
-This batch file does all the heavy lifting when separating your terrain addon directory. In our example we use "pmc_iraq_baghdad" as our addon name. Put this bat into "pmc_iraq_baghdad\Source\" directory.+This batch file does all the heavy lifting when separating your terrain addon directory. In our example we use "pmc" as our mod / group tag and "pmc_iraq_baghdad" as our addon name. Put this bat into "pmc\pmc_iraq_baghdad\Source\" directory.
  
-You only need to edit "set TERRAIN=" to replace our terrain name with yours, rest of the batch file is OK.+You only need to edit "set MODTAG=" for mod / group tag and "set TERRAIN=" to replace our terrain name with yours, rest of the batch file is OK.
  
 **_run_Separate_WRP_Dir.bat:** **_run_Separate_WRP_Dir.bat:**
 <code dos> <code dos>
 @echo off @echo off
 +set MODTAG=pmc
 set TERRAIN=pmc_iraq_baghdad set TERRAIN=pmc_iraq_baghdad
 rem back out of Source and terrain directorys rem back out of Source and terrain directorys
Line 23: Line 26:
 rem create data\ for whatever data stuff you got rem create data\ for whatever data stuff you got
 md %TERRAIN%_data md %TERRAIN%_data
-echo pmc\%TERRAIN%_data >%TERRAIN%_data\$PBOPREFIX$+echo %MODTAG%\%TERRAIN%_data >%TERRAIN%_data\$PBOPREFIX$
 echo class CfgPatches{class %TERRAIN%_data{units[] = {};weapons[] = {};requiredVersion = 1;requiredAddons[] = {};};}; >%TERRAIN%_data\config.cpp echo class CfgPatches{class %TERRAIN%_data{units[] = {};weapons[] = {};requiredVersion = 1;requiredAddons[] = {};};}; >%TERRAIN%_data\config.cpp
  
 rem create layers\ for RVMATs rem create layers\ for RVMATs
 md %TERRAIN%_data_layers md %TERRAIN%_data_layers
-echo pmc\%TERRAIN%_data_layers >%TERRAIN%_data_layers\$PBOPREFIX$+echo %MODTAG%\%TERRAIN%_data_layers >%TERRAIN%_data_layers\$PBOPREFIX$
 echo class CfgPatches{class %TERRAIN%_data_layers{units[] = {};weapons[] = {};requiredVersion = 1;requiredAddons[] = {};};}; >%TERRAIN%_data_layers\config.cpp echo class CfgPatches{class %TERRAIN%_data_layers{units[] = {};weapons[] = {};requiredVersion = 1;requiredAddons[] = {};};}; >%TERRAIN%_data_layers\config.cpp
 rem move RVMATs rem move RVMATs
Line 44: Line 47:
 md %TERRAIN%_data_layers_08 md %TERRAIN%_data_layers_08
  
-echo pmc\%TERRAIN%_data_layers_00 >%TERRAIN%_data_layers_00\$PBOPREFIX$ +echo %MODTAG%\%TERRAIN%_data_layers_00 >%TERRAIN%_data_layers_00\$PBOPREFIX$ 
-echo pmc\%TERRAIN%_data_layers_01 >%TERRAIN%_data_layers_01\$PBOPREFIX$ +echo %MODTAG%\%TERRAIN%_data_layers_01 >%TERRAIN%_data_layers_01\$PBOPREFIX$ 
-echo pmc\%TERRAIN%_data_layers_02 >%TERRAIN%_data_layers_02\$PBOPREFIX$ +echo %MODTAG%\%TERRAIN%_data_layers_02 >%TERRAIN%_data_layers_02\$PBOPREFIX$ 
-echo pmc\%TERRAIN%_data_layers_03 >%TERRAIN%_data_layers_03\$PBOPREFIX$ +echo %MODTAG%\%TERRAIN%_data_layers_03 >%TERRAIN%_data_layers_03\$PBOPREFIX$ 
-echo pmc\%TERRAIN%_data_layers_04 >%TERRAIN%_data_layers_04\$PBOPREFIX$ +echo %MODTAG%\%TERRAIN%_data_layers_04 >%TERRAIN%_data_layers_04\$PBOPREFIX$ 
-echo pmc\%TERRAIN%_data_layers_05 >%TERRAIN%_data_layers_05\$PBOPREFIX$ +echo %MODTAG%\%TERRAIN%_data_layers_05 >%TERRAIN%_data_layers_05\$PBOPREFIX$ 
-echo pmc\%TERRAIN%_data_layers_06 >%TERRAIN%_data_layers_06\$PBOPREFIX$ +echo %MODTAG%\%TERRAIN%_data_layers_06 >%TERRAIN%_data_layers_06\$PBOPREFIX$ 
-echo pmc\%TERRAIN%_data_layers_07 >%TERRAIN%_data_layers_07\$PBOPREFIX$ +echo %MODTAG%\%TERRAIN%_data_layers_07 >%TERRAIN%_data_layers_07\$PBOPREFIX$ 
-echo pmc\%TERRAIN%_data_layers_08 >%TERRAIN%_data_layers_08\$PBOPREFIX$+echo %MODTAG%\%TERRAIN%_data_layers_08 >%TERRAIN%_data_layers_08\$PBOPREFIX$
  
 echo class CfgPatches{class %TERRAIN%_data_layers_00{units[] = {};weapons[] = {};requiredVersion = 1;requiredAddons[] = {};};}; >%TERRAIN%_data_layers_00\config.cpp echo class CfgPatches{class %TERRAIN%_data_layers_00{units[] = {};weapons[] = {};requiredVersion = 1;requiredAddons[] = {};};}; >%TERRAIN%_data_layers_00\config.cpp
Line 65: Line 68:
  
 rem move the actual satellite tile PAA files... rem move the actual satellite tile PAA files...
-move %TERRAIN%\data\layers\s_00?_0*.%TERRAIN%_data_layers_00\ +move %TERRAIN%\data\layers\s_00?_?*.paa %TERRAIN%_data_layers_00\ 
-move %TERRAIN%\data\layers\m_00?_0*.%TERRAIN%_data_layers_00\+move %TERRAIN%\data\layers\m_00?_?*.paa %TERRAIN%_data_layers_00\
  
-move %TERRAIN%\data\layers\s_01?_0*.%TERRAIN%_data_layers_01\ +move %TERRAIN%\data\layers\s_01?_?*.paa %TERRAIN%_data_layers_01\ 
-move %TERRAIN%\data\layers\m_01?_0*.%TERRAIN%_data_layers_01\+move %TERRAIN%\data\layers\m_01?_?*.paa %TERRAIN%_data_layers_01\
  
-move %TERRAIN%\data\layers\s_02?_0*.%TERRAIN%_data_layers_02\ +move %TERRAIN%\data\layers\s_02?_?*.paa %TERRAIN%_data_layers_02\ 
-move %TERRAIN%\data\layers\m_02?_0*.%TERRAIN%_data_layers_02\+move %TERRAIN%\data\layers\m_02?_?*.paa %TERRAIN%_data_layers_02\
  
-move %TERRAIN%\data\layers\s_03?_0*.%TERRAIN%_data_layers_03\ +move %TERRAIN%\data\layers\s_03?_?*.paa %TERRAIN%_data_layers_03\ 
-move %TERRAIN%\data\layers\m_03?_0*.%TERRAIN%_data_layers_03\+move %TERRAIN%\data\layers\m_03?_?*.paa %TERRAIN%_data_layers_03\
  
-move %TERRAIN%\data\layers\s_04?_0*.%TERRAIN%_data_layers_04\ +move %TERRAIN%\data\layers\s_04?_?*.paa %TERRAIN%_data_layers_04\ 
-move %TERRAIN%\data\layers\m_04?_0*.%TERRAIN%_data_layers_04\+move %TERRAIN%\data\layers\m_04?_?*.paa %TERRAIN%_data_layers_04\
  
-move %TERRAIN%\data\layers\s_05?_0*.%TERRAIN%_data_layers_05\ +move %TERRAIN%\data\layers\s_05?_?*.paa %TERRAIN%_data_layers_05\ 
-move %TERRAIN%\data\layers\m_05?_0*.%TERRAIN%_data_layers_05\+move %TERRAIN%\data\layers\m_05?_?*.paa %TERRAIN%_data_layers_05\
  
-move %TERRAIN%\data\layers\s_06?_0*.%TERRAIN%_data_layers_06\ +move %TERRAIN%\data\layers\s_06?_?*.paa %TERRAIN%_data_layers_06\ 
-move %TERRAIN%\data\layers\m_06?_0*.%TERRAIN%_data_layers_06\+move %TERRAIN%\data\layers\m_06?_?*.paa %TERRAIN%_data_layers_06\
  
-move %TERRAIN%\data\layers\s_07?_0*.%TERRAIN%_data_layers_07\ +move %TERRAIN%\data\layers\s_07?_?*.paa %TERRAIN%_data_layers_07\ 
-move %TERRAIN%\data\layers\m_07?_0*.%TERRAIN%_data_layers_07\+move %TERRAIN%\data\layers\m_07?_?*.paa %TERRAIN%_data_layers_07\
  
-move %TERRAIN%\data\layers\s_08?_0*.%TERRAIN%_data_layers_08\ +move %TERRAIN%\data\layers\s_08?_?*.paa %TERRAIN%_data_layers_08\ 
-move %TERRAIN%\data\layers\m_08?_0*.%TERRAIN%_data_layers_08\+move %TERRAIN%\data\layers\m_08?_?*.paa %TERRAIN%_data_layers_08
 + 
 +rem delete existing layers\ dir including the remaining now obsolete .PNG files 
 +rd /q /s %TERRAIN%\data\layers\
  
 pause pause
Line 103: Line 109:
 See how to use [[arma3:batch-file-examples#rvmat_files|MoveObject for RVMATs in batch file]]. Put these bat files into pmc_iraq_baghdad_data_layers\ directory. See how to use [[arma3:batch-file-examples#rvmat_files|MoveObject for RVMATs in batch file]]. Put these bat files into pmc_iraq_baghdad_data_layers\ directory.
  
-Here is our example replacement text file, you obviously need to make your own using paths to your terrain.+Here is our example replacement text file, you obviously need to make your own using paths to your terrain (both mod tag and addon name).
  
 RVMAT **_MASTER_paths.txt:** RVMAT **_MASTER_paths.txt:**
Line 133: Line 139:
 WRP needs its RVMAT paths changed because we moved RVMATs to a new directory / addon. WRP needs its RVMAT paths changed because we moved RVMATs to a new directory / addon.
  
-It is basically the same as what we did for individual RVMAT files, see [[arma3:batch-file-examples#pew_wrp_files|MoveObject for WRP in batch file]] for file name details.+It is basically the same as what we did for individual RVMAT files, see [[arma3:batch-file-examples#wrp_files|MoveObject for WRP in batch file]] for file name details.
  
-If you forgot to change RVMAT paths in WRP file, then none of the above works.+WRP **_MASTER_paths.txt:** 
 +<code> 
 +pmc\pmc_iraq_baghdad\data\layers pmc\pmc_iraq_baghdad_data_layers 
 +</code> 
 + 
 +If you forget to change RVMAT paths in WRP file, then none of the above works.
  
  
Line 149: Line 160:
 ====== Buldozer ====== ====== Buldozer ======
  
-In this separated / split setup terrain builder cannot find the RVMAT files, it attempts to find them from pmc_iraq_baghdad\data\layers\ directory, but instead they have been moved to pmc_iraq_baghdad_data_layers\ dir instead.+In this separated / split setup terrain builder + buldozer cannot find the RVMAT files, it attempts to find them from pmc_iraq_baghdad\data\layers\ directory, but instead they have been moved to pmc_iraq_baghdad_data_layers\ dir.
  
-We don't really care about buldozer use but realize you might. So basically you need to fix by moving the RVMAT files back to pmc_iraq_baghdad\data\layers\ directory.+You can easily fix this by making a symlink "layers" directory into pmc_iraq_baghdad\data\ directory. 
 + 
 +**_run_create_layers_symlink.bat:** 
 +<code dos> 
 +rem do this on WRP\data\ dir 
 +mklink /J layers C:\armawork\PMC\pmc_iraq_baghdad_data_layers 
 +</code> 
 +**Warning: You must delete this "layers" symlink before pboProject binarizing & packing your terrain!** if you do not, then pboproject will try to copy the rvmat's into p:\temp\ and its going to be a real mess. 
 + 
 +Howto delete symlink: 
 +<code dos> 
 +del layers 
 +</code>
  
 You cannot really change the path from terrain builder project settings, because it defaults to <project>\data\layers\ directory, so you cant set it to any dir which would match pmc_iraq_baghdad_data_layers\ heh. You cannot really change the path from terrain builder project settings, because it defaults to <project>\data\layers\ directory, so you cant set it to any dir which would match pmc_iraq_baghdad_data_layers\ heh.
Line 174: Line 197:
 | map_altis_data_layers | a3\map_altis\data\layers | A3_Map_Altis_Data_Layers | RVMATs | | map_altis_data_layers | a3\map_altis\data\layers | A3_Map_Altis_Data_Layers | RVMATs |
 | map_altis_data_layers_00_00 | a3\map_altis\data\layers\00_00 | n/a | Textures | | map_altis_data_layers_00_00 | a3\map_altis\data\layers\00_00 | n/a | Textures |
 +
arma3/terrain/separate-data-layers.1486719300.txt.gz · Last modified: 2017/02/10 09:35 by snakeman