Thanks to visit codestin.com
Credit goes to github.com

Skip to content

kairusds/umamusu-utils

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Umamusu-Utils

Utils for scrapping honse game files.

Requirements

You must insert into the /storage folder your own copy of the meta file and the master folder. You can grab them from the game's root dir: /data/data/jp.co.cygames.umamusume/files.

All scripts have required dependencies, run pip install -r requirements.txt to install all of them.

Utils

All utils reside inside the scripts folder.

data_download.py

Downloads ALL game assets according to your meta file. If the game is updated, all you have to do is update the meta file and re-run this script. This only downloads new files, you can set SKIP_EXISTING to False inside the script to force a full re-download.

Set HPATHS inside of the script to True if you want the downloaded folder structure to be the same as the game's dat folder structure.

IMPORTANT If doing a full download, this will suck your machine's network dry. Set ASYNC_DOWNLOAD to False to download in a less aggressive way.

Uses the decrypted meta file if decrypt_meta.py was used before this script.

The output files are located at storage/data.

items_extract.py

Extracts stuff related to items. Output file can be found at storage/items.txt.

story_extract.py

Extracts the strings related to the in-game stories. This only extracts new files, you can set SKIP_EXISTING to False inside the script to force a full extraction.

Uses the decrypted assets if decrypt_assets.py was used before this script.

Set HPATHS inside of the script to True if you also set HPATHS to True in data_download.py.

The output files are located at storage/story.

decrypt_meta.py

Creates a one-to-one copy of the meta file with no encryption. Output file can be found at storage/meta_decrypted.

decrypt_assets.py

Creates a one-to-one copy of the asset files from the storage/data folder with no encryption.

Set HPATHS inside of the script to True if you also set HPATHS to True in data_download.py.

Can be customized which folders are included or excluded and whether to skip existing files with these lines of code inside the script:

SKIP_EXISTING = True

# If this is NOT empty, ONLY assets within these folders will be decrypted.
# If this IS empty, ALL assets will be processed (with exclusions).
# Example:
# INCLUDED_FOLDERS = set()
# INCLUDED_FOLDERS = {"sound/v/", "story/data/"}
INCLUDED_FOLDERS = {"story/data/"}

# Any asset from these folders will be explicitly SKIPPED.
# This is useful for ignoring entire categories of files.
# Example:
# EXCLUDED_FOLDERS = {"font/"}
# EXCLUDED_FOLDERS = {"font/", "movie/"}
EXCLUDED_FOLDERS = set()

The output files are located at storage/data_decrypted.

dump_meta.py

Dumps the contents of the meta file into a JSON file.

WARNING The output file might be over 50MB, do not open the dump file with a normal text editor on a phone or PC. It's recommended to view the file with something like neovim or vim instead.

Output file can be found at storage/meta_dump.json.

About

Utilities for handling UM:PD files

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%