Skip to content

Commit

Permalink
Change package name (etcpy -> pyetc)
Browse files Browse the repository at this point in the history
  • Loading branch information
krepe-suZette committed Oct 21, 2018
1 parent 8ad2148 commit f0286e1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ PR은 언제나 환영합니다. 주석도 많이 달았습니다. 주로 만드

`Python 3.6 (64-bit)` 또는 그 이상의 버전을 요구합니다. `32-bit`에서의 정상작동은 보장하지 못합니다.

실행을 위하여 아래 추가 패키지가 필요합니다. 오디오 추출을 위한 [hcapy](https://github.com/krepe-suZette/hcapy)와 이미지 추출을 위한 [etcpy](https://github.com/krepe-suZette/etcpy)는 pypi에 등록되지 않았기 떄문에 수동으로 설치하셔야 합니다.
실행을 위하여 아래 추가 패키지가 필요합니다. 오디오 추출을 위한 [hcapy](https://github.com/krepe-suZette/hcapy)와 이미지 추출을 위한 [pyetc](https://github.com/krepe-suZette/pyetc)는 pypi에 등록되지 않았기 떄문에 수동으로 설치하셔야 합니다.
* numpy
* opencv-python
* configparser
* requests
* [unitypack](https://github.com/HearthSim/UnityPack)
* [hcapy](https://github.com/krepe-suZette/hcapy)
* [etcpy](https://github.com/krepe-suZette/etcpy)
* [pyetc](https://github.com/krepe-suZette/pyetc)

## Process
- [x] 레포 등록
Expand All @@ -26,8 +26,8 @@ PR은 언제나 환영합니다. 주석도 많이 달았습니다. 주로 만드
- [x] acb 파일 처리 기능 구현
- [x] 아이콘 만들기 기능
- [x] 로깅
- [ ] 코드를 건드리지 않는 파일 출력 경로 변경 기능
- [ ] GitHub Wiki 에 설명 깔끔하게 올리기
- [x] 코드를 건드리지 않는 파일 출력 경로 변경 기능
- [x] GitHub Wiki 에 설명 깔끔하게 올리기

## Wiki
[GitHub Wiki](/wiki)에 모든 가이드를 작성할 예정입니다. 참조해주세요.
6 changes: 3 additions & 3 deletions abunpack.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import configparser
import logging

import etcpy
import pyetc

from modules import rename

Expand Down Expand Up @@ -259,7 +259,7 @@ def get_resource(self, path_id: int):
# 이미지 포맷: ETC1 -> RGB(A)
# Alpha 채널도 나오긴 하는데 의미 없어서 자름
im_r, im_g, im_b = cv2.split(np.fromstring(
etcpy.decode_etc1(data.data, data.width, data.height), np.uint8
pyetc.decode_etc1(data.data, data.width, data.height), np.uint8
).reshape(data.height, data.width, 4))[:3]
# 알파 이미지 위치를 찾기 위한 변수.
# 예시: assets/character/m1918/pic/pic_m1918, png
Expand All @@ -278,7 +278,7 @@ def get_resource(self, path_id: int):
return ResImage(cv2.merge((im_b, im_g, im_r)), data.name)
elif data.format.name == "ETC2_RGBA8":
im = cv2.cvtColor(np.fromstring(
etcpy.decode_etc2a8(data.data, data.width, data.height), np.uint8
pyetc.decode_etc2a8(data.data, data.width, data.height), np.uint8
).reshape(data.height, data.width, 4), cv2.COLOR_BGR2RGBA)
return ResImage(im, data.name)
elif data.format.name == 'RGBA32':
Expand Down

0 comments on commit f0286e1

Please sign in to comment.