ExtraConfig

Struct ExtraConfig 

Source
pub struct ExtraConfig {
Show 73 fields pub circus_mes_type: Option<CircusMesType>, pub escude_fake_compress: bool, pub escude_enum_scr: Option<String>, pub bgi_import_duplicate: bool, pub bgi_disable_append: bool, pub image_type: Option<ImageOutputType>, pub bgi_is_sysgrp_arc: Option<bool>, pub bgi_img_scramble: Option<bool>, pub cat_system_int_encrypt_password: Option<String>, pub cat_system_image_canvas: bool, pub kirikiri_language_index: Option<usize>, pub kirikiri_export_chat: bool, pub kirikiri_chat_key: Option<Vec<String>>, pub kirikiri_chat_json: Option<Arc<HashMap<String, HashMap<String, (String, usize)>>>>, pub kirikiri_languages: Option<Arc<Vec<String>>>, pub kirikiri_remove_empty_lines: bool, pub kirikiri_name_commands: Arc<HashSet<String>>, pub kirikiri_message_commands: Arc<HashSet<String>>, pub bgi_compress_file: bool, pub bgi_compress_min_len: usize, pub emote_pimg_overlay: Option<bool>, pub artemis_arc_disable_xor: bool, pub artemis_indent: Option<usize>, pub artemis_no_indent: bool, pub artemis_max_line_width: usize, pub artemis_ast_lang: Option<String>, pub cat_system_cstl_lang: Option<String>, pub zlib_compression_level: u32, pub png_compression_level: PngCompressionLevel, pub circus_crx_keep_original_bpp: bool, pub circus_crx_zstd: bool, pub zstd_compression_level: i32, pub circus_crx_mode: CircusCrxMode, pub ex_hibit_rld_xor_key: Option<u32>, pub ex_hibit_rld_def_xor_key: Option<u32>, pub ex_hibit_rld_keys: Option<Box<[u32; 256]>>, pub ex_hibit_rld_def_keys: Option<Box<[u32; 256]>>, pub jpeg_quality: u8, pub webp_lossless: bool, pub webp_quality: u8, pub circus_crx_canvas: bool, pub custom_yaml: bool, pub entis_gls_srcxml_lang: Option<String>, pub will_plus_ws2_no_disasm: bool, pub artemis_panmimisoft_txt_blacklist_names: Arc<HashSet<String>>, pub artemis_panmimisoft_txt_lang: Option<String>, pub lossless_audio_fmt: LosslessAudioFormat, pub flac_compression_level: u32, pub artemis_asb_format_lua: bool, pub kirikiri_title: bool, pub favorite_hcb_filter_ascii: bool, pub bgi_img_workers: usize, pub jxl_lossless: bool, pub jxl_distance: f32, pub jxl_workers: usize, pub psb_process_tlg: bool, pub pgd_fake_compress: bool, pub softpal_add_message_index: bool, pub kirikiri_chat_multilang: bool, pub xp3_simple_crypt: bool, pub xp3_mdf_decompress: bool, pub xp3_segmenter: SegmenterConfig, pub xp3_compress_files: bool, pub xp3_compress_index: bool, pub xp3_compress_workers: usize, pub xp3_zstd: bool, pub xp3_pack_workers: usize, pub xp3_no_adler: bool, pub kirikiri_language_insert: bool, pub musica_game_title: Option<String>, pub musica_xor_key: Option<u8>, pub musica_compress: bool, pub bgi_add_space: bool,
}
Expand description

Extra configuration options for the script.

Fields§

§circus_mes_type: Option<CircusMesType>
Available on crate feature circus only.

Circus Game for circus MES script.

§escude_fake_compress: bool
Available on crate feature escude-arc only.

Whether to use fake compression for Escude archive

§escude_enum_scr: Option<String>
Available on crate feature escude only.

The path to the Escude enum script file (enum_scr.bin)

§bgi_import_duplicate: bool
Available on crate feature bgi only.

Duplicate same strings when importing into BGI scripts. Enable this will cause BGI scripts to become very large.

§bgi_disable_append: bool
Available on crate feature bgi only.

Disable appending new strings to the end of BGI scripts. Disable may cause BGI scripts broken.

§image_type: Option<ImageOutputType>
Available on crate feature image only.

Output image type

§bgi_is_sysgrp_arc: Option<bool>
Available on crate features bgi-arc and bgi-img only.

Detect all files in BGI archive as SysGrp Images. By default, only files which name is sysgrp.arc will enabled this.

§bgi_img_scramble: Option<bool>
Available on crate feature bgi-img only.

Whether to create scrambled SysGrp images. When in import mode, the default value depends on the original image. When in creation mode, it is not enabled by default.

§cat_system_int_encrypt_password: Option<String>
Available on crate feature cat-system-arc only.

CatSystem2 engine int archive password

§cat_system_image_canvas: bool
Available on crate feature cat-system-img only.

Draw CatSystem2 image on canvas (if canvas width and height are specified in file)

§kirikiri_language_index: Option<usize>
Available on crate feature kirikiri only.

Kirikiri language index in script. If not specified, the first language will be used.

