arma3:batch-file-examples
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
arma3:batch-file-examples [2018/04/04 15:50] – removed hardcoded path. snakeman | arma3:batch-file-examples [2024/08/03 11:45] (current) – links added. snakeman | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Batch File Examples ====== | + | ====== |
- | This is under arma3 namespace but there are various batch file examples which suit all arma games or even generic tasks that has nothing to do with arma. | + | [[https:// |
+ | |||
+ | This is under ArmA 3 namespace but there are various batch file examples which suit all arma games or even generic tasks that has nothing to do with arma. | ||
====== PMC MoveObject Setup ====== | ====== PMC MoveObject Setup ====== | ||
- | Here we show you how to change paths into model P3D, material RVMAT and terrain | + | Here we show you how to change paths into model P3D, material RVMAT and terrain WRP files using [[arma3: |
Main concept is these files. | Main concept is these files. | ||
Line 16: | Line 18: | ||
_MASTER_paths.txt contains the moveobject replacement " | _MASTER_paths.txt contains the moveobject replacement " | ||
- | _run_update_FILETYPE_list.bat is to update file type list, this basically depends on which directory you are, if you're doing models then you use P3D bat, if you do rvmat' | + | _run_update_FILETYPE_list.bat is to update file type list, this basically depends on which directory you are, if you're doing models then you use P3D bat, if you do rvmat' |
- | _run_moveobject_log.bat file creates text file log out of the p3d/rvmat/pew/wrp file content regarding textures, proxys etc. This log file is useful to track down what your file contains. Also note that often times it grows very large, so use [[: | + | _run_moveobject_log.bat file creates text file log out of the p3d/ |
_run_moveobject.bat is the actual moveobject executing bat which runs the program using master paths text as config and after its done it runs log file creation. | _run_moveobject.bat is the actual moveobject executing bat which runs the program using master paths text as config and after its done it runs log file creation. | ||
Line 57: | Line 59: | ||
===== RVMAT Files ===== | ===== RVMAT Files ===== | ||
+ | |||
+ | 2019-01-22 Updated for ArmA 3 and Mikeros latest tools with the -P "no pause" option. | ||
**_run_moveobject.bat** | **_run_moveobject.bat** | ||
Line 62: | Line 66: | ||
@echo off | @echo off | ||
for /F %%i in (_rvmat_list.txt) do ( | for /F %%i in (_rvmat_list.txt) do ( | ||
- | moveobject %%i _MASTER_paths.txt >> | + | moveobject |
) | ) | ||
- | call _run_moveobject_log.bat | ||
if exist *.old.rvmat del *.old.rvmat | if exist *.old.rvmat del *.old.rvmat | ||
pause | pause | ||
Line 72: | Line 75: | ||
**_run_moveobject_log.bat** | **_run_moveobject_log.bat** | ||
<code dos> | <code dos> | ||
- | @echo off | + | if exist _log.txt |
- | del _log.txt | + | for /F %%i in (_rvmat_list.txt) do (moveobject |
- | for /F %%i in (_rvmat_list.txt) do (moveobject -L " | + | |
</ | </ | ||
Line 83: | Line 85: | ||
- | ===== PEW / WRP Files ===== | + | ===== WRP Files ===== |
+ | |||
+ | 2019-01-22 Updated for ArmA 3 and Mikeros latest tools with the -P "no pause" option. | ||
**_run_moveobject.bat** | **_run_moveobject.bat** | ||
<code dos> | <code dos> | ||
@echo off | @echo off | ||
- | for /F %%i in (_pew_list.txt) do ( | + | for /F %%i in (_wrp_list.txt) do ( |
- | moveobject %%i _MASTER_paths.txt >> | + | moveobject |
) | ) | ||
- | if exist *.old.pew del *.old.pew | + | if exist *.old.wrp del *.old.wrp |
call _run_moveobject_log.bat | call _run_moveobject_log.bat | ||
pause | pause | ||
Line 100: | Line 104: | ||
<code dos> | <code dos> | ||
if exist _log.txt del _log.txt | if exist _log.txt del _log.txt | ||
- | for /F %%i in (_pew_list.txt) do (moveobject -L " | + | for /F %%i in (_wrp_list.txt) do (moveobject |
</ | </ | ||
- | **_run_update_pew_list.bat** | + | **_run_update_wrp_list.bat** |
<code dos> | <code dos> | ||
- | dir *.pew /o /b >_pew_list.txt | + | dir *.wrp /o /b >_wrp_list.txt |
</ | </ | ||
- | |||
- | Hopefully you already know how to switch from PEW to WRP file use. | ||
Line 304: | Line 306: | ||
echo %year%-%month%-%day% | echo %year%-%month%-%day% | ||
</ | </ | ||
+ | |||
+ | |||
+ | ====== Resize PAA Command Line ====== | ||
+ | |||
+ | Resize PAA file from command line. | ||
+ | |||
+ | This does all PAA files to 128 x 128 resolution in the current directory: | ||
+ | <code dos> | ||
+ | for /R %CD% %%i in (*.paa) do ( | ||
+ | echo %%i | ||
+ | "< | ||
+ | ) | ||
+ | pause | ||
+ | exit | ||
+ | </ | ||
+ |
arma3/batch-file-examples.1522857049.txt.gz · Last modified: 2018/04/04 15:50 by snakeman