Important information: this site is currently scheduled to go offline indefinitely by end of the year.

Armored Warfare .PAK

Post questions about game models here, or help out others!
BAKMS
n00b
Posts: 13
Joined: Mon Nov 30, 2015 7:46 pm
Been thanked: 1 time

Re: Armored Warfare .PAK

Post by BAKMS »

I was able to get the objects working and now working on the material corrections.

Replace in all opened .mtl files "d 0.0000" to "d 1.0000" for making objects visible (it's transparency parameter).
Then replace (with "regular expressions" checked) "Kd (\d.*$)" by "Kd 1 1 1" for making diffuse colors white.
Also you can replace "diffuse" texture with "decal" texture by replacing "_d.dds" with "_sm.dds" because diffuse textures in game are just masks for shader, but "decal" texture

I have the notepad ++ install but ran out of time.
Hope to be able to do it tonight.
BAKMS
n00b
Posts: 13
Joined: Mon Nov 30, 2015 7:46 pm
Been thanked: 1 time

Re: Armored Warfare .PAK

Post by BAKMS »

Question is a cfg file that will combine the parts and align them correctly.
I have done something like that with MechWarrior online and you could locate the cfg file that has the locations and align them correctly into Blender.

Also if so where is the AW cfg located; specifically the M1a1.
Markemp
veteran
Posts: 116
Joined: Tue Dec 24, 2013 2:42 am
Has thanked: 5 times
Been thanked: 65 times

Re: Armored Warfare .PAK

Post by Markemp »

BAKMS wrote:Question is a cfg file that will combine the parts and align them correctly.
I have done something like that with MechWarrior online and you could locate the cfg file that has the locations and align them correctly into Blender.

Also if so where is the AW cfg located; specifically the M1a1.
M1A1 appears to be under "objects\vehicles\mbt\m1a1".

And yes, the tanks (much like MWO files) have a .cdf file which specified all the parts that belong on a tank and their positions. They are stored in .cdf files, which are just xml files that have positional and rotational info. For example, the "m1a1_hc--m1a1_hc.cdf" file has positional information like this:

<Attachment Type="CA_BONE" AName="bag01" Rotation="1,0,0,0" Position="1.5672634,-0.33574528,2.1758029" BoneName="bag01" Binding="objects/vehicles/mbt/m1a1/m1a1_bag01_turret_m1a1.cgf" PA_PendulumType="2" PA_FPS="30" PA_MaxAngle="4.99997" PA_HRotation="0" PA_Mass="5" PA_Gravity="9.8000002" PA_Damping="40" PA_Stiffness="5" PA_SimulationAxis="0,0,-0.30000001" Flags="0"/>

I made a powershell script for MWO (mech-importer.ps1) that can take this info and import it into Blender in the right position (as well as set the materials properly). That could be modified pretty easily for AW files, since it's basically doing the same stuff.
BAKMS
n00b
Posts: 13
Joined: Mon Nov 30, 2015 7:46 pm
Been thanked: 1 time

Re: Armored Warfare .PAK

Post by BAKMS »

I will try the mech-importer.ps1 on the cdf file; thank you.

something strange with the .dds.# files.
_d file is showing Red is this normal? the other files are working fine.
User avatar
Andrakann
ultra-veteran
ultra-veteran
Posts: 392
Joined: Wed Jul 06, 2011 8:47 am
Location: Russia
Has thanked: 974 times
Been thanked: 192 times
Contact:

Re: Armored Warfare .PAK

Post by Andrakann »

BAKMS wrote:something strange with the .dds.# files.
_d file is showing Red is this normal? the other files are working fine.
Those files contains only mask for game shader in Blue color channel of map, maybe for camo or metallic gloss.
_sm files is looks better if placed to diffuse as I did.

Update: for tracks _d Blue channel is white, but Red channel contains Gloss map (very likely), and Transparency (Opacity) map is present in Alpha channel.
BAKMS
n00b
Posts: 13
Joined: Mon Nov 30, 2015 7:46 pm
Been thanked: 1 time

Re: Armored Warfare .PAK

Post by BAKMS »

bummer i am not able to the find the .cdf of the m1a1
The ones i am finding for the antennas.

do know where they located?

i checked the resources and textures.
Markemp
veteran
Posts: 116
Joined: Tue Dec 24, 2013 2:42 am
Has thanked: 5 times
Been thanked: 65 times

Re: Armored Warfare .PAK

Post by Markemp »

BAKMS wrote:bummer i am not able to the find the .cdf of the m1a1
The ones i am finding for the antennas.

do know where they located?

i checked the resources and textures.
I found 2 .cdf files, but they seemed to be bag/antenna or just bag related info. It has the transpose info in it. It's possible that the turret, treads, etc are set to the relatively right position, but not positive. I need to investigate.

Cryengine files are pretty complicated, so it takes a lot of digging around. Dozens and dozens of files, all placed in weird locations. It's a pain. :(
zer0her0
ultra-n00b
Posts: 3
Joined: Wed Dec 09, 2015 7:36 pm

Re: Armored Warfare .PAK

Post by zer0her0 »

Don't mean to hi-jack this thread but i'm a total newb at this stuff. I was hoping to scrape the data for 2 things, possibly higher resolution minimaps & scrape for tank data (i.e. get the stats into a db or a json file or some such). Any guidance will be greatly helpful!
BAKMS
n00b
Posts: 13
Joined: Mon Nov 30, 2015 7:46 pm
Been thanked: 1 time

Re: Armored Warfare .PAK

Post by BAKMS »

I was able to locate what I believe is the placement of the parts for the tank; but not sure how to use them

newmtl Hull
Kd 0.1361 0.1511 0.0963
Ks 0.4151 0.4151 0.4151
d 1.0000
illum 2
map_Kd C:\m1a1_hull_d.tif
map_Ks C:\m1a1_hull_s.tif
map_bump C:\m1a1_hull_ddn.tif

I tried to mech-importer.ps1 and it did not pull anything from it.
Thank you for your input.
Markemp
veteran
Posts: 116
Joined: Tue Dec 24, 2013 2:42 am
Has thanked: 5 times
Been thanked: 65 times

Re: Armored Warfare .PAK

Post by Markemp »

zer0her0 wrote:Don't mean to hi-jack this thread but i'm a total newb at this stuff. I was hoping to scrape the data for 2 things, possibly higher resolution minimaps & scrape for tank data (i.e. get the stats into a db or a json file or some such). Any guidance will be greatly helpful!
Tank data is probably stored in xml or cdf files. Check in the respective Objects\Vehicles\<vehicle name> directory for those types of files. They'll be text, not binary.

The minimaps... not sure where those will be. I'll dig around and see what I can find. Do you have map names? Even generic names will help me search.
BAKMS
n00b
Posts: 13
Joined: Mon Nov 30, 2015 7:46 pm
Been thanked: 1 time

Re: Armored Warfare .PAK

Post by BAKMS »

here is the m1a1_turret_m1a1.cgf file name

Is this what you were asking about?
Markemp
veteran
Posts: 116
Joined: Tue Dec 24, 2013 2:42 am
Has thanked: 5 times
Been thanked: 65 times

Re: Armored Warfare .PAK

Post by Markemp »

BAKMS wrote:here is the m1a1_turret_m1a1.cgf file name

Is this what you were asking about?
Not exactly. Give me some time; I'm trying to fix some bugs in my script and will look at this soon.
User avatar
Andrakann
ultra-veteran
ultra-veteran
Posts: 392
Joined: Wed Jul 06, 2011 8:47 am
Location: Russia
Has thanked: 974 times
Been thanked: 192 times
Contact:

Re: Armored Warfare .PAK

Post by Andrakann »

BAKMS wrote:I was able to locate what I believe is the placement of the parts for the tank; but not sure how to use them

newmtl Hull
Kd 0.1361 0.1511 0.0963
Ks 0.4151 0.4151 0.4151
d 1.0000
illum 2
map_Kd C:\m1a1_hull_d.tif
map_Ks C:\m1a1_hull_s.tif
map_bump C:\m1a1_hull_ddn.tif
No, it's just a material entry from .mtl file, used by .obj file.

newmtl Hull - material name
Kd 0.1361 0.1511 0.0963 - diffuse mesh color in R G B, brightness of each channel from 0.0000 to 1.0000
Ks 0.4151 0.4151 0.4151 - same for specular hilight color
d 1.0000 - transparency of mesh (fully visible)
illum 2 - lighting model, seems to be ignored in most editors
map_Kd C:\m1a1_hull_d.tif - path to diffuse map
map_Ks C:\m1a1_hull_s.tif - path to specular map
map_bump C:\m1a1_hull_ddn.tif - path to normal map
zer0her0
ultra-n00b
Posts: 3
Joined: Wed Dec 09, 2015 7:36 pm

Re: Armored Warfare .PAK

Post by zer0her0 »

Markemp wrote:
zer0her0 wrote:Don't mean to hi-jack this thread but i'm a total newb at this stuff. I was hoping to scrape the data for 2 things, possibly higher resolution minimaps & scrape for tank data (i.e. get the stats into a db or a json file or some such). Any guidance will be greatly helpful!
Tank data is probably stored in xml or cdf files. Check in the respective Objects\Vehicles\<vehicle name> directory for those types of files. They'll be text, not binary.

The minimaps... not sure where those will be. I'll dig around and see what I can find. Do you have map names? Even generic names will help me search.
I feel stupid, how do I go about unpacking to get the Objects\Vehicles\ directory? I'm on NA client/server btw.
Markemp
veteran
Posts: 116
Joined: Tue Dec 24, 2013 2:42 am
Has thanked: 5 times
Been thanked: 65 times

Re: Armored Warfare .PAK

Post by Markemp »

zer0her0 wrote:
Markemp wrote:
zer0her0 wrote:Don't mean to hi-jack this thread but i'm a total newb at this stuff. I was hoping to scrape the data for 2 things, possibly higher resolution minimaps & scrape for tank data (i.e. get the stats into a db or a json file or some such). Any guidance will be greatly helpful!
Tank data is probably stored in xml or cdf files. Check in the respective Objects\Vehicles\<vehicle name> directory for those types of files. They'll be text, not binary.

The minimaps... not sure where those will be. I'll dig around and see what I can find. Do you have map names? Even generic names will help me search.
I feel stupid, how do I go about unpacking to get the Objects\Vehicles\ directory? I'm on NA client/server btw.
In your AW directory (mine is E:\MyGames\Armored Warfare MyCom Beta), there will be a gamesdk sub. All the .pak files are in there.

Copy them to a separate directory and extract using 7zip. Do NOT extract them into the original game directory.
Post Reply