LITE mod version creation guide: Difference between revisions
Lou Montana (talk | contribs) m (Text replacement - "\[\[[Cc]ategory:ArmA:[ _]?([^|]+)\]\]" to "{{GameCategory|arma1|$1}}") |
Lou Montana (talk | contribs) m (Text replacement - " (={2,})([^ = ])(.*)([^ = ])(={2,}) * " to " $1 $2$3$4 $5 ") |
||
| Line 6: | Line 6: | ||
* LITE refers to reduced quality usually. | * LITE refers to reduced quality usually. | ||
==Benefit== | == Benefit == | ||
# Smaller pbo size. | # Smaller pbo size. | ||
| Line 16: | Line 16: | ||
'''Note''': This cannot be used in MP ''as a player'' unless the [[ArmA:_Addon_Signatures|signature checking system]] is disabled, or the LITE version has been signed and the key is added to the server. | '''Note''': This cannot be used in MP ''as a player'' unless the [[ArmA:_Addon_Signatures|signature checking system]] is disabled, or the LITE version has been signed and the key is added to the server. | ||
==Scope== | == Scope == | ||
# This is not an absolute beginners guide. | # This is not an absolute beginners guide. | ||
| Line 23: | Line 23: | ||
# This guide only handles textures. There is also sounds, scripts, mission files. | # This guide only handles textures. There is also sounds, scripts, mission files. | ||
==Process== | == Process == | ||
Brief summary: | Brief summary: | ||
| Line 39: | Line 39: | ||
In case of error, check the created log file. | In case of error, check the created log file. | ||
===CreateLITE.bat=== | === CreateLITE.bat === | ||
rem ### Configure paths ### | rem ### Configure paths ### | ||
| Line 109: | Line 109: | ||
) | ) | ||
==Credits== | == Credits == | ||
* BI | * BI | ||
Revision as of 19:52, 31 January 2021
Intention
This guide describes briefly the process to create a LITE version of a pbo.
Notes:
- LITE refers to reduced quality usually.
Benefit
- Smaller pbo size.
- Faster game loading time.
- Reduced GPU requirements.
The main use is for dedicated servers.
Note: This cannot be used in MP as a player unless the signature checking system is disabled, or the LITE version has been signed and the key is added to the server.
Scope
- This is not an absolute beginners guide.
- This is not about creating textures.
- This is not about explaining tools setup.
- This guide only handles textures. There is also sounds, scripts, mission files.
Process
Brief summary:
- Install Arma 3 Tools
- Install mikero's tools
- Create a text file named CreateLITE.txt
- Rename to CreateLITE.bat
- Open with a text editor
- Copy&paste the code below in it and save
- Adjust the paths at the top and save
- Optional: Adjust the desired texture resolution at the top and save
- Execute the batch file
In case of error, check the created log file.
CreateLITE.bat
rem ### Configure paths ###
set _SOURCE_PATH=x:\SourceFolder
set _TARGET_PATH=x:\TargetFolder
set _TEMP_PATH=x:\TempFolder
rem ### Configure desired texture resolution ###
set _TEXTURE_QUALITY=128
rem ### Configure tools path ###
set _MIKERO_DEPBOTOOLS=C:\Program Files (x86)\Mikero\DePboTools
set _STEAM=c:\Program Files (x86)\Steam
rem ### DONT TOUCH ###
set _MYTAG_YEAR=%date:~-4%
set _MYTAG_MONTH=%date:~-7,2%
set _MYTAG_DAY=%date:~-10,2%
rem ---
set _EXTRACTPBO_EXE=%_MIKERO_DEPBOTOOLS%\bin\ExtractPboDos.exe
set _MAKEPBO_EXE=%_MIKERO_DEPBOTOOLS%\bin\MakePbo.exe
set _PAL2PACE_EXE=%_STEAM%\SteamApps\common\Arma 3 Tools\ImageToPAA\ImageToPAA.exe
rem ----
SETLOCAL ENABLEDELAYEDEXPANSION
rem ---
@echo off
call :sub >>LITE_%_MYTAG_YEAR%_%_MYTAG_MONTH%_%_MYTAG_DAY%.log 2>&1
exit /b
rem ---
:sub
for /R %_SOURCE_PATH% %%i in (*.pbo) do (
"%_EXTRACTPBO_EXE%" -RPK "%%i" "%_TEMP_PATH%"
for /R "%_TEMP_PATH%" %%j in (*.paa) do (
"%_PAL2PACE_EXE%" -size=%_TEXTURE_QUALITY% "%%j" "%%j"
)
for /D %%j in ("%_TEMP_PATH%\*.*") do (
if /I not "%%j" == "%_TEMP_PATH%\TEMP" (
if /I not "%%j" == "%_TEMP_PATH%\cache" (
"%_MAKEPBO_EXE%" -UPDN -$ "%%j" %_TARGET_PATH%
RD "%%j" /Q /S
)
)
)
)
Credits
- BI
- T_D
- mikero