Skip to content

Instantly share code, notes, and snippets.

View snowyegret23's full-sized avatar
❤️

Snowyegret snowyegret23

❤️
View GitHub Profile
@snowyegret23
snowyegret23 / gedonia_export.py
Last active September 4, 2024 23:30
gedonia export
import json
import UnityPy
import os
import csv
from concurrent.futures import ThreadPoolExecutor, as_completed
from natsort import natsorted
import sys
import shutil
import queue
import threading
@snowyegret23
snowyegret23 / scar_of_doll.py
Last active December 24, 2023 08:07
Scar of the Doll A Psycho-Horror Story about the Mystery of an Older Sister Day{x} 스크립트 작업 툴
import json
import csv
import os
# 사용법:
# 1. 현재 .py 파일 실행 후 종료
# 2. 에러 메세지에 보이는 대로, 생성된 1_original_file 폴더 안에 대사 json 파일들 넣기 (UABEA를 통해 json으로 export 한 파일들)
# 3. .py 파일 재실행
# 4. 이후 65, 66번 행의 주석처리에 따라 export/import모드 변경 가능
# 5. import 작업 시에도 에러 메세지를 따라가면 됨.
@snowyegret23
snowyegret23 / macro.py
Created October 8, 2023 12:57
1번 모니터 특정 영역에서 이미지 인식 후, 이미지에 따라 키보드 입력
import cv2
import mss
import numpy as np
import keyboard
import time
with mss.mss() as sct:
area1 = {"left": 100, "top": 1000, "width": 150, "height": 150, "mon": 1}
area2 = {"left": 200, "top": 1000, "width": 150, "height": 150, "mon": 1}
area3 = {"left": 300, "top": 1000, "width": 150, "height": 150, "mon": 1}
@snowyegret23
snowyegret23 / parse_bmfont_fnt.py
Last active February 17, 2024 13:27
bmfont의 fnt파일을 읽어서 폰트 정보/글리프 정보를 dict로 리턴 (txt로 export했을때 사용)
import json
# 정수인지 판별
def isint(number):
try:
ret = int(number)
return True
except ValueError:
return False
@snowyegret23
snowyegret23 / bundle_xor.py
Created April 18, 2023 12:23
파일의 특정 부분까지 주어진 xor 키를 사용하여 xor.
import itertools
file = "testfile.bundle"
xor_key = b"\x43\x73\x6d\x36\x68\x50\x23\x50\x39\x76\x6d\x61"
endpoint = 0x400
with open(file, "rb") as f:
data = f.read()
result = bytes(
itertools.starmap(
import csv
def export_csv(poname, csvname):
with open(poname, "r", encoding="utf-8") as f:
po_data = f.read().split("\n\n")
del po_data[0]
with open(csvname, "w", encoding="utf-8-sig", newline="") as f:
writer = csv.writer(f)