{"name":"LITE mod version creation guide","title":"LITE mod version creation guide","type":"topic","url":"https://community.bistudio.com/wiki/LITE_mod_version_creation_guide","revid":363715,"updated":"2024-04-16T18:27:14Z","aliases":[],"markdown":"This guide describes briefly the process to create a LITE version of a pbo.\n\nNotes:\n\n- LITE refers to reduced quality usually.\n\n### Benefit\n\n1. Smaller pbo size.\n1. Faster game loading time.\n1. Reduced GPU requirements.\n\nThe main use is for **dedicated servers**.\n\n> [!NOTE]\n> 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.\n\n### Scope\n\n1. This is not an absolute beginners guide.\n1. This is not about creating textures.\n1. This is not about explaining tools setup.\n1. This guide only handles textures. There is also sounds, scripts, mission files.\n\n### Process\n\nBrief summary:\n\n1. Install Arma 3 Tools\n1. Install [mikero's tools](https://forums.bistudio.com/topic/113852-mikeros-dos-tools)\n1. Create a text file named `CreateLITE.bat`\n1. Open with a text editor\n1. Copy & paste the **code below** in it and save\n1. **Adjust the paths at the top** and save\n1. **Optional**: Adjust the desired **texture resolution** at the top and save\n1. Execute the batch file\n\nIn case of error, check the created log file.\n\n#### CreateLITE.bat\n\n```batch\nrem ### Configure paths ###\n\nset _SOURCE_PATH=x:\\SourceFolder\nset _TARGET_PATH=x:\\TargetFolder\n\nset _TEMP_PATH=x:\\TempFolder\n\nrem ### Configure desired texture resolution ###\n\nset _TEXTURE_QUALITY=128\n\nrem ### Configure tools path ###\n\nset _MIKERO_DEPBOTOOLS=C:\\Program Files (x86)\\Mikero\\DePboTools\nset _STEAM=c:\\Program Files (x86)\\Steam\n\nrem ### DONT TOUCH ###\n\nset _MYTAG_YEAR=%date:~-4%\nset _MYTAG_MONTH=%date:~-7,2%\nset _MYTAG_DAY=%date:~-10,2%\n\nrem ---\n\nset _EXTRACTPBO_EXE=%_MIKERO_DEPBOTOOLS%\\bin\\ExtractPboDos.exe\nset _MAKEPBO_EXE=%_MIKERO_DEPBOTOOLS%\\bin\\MakePbo.exe\n\nset _PAL2PACE_EXE=%_STEAM%\\SteamApps\\common\\Arma 3 Tools\\ImageToPAA\\ImageToPAA.exe\n\nrem ----\n\nSETLOCAL ENABLEDELAYEDEXPANSION\n\nrem ---\n\n@echo off\ncall :sub >>LITE_%_MYTAG_YEAR%_%_MYTAG_MONTH%_%_MYTAG_DAY%.log 2>&1\nexit /b\n\nrem ---\n\n:sub\n\nfor /R %_SOURCE_PATH% %%i in (*.pbo) do (\n\n    \"%_EXTRACTPBO_EXE%\" -RPK \"%%i\" \"%_TEMP_PATH%\"\n\n    for /R \"%_TEMP_PATH%\" %%j in (*.paa) do (\n\n        \"%_PAL2PACE_EXE%\" -size=%_TEXTURE_QUALITY% \"%%j\" \"%%j\"\n    )\n\n    for /D %%j in (\"%_TEMP_PATH%\\*.*\") do (\n\n        if /I not \"%%j\" == \"%_TEMP_PATH%\\TEMP\" (\n\n            if /I not \"%%j\" == \"%_TEMP_PATH%\\cache\" (\n\n                \"%_MAKEPBO_EXE%\" -UPDN -$ \"%%j\" %_TARGET_PATH%\n\n                RD \"%%j\" /Q /S\n            )\n        )\n    )\n)\n```\n\n### Credits\n\n- BI\n- T_D\n- mikero","sections":[{"heading":null,"level":1,"markdown":"This guide describes briefly the process to create a LITE version of a pbo.\n\nNotes:\n\n- LITE refers to reduced quality usually."},{"heading":"Benefit","level":3,"markdown":"1. Smaller pbo size.\n1. Faster game loading time.\n1. Reduced GPU requirements.\n\nThe main use is for **dedicated servers**.\n\n> [!NOTE]\n> 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."},{"heading":"Scope","level":3,"markdown":"1. This is not an absolute beginners guide.\n1. This is not about creating textures.\n1. This is not about explaining tools setup.\n1. This guide only handles textures. There is also sounds, scripts, mission files."},{"heading":"Process","level":3,"markdown":"Brief summary:\n\n1. Install Arma 3 Tools\n1. Install [mikero's tools](https://forums.bistudio.com/topic/113852-mikeros-dos-tools)\n1. Create a text file named `CreateLITE.bat`\n1. Open with a text editor\n1. Copy & paste the **code below** in it and save\n1. **Adjust the paths at the top** and save\n1. **Optional**: Adjust the desired **texture resolution** at the top and save\n1. Execute the batch file\n\nIn case of error, check the created log file."},{"heading":"CreateLITE.bat","level":4,"markdown":"```batch\nrem ### Configure paths ###\n\nset _SOURCE_PATH=x:\\SourceFolder\nset _TARGET_PATH=x:\\TargetFolder\n\nset _TEMP_PATH=x:\\TempFolder\n\nrem ### Configure desired texture resolution ###\n\nset _TEXTURE_QUALITY=128\n\nrem ### Configure tools path ###\n\nset _MIKERO_DEPBOTOOLS=C:\\Program Files (x86)\\Mikero\\DePboTools\nset _STEAM=c:\\Program Files (x86)\\Steam\n\nrem ### DONT TOUCH ###\n\nset _MYTAG_YEAR=%date:~-4%\nset _MYTAG_MONTH=%date:~-7,2%\nset _MYTAG_DAY=%date:~-10,2%\n\nrem ---\n\nset _EXTRACTPBO_EXE=%_MIKERO_DEPBOTOOLS%\\bin\\ExtractPboDos.exe\nset _MAKEPBO_EXE=%_MIKERO_DEPBOTOOLS%\\bin\\MakePbo.exe\n\nset _PAL2PACE_EXE=%_STEAM%\\SteamApps\\common\\Arma 3 Tools\\ImageToPAA\\ImageToPAA.exe\n\nrem ----\n\nSETLOCAL ENABLEDELAYEDEXPANSION\n\nrem ---\n\n@echo off\ncall :sub >>LITE_%_MYTAG_YEAR%_%_MYTAG_MONTH%_%_MYTAG_DAY%.log 2>&1\nexit /b\n\nrem ---\n\n:sub\n\nfor /R %_SOURCE_PATH% %%i in (*.pbo) do (\n\n    \"%_EXTRACTPBO_EXE%\" -RPK \"%%i\" \"%_TEMP_PATH%\"\n\n    for /R \"%_TEMP_PATH%\" %%j in (*.paa) do (\n\n        \"%_PAL2PACE_EXE%\" -size=%_TEXTURE_QUALITY% \"%%j\" \"%%j\"\n    )\n\n    for /D %%j in (\"%_TEMP_PATH%\\*.*\") do (\n\n        if /I not \"%%j\" == \"%_TEMP_PATH%\\TEMP\" (\n\n            if /I not \"%%j\" == \"%_TEMP_PATH%\\cache\" (\n\n                \"%_MAKEPBO_EXE%\" -UPDN -$ \"%%j\" %_TARGET_PATH%\n\n                RD \"%%j\" /Q /S\n            )\n        )\n    )\n)\n```"},{"heading":"Credits","level":3,"markdown":"- BI\n- T_D\n- mikero"}],"categories":["ArmA: Armed Assault: Editing Tutorials","ArmA: Armed Assault: Texturing","Arma: Tutorials","Arma 2: Editing","Arma 2: Tutorials","Arma 3: Editing","Arma 3: Tutorials"],"groups":["Tools and File Formats"]}