Page 2 of 3

Re: Armored Warfare .PAK

Posted: Thu Dec 03, 2015 2:56 pm
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.

Re: Armored Warfare .PAK

Posted: Thu Dec 03, 2015 10:28 pm
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.

Re: Armored Warfare .PAK

Posted: Fri Dec 04, 2015 3:47 am
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.

Re: Armored Warfare .PAK

Posted: Fri Dec 04, 2015 4:20 pm
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.

Re: Armored Warfare .PAK

Posted: Fri Dec 04, 2015 4:42 pm
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.

Re: Armored Warfare .PAK

Posted: Sat Dec 05, 2015 1:37 am
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.

Re: Armored Warfare .PAK

Posted: Sat Dec 05, 2015 3:12 am
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. :(

Re: Armored Warfare .PAK

Posted: Wed Dec 09, 2015 7:53 pm
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!

Re: Armored Warfare .PAK

Posted: Thu Dec 10, 2015 12:20 am
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.

Re: Armored Warfare .PAK

Posted: Thu Dec 10, 2015 1:59 am
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.

Re: Armored Warfare .PAK

Posted: Thu Dec 10, 2015 3:38 am
by BAKMS
here is the m1a1_turret_m1a1.cgf file name

Is this what you were asking about?

Re: Armored Warfare .PAK

Posted: Thu Dec 10, 2015 4:28 am
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.

Re: Armored Warfare .PAK

Posted: Thu Dec 10, 2015 6:42 am
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

Re: Armored Warfare .PAK

Posted: Thu Dec 10, 2015 5:35 pm
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.

Re: Armored Warfare .PAK

Posted: Thu Dec 10, 2015 5:39 pm
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.