kotiq / wt-tools

War Thunder resource extraction tools
29 stars 3 forks source link

NameMap - Unable to decipher #13

Closed Avarik closed 1 year ago

Avarik commented 1 year ago

I noticed that the NameMap (nm) file is undecipherable with the current version of WT Tools, or any for that matter. That file contains the structural use of same game code and commands, specifically for the mission editor and unit overwrite configs.

Is there any way to unlock this file or make it readable? image

kotiq commented 1 year ago

The name map contains section keys and strings. You can use one of the blk package functions.

In [1]: from blk.binary import compose_partial_names

In [2]: with open('aces.vromfs.bin_u/nm', 'rb') as fh:
   ...:     names = compose_partial_names(fh)
   ...: 

In [3]: len(names)
Out[3]: 106500

In [4]: print('\n'.join(map(lambda s: repr(str(s)), names[:5])))
'__allowedConfigOverrides'
'graphicsQuality'
'renderer'
'region'
'releaseChannel'