WTLiker 战争雷霆涂装中文镜像站

WarThunder Exporter-EN

WarThunder Exporter-EN 封面

简介

Please note that this is NOT a Camouflage!

Please note that this is NOT a Camouflage!

War Thunder Asset Helper for Substance 3D Painter

What is this plugin & why should it be used?

Simply put, this plugin is designed for the mainstream texturing software Substance 3D Painter (hereinafter referred to as SP). It is created to assist War Thunder skin makers and significantly improve the efficiency of skin production.

Its features include:

Directly using in-game textures without the need for the War Thunder CDK.
Automatically processing and splitting textures.
Automatically applying textures to Texture Sets.
Automatically exporting textures and generating .blk files.

If you are familiar with skin creation, you might notice that these technical features are not inherently complex; rather, the traditional workflow requires juggling multiple programs. In many cases, skin makers have to constantly switch back and forth between SP and other image editing software (like Photoshop), manually write .blk files, and repeatedly test the results in-game.

Now, you can use this plugin for a one-stop import and export workflow, which saves a considerable amount of time (at least from my personal experience). If you also use SP for skin making and wish to make this process easier, you are more than welcome to try out this plugin!

This post only contains the frontend files, which cannot be used independently (though basic export features are still available). Since WT Live does not allow the upload of executable files, the complete plugin is shared via MEGA. The link is as follows: https://mega.nz/file/lmYWSayK#FHv-Jwb5BbebUveBgLNDSfjFaRA0WkhpczC0Nezanjw

Installation Guide:

Ensure your Substance 3D Painter (SP) version is 11.0.0 or higher (Steam edition 2025 or later).
Open the Plugins Folder: Launch SP, click on the Python menu at the top of the interface, and select Plugins folder from the drop-down list.
Extract the Archive: Extract the plugin archive into this plugins directory. Ensure that __init__.py and the other associated files are placed directly inside the extracted folder. Example folder structure: X:\Adobe\Adobe Substance 3D Painter\python\plugins\WarThunder_Exporter-EN\__init__.py
Reload Plugins: Return to the SP window, open the Python menu again, and click Reload plugins folder.

Enable the Plugin: If installed correctly, you will see a plugin named WarThunder_Exporter-EN listed in the Python menu (this name depends on what you named the extracted folder, which you can freely change). Click on it to start the plugin.
Verify Operation: If everything is working properly, the plugin window will pop up. Additionally, a new menu item named War Thunder Assets will appear on the top menu bar. You can use the button within this menu to reopen the plugin window if you ever manually close it.

The interface of the plugin is as follows:

Detailed Feature Description:

Top Status Bar

Set Path: Upon first use, please click this button to locate and set the directory to your local War Thunder game root folder, for example, "C:\Games\WarThunder". Once successfully located, the current directory will be displayed on the far left.

Check for Updates: Clicking this button will check if the current cache (if any) matches the game and update it. This process takes approximately 1 to 5 minutes, depending on the version of the game client being used, and the cache creation progress will be displayed at the bottom. Please note that while other features remain fully functional during the cache creation, you may experience some stuttering due to memory read/write operations. The cache directory is located within the plugin's installation folder.

To the left of the buttons, the current game version and the current cache version will be displayed. The text will appear green if they match, yellow if a cache exists but does not match, and red if there is no cache.

Section 1: Asset Browser

The features in this area require you to have created a cache in the previous step. Its function is to retrieve texture resources from the cache, featuring two search modes:

Manual Search: If you know the vehicle's name, you can directly input keywords to search. Keywords that are too short or misspelled may cause the results to display incorrectly.

Camouflage/Template: Directly use the templates within the UserSkins folder (template files generated directly from the game) or other custom skins to retrieve their referenced textures. The button on the left can toggle between "Recently Used" and "Sort by Name". It is recommended to keep it sorted by recently used, as newly created templates will naturally appear at the top. The "Refresh List" button on the right allows you to manually refresh the display after creating a new template.

Regardless of the method used, upon a successful search, the list below will display the in-game asset names. The version with the highest resolution will be displayed at the very top (you can click the list header to toggle the sorting mode), and you will notice that textures of different resolutions feature corresponding color-coded indicators.

In the results list below, find the texture you need, then either double-click it or right-click and select Add to Asset list to send it to the pending list on the right.

Section 2 (Middle-Left):

The features in this section require you to have added textures to the pending list in the previous section. Once added, you can see the specific textures in the Asset List above.

Auto Import: It is recommended to select "Current Project". After unpacking, the textures will be automatically imported into the current SP project's resource library.

Split _n: You can choose whether to split the _n texture into independent roughness, metallic, and normal maps during unpacking, and decide whether to keep the original .dds texture.

Split _c: You can choose whether to split the Alpha layer of the _c texture during unpacking (only applicable to ground vehicle textures that utilize an alpha channel).

Use Set Path to configure the directory for the exported textures, then click the green Unpack Selected button. The plugin will complete the unpacking process in the background and import the textures into SP according to your settings.

