Builds sprites from the jumbled Texture2Ds and Meshes available in the AssetBundles/painting
folder. Also requires the AssetBundles/dependencies
file. These are both located within Android/data/com.YoStarEN.AzurLane/files
.
This repo was inspired by:
My main2.py
script's advantage is in its consideration of the m_LocalAABB
property of meshes, which contain the m_Center
and m_Extent
values of sprite pieces relative to their bounding box.
python -m main -p ankeleiqi
python -m main -p ankeleiqi_jz1
python -m main -p ankeleiqi_jz2
python -m main -p ankeleiqi_rw
python -m main -p ankeleiqi_tx3
- outputs to
output
folder - unlike the two scripts below, the
-p
input is the name of_tex
files minus the_tex
(instead of the assetbundle file) - process one layer, not an entire sprite
- doesn't consider positioning and scaling info of sprite layers
python -m main2 -p ankeleiqi
- outputs to
output2
folder
python -m painting_reconstruct -d "input" -p ankeleiqi
- outputs to root folder
- must first replace lines 299-300 (the
asset_dir.name != "AssetBundles"
conditional) withpass