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

Warthunder/Dagor Engine archives.

The Original Forum. Game archives, full of resources. How to open them? Get help here.
WatchDog
ultra-n00b
Posts: 4
Joined: Mon Mar 17, 2014 1:48 pm
Been thanked: 2 times

Warthunder/Dagor Engine archives.

Post by WatchDog »

So I have been spending the last few days trying to decipher the archive files in the free to play game "WarThunder".
Developed by Gaijin entertainment, it uses their in house "Dagor" engine.
According to its wikipedia page(Russian) there are at least 19 games using the engine.
However, I am only interested in WarThunder.

This topic has already been somewhat discussed for a different game(Blades of Time) here: viewtopic.php?f=10&t=8794&hilit=vromfs

The WarThunder game files contain a few different types of archive files.
I have had varying levels of success trying to decipher them.

The main archive types within the game are:
  • vromfs.bin
  • dxp.bin
  • grp
  • blk
vromfs.bin
Header Bytes: 56 52 46 73 00 00 50 43(VRFs PC)
Description:
VROMFS archives are fairly basic.
They consist of 6 parts. All lengths and addresses are Little Endian.
A 16 byte header with the file type and the location of the footer and optionally the length of the decompressed data.
A 32 byte subheader with the location of the file name locations, the file locations and the number of files.
A section describing the location of the file names(Length=8 x filecount).
A section containing the file names. File names are null terminated.
A section describing the locations and lengths of the files(Length=8 x filecount, First 4 bytes is location, next 4 is length).
A section containing the file data.
A 110 byte footer of unknown content(probably some sort of checksum or signature)

vromfs files may optionally be zlib deflated.
If compressed the compression will start at 0x10, also the decompressed file length will be in the header.
I wrote a basic tool to extract files from these archives.
You can download it from github.(Requires Java 1.7)

dxp.bin
Header Bytes: 44 78 50 32 02 00 00 00 (DxP2)
Description:
These archives appear to contain textures is DDS format.
These files appear similar in layout to the vromfs files, however they seem to contain an extra section for DDS headers.
I could probably extract these and if I knew anything about DDS files/headers I might be able to do something useful with them.
At the moment they aren't my top priority.

grp
Header Bytes: 47 52 50 32 (GRP2)
Description:
I dont really know what these files contain. Probably 3d models. Based on the names.
Its fairly simple to get a file listing, but I haven't been able to get much further than that.
I am hesitant to put much effort into these as I don't know if there is any useful data inside.

blk
Header Bytes:00 42 42 46 02 00 00 00 (BBF)
Description:
These are the files I am most interested in the the moment.
These files appear to be compiled markup.
The vromfs archives are full of these.
There is one example of a user editable uncompiled blk file in the root directory of the game (config.blk).
The uncompiled file is JSON like, it has nested key values with explicit types.
I would like to be able to convert the compiled blk's back to the plaintext version.

Here is a shortened example of the plaintext version:

Code: Select all

forcedLauncher:i=0
cloudsQuality:t="high"
doShowDriversOutdated:b=yes
graphicsQuality:t="user"
renderer2:t="auto"

video{
  mode:t="fullscreen"
  postfx_antialiasing:t="high_fxaa"
  vsync:b=no
  resolution:t="2560 x 1440"
}

graphics{
  shadowQuality:t="medium"
  texquality:t="high"
  anisotropy:i=8
  numCloudLayers:i=80
  fxTexScale:r=0.25
  lastClipSize:i=8192
  fxDensityMul:r=0.9
}

render{
  selfReflection:b=yes
  motionBlur:b=no
  ssaoQuality:i=0
}
Compared to a hex dump of a compiled version(different data):
Image

So there are a few thing I would like some help with:
First of all, if anyone knows of any tools that work with these files, or knows where I can get dagor engine dev kits, then that would be appreciated.

Otherwise, I would like some help decompiling the blk files. Maybe someone can help decipher them for me.
Some hints on what to do with the DDS files would be helpful too.