Section 3 (Middle-Right):

The purpose of this section is to link textures to the model's texture sets and automatically apply them.

List Display: This area displays all the Texture Sets in your current SP project.

Link Selected to Texture Set: Select the unpacked textures in the Section 2 list (typically, you need to select one _c texture and one _n texture), select the corresponding texture set in the Section 3 list, and click the orange Link Selected to Texture Set button to link them. Linking can be done even if the textures haven't been imported yet. Furthermore, the texture link status is saved per project file, meaning these links will be preserved even if SP is closed or you switch projects. You can also click Search by Linked Texture in Section 2 to quickly add the corresponding textures to the unpack list based on these established links. Right-clicking a texture in the list allows you to disconnect the link or transfer it to another texture set. Textures that have already been imported will be displayed in green.

Apply Linked Textures: Select the texture sets that have linked textures (you can drag or press Shift/Alt for multiple selection), and click the blue Apply Linked Textures button. The plugin will automatically create a layer in SP containing the BaseColor, Roughness, Metallic, and Normal maps. If you previously chose not to split the textures, the plugin will attempt to use the included WTNRipper material to split the channels of the _n texture. This material is located in the tools folder within the plugin directory under the name WTNRipper.sbsar. You may need to manually import it into SP.

Search Import from Unpack Dir: If you already have the specified textures on your drive but haven't imported them (regardless of whether they were acquired via the plugin or if they are split), you can click this button to try finding and importing the corresponding textures from the unpack directory based on their links.

Section 4 (Far Right):

This section is used to output the packed .dds textures and generate .blk files.

Basic Settings:
Camouflage Name (Folder Name): If left blank, the camouflage folder will be created based on your current project's name. You can enter a specific name here to customize the folder name.

Export Destination: You can choose to export to the UserSkins folder, a custom folder, or both. The buttons below allow you to directly open the UserSkins directory, set a custom export directory, and open the custom directory. The custom path will be displayed below.

The two checkboxes below determine whether to merge the initially exported Mask into the alpha channel of the color texture. This is generally used for ground vehicles and can be checked as needed.

Export Size: You can select an image output size up to 8192x8192, but please note that the BC3/DXT5 format only supports a maximum of 4K output.

Padding: If Infinite Dilation is checked, it will normally output textures with infinite padding. If unchecked, it will apply padding according to the settings on the right, up to a maximum of 100 pixels.

_c Apply & _n Apply: Used to set the application mode for color and material textures when generating the .blk file. You can choose between "set" and "replace".

BLK Gen Mode: You can choose not to generate a .blk file, generate from a template, generate from textures, or generate with a custom filename. It is highly recommended to use "Generate from Template". This requires you to select a template from the list in Section 1, and the plugin will directly use the filenames and texture names from that template; in most cases, this is the most accurate method. Generating from textures requires you to manually select the vehicle type and nation; for some vehicles with specific capitalization requirements (especially WWII German vehicles), .blk files generated this way might not be recognized by the game.

Export Format: You can choose to output .dds files in either RGBA 8.8.8.8 or BC3/DXT5 format. RGBA 8.8.8.8 is generally recommended.

Execute Export & Pack: After completing the setup, click this button to automatically output the textures, pack them into .dds files of the specified format, and generate the .blk file according to your settings. The export speed is very fast, but the packing and generation processes will take some time, usually within 1 minute. You will receive a notification upon completion. If everything is correct, you will be able to see the corresponding skin directly in the game. You can also click Generate BLK Only below to generate the .blk file independently.

Some Notes and Known Issues:

The current status and progress will be displayed in the bottom-left corner.
Some textures for pylons, drop tanks, etc., might fail to unpack, but all the vehicles I have tested work perfectly.
If the unpack format is set to BC3/DXT5, SP might not be able to recognize the files.
If you manually close the plugin window and open it again, multiple "War Thunder Asset Helper" windows will be generated under the Window -> Views menu. There is currently no good workaround for this.
Cache files, texture links, logs, and error reports are all stored within the plugin folder. You will need to reserve approximately 100MB of disk space.
Exported textures currently only support a 1:1 aspect ratio. Textures with original ratios like 2:1 or 4:1 might require manual modification (the game can actually read 1:1 textures just fine in these cases, but the file size will be significantly larger).

I have tried my best to explain all the features as clearly as possible. If you encounter any other issues or if there is anything I missed, please feel free to leave a comment or send me a private message. I really rely on your feedback to help improve this plugin. Thank you all in advance!

Some features of this project are based on the Dagor Asset Explorer on GitHub. A huge thanks to quentin-dh for his hard work and contribution!

You are free to use and adapt this plugin without my permission (though I'd be happy to know if you make improvements). I hope you enjoy using it, and I hope it's helpful to everyone!

#script #substancepainter #plugin #tools

更新记录

评价

登录后可以评分和评价。

  • 还没有人评价。