PDA

View Full Version : PAADecompressor



T_D
Jul 3 2009, 11:57
I made a little tool that makes A2 textures compatible with texView2. This way you dont need Photoshop and Kegetys PAA Plugin.
Here the Readme:

PAADecompressor v1.2 by T_D
======================

This little tool is for people that can't or dont want to use PAA Plugin for Photoshop by Kegetys
to view and edit A2 textures. It decompresses A2 textures back to the A1 format. This way you can easily
use TexView2 for the textures.
For v1.2 PAACompressor.exe was added to produce compressed textures, which can be used in ArmA2
but use lesser diskspace.



Syntax:
=======

PAADecompressor.exe [source [destination]]

If no parameters are given a dialog appears where you can choose the file that should be decompressed.
Decompressed files are ending with "_decompressed.paa" if destination name wasn't specified.

PAACompressor.exe is used the same way.


Shell extension:
================

This package contains a PAAD.reg (thx to kju) file that register the tool, so that you can quickly decompress paa
files by rightclicking on them. You just have to edit the path in it.

PAAC.reg for adding PAACompressor to shell.


Changelog:
==========

v1.2
ADDED: PAACompressor.exe for compressing textures
FIXED: fixed other crashes
FIXED: some uncompressed textures couldn't be read by TexView2

v1.1
FIXED: crash on certain files (due to wrong compression threshold size)


Contact:
========
E-Mail: T_Dittmar@<hidden>
Skype: braini01



DISCLAIMER:
===========

I take no responsibility for (im)possible damage to your game/system that may be caused
by installation of this tool.
==========

v1.2
ADDED: PAACompressor.exe for compressing textures
FIXED: fixed other crashes
FIXED: some uncompressed textures couldn't be read by TexView2

Version 1.2:
Download @<hidden> DevHeaven.net (.NET 3.5 Framework required)
(http://dev-heaven.net/attachments/download/1492/PAADecompressor.rar)

MarkJ112
Jul 3 2009, 12:12
ArmedAssault.info (http://www.armedassault.info) Mirror and News (http://www.armedassault.info/index.php?cat=news&id=2674):

Big
Jul 3 2009, 12:36
Armaholic mirror:

- PAADecompressor (http://www.armaholic.com/page.php?id=6169)

Snake Man
Jul 3 2009, 20:58
I made a little tool that makes A2 textures compatible with texView2. This way you dont need Photoshop and Kegetys PAA Plugin.
Excellent small utility, great contribution to the editing community. Thank you.

.kju [PvPscene]
Jul 3 2009, 21:04
Once again. Fabulous job T_D :)

Here is a shell extension.


Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\paa_auto_file\shell\PAAD\command]
@<hidden>="\"T:\\PAADecompressor\\PAADecompressor.exe\" \"%1\""

Adapt path, save to PAAD.reg and execute.

Via RMB you can easily convert a PAA via the explorer (also mass convert). :bounce3:

Edit: doh - already part of it. :)

Sakura_Chan
Jul 4 2009, 04:08
finally! awsome job! :3

bravo 6
Jul 4 2009, 05:02
Thank you very much :)

modEmMaik
Jul 4 2009, 09:50
Big thanks for this invention :)

Seems that I am having a little issue (Wundows XP SP2):


>PAADecompressor_x.exe ak47s_as.paa

Unhandled Exception: System.MissingMethodException: Method not found: 'System.String System.Windows.Forms.OpenFileDialog.get_SafeFileName()'. at PAADecompressor.Program.Main(String[] args)

I have not tested it on Wundows 2k, yet...

Xeno
Jul 4 2009, 11:14
modEmMaik, install the latest MS .NET runtime.

Xeno

modEmMaik
Jul 4 2009, 15:50
Thanks Xeno,

that solved the issue :yay:

raedor
Jul 4 2009, 18:09
Cool stuff, as always! :)

T_D
Jul 7 2009, 08:09
Version 1.1 released that fixes crashes on certain textures.

See first post for link.

Old Bear
Jul 7 2009, 08:18
Well, nice move, but the DL link is broken :(

T_D
Jul 7 2009, 08:25
sry, should work now ;)