If anyone needs sample files let me know, otherwise WarThunder is free to play and it can be downloaded quite easily.
You can then use my above tool to extract the vromfs files.
Last edited by WatchDog on Mon May 04, 2015 7:22 am, edited 2 times in total.
Ekey
M-M-M-Monster veteran
M-M-M-Monster veteran
Posts: 1823
Joined: Wed Mar 31, 2010 6:54 am
Has thanked: 92 times
Been thanked: 1058 times

Re: Warthunder/Dagor Engine archives.

Post by Ekey »

Very nice. Tested on Blades of Time ?
chrrox
Moderator
Posts: 2602
Joined: Sun May 18, 2008 3:01 pm
Has thanked: 57 times
Been thanked: 1422 times

Re: Warthunder/Dagor Engine archives.

Post by chrrox »

Yeah I have been working on these games.
The problem is I can not find the compressed size for model files.
I have no idea where its stored.
WatchDog
ultra-n00b
Posts: 4
Joined: Mon Mar 17, 2014 1:48 pm
Been thanked: 2 times

Re: Warthunder/Dagor Engine archives.

Post by WatchDog »

Ekey wrote:Very nice. Tested on Blades of Time ?
No, I haven't tried it on any other games.
WatchDog
ultra-n00b
Posts: 4
Joined: Mon Mar 17, 2014 1:48 pm
Been thanked: 2 times

Re: Warthunder/Dagor Engine archives.

Post by WatchDog »

So I just found out that there are official tools available for this game: http://warthunder.com/en/news/541-The-W ... der-CDK-en
raykingnihong
mega-veteran
mega-veteran
Posts: 179
Joined: Sun Apr 06, 2014 8:06 pm
Has thanked: 216 times
Been thanked: 6 times

Re: Warthunder/Dagor Engine archives.

Post by raykingnihong »

WatchDog wrote:So I just found out that there are official tools available for this game: http://warthunder.com/en/news/541-The-W ... der-CDK-en
This tool cannot export model for browsing
InnerCircle
ultra-n00b
Posts: 5
Joined: Fri Oct 31, 2014 5:29 pm
Has thanked: 4 times

Re: Warthunder/Dagor Engine archives.

Post by InnerCircle »

someone has created a tool to at least extract .vromfs.bin and dxp.bin archives

http://forum.warthunder.com/index.php?/ ... extractor/
kol93
ultra-n00b
Posts: 1
Joined: Thu Nov 20, 2014 10:59 am

Re: Warthunder/Dagor Engine archives.

Post by kol93 »

Are you still interrested in compiling/decompiling BBF (BLK) files?
I know, that this format is used to build requests/responses of your actions in (at least) hangar (War Thunder). And I have to give you some requests/responses and describe you them. Also I can intercept more requests/responses from client.
raykingnihong
mega-veteran
mega-veteran
Posts: 179
Joined: Sun Apr 06, 2014 8:06 pm
Has thanked: 216 times
Been thanked: 6 times

Re: Warthunder/Dagor Engine archives.

Post by raykingnihong »

InnerCircle wrote:someone has created a tool to at least extract .vromfs.bin and dxp.bin archives

http://forum.warthunder.com/index.php?/ ... extractor/
Thank you, this is very good news, this model has done a very fine game, I really like, I hope everyone can participate in the game, this is the download address tool : http://www.nexusmods.com/warthunder/mods/617/?
WatchDog
ultra-n00b
Posts: 4
Joined: Mon Mar 17, 2014 1:48 pm
Been thanked: 2 times

Re: Warthunder/Dagor Engine archives.

Post by WatchDog »

kol93 wrote:Are you still interrested in compiling/decompiling BBF (BLK) files?
I know, that this format is used to build requests/responses of your actions in (at least) hangar (War Thunder). And I have to give you some requests/responses and describe you them. Also I can intercept more requests/responses from client.
I am still interested, i haven't done any work on this for quite a while, but I would like to have another crack at it.
PlanesFan1
ultra-n00b
Posts: 1
Joined: Fri Jun 26, 2015 6:12 pm

