UsfExporter Reference¶
UsfExporter is Saber's internal tool, wrapped in Python to provide a command-line interface. To use it:
- Install Python.
- Run the script.
- Install required packages.
- Run the script again.
Converting USF to TPL¶
To convert USF to TPL:
python3 convert_tpl.py <full path to your USF file>
or
python convert_tpl.py <full path to your USF file>
Converting TGA to PCT¶
To convert TGA to PCT:
python3 convert_pct.py <full path to your TGA file>
or
python convert_pct.py <full path to your TGA file>
TD file¶
Note that convert_pct.py requires a TD file. Get the TD file from the game or make your own and place it in the project/assets/td/ folder.
Simple TD file:
convert_settings = {
resample = 0
mipmap_level = 12
format_name = "MD"
format_descr = "Diff(rgb)"
uncompressed_flag = false
fade_flag = false
fade_begin = 0
fade_end = 0
color = {
R = 127.000000
G = 127.000000
B = 127.000000
A = 0.000000
}
filter = 0
sharpen = 1
compressionQuality = 3
force_use_oxt1_flag = false
fp16 = false
}
materials = {
default = {
preset = "default"
__type_id = "material_templ"
}
}
usage = "MD"
version = 1
Resource file is generated automatically.
Warhammer 40,000: Space Marine 2 © Games Workshop Limited 2024. Space Marine, the Space Marine logo, GW, Games Workshop, 40K, Warhammer, Warhammer 40,000, 40,000, the 'Aquila' Double-headed Eagle logo, and all associated logos, illustrations, images, names, creatures, races, vehicles, locations, weapons, characters, and the distinctive likeness thereof, are either ® or TM, and/or © Games Workshop Limited, variably registered around the world, and used under licence. Focus Entertainment and its logos are trademarks, registered or not, of Focus Entertainment. Saber Interactive and its logos are trademarks, registered or not, of Saber Interactive. Powered by Wwise © 2006 – 2024 Audiokinetic Inc. Havok software is © 2024 Microsoft. Uses Bink Video. Copyright © 1997-2024 by Epic Games Tools LLC. All rights reserved to their respective owners.