This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
arma3:terrain:separate-data-layers [2017-02-10 09:35] snakeman created separate-data-layers initial page. |
arma3:terrain:separate-data-layers [2019-01-22 17:46] (current) snakeman updated link for wrp only. |
||
---|---|---|---|
Line 10: | Line 10: | ||
====== _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 24: | ||
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 45: | ||
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 66: | ||
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 107: | ||
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 137: | ||
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 158: | ||
====== 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. |