====== ArmA 1 Pal2PacE ======
[[https://www.pmctactical.org/forum/viewforum.php?f=42|ArmA 1 Forum]], [[:arma|ArmA 1 Home]], [[arma:config|ArmA 1 Config]], [[arma:tools|ArmA 1 Tools]], [[arma:file_formats|ArmA 1 File Formats]], [[arma:missions|ArmA 1 Missions]], [[arma:modeling|ArmA 1 3D Modeling]], [[arma:terrain|ArmA 1 Terrain]], [[arma:texturing|ArmA 1 Texturing]], [[arma:scripting|ArmA 1 Scripting]]
**ArmA 1** aka Armed Assault (ArmA)
The official BIS tool Pal2PacE is a command line tool for texture conversion. The conversion engine is identical to [[arma:tools:texview2|TexView 2]]. See [[arma:texturing:texture_naming_rules|ArmA Texture Naming Rules]] for more information about the conversion process.
Buldozer comes with pal2pace.exe and pal2pac.dll.
The call is like this:
pal2pace -combine 4.tga 3.tga 2.tga 1.tga 1234.pac
(only tga -> pac possible as far as I know)
So for example - texture name:
e1f2g4a2
4 = a2 (top right)
3 = g4 (top left)
2 = f2 (down right)
1 = e1 (down left)
34
12
pal2pace -combine a2.tga g4.tga f2.tga e1.tga e1f2g4a2.pac
This is a 4 texture transition. so for a half half texture 2 two its like this:
pal2pace -combine g4.tga g4.tga e1.tga e1.tga e1e1g4g4.pac
You are best to work with some text editor capable of handling regular expressions, like EditPadPro.
Search text:
([a-z0-9][a-z0-9])([a-z0-9][a-z0-9])([a-z0-9][a-z0-9])([a-z0-9][a-z0-9])
Replacement text:
D:\pal2pace\pal2pace -combine \4.tga \3.tga \2.tga \1.tga \1\2\3\4.pac
It looks for a string of two characters or numbers each and makes the output command for it.
====== Notes ======
See also [[ofp:tools:pal2pace|OFP pal2pace tool]].