-
Notifications
You must be signed in to change notification settings - Fork 5
Home
DISCLAIMER: This tool is not to be used for commercial purposes, nor for redistributing or exposing the original game’s protected assets in any form that violates intellectual property laws.
Ensure any content created using this tool complies with applicable copyright laws in your region.
Properly credit the original creators for any derivative work. This tool and its creator assume no responsibility for misuse or infringement.
And as always, update your installation and read the latest help text (sssekai -h
) before moving on.
Follow the main README and get your GUI release there. The GUI, feature wise, is the same as the CLI one.
Therefore, everything shown here would apply on both interfaces.
The game loads its assets on-demand.
However, you can use abcache
to download selected assets offline, instead of extracting it from your own device.
- ATTENTION: Only the latest version information are guaranteed to enable access the game's asset repository. Older ones may work, but is not offically supported.
- You'll need the game's version number (i.e.
4.1.0
), region (i.e.jp
) and its app hash (i.e. forjp, 4.1.0
it'scbda2f12-c804-4163-5e11-3148631f9ab0
) to download the assets. See the table below for details. - The files may take up a lot of storage space (e.g. it's ~50GB for
4.1.1
). Make sure enough is reserved since there's no free space checks in the script
-
ATTENTION: These values could be out-of-date. It's advised that you'd pull these values yourself.
- This is explained in the next section.
-
The platform (i.e.
ios
orandroid
) is omitted since the values for them are the same. -
As stated earlier, only the latest (as the wiki is updated) values are stored here.
region | version | appHash |
---|---|---|
jp | 5.1.1 | 539e48e0-8f54-8e09-a0b2-1c3ecdb5b178 |
en | 3.1.0 | a892dc93-798e-4007-8d07-54cb13c9500a |
tw | 3.4.0 | a3015fe8-785f-27e1-fb8b-546a23c82c1f |
kr | 2.8.0 | 4d9acca8-553f-c3f4-398b-a678e32e7f85 |
cn | 3.4.0 | a3015fe8-785f-27e1-fb8b-546a23c82c1f |
With sssekai apphash
(i.e. the apphash
subcommand) you can automatically determine the game's version and appHash
from an Android distribution of the game's binary, from any region. (i.e. JP,EN,TW,KR,CN
)
The output (if successful) would be a tuplet containing [game version] [game region] [game appHash]
, seperated by space.
- With a pre-exisiting game package (APK/XAPK supported)
$ python -m sssekai apphash -s en_310.xapk
3.1.0 en a892dc93-798e-4007-8d07-54cb13c9500a
- Download the latest package (for JP only) online w/o writing it to disk
$ python -m sssekai apphash
4.1.1 jp 41fd71f2-f715-bc10-5852-0a9d8542f760
NOTE: Please read the latest sssekai abcache -h
help text before moving on.
-
ATTENTION: It's advised to perform the cache index update when
sssekai
is updated itself. DO NOT use others' cache index, ALWAYS prepare it on your own machine as this could otherwise lead to arbitrary code execution. - AbCache by itself doesn't store (nor check) the downloaded bundles themselves. Only the asset index is stored.
- https://github.com/mos9527/sssekai/issues/9 explains one of the motivations.
- This is also needed to download and resolve asset dependencies on demand, which is not unlike how the game handles this itself.
- Example: Updating and saving the metadata cache to /.sssekai/abcache.db
sssekai abcache --db ~/.sssekai/abcache.db --app-region ... --app-version ... --app-appHash ...
- Note that
--app-region
,--app-version
and--app-appHash
are required when (and only when) updating the cache index. (i.e. not loading from an existing one) - Loading from a existing cache index (which contains these values) supercedes these arguments
The metadata cache may be updated everytime. In practice, however, it's advised to load the previously cached metadata to avoid extra data/time cost.
- To load the previously cachced data, you can specify
--no-update
to skip the update process. - You can specify where to store the downloaded data with
--download-dir
- Example: Downloading all available game assets, using a pre-cached metadata set
sssekai abcache --db ~/.sssekai/abcache.db --no-update --download-dir ~/.sssekai/bundles/
In most cases you probably only want a subset of the game's files. You can filter which bundles to download with --download-filter
, which takes a regex as its input
- In this case, the bundles themselves may require other bundles (i.e. dependencies) as well. To automatically resolve this issue, use
--download-ensure-deps
, which would download them alongside the selected ones. - Example: Download all v2 PV models for character 31 (25-ji Miku), including the dependencies
sssekai abcache --no-update --db ~/.sssekai/abcache.db --download-filter .*characterv2/.*/31.* --download-ensure-deps --download-dir ~/.sssekai/bundles
The downloaded bundles are obfuscation-free, meaning you can load them (e.g. by folder) directly into Unity bundle loaders
abserve
offers both a simple Web UI and FUSE
backend implementation for exploring the assets hierarchy - and downloading them from the respective interfaces directly.
-
To use the Web UI
sssekai abserve --db <your abcache database file> --host <ip address to listen on> --port <port number to listen on>
The Web interface borrowed that from the de-facto
python -m http.server
(i.e. pure HTML and basically not much to look at). Files can be downloaded directly whilst being decrypted on the fly - without caching them to disk first. -
To use the FUSE interface
ATTENTION: You'll need a system that supports
libfuse
andfusepy
natively (e.g. with Linux & macOS). Windows support is not yet implemented by upstream.sssekai abserve --db <your abcache database file> --fuse <your AbCache mount point>
The mount point will then serve as a regular read-only filesystem. Again, the game files will be decrypted on the fly.
- You should specify the Unity version to use since it's stripped from the asset bundles - if you'd load them into other Unity bundle loaders.
Game Version (Region,Platform agnostic) | Unity Version |
---|---|
<3.6.0 | 2020.3.21f1 |
>=3.6.0 | 2022.3.21f1 |
- Another heuristic for determining Unity version is whether the game has received the new UI update or not. If it has - try
2022.3.21f1
- In
sssekai
, you can specify the Unity version to use withsssekai --unity-version ... <rest of your command>
- This is defaulted to
2022.3.21f1
otherwise.
- This is defaulted to
ATTENTION: Ensure the correct Unity version is selected for your bundle files (see section above).
ATTENTION: Outdated info.
-
sssekai rla2json
converts what are colloquially called "RLA,RTVL" segments into JSON. -
These segments can be found in
streamling_live
bundles, plus the "Virtual Live" events (with streamed performance) the JP server hosts from time to time. -
The parser also accepts ZIP archives containing
sekai.rlh
sekai_xx_xxxxxx.rla
... files - this is useful if you'd captured SSE packets for the said Virtual Live event and want to parse it with the tool.
You can create ZIP files with this script.
Usage:
- Convert all RLA packets into separate JSON files
sssekai rla2json streaming_live/archive/1st_live_vbs-1 streaming_live/archive/1st_live_vbs-1_src
- Dump audio data (in CriWare HCA segments/frames) into separate frames in binary.
sssekai rla2json streaming_live/archive/1st_live_vbs-1 streaming_live/archive/1st_live_vbs-1_hca
NOTE: The resultant binaries may be further decoded with sssekai_streaming_hca_decoder into WAV format. Once you have it installed:
sssekai_streaming_hca_decoder streaming_live/archive/1st_live_vbs-1_src streaming_live/archive/1st_live_vbs-1.wav
You will find a single, large WAV file (44100Hz, 1ch, 128kbps) located at streaming_live/archive/1st_live_vbs-1.wav
Path | Purpose (Assumed) |
---|---|
streaming_live/archive | Archival bundles for past Virtual Live shows. Contains chat log, character animations (skeletal/blendshape),streamed audio, etc. See 3D Assets for more info. |
- To extract the character animations contained in these segments, refer to sssekai_blender_io and its Wiki
NOTE: You'll need Spine2D SDK 4.x to load these.
Path | Purpose (Assumed) |
---|---|
area_sd |
Spine2D model files Can be extracted with sssekai spineextract
|
NOTE: USM/HCA files, mainly. For the videos usmdemux
can handle it by itself. For audio tracks try vgmstream
Path | Purpose (Assumed) |
---|---|
live/2dmode/original_mv | Video, Original PV/MVs for selected tracks. Can be extracted with sssekai usmdemux . Filenames are the MV IDs which can be queried by mvdata . |
live/2dmode/sekai_mv | Video, PV/MVs tailor made for proseka, for selected tracks. Can be extracted with sssekai usmdemux Filenames are the MV IDs which can be queried by mvdata . |
music/short | Audio, Preview track for the songs. |
music/long | Audio, Songs that plays in rhythm game or PV viewer. |
music/jacket | Images, The cover art for the songs. |
You can find them in music/music_score
in SUS Format
OSS Viewers exist for this format. For example:
NOTE: Cubism's Live2D edtior comes with a viewer which you can use to view these things
Path | Purpose (Assumed) |
---|---|
live2d/model |
Cubism Live2D model files. Can be extracted with sssekai live2dextract
|
live2d/motion | Animation files for the models. Again, Can be extracted with sssekai live2dextract
|
NOTE: Assets flagged with * can be imported by sssekai_blender_io into Blender
Path | Purpose (Assumed) |
---|---|
live_pv/model | 3D Assets for real-time rendered PVs |
live_pv/model/character | *Character models |
live_pv/model/characterv2 | *Also character models. (w/ slightly more modern NPR techniques e.g. SDF Face shadows, eye specular and so on) |
live_pv/model/stage | *Stage models. |
live_pv/model/stage_decoration | *Stage decoration models (of course). Per-PV. Can be queried by mvdata
|
live_pv/model/music_item | *PV Props. Bone weights are missing for some reason. |
model3d/model/stage_object | *PV Props, again. With the same aforementioned issues. |
live_pv/timeline/... | *Animation data for character, stage objects, camera, and more. |
streaming_live/archive | *Streaming Live (Virtual Live) recording archives, contains character motion data & shapekey expressions, and more. |
sssekai mvdata [live_pv/mv_data path] [output json]
dumps the entirety of the game's mv_data
database into a JSON.
sssekai mvdata live_pv/mv_data mvdata.json
The resultant file looks like this:
[
{
"id": 1,
"name": "Tell Your World",
"characterInfos": [
{
"id": 21,
"headOptional": "",
"face": "",
"body": "",
"colorVariation": "",
"headOptionalColorVariation": "",
"prefabType": 0,
"isHeelOffset": 1,
"defaultHeelOffset": 0.0032521486282348633,
"motionInfo": {
"motionType": 0,
"uniqueCharacterIds": []
},
"musicItemInfos": [],
"useHairShadow": 0
}
],
"stageInfo": {
"id": 1,
"overrideTexture": 0,
"penlightInfo": {
"id": 1
},
"stageDecorationInfos": [
{
"id": 1
}
],
"enableLensFlare": 0,
"enableWaterCaustics": 0,
"enableHeightFog": 0,
"inheritStage": 0
},
"cameraInfo": {
"hasCameraDecoration": 0,
"useSubCamera": 1,
"subCameraResolution": 0,
"isRenderManyCharacter": 0,
"subCameraCustomWidth": 256,
"subCameraCustomHeight": 128,
"propCameraFovType": 0,
"propCameraFixedFov": 1.0
},
"postEffectInfo": {
"enableMeshFlarePara": 1,
"SaturationBlurType": 0
},
"cutinInfo": {
"ChildIds": [],
"ParentId": 0
}
},
{
"id": 2,
"name": "ロキ",
"characterInfos": [
...
Master data (hereby referred to as DB) is the game's monolithic database for states,events,etc.
- You can download the DB with the following command:
sssekai abcache --app-region ... --app-version ... --app-appHash ... --dump-master-data <directory name>
The files (in JSON format) will be stored in the specified directory, in a structure similar to https://github.com/Sekai-World/sekai-master-db-diff