MarkJ112
Jul 7 2009, 08:37
sry, should work now ;)

It is working thanks!:yay: New version 1.1 uploaded

ArmedAssault.info (http://www.armedassault.info) Mirror and News (http://www.armedassault.info/index.php?cat=news&id=2698):

Lester
Jul 7 2009, 10:34
Definatly a good and helpful tool ;)

I i got a wish for free i would wish a speedy viewer function for this compressed pictures (including zoom), or a recursive directory mode including an overwrite of the compressed textures so that Alttexview can manage that. ;)

I've got nearly all pbos open and it would be nice to page through the pictures in the original pathes. :D

Foxhound
Jul 7 2009, 19:28
New version frontpaged at the Armaholic homepage (http://www.armaholic.com/page.php?id=6170).

http://www.armaholic.com/datas/users/3-animation.png (http://www.armaholic.com/page.php?id=6169)
PAADecompressor v1.1 (http://www.armaholic.com/page.php?id=6169)

cptwhite
Jul 12 2009, 18:13
I'm struggling editing the reg file to get the RMB shortcuts

my EXE is located in the folder structure as follows (note it's a custom desktop folder)

C:\Desktop\ArmA2_Editing_Tools\Tools\TexView2\PAA_Decompressor\PAA_Decompressor.exe

...and the edited REG file looks as follows:

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\paa_auto_file\shell\PAAD\command]
@<hidden>="\"C:\\Desktop\\ArmA2_Editing_Tools\\TexView2\\Tools\\PAA_Decompressor\\PAA_Decompressor.exe\" \"%1\""

...but I'm not getting the RMB shortcut when clicking on an extracted PAA file, anyone know what I'm doing wrong?

T_D
Jul 12 2009, 18:24
There is a wrong space:
@<hidden>="\"C:\\Desktop\\ArmA2_Editing_Tools\\TexView2\\PSPACEAA_Decompressor\\PAA_Decompressor.exe\" \"%1\""

cptwhite
Jul 12 2009, 18:50
I don't understand there's no space in either the reg or the the file structure (I just checked both on my system?)

Ahh I found the space, you meant in 'tools'. It's just a typo on the forum, not in my reg :P

.kju [PvPscene]
Jul 12 2009, 20:16
Check if you have .paa as type.

cptwhite
Jul 13 2009, 06:56
Okay I have it working in the shortcuts menu, but now it just produces an error report whenever I try and use it.

I'm on a Q6600 / 4Gb RAM and running Windows XP Pro 32bit with Service Pack 3, any ideas?

See error report below:

http://i72.photobucket.com/albums/i172/cptwhite/PAAD_Error.png

T_D
Jul 13 2009, 12:16
Can you send me the "contents of the error report" please? Maybe this helps me to track down the problem.

cptwhite
Jul 13 2009, 17:46
Sure, I can bring the report up onscreen but can't find a way to copy / paste it (even with keyboard shortcuts) how do I get it into a text file? I can't copy it into clipboard to paste anywhere...

T_D
Jul 13 2009, 18:20
Take a picture of it

cptwhite
Jul 13 2009, 18:47
its a massive error message, in a tiny box (literally dozens of boxes long....) but here's the top part:

http://i72.photobucket.com/albums/i172/cptwhite/error_report.png

As you see by the scroll bar at the bottom its very long....

T_D
Jul 13 2009, 19:28
Hmm normally an Exception occurs when the program isnt working... Is it possible that you dont have any NET. Framework installed?

cptwhite
Jul 14 2009, 17:50
I have upto NET 3.0 Framework installed.

T_D
Jul 14 2009, 20:11
I compiled with .NET 3.5. Maybe thats the reason.

T_D
Jul 15 2009, 00:57
Version 1.2 released and first post updated. This package also includes PAACompressor.exe

cptwhite
Jul 15 2009, 06:36
Will download NET 3.5 and let you know how i get on :)

Okay, might be worth noting in the first page. NET Framework 3.5 is required. Problem solved. That's for your help TD

armatech
Jul 15 2009, 19:56
nice update man