{"id":20364425,"url":"https://github.com/krazete/azur-paint","last_synced_at":"2025-08-03T20:41:25.140Z","repository":{"id":173272962,"uuid":"650027877","full_name":"Krazete/azur-paint","owner":"Krazete","description":"Reconstruct images from the painting folder of Azur Lane.","archived":false,"fork":false,"pushed_at":"2025-07-01T23:33:55.000Z","size":12991,"stargazers_count":4,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-02T00:27:34.441Z","etag":null,"topics":["azur-lane","unity"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Krazete.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-06-06T07:16:56.000Z","updated_at":"2025-07-01T23:33:59.000Z","dependencies_parsed_at":null,"dependency_job_id":"fd647786-0488-483e-ba97-1740d21b7dde","html_url":"https://github.com/Krazete/azur-paint","commit_stats":null,"previous_names":["krazete/azur-paint"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Krazete/azur-paint","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Krazete%2Fazur-paint","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Krazete%2Fazur-paint/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Krazete%2Fazur-paint/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Krazete%2Fazur-paint/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Krazete","download_url":"https://codeload.github.com/Krazete/azur-paint/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Krazete%2Fazur-paint/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266761391,"owners_count":23980293,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-23T02:00:09.312Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["azur-lane","unity"],"created_at":"2024-11-15T00:11:47.316Z","updated_at":"2025-07-23T22:35:58.443Z","avatar_url":"https://github.com/Krazete.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Azur Lane Painting Reconstruction\r\n\r\nBuilds 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`.\r\n\r\n![azur-paint diagram](azur-paint.svg \"made with draw.io\")\r\n\r\nThis repo was inspired by:\r\n\r\n* [AzurLane-Painting-Tool](https://github.com/Scighost/AzurLane-Painting-Tool/blob/6d6301257a558d9dbde4a65e4cf25650fca797c8/AzurLane-Painting-Tool/PaintingInfo.cs#L260) by [Scighost](https://github.com/Scighost)\r\n* [painting_reconstruct.py](https://gist.github.com/nobbyfix/fb535462acc897ab1f39e5e9981e4645) by [nobbyfix](https://github.com/nobbyfix)\r\n\r\nMy `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.\r\n\r\n## Usage\r\n\r\n### main2.py\r\n\r\n```sh\r\npython -m main2 -p ankeleiqi\r\npython -m main2 -p ankeleiqi -f ankeleiqi -t 2 -o AnchorageSadFace\r\npython -m main2 -c -p ankeleiqi_n -o AnchorageWithoutBG\r\npython -m main2 -k -p tower -o \"Tower's full sprite is 5212x8570 px\"\r\npython -m main2 -p tower -s pixelcount -o \"TowerBelow2048sqpx\"\r\n```\r\n\r\n* outputs to `output2` folder\r\n* parameters requiring values:\r\n  * `-p`: name of assetbundle file in `painting` folder\r\n  * `-f`: name of face file in `paintingface` folder\r\n  * `-t`: name of face index within chosen face file\r\n  * `-d`: directory name, if it isn't AssetBundles\r\n  * `-o`: name of output file\r\n  * `-s`: downscale factor\r\n    * `maxsize` (default): max(width, height) \u0026le; 2048\r\n    * `pixelcount`: width * height \u0026le; 2048\u003csup\u003e2\u003c/sup\u003e\r\n* parameters that are flags:\r\n  * `-c`: trim out whitespace\r\n  * `-k`: output an additional version of sprite at original resolution\r\n\r\n## Other Scripts\r\n\r\n### nobbyfix's script\r\n\r\n```sh\r\npython -m painting_reconstruct -d AssetBundles -p ankeleiqi\r\npython -m painting_reconstruct -d AssetBundles -p ankeleiqi -f ankeleiqi -t 2 -o AnchorageSadFace\r\n```\r\n\r\n* outputs to root folder\r\n* no longer works\r\n  * game file structure and sprite mesh data were changed on 2024-05-21 (the Light of the Martyrium update) which broke all prior sprite extraction scripts\r\n\r\n### main.py\r\n\r\n```sh\r\npython -m main -p ankeleiqi\r\npython -m main -p ankeleiqi_jz1\r\npython -m main -p ankeleiqi_jz2\r\npython -m main -p ankeleiqi_rw\r\npython -m main -p ankeleiqi_tx3\r\n```\r\n\r\n* outputs to `output` folder\r\n* unlike nobbyfix's script and `main2.py`, the `-p` input is the name of `_tex` files minus the `_tex` (instead of the assetbundle file)\r\n* processes one layer, not an entire sprite\r\n* doesn't consider positioning and scaling info of sprite layers\r\n* can be used instead of `main2.py` to extract a \"WithoutBG\" sprite even if the game doesn't have the \"Hide background objects\" option for that particular skin\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkrazete%2Fazur-paint","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkrazete%2Fazur-paint","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkrazete%2Fazur-paint/lists"}