Re: Warthunder/Dagor Engine archives.

Post by PlanesFan1 »

Any recent progress on this? I would like to extract the model files.
User avatar
Andrakann
ultra-veteran
ultra-veteran
Posts: 392
Joined: Wed Jul 06, 2011 8:47 am
Location: Russia
Has thanked: 967 times
Been thanked: 192 times
Contact:

Re: Warthunder/Dagor Engine archives.

Post by Andrakann »

Working tools here: https://github.com/klensy/wt-tools
But nothing for grp unpack/convert :(
DXFan619
beginner
Posts: 20
Joined: Tue Nov 24, 2015 10:03 pm
Has thanked: 14 times
Been thanked: 1 time

Re: Warthunder/Dagor Engine archives.

Post by DXFan619 »

Blender 2.49b .grp import script.

viewtopic.php?p=73250#p73250

Tested on Blades of Time, it works. Gives geometry and uv
User avatar
Andrakann
ultra-veteran
ultra-veteran
Posts: 392
Joined: Wed Jul 06, 2011 8:47 am
Location: Russia
Has thanked: 967 times
Been thanked: 192 times
Contact:

Re: Warthunder/Dagor Engine archives.

Post by Andrakann »

DXFan619 wrote:Blender 2.49b .grp import script.
Not working, I'll try to ask author for update it for WT.

I track how game loads model, by logging file reads at the moment I switched to Leopard 1 tank preview:

Code: Select all

Q:\Games\WarThunder\ui\tex.vromfs.bin
Q:\Games\WarThunder\res\germ_gm.grp
Q:\Games\WarThunder\res\collision_pack.grp
Q:\Games\WarThunder\res\gm_logic.grp
Q:\Games\WarThunder\res\germ_gm.grp
Q:\Games\WarThunder\res\gm.dxp.bin
Q:\Games\WarThunder\res\lowquality_gm.dxp.bin
Q:\Games\WarThunder\content\pkg_main\res\pkg_main_gm.dxp.bin
Q:\Games\WarThunder\content\pkg_main\res\pkg_main_tanks\germ_leopard_1.dxp.bin
Q:\Games\WarThunder\ui\tex.vromfs.bin
Q:\Games\WarThunder\content\pkg_main\res\pkg_main_tanks\germ_leopard_1.dxp.bin
Q:\Games\WarThunder\content\hq_tex\res\hq_tex_lowquality_gm.dxp.bin
Looks like all german tanks groupped into one big file (125 Mb) germ_gm.grp
Script not loads anything if I try to import this GRP, but log looks promising (attached).
I try also small plane file from res\aircrafts\a5m.grp - log looks similar:

Code: Select all

GRP


(232, 232, 329636, 128, 3, 0, 0, 140, 3)
0 a5m4_cockpit_skeleton
1 a5m4_cockpit
2 a5m4_cockpit_anim
0 (109, 27, 248, 86) (256, 0, 0, 0, 55748, 46263)
1 (224, 58, 0, 0) (1, 0, 34553, 16581, 38224, 4)
2 (2, 0, 0, 0) (55748, 46263, 1, 1, 0, 0)
SECTION
Samples of GRP's is uploaded here (114 Mb).
You do not have the required permissions to view the files attached to this post.
divmass
ultra-n00b
Posts: 1
Joined: Fri Jun 03, 2016 6:19 am

Re: Warthunder/Dagor Engine archives.

Post by divmass »

Andrakann wrote:Working tools here: https://github.com/klensy/wt-tools
But nothing for grp unpack/convert :(
I have a server responses to client requests from hangar. They have blk format (Header Bytes:00 42 42 46 02 00 00 00). But this utility are not completely unpacked server responses.
Anyone can help me?
You do not have the required permissions to view the files attached to this post.
Post Reply