Library for working with world of tanks resources.
Thanks Coffee_ for doing most of the hard work. I just rewritten his scripts to python.
Allows you to extract file from wot packages without knowing in which package file actually is. You can cache package index for faster use.
wot_path - path to World of Tanks root directory
cache_path - cache path or None to disable caching
cache_path - cache path or None to disable caching
Cache path is used for storing package index and maybe more in future
wot_path - path to World of Tanks root directory
package_file - path to file inside packages
result_file - where to should be file extracted
Extracts file from packages
package_file - path to file inside packages
mode - mode to be opened in
Opens file inside package. Note this file will have limited functionality. Refer to the zipfile.open.
path - path to walk throught
recursive - cycle all files inside path (only files directly inside path will be listed otherwise)
Will yeild paths to files inside path
Unpacks wot packed xml files
stream - file handle to read data from
Returns xml.etree.ElementTree of root
Enables you to read wot models
primitives_fh - file handle of primitives file
visual_fh - file handle of associated visual file
Reads visual model. Returns Primitive
Contains data about wot model. Refer to ModelWriter for more informations
Contains render sets, which then contains primitive groups.
Contains model bounding box in following format [[min_x, min_y, min_z], [max_x, max_y, max_z]]
Contains nodes and their transforms. Those nodes are used for positions of stuff... not for model
Contains data about one render set
Nodes used in this render set. Purpose unknown.
Contains primitive groups data
Contains raw group data
Group material
Group vertices
Group indices, 3 indices = one triangle
Exports primitive to OBJ (and mtl if set)
export material
export normals
export uv
compress result obj and mtl using zlib
textures root used in mlt
Receives params: (texture_path, texture_type). Returns new texture_path used in mtl. This callback overrides the textureBase prop