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.
Important information: this site is currently scheduled to go offline indefinitely by end of the year.
Armored Warfare .PAK
Re: Armored Warfare .PAK
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.
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.
-
- veteran
- Posts: 116
- Joined: Tue Dec 24, 2013 2:42 am
- Has thanked: 5 times
- Been thanked: 65 times
Re: Armored Warfare .PAK
M1A1 appears to be under "objects\vehicles\mbt\m1a1".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.
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
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.
something strange with the .dds.# files.
_d file is showing Red is this normal? the other files are working fine.
- Andrakann
- ultra-veteran
- Posts: 392
- Joined: Wed Jul 06, 2011 8:47 am
- Location: Russia
- Has thanked: 967 times
- Been thanked: 192 times
- Contact:
Re: Armored Warfare .PAK
Those files contains only mask for game shader in Blue color channel of map, maybe for camo or metallic gloss.BAKMS wrote:something strange with the .dds.# files.
_d file is showing Red is this normal? the other files are working fine.
_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
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.
The ones i am finding for the antennas.
do know where they located?
i checked the resources and textures.
-
- veteran
- Posts: 116
- Joined: Tue Dec 24, 2013 2:42 am
- Has thanked: 5 times
- Been thanked: 65 times
Re: Armored Warfare .PAK
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.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.
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
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
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.
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.
-
- veteran
- Posts: 116
- Joined: Tue Dec 24, 2013 2:42 am
- Has thanked: 5 times
- Been thanked: 65 times
Re: Armored Warfare .PAK
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.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!
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
here is the m1a1_turret_m1a1.cgf file name
Is this what you were asking about?
Is this what you were asking about?
-
- veteran
- Posts: 116
- Joined: Tue Dec 24, 2013 2:42 am
- Has thanked: 5 times
- Been thanked: 65 times
Re: Armored Warfare .PAK
Not exactly. Give me some time; I'm trying to fix some bugs in my script and will look at this soon.BAKMS wrote:here is the m1a1_turret_m1a1.cgf file name
Is this what you were asking about?
- Andrakann
- ultra-veteran
- Posts: 392
- Joined: Wed Jul 06, 2011 8:47 am
- Location: Russia
- Has thanked: 967 times
- Been thanked: 192 times
- Contact:
Re: Armored Warfare .PAK
No, it's just a material entry from .mtl file, used by .obj file.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
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
I feel stupid, how do I go about unpacking to get the Objects\Vehicles\ directory? I'm on NA client/server btw.Markemp wrote: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.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!
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.
-
- veteran
- Posts: 116
- Joined: Tue Dec 24, 2013 2:42 am
- Has thanked: 5 times
- Been thanked: 65 times
Re: Armored Warfare .PAK
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.zer0her0 wrote:I feel stupid, how do I go about unpacking to get the Objects\Vehicles\ directory? I'm on NA client/server btw.Markemp wrote: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.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!
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.
Copy them to a separate directory and extract using 7zip. Do NOT extract them into the original game directory.