Skip to main content

Azur Lane asset downloader and extractor

Project description

Azur Lane Asset Downloader and Extractor

This tool automatically downloads the newest assets directly from the game's CDN servers and allows extraction of Texture2D files as PNG images.

Upgrade Notice

From 2.x / no version number to 3.x+

When upgrading from versions 2.x or with no version number, the project has to be newly set up. To retain all current data, the following folders should be copied to the new working directory:

  • config: Only user_config.yml is required, the rest can be deleted.
  • ClientAssets or directory set in asset-directory of the config: Contains all currently downloaded assets, version information, and update logs used for extraction. Highly recommended to transfer to the new working directory.

Setup

Before installation, Python 3.11 or newer needs to be available on the system. It is recommended to set the project up using venv or a similar virtual environment manager.

Install the project using pip:

pip install azlassets

To create the config file for editing before first usage, execute azl in a terminal.

Settings

The config/user_config.yml file provides a few settings to filter which files will be downloaded and extracted. The options download-folder-listtype and extract-folder-listtype can be set to either "blacklist" or "whitelist". Depending on this it will filter by the top-level folder names (subfolders are not supported) or top-level filenames (files inside top-level folders or lower cannot be filtered) set in download-folder-list and extract-folder-list. This allows for reduced download and extraction times by skipping unneeded assets.

Usage

The program can be executed using azl <command> with different commands available depending on the desired functionality, which will be explained in the following sections.

Importer

Using this is not necessary to get all files, but recommended as the asset server may not have all files available. An import will guarantee that all game assets will be available on your system (if so desired) and avoid potentially spamming the asset server with errors of missing files on the first download.

The import supports all game clients (EN, JP, CN, KR, TW) and multiple forms of importing the assets. The recommended and easiest way is by downloading the App Bundle from one of the Google Play Store app distributors (.apkm for APKMirror or .xapk for APKPure). They can be found by searching for the package name, which are as follows:

  • EN: com.YoStarEN.AzurLane
  • JP: com.YoStarJP.AzurLane
  • KR: kr.txwy.and.blhx
  • TW: com.hkmanjuu.azurlane.gp

If the game is already installed on emulators, copy the obb file to your system. On Android it can be found in /storage/emulated/0/Android/obb/[PACKAGE_NAME]/.

For CN client (not distributed through Google Play Store), download an APK from the official website. Alternatively, the APK can be found in /data/app/com.bilibili.azurlane-1/ on Android (Note: Root access required).

The import command can be executed by passing it the filepath to the apkm/xapk/apk/obb file:

azl import [FILEPATH]

If the program cannot detect the client automatically, specify it with:

azl import [FILEPATH] -c {CLIENT}

Downloader

All assets normally distributed via the in-app downloader can be downloaded by executing:

azl download [CLIENT]

Where CLIENT is one of EN, CN, JP, KR or TW. Check downloaded/deleted files using difflog files in ClientAssets/[CLIENT]/difflog.

Additional Arguments

  • -e, --extract: Automatically starts the extraction routine after the download
  • --force-refresh: Ignores version check, useful after editing config
  • --repair: Checks all files and downloads only missing ones, useful for resuming crashed downloads
  • --check-integrity: Checks for modified, deleted, or corrupt files and redownloads them
  • --skip-unknown-version-error: Ignores the error when a new version type gets added to the game

Extractor

The asset extraction supports extraction of all newly downloaded files or single asset bundles.

azl extract [CLIENT]

Where CLIENT is one of EN, CN, JP, KR or TW. Extracted images will be saved in ClientExtract/[CLIENT]/. Since only Texture2D assets are exported, it's not desired to try to export from all assetbundles (See settings section).

A single assetbundle can be extracted by passing the filepath to the script:

azl extractor -f [FILEPATH]

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

azlassets-4.2.0.tar.gz (29.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

azlassets-4.2.0-py3-none-any.whl (32.7 kB view details)

Uploaded Python 3

File details

Details for the file azlassets-4.2.0.tar.gz.

File metadata

  • Download URL: azlassets-4.2.0.tar.gz
  • Upload date:
  • Size: 29.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for azlassets-4.2.0.tar.gz
Algorithm Hash digest
SHA256 ce800ee618df1c6deaa853f2640add8a15a156f838550631375b8963f624573e
MD5 2b9f8f2c65c9001ea9ba2c458a7bc11d
BLAKE2b-256 69d155c5d752a7e477a0aa5fb8ec0d742cc23d8f499baac4a29931b91dec8429

See more details on using hashes here.

Provenance

The following attestation bundles were made for azlassets-4.2.0.tar.gz:

Publisher: publish.yml on nobbyfix/AzurLane-AssetDownloader

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file azlassets-4.2.0-py3-none-any.whl.

File metadata

  • Download URL: azlassets-4.2.0-py3-none-any.whl
  • Upload date:
  • Size: 32.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for azlassets-4.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d1c7a3035fed9ea4a6ccfb071bcb4b085df375b798b44be274df528e597aa5a6
MD5 1cdd5bf801b7b130f022a3a8e6c91252
BLAKE2b-256 528f325b46fdca8797377a5630113f7afcf1f3100e6488da0a91eadc9f39430b

See more details on using hashes here.

Provenance

The following attestation bundles were made for azlassets-4.2.0-py3-none-any.whl:

Publisher: publish.yml on nobbyfix/AzurLane-AssetDownloader

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page