LITE mod version creation guide: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[ *(https?\:\/\/.+\.bistudio\.[^ ]+) ([^ ]+) *\]" to "{{ExternalLink|link= $1|text= $2}}")
m (Some wiki formatting)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
==Intention==
{{TOC|side}}


This guide describes briefly the process to create a LITE version of a pbo.
This guide describes briefly the process to create a LITE version of a pbo.
Line 5: Line 5:
Notes:
Notes:
* LITE refers to reduced quality usually.
* LITE refers to reduced quality usually.


== Benefit ==
== Benefit ==
Line 14: Line 15:
The main use is for '''dedicated servers'''.
The main use is for '''dedicated servers'''.


'''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.
{{Feature|informative|This cannot be used in multiplayer ''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 ==
Line 22: Line 24:
# This is not about explaining tools setup.
# This is not about explaining tools setup.
# 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 ==
Line 27: Line 30:
Brief summary:
Brief summary:


# Install [[Arma_3_Tools_Installation|Arma 3 Tools]]
# Install [[Arma 3: Tools Installation|Arma 3 Tools]]
# Install {{ExternalLink|link= https://forums.bistudio.com/topic/113852-mikeros-dos-tools|text= mikero's tools}}
# Install {{Link|https://forums.bistudio.com/topic/113852-mikeros-dos-tools|mikero's tools}}
# Create a text file named '''CreateLITE.txt'''
# Create a text file named {{hl|CreateLITE.bat}}
# Rename to '''CreateLITE.bat'''
# Open with a text editor
# Open with a text editor
# Copy&paste the '''code below''' in it and save
# Copy & paste the '''code below''' in it and save
# '''Adjust the paths at the top''' and save
# '''Adjust the paths at the top''' and save
# '''Optional''': Adjust the desired '''texture resolution''' at the top and save
# '''Optional''': Adjust the desired '''texture resolution''' at the top and save
Line 41: Line 43:
=== CreateLITE.bat ===
=== CreateLITE.bat ===


rem ### Configure paths ###
<spoiler text="Show file content">
<syntaxhighlight lang="batch">
set _SOURCE_PATH=x:\SourceFolder
rem ### Configure paths ###
set _TARGET_PATH=x:\TargetFolder
 
set _SOURCE_PATH=x:\SourceFolder
set _TEMP_PATH=x:\TempFolder
set _TARGET_PATH=x:\TargetFolder
 
rem ### Configure desired texture resolution ###
set _TEMP_PATH=x:\TempFolder
 
set _TEXTURE_QUALITY=128
rem ### Configure desired texture resolution ###
 
rem ### Configure tools path ###
set _TEXTURE_QUALITY=128
 
set _MIKERO_DEPBOTOOLS=C:\Program Files (x86)\Mikero\DePboTools
rem ### Configure tools path ###
set _STEAM=c:\Program Files (x86)\Steam
 
set _MIKERO_DEPBOTOOLS=C:\Program Files (x86)\Mikero\DePboTools
set _STEAM=c:\Program Files (x86)\Steam
 
rem ### DONT TOUCH ###
 
 
set _MYTAG_YEAR=%date:~-4%
rem ### DONT TOUCH ###
set _MYTAG_MONTH=%date:~-7,2%
 
set _MYTAG_DAY=%date:~-10,2%
set _MYTAG_YEAR=%date:~-4%
set _MYTAG_MONTH=%date:~-7,2%
rem ---
set _MYTAG_DAY=%date:~-10,2%
 
set _EXTRACTPBO_EXE=%_MIKERO_DEPBOTOOLS%\bin\ExtractPboDos.exe
rem ---
set _MAKEPBO_EXE=%_MIKERO_DEPBOTOOLS%\bin\MakePbo.exe
 
set _EXTRACTPBO_EXE=%_MIKERO_DEPBOTOOLS%\bin\ExtractPboDos.exe
set _PAL2PACE_EXE=%_STEAM%\SteamApps\common\Arma 3 Tools\ImageToPAA\ImageToPAA.exe
set _MAKEPBO_EXE=%_MIKERO_DEPBOTOOLS%\bin\MakePbo.exe
 
rem ----
set _PAL2PACE_EXE=%_STEAM%\SteamApps\common\Arma 3 Tools\ImageToPAA\ImageToPAA.exe
 
SETLOCAL ENABLEDELAYEDEXPANSION
rem ----
 
rem ---
SETLOCAL ENABLEDELAYEDEXPANSION
 
@echo off
rem ---
call :sub >>LITE_%_MYTAG_YEAR%_%_MYTAG_MONTH%_%_MYTAG_DAY%.log 2>&1
 
exit /b
@echo off
call :sub >>LITE_%_MYTAG_YEAR%_%_MYTAG_MONTH%_%_MYTAG_DAY%.log 2>&1
rem ---
exit /b
 
:sub
rem ---
 
for /R %_SOURCE_PATH% %%i in (*.pbo) do (
:sub
 
"%_EXTRACTPBO_EXE%" -RPK "%%i" "%_TEMP_PATH%"
for /R %_SOURCE_PATH% %%i in (*.pbo) do (
 
for /R "%_TEMP_PATH%" %%j in (*.paa) do (
"%_EXTRACTPBO_EXE%" -RPK "%%i" "%_TEMP_PATH%"
 
"%_PAL2PACE_EXE%" -size=%_TEXTURE_QUALITY% "%%j" "%%j"
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" (
for /D %%j in ("%_TEMP_PATH%\*.*") do (
 
if /I not "%%j" == "%_TEMP_PATH%\cache" (
if /I not "%%j" == "%_TEMP_PATH%\TEMP" (
 
"%_MAKEPBO_EXE%" -UPDN -$ "%%j" %_TARGET_PATH%
if /I not "%%j" == "%_TEMP_PATH%\cache" (
 
RD "%%j" /Q /S
"%_MAKEPBO_EXE%" -UPDN -$ "%%j" %_TARGET_PATH%
)
 
)
RD "%%j" /Q /S
)
)
)
)
)
)
</syntaxhighlight>
</spoiler>
 


== Credits ==
== Credits ==
Line 114: Line 121:
* T_D
* T_D
* mikero
* mikero


{{GameCategory|arma1|Texturing}}
{{GameCategory|arma1|Texturing}}
Line 119: Line 127:
{{GameCategory|arma3|Editing}}
{{GameCategory|arma3|Editing}}
[[Category:Arma: Tutorials]]
[[Category:Arma: Tutorials]]
{{GameCategory|arma1|Editing Tutorials}}
{{GameCategory|arma2|Tutorials}}
{{GameCategory|arma2|Tutorials}}
{{GameCategory|arma1|Editing Tutorials}}
{{GameCategory|arma3|Tutorials}}
{{GameCategory|arma3|Tutorials}}

Latest revision as of 19:27, 16 April 2024

This guide describes briefly the process to create a LITE version of a pbo.

Notes:

  • LITE refers to reduced quality usually.


Benefit

  1. Smaller pbo size.
  2. Faster game loading time.
  3. Reduced GPU requirements.

The main use is for dedicated servers.

This cannot be used in multiplayer 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

  1. This is not an absolute beginners guide.
  2. This is not about creating textures.
  3. This is not about explaining tools setup.
  4. This guide only handles textures. There is also sounds, scripts, mission files.


Process

Brief summary:

  1. Install Arma 3 Tools
  2. Install mikero's tools
  3. Create a text file named CreateLITE.bat
  4. Open with a text editor
  5. Copy & paste the code below in it and save
  6. Adjust the paths at the top and save
  7. Optional: Adjust the desired texture resolution at the top and save
  8. 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
			)
		)
	)
)
↑ Back to spoiler's top


Credits

  • BI
  • T_D
  • mikero