§kirikiri_export_chat: bool
Available on crate feature kirikiri only.

Export chat message to extra json file. (for Kirikiri SCN script.) For example, CIRCUS’s comu message. Yuzusoft’s phone chat message.

§kirikiri_chat_key: Option<Vec<String>>
Available on crate feature kirikiri only.

Kirikiri chat message key. For example, CIRCUS’s key is “comumode”. Yuzusoft’s key is “phonechat”. If not specified, “comumode” will be used.

§kirikiri_chat_json: Option<Arc<HashMap<String, HashMap<String, (String, usize)>>>>
Available on crate feature kirikiri only.

Kirikiri chat message translation. The outter object’s key is filename(global is a special key). The inner object: key is original text, value is (translated text, original text count).

§kirikiri_languages: Option<Arc<Vec<String>>>
Available on crate feature kirikiri only.

Kirikiri language list. First language code is code for language index 1.

§kirikiri_remove_empty_lines: bool
Available on crate feature kirikiri only.

Remove empty lines in Kirikiri KS script.

§kirikiri_name_commands: Arc<HashSet<String>>
Available on crate feature kirikiri only.

Kirikiri name commands, used to extract names from ks script.

§kirikiri_message_commands: Arc<HashSet<String>>
Available on crate feature kirikiri only.

Kirikiri message commands, used to extract more message from ks script.

§bgi_compress_file: bool
Available on crate feature bgi-arc only.

Whether to compress files in BGI archive when packing BGI archive.

§bgi_compress_min_len: usize
Available on crate feature bgi-arc only.

Minimum length of match size for DSC compression. Possible values are 2-256.

§emote_pimg_overlay: Option<bool>
Available on crate feature emote-img only.

Whether to overlay PIMG images. (By default, true if all layers are not group layers.)

§artemis_arc_disable_xor: bool
Available on crate feature artemis-arc only.

Disable Artemis archive (.pfs) XOR encryption when packing.

§artemis_indent: Option<usize>
Available on crate feature artemis only.

Artemis script indent size, used to format Artemis script. Default is 4 spaces.

§artemis_no_indent: bool
Available on crate feature artemis only.

Disable Artemis script indent, used to format Artemis script.

§artemis_max_line_width: usize
Available on crate feature artemis only.

Max line width in Artemis script, used to format Artemis script.

§artemis_ast_lang: Option<String>
Available on crate feature artemis only.

Specify the language of Artemis AST script. If not specified, the first language will be used.

§cat_system_cstl_lang: Option<String>
Available on crate feature cat-system only.

CatSystem2 CSTL script language, used to extract messages from CSTL script. If not specified, the first language will be used.

§zlib_compression_level: u32
Available on crate feature flate2 only.

Zlib compression level. 0 means no compression, 9 means best compression.

§png_compression_level: PngCompressionLevel
Available on crate feature image only.

PNG compression level.

§circus_crx_keep_original_bpp: bool
Available on crate feature circus-img only.

Keep original BPP when importing Circus CRX images.

§circus_crx_zstd: bool
Available on crate feature circus-img only.

Use zstd compression for Circus CRX images. (CIRCUS Engine don’t support this. Hook is required.)

§zstd_compression_level: i32
Available on crate feature zstd only.

Zstd compression level. 0 means default compression level (3), 22 means best compression.

§circus_crx_mode: CircusCrxMode
Available on crate feature circus-img only.

Circus CRX image row type mode

§ex_hibit_rld_xor_key: Option<u32>
Available on crate feature ex-hibit only.

ExHibit xor key for rld script. Use ReExHIBIT to find the key.

§ex_hibit_rld_def_xor_key: Option<u32>
Available on crate feature ex-hibit only.

ExHibit def.rld xor key.

§ex_hibit_rld_keys: Option<Box<[u32; 256]>>
Available on crate feature ex-hibit only.

ExHibit rld xor keys.

§ex_hibit_rld_def_keys: Option<Box<[u32; 256]>>
Available on crate feature ex-hibit only.

ExHibit def.rld xor keys.

§jpeg_quality: u8
Available on crate feature mozjpeg only.

JPEG quality for output images, 0-100. 100 means best quality.

§webp_lossless: bool
Available on crate feature webp only.

Use WebP lossless compression for output images.

§webp_quality: u8
Available on crate feature webp only.

WebP quality for output images, 0-100. 100 means best quality.

§circus_crx_canvas: bool
Available on crate feature circus-img only.

Draw Circus CRX images on canvas (if canvas width and height are specified in file)

§custom_yaml: bool

Try use YAML format instead of JSON when custom exporting.

§entis_gls_srcxml_lang: Option<String>
Available on crate feature entis-gls only.

Entis GLS srcxml script language, used to extract messages from srcxml script. If not specified, the first language will be used.

§will_plus_ws2_no_disasm: bool
Available on crate feature will-plus only.

Disable disassembly for WillPlus ws2 script. Use another parser to parse the script. Should only be used when the default parser not works well.

§artemis_panmimisoft_txt_blacklist_names: Arc<HashSet<String>>
Available on crate feature artemis-panmimisoft only.

