# -*- coding: utf-8 -*- # 맵 정의 조정(2026-09-28 BT35): 거미 동굴 바닥 — PD "다른 맵에 비해 크게 확대되어서 퀄리티가 떨어진 느낌" # 실측: 진흙 · 자갈 텍스처는 실제 2 m × 2 m 를 찍은 것인데 한 장을 8 m 로 늘려 놓았다(4 배 확대 — 자갈 한 알이 바위만 하게 보인다). # 1 m 에 들어가는 픽셀 수도 자갈 64 · 거미줄 바위 85 로 다른 맵의 자연물 층(묘지 이끼 · 늪풀 146)보다 낮았다. # 조치: 한 장이 덮는 크기를 줄인다 — 진흙 8 → 4 m(256 px/m) · 자갈 8 → 3.5 m(146 px/m) · 거미줄 바위 6 → 4 m(128 px/m). # 작아진 만큼 되풀이가 늘지만 덧칠(얼룩 4.5~9.5 m)이 가린다. import io, json, os, shutil, sys, time ROOT = r"C:\BurningTimes\FirstRising\Assets\BurningTimes\Maps" BACKUP = r"E:\BurningTimes\공유\개발팀_백업\FirstRising\maps_json_" + time.strftime("%Y%m%d_%H%M") TILES = {"SpiderCave": {"Cave_Clay": 4.0, "Cave_RockBed": 3.5, "Cave_Web": 4.0}} def main(): os.makedirs(BACKUP, exist_ok=True) for name, tiles in TILES.items(): path = os.path.join(ROOT, name, name + ".map.json") shutil.copy2(path, os.path.join(BACKUP, name + ".map.json")) raw = io.open(path, "rb").read() bom = raw.startswith(b"\xef\xbb\xbf") d = json.loads(raw.decode("utf-8-sig")) for l in d["ground"]["layers"]: if l["name"] in tiles: print(" %s tile %s -> %s" % (l["name"], l["tile"], tiles[l["name"]])) l["tile"] = tiles[l["name"]] text = json.dumps(d, ensure_ascii=False, indent=2) io.open(path, "w", encoding="utf-8-sig" if bom else "utf-8", newline="\n").write(text + "\n") print("backup", BACKUP) main()