pub struct Arg {Show 99 fields
pub script_type: Option<ScriptType>,
pub output_type: Option<OutputScriptType>,
pub output_no_extra_ext: bool,
pub image_type: Option<ImageOutputType>,
pub encoding: Option<TextEncoding>,
pub code_page: Option<u32>,
pub output_encoding: Option<TextEncoding>,
pub output_code_page: Option<u32>,
pub archive_encoding: Option<TextEncoding>,
pub archive_code_page: Option<u32>,
pub circus_mes_type: Option<CircusMesType>,
pub recursive: bool,
pub backtrace: bool,
pub escude_fake_compress: bool,
pub escude_enum_scr: Option<String>,
pub bgi_import_duplicate: bool,
pub bgi_disable_append: bool,
pub bgi_is_sysgrp_arc: Option<bool>,
pub bgi_img_scramble: Option<bool>,
pub bgi_img_workers: usize,
pub cat_system_int_encrypt_password: Option<String>,
pub cat_system_int_exe: 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<String>,
pub kirikiri_chat_dir: Option<String>,
pub kirikiri_languages: Option<Vec<String>>,
pub kirikiri_title: bool,
pub kirikiri_chat_no_multilang: bool,
pub kirikiri_remove_empty_lines: bool,
pub kirikiri_name_commands: Vec<String>,
pub kirikiri_message_commands: Vec<String>,
pub image_output_flat: bool,
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 artemis_asb_no_format_lua: bool,
pub artemis_panmimisoft_txt_blacklist_names: Vec<String>,
pub artemis_panmimisoft_txt_lang: Option<String>,
pub artemis_panmimisoft_txt_tag_ini: 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 circus_crx_canvas: bool,
pub force_script: bool,
pub ex_hibit_rld_xor_key: Option<String>,
pub ex_hibit_rld_xor_key_file: Option<String>,
pub ex_hibit_rld_def_xor_key: Option<String>,
pub ex_hibit_rld_def_xor_key_file: Option<String>,
pub ex_hibit_rld_keys: Option<String>,
pub ex_hibit_rld_def_keys: Option<String>,
pub jpeg_quality: u8,
pub webp_lossless: bool,
pub webp_quality: u8,
pub custom_yaml: Option<bool>,
pub entis_gls_srcxml_lang: Option<String>,
pub will_plus_ws2_no_disasm: bool,
pub lossless_audio_fmt: LosslessAudioFormat,
pub flac_compression_level: u32,
pub llm_trans_mark: Option<String>,
pub favorite_hcb_no_filter_ascii: bool,
pub jxl_lossy: bool,
pub jxl_distance: f32,
pub jxl_workers: usize,
pub image_workers: usize,
pub jieba_dict: Option<String>,
pub psb_no_process_tlg: bool,
pub pgd_compress: bool,
pub no_multi_message: bool,
pub softpal_add_message_index: bool,
pub xp3_no_simple_crypt: bool,
pub xp3_no_mdf_decompress: bool,
pub xp3_segmenter: SegmenterConfig,
pub xp3_no_compress_files: bool,
pub xp3_no_compress_index: bool,
pub xp3_compress_workers: usize,
pub xp3_zstd: bool,
pub xp3_pack_workers: usize,
pub kirikiri_language_insert: bool,
pub musica_game_title: Option<String>,
pub musica_xor_key: Option<u8>,
pub musica_compress: bool,
pub exit_code: i32,
pub exit_code_all_failed: Option<i32>,
pub m3t_no_quote: bool,
pub xp3_no_adler: bool,
pub bgi_add_space: bool,
pub command: Command,
}Expand description
Tools for export and import scripts
Fields§
§script_type: Option<ScriptType>Script type
output_type: Option<OutputScriptType>Output script type
output_no_extra_ext: boolDisable extra extension when locating/export output script
image_type: Option<ImageOutputType>image only.Output image type
encoding: Option<TextEncoding>Script encoding
code_page: Option<u32>Script code page
output_encoding: Option<TextEncoding>Output text encoding
output_code_page: Option<u32>Output code page
archive_encoding: Option<TextEncoding>Archive filename encoding
archive_code_page: Option<u32>Archive code page
circus_mes_type: Option<CircusMesType>circus only.Circus Game
recursive: boolSearch for script files in the directory recursively
backtrace: boolPrint backtrace on error
escude_fake_compress: boolescude-arc only.Whether to use fake compression for Escude archive
escude_enum_scr: Option<String>escude only.The path to the Escude enum script file (enum_scr.bin)
bgi_import_duplicate: boolbgi only.Duplicate same strings when importing into BGI scripts. Enable this will cause BGI scripts to become very large.
bgi_disable_append: boolbgi only.Disable appending new strings to the end of BGI scripts. Disable may cause BGI scripts broken.
bgi_is_sysgrp_arc: Option<bool>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>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.
bgi_img_workers: usizebgi-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.
cat_system_int_encrypt_password: Option<String>cat-system-arc only.CatSystem2 engine int archive password
cat_system_int_exe: Option<String>cat-system-arc only.The path to the CatSystem2 engine executable file. Used to get the int archive password.
cat_system_image_canvas: boolcat-system-img only.Draw CatSystem2 image on canvas (if canvas width and height are specified in file)
kirikiri_language_index: Option<usize>kirikiri only.Kirikiri language index in script. If not specified, the first language will be used.
kirikiri_export_chat: boolkirikiri 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>>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. Multiple keys can be specified separated by comma.
kirikiri_chat_json: Option<String>kirikiri only.Kirikiri chat message translation file. (Map<String, String>, key is original text, value is translated text.)
kirikiri_chat_dir: Option<String>kirikiri only.Kirikiri chat message translation directory. All json files in this directory will be merged. (Only m3t files are supported.)
kirikiri_languages: Option<Vec<String>>kirikiri only.Kirikiri language list. First language code is code for language index 1.
kirikiri_title: boolkirikiri only.Whether to handle title in Kirikiri SCN script.
kirikiri_chat_no_multilang: boolkirikiri only.Disable multi-language support for Kirikiri chat messages. (for Kirikiri SCN script.)
kirikiri_remove_empty_lines: boolkirikiri only.Remove empty lines in Kirikiri KS script.
kirikiri_name_commands: Vec<String>kirikiri only.Kirikiri name commands, used to extract names from ks script.
kirikiri_message_commands: Vec<String>kirikiri only.Kirikiri message commands, used to extract more message from ks script.
image_output_flat: boolimage only.Output multiple image as <basename>_<name>.<ext> instead of <basename>/<name>.<ext>
bgi_compress_file: boolbgi-arc only.Whether to compress files in BGI archive when packing BGI archive.
bgi_compress_min_len: usizebgi-arc only.Minimum length of match size for DSC compression. Possible values are 2-256.
emote_pimg_overlay: Option<bool>emote-img only.Whether to overlay PIMG images. (By default, true if all layers are not group layers.)
artemis_arc_disable_xor: boolartemis-arc only.Disable Artemis archive (.pfs) XOR encryption when packing.
artemis_indent: Option<usize>artemis only.Artemis script indent size, used to format Artemis script. Default is 4 spaces.
artemis_no_indent: boolartemis only.Disable Artemis script indent, used to format Artemis script.
artemis_max_line_width: usizeartemis only.Max line width in Artemis script, used to format Artemis script.
artemis_ast_lang: Option<String>artemis only.Specify the language of Artemis AST script. If not specified, the first language will be used.
artemis_asb_no_format_lua: boolartemis only.Do not format lua code in Artemis ASB script(.asb/.iet) when exporting.
artemis_panmimisoft_txt_blacklist_names: Vec<String>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>artemis-panmimisoft only.Specify the language of Artemis TXT (ぱんみみそふと) script. If not specified, the first language will be used.
artemis_panmimisoft_txt_tag_ini: Option<String>artemis-panmimisoft only.The path to the tag.ini file, which contains the tags to be ignored when finding names in Artemis TXT script (ぱんみみそふと).
cat_system_cstl_lang: Option<String>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: u32flate2 only.Zlib compression level. 0 means no compression, 9 means best compression.
png_compression_level: PngCompressionLevelimage only.PNG compression level.
circus_crx_keep_original_bpp: boolcircus-img only.Keep original BPP when importing Circus CRX images.
circus_crx_zstd: boolcircus-img only.Use zstd compression for Circus CRX images. (CIRCUS Engine don’t support this. Hook is required.)
zstd_compression_level: i32zstd only.Zstd compression level. 0 means default compression level (3), 22 means best compression.
circus_crx_mode: CircusCrxModecircus-img only.Circus CRX image row type mode
circus_crx_canvas: boolcircus-img only.Draw Circus CRX images on canvas (if canvas width and height are specified in file)
force_script: boolForce all files in archive to be treated as script files.
ex_hibit_rld_xor_key: Option<String>ex-hibit only.ExHibit xor key for rld script, in hexadecimal format. (e.g. 12345678)
Use https://github.com/ZQF-ReVN/RxExHIBIT to find the key.
ex_hibit_rld_xor_key_file: Option<String>ex-hibit only.ExHibit rld xor key file, which contains the xor key in hexadecimal format. (e.g. 0x12345678)
ex_hibit_rld_def_xor_key: Option<String>ex-hibit only.ExHibit rld def.rld xor key, in hexadecimal format. (e.g. 12345678)
ex_hibit_rld_def_xor_key_file: Option<String>ex-hibit only.ExHibit rld def.rld xor key file, which contains the xor key in hexadecimal format. (e.g. 0x12345678)
ex_hibit_rld_keys: Option<String>ex-hibit only.Path to the ExHibit rld keys file, which contains the keys in BINARY format. Use https://github.com/ZQF-ReVN/RxExHIBIT to get this file.
ex_hibit_rld_def_keys: Option<String>ex-hibit only.Path to the ExHibit rld def keys file, which contains the keys in BINARY format.
jpeg_quality: u8mozjpeg only.JPEG quality for output images, 0-100. 100 means best quality.
webp_lossless: boolwebp only.Use WebP lossless compression for output images.
webp_quality: u8webp only.WebP quality for output images, 0-100. 100 means best quality.
custom_yaml: Option<bool>Try use YAML format instead of JSON when custom exporting. By default, this is based on output type. But can be overridden by this option.
entis_gls_srcxml_lang: Option<String>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: boolwill-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.
lossless_audio_fmt: LosslessAudioFormatlossless-audio only.Audio format for output lossless audio files.
flac_compression_level: u32audio-flac only.FLAC compression level for output FLAC audio files. 0 means fastest compression, 8 means best compression.
llm_trans_mark: Option<String>Add a mark to the end of each message for LLM translation. Only works on m3t format.
favorite_hcb_no_filter_ascii: boolfavorite only.Do not filter ascii strings in Favorite HCB script.
jxl_lossy: boolimage-jxl only.Disable JXL lossless compression for output images
jxl_distance: f32image-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
jxl_workers: usizeimage-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
image_workers: usizeimage only.Workers count for encode images in parallel. Default is half of CPU cores. Set this to 1 to disable parallel encoding. 0 means same as 1.
jieba_dict: Option<String>jieba only.Path to custom jieba dictionary
psb_no_process_tlg: boolemote-img only.Do not process TLG images in PSB files.
pgd_compress: boolsoftpal-img only.Whether to use compression for Softpal Pgd images. WARN: Compress may cause image broken.
no_multi_message: boolDisable multiple messages section support.
softpal_add_message_index: boolsoftpal only.Whether to add message index to Softpal src script when exporting.
xp3_no_simple_crypt: boolkirikiri-arc only.Disable decrypt SimpleCrypt files in Kirikiri XP3 archive when extracting.
xp3_no_mdf_decompress: boolkirikiri-arc only.Disable decompressing mdf files in Kirikiri XP3 archive when extracting.
xp3_segmenter: SegmenterConfigkirikiri-arc only.Configuration for Kirikiri XP3 segmenter when creating XP3 archive.
none segmenter - none
fastcdc segmenter - cdc:
xp3_no_compress_files: boolkirikiri-arc only.Disable compressing files in Kirikiri XP3 archive when creating XP3 archive.
xp3_no_compress_index: boolkirikiri-arc only.Disable compressing index in Kirikiri XP3 archive when creating XP3 archive.
xp3_compress_workers: usizekirikiri-arc only.Workers count for compress files in Kirikiri XP3 archive when creating in parallel.
xp3_zstd: boolkirikiri-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: usizekirikiri-arc only.Workers count for packing file in Kirikiri XP3 archive in parallel. This not works when segment is disabled.
kirikiri_language_insert: boolkirikiri 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>musica-arc only.Musica game title for paz archive.
musica_xor_key: Option<u8>musica-arc only.Musica xor key for paz archive.
musica_compress: boolmusica-arc only.Compress files in Musica paz archive when packing paz archive.
exit_code: i32Exit code when some jobs failed
exit_code_all_failed: Option<i32>Exit code when all jobs failed. By default, this is same as exit_code. This can override exit_code when all jobs failed.
m3t_no_quote: boolDo not add quote to translated text when exporting to m3t files.
xp3_no_adler: boolkirikiri-arc only.Disable adler32 checksum for Kirikiri XP3 archive when creating. This will keep compatibility with https://github.com/arcusmaximus/KirikiriTools tool.
bgi_add_space: boolbgi 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.
command: CommandCommand
Trait Implementations§
Source§impl Args for Arg
impl Args for Arg
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl CommandFactory for Arg
impl CommandFactory for Arg
Source§impl FromArgMatches for Arg
impl FromArgMatches for Arg
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§impl Parser for Arg
impl Parser for Arg
Source§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
Source§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
Source§fn update_from<I, T>(&mut self, itr: I)
fn update_from<I, T>(&mut self, itr: I)
Auto Trait Implementations§
impl Freeze for Arg
impl RefUnwindSafe for Arg
impl Send for Arg
impl Sync for Arg
impl Unpin for Arg
impl UnwindSafe for Arg
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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