mirror of
https://github.com/ex-RushiaLover/traingame-parser.git
synced 2025-06-08 00:52:32 -04:00
2.9 KiB
2.9 KiB
Traingame parser
A tool to parse textmap (and maybe other res too) for a certain anime game.
Usages
textmap
Processes only the textmap files.
./program.exe textmap <Persistent Path / Design Data URL> <OUTPUT_DIR> [OPTIONS]
Arguments:
input_url— URL or path to the persistent data or design bundleoutput_dir— Directory where the parsed output will be stored
Options:
--full-textmap— Parse the entire textmap structure as an array instead of just key-value pairs--save-bytes-file— Save the.bytesfiles after download
Examples:
./program.exe textmap "https://autopatchcn.bhsr.com/design_data/BetaLive/output_10494861_2ed49bac2846_b7f8d02fced269" output/
./program.exe textmap "D:/Star Rail/StarRail_Data/Persistent/DesignData/Windows" output/
excels
excels
Processes the Excel & Textmaps files
./program.exe excels <DATA_JSON> <EXCEL_PATH_JSON> <Persistent Path / Design Data URL> <OUTPUT_DIR> [OPTIONS]
Arguments:
data_json— Path todata.jsonschemaexcel_path_json— JSON file that maps Excel types to file pathsinput_url— URL or path to the persistent dataoutput_dir— Output folder for processed files
Options:
--full-textmap— Enable full textmap parsing if needed for linked data--save-bytes-file— Save original.bytesfiles--log-error— Output all encountered errors to the console--config-paths <PATH>— Optional extra config files (in JSON) for parsing additional types
Examples:
./program.exe excels data.json excels_path.json https://autopatchcn.bhsr.com/design_data/BetaLive/output_10494861_2ed49bac2846_b7f8d02fced269 output/ --log-error --save-bytes-file
./program.exe excels data.json excels_path.json "D:/Star Rail/StarRail_Data/Persistent/DesignData/Windows" output/ --log-error --save-bytes-file
all
all
Processes Textmap, Excels, and Config files
./program.exe all <DATA_JSON> <EXCEL_PATH_JSON> <Persistent Path / Design Data URL> <OUTPUT_DIR> [OPTIONS]
Accepts the same arguments and options as the excels command.
Examples:
./program.exe all data.json excels_path.json "https://autopatchcn.bhsr.com/design_data/BetaLive/output_10494861_2ed49bac2846_b7f8d02fced269" output/ --full-textmap --log-error
./program.exe all data.json excels_path.json "D:/Star Rail/StarRail_Data/Persistent/DesignData/Windows" output/ --full-textmap --log-error
Notes
- For parsing anything other than textmap (i.e.,
excelsorall), you must generatedata.jsonandexcels_path.jsonyourself.