Artemis Engine blacklist tag names for TXT script. This is used to ignore these tags when finding names in Artemis TXT (ぱんみみそふと) script.

§artemis_panmimisoft_txt_lang: Option<String>
Available on crate feature artemis-panmimisoft only.

Specify the language of Artemis TXT (ぱんみみそふと) script. If not specified, the first language will be used.

§lossless_audio_fmt: LosslessAudioFormat
Available on crate feature lossless-audio only.

Audio format for output lossless audio files.

§flac_compression_level: u32
Available on crate feature audio-flac only.

FLAC compression level for output FLAC audio files. 0 means fastest compression, 8 means best compression. Default level is 5.

§artemis_asb_format_lua: bool
Available on crate feature artemis only.

Format lua code in Artemis ASB script(.asb/.iet) when exporting.

§kirikiri_title: bool
Available on crate feature kirikiri only.

Whether to handle title in Kirikiri SCN script.

§favorite_hcb_filter_ascii: bool
Available on crate feature favorite only.

Whether to filter ascii strings in Favorite HCB script.

§bgi_img_workers: usize
Available on crate feature bgi-img only.

Workers count for decode BGI compressed images v2 in parallel. Default is half of CPU cores. Set this to 1 to disable parallel decoding. 0 means same as 1.

§jxl_lossless: bool
Available on crate feature image-jxl only.

Use JXL lossless compression for output images. Enabled by default.

§jxl_distance: f32
Available on crate feature image-jxl only.

JXL distance for output images. 0 means mathematically lossless compression. 1.0 means visually lossless compression. Allowed range is 0.0-25.0. Recommended range is 0.5-3.0. Default value is 1.0.

§jxl_workers: usize
Available on crate feature image-jxl only.

Workers count for encode JXL images in parallel. Default is 1. Set this to 1 to disable parallel encoding. 0 means same as 1

§psb_process_tlg: bool
Available on crate feature emote-img only.

Process tlg images.

§pgd_fake_compress: bool
Available on crate feature softpal-img only.

Whether to use fake compression for Softpal Pgd images. Enabled by default. WARN: Compress may cause image broken.

§softpal_add_message_index: bool
Available on crate feature softpal only.

Whether to add message index to Softpal src script when exporting.

§kirikiri_chat_multilang: bool
Available on crate feature kirikiri only.

Enable multi-language support for Kirikiri chat messages. Default is true. Note: This requires Self::kirikiri_language_index and Self::kirikiri_languages to be set correctly.

§xp3_simple_crypt: bool
Available on crate feature kirikiri-arc only.

Decrypt SimpleCrypt files in Kirikiri XP3 archive when extracting. Default is true.

§xp3_mdf_decompress: bool
Available on crate feature kirikiri-arc only.

Decompress mdf files in Kirikiri XP3 archive when extracting. Default is true.

§xp3_segmenter: SegmenterConfig
Available on crate feature kirikiri-arc only.

Configuration for Kirikiri XP3 segmenter when creating XP3 archive.

§xp3_compress_files: bool
Available on crate feature kirikiri-arc only.

Compress files in Kirikiri XP3 archive when creating. Default is true.

§xp3_compress_index: bool
Available on crate feature kirikiri-arc only.

Compress index in Kirikiri XP3 archive when creating. Default is true.

§xp3_compress_workers: usize
Available on crate feature kirikiri-arc only.

Workers count for compress files in Kirikiri XP3 archive when creating in parallel. Default is CPU cores count.

§xp3_zstd: bool
Available on crate feature kirikiri-arc only.

Use zstd compression for files in Kirikiri XP3 archive when creating. (Warning: Kirikiri engine don’t support this. Hook is required.)

§xp3_pack_workers: usize
Available on crate feature kirikiri-arc only.

Workers count for packing file in Kirikiri XP3 archive in parallel. Default is 1. This not works when segment is disabled.

§xp3_no_adler: bool
Available on crate feature kirikiri-arc only.

Disable adler32 checksum for Kirikiri XP3 archive when creating. This will keep compatibility with https://github.com/arcusmaximus/KirikiriTools tool.

§kirikiri_language_insert: bool
Available on crate feature kirikiri only.

Insert new language at the specified index in Kirikiri SCN script. If index is out of bounds, this flags will be ignored.

§musica_game_title: Option<String>
Available on crate feature musica-arc only.

Musica game title for paz archive.

§musica_xor_key: Option<u8>
Available on crate feature musica-arc only.

Musica xor key for paz archive.

§musica_compress: bool
Available on crate feature musica-arc only.

Whether to compress files in Musica paz archive when packing paz archive.

§bgi_add_space: bool
Available on crate feature bgi only.

Add an additional space at the end of message in BGI scripts when importing. This may help BGI engine to display the message correctly in save/load screen for some games.

Trait Implementations§

Source§

impl Clone for ExtraConfig

Source§

fn clone(&self) -> ExtraConfig

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ExtraConfig

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for ExtraConfig

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> AnyDebug for T
where T: Debug + Any,

Source§

impl<T> ErasedDestructor for T
where T: 'static,