Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ConfigFields = config.MustFields(Config{})
Functions ¶
func GetTypeFormats ¶
GetTypeFormats maps each affected type (denoted by t:<type> tag in config struct) to the selected format. Panics if two different t: tags reference the same type.
Types ¶
type Config ¶
type Config struct {
Gamedir string `cfg:"short=g tags=directory default=<auto-detect> help='Helldivers 2 game directory'"`
Audio struct {
Format string `cfg:"options=ogg,wav,aac,mp3,wwise,raw help='common media formats: ogg,wav,aac,mp3; wwise to extract as wem/bnk'"`
} `cfg:"tags=t:wwise_stream,t:wwise_bank help='audio collections/streams'"`
Video struct {
Format string `cfg:"options=mp4,bik,raw"`
} `cfg:"tags=t:bik help='video streams'"`
Texture struct {
Format string `cfg:"options=png,dds,raw"`
} `cfg:"tags=t:texture"`
Unit struct {
SingleFile bool `cfg:"help='combine all units into a single blend/glb file'"`
ImageFormat string `cfg:"tags=advanced options=png,jpeg"`
PngCompression string `cfg:"tags=advanced depends=Unit.ImageFormat=png options=default,none,fast,best"`
JpegQuality int `cfg:"tags=advanced depends=Unit.ImageFormat=jpeg range=1...100 default=90"`
AllTextures bool `cfg:"tags=advanced help='include all referenced textures, including wounds, marks etc. and unknown ones'"`
AccurateOnly bool `cfg:"tags=advanced"`
SampleAnimations bool `cfg:"help='more accurate for now, as spline interpolation conversion isn\\'t implemented yet'"`
AnimationSampleRate int `cfg:"depends=Unit.SampleAnimations range=12...144 default=30"`
} `cfg:"help='general unit settings, affects materials, models and animations'"`
Material struct {
Format string `cfg:"options=blend,glb,textures,raw help='material export format; textures dumps all referenced textures into a folder'"`
TexturesFormat string `cfg:"depends=Material.Format=textures options=png,dds help='format of individual textures if Format is textures'"`
} `cfg:"tags=t:material help='see unit options'"`
Model struct {
Format string `cfg:"options=blend,glb,raw help='model export format'"`
IncludeLODS bool `cfg:"help='include meshes of all levels-of-detail'"`
IncludeGibs bool `cfg:"help='include meshes with gib materials'"`
EnableAnimations bool `cfg:"help='export model animations, can take much longer'"`
EnableAnimationController bool `` /* 168-byte string literal not displayed */
JoinComponents bool `cfg:"tags=advanced help='join UDIM components'"`
BoundingBoxes bool `cfg:"tags=advanced help='export model bounding boxes'"`
NoBones bool `cfg:"tags=advanced help='don\\'t include bones'"`
} `cfg:"tags=t:unit,t:geometry_group,t:prefab help='see unit options'"`
Animation struct {
Format string `cfg:"options=json,raw"`
} `cfg:"tags=t:animation,t:state_machine help='see unit options'"`
Text struct {
Format string `cfg:"options=json,raw"`
} `cfg:"tags=t:strings,t:package,t:bones help='only-text-exportable formats'"`
Raw struct {
Format string `` /* 146-byte string literal not displayed */
} `cfg:"help='applies to any file without an available extractor or \"raw\" as the selected format'"`
}
This is the central config structure used in the GUI and CLI. Tags starting with "t:" are custom and used to identify which game file types the category is targeting.
Click to show internal directories.
Click to hide internal directories.