Updates nanomap renderer (#31379)

This commit is contained in:
AffectedArc07
2026-01-15 17:29:19 +00:00
committed by GitHub
parent 177277e26e
commit 0ab708ff61
4 changed files with 17 additions and 22 deletions
Binary file not shown.
Binary file not shown.
@@ -1,21 +1,14 @@
#!/bin/bash
set -e
# Generate maps
tools/github-actions/nanomap-renderer minimap -w 2040 -h 2040 "./_maps/map_files/stations/boxstation.dmm"
tools/github-actions/nanomap-renderer minimap -w 2040 -h 2040 "./_maps/map_files/stations/deltastation.dmm"
tools/github-actions/nanomap-renderer minimap -w 2040 -h 2040 "./_maps/map_files/stations/metastation.dmm"
tools/github-actions/nanomap-renderer minimap -w 2040 -h 2040 "./_maps/map_files/stations/cerestation.dmm"
tools/github-actions/nanomap-renderer minimap -w 2040 -h 2040 "./_maps/map_files/stations/emeraldstation.dmm"
tools/github-actions/dmm-tools-para minimap --enable nanomaps --width 2040 --height 2040 "./_maps/map_files/stations/boxstation.dmm"
tools/github-actions/dmm-tools-para minimap --enable nanomaps --width 2040 --height 2040 "./_maps/map_files/stations/deltastation.dmm"
tools/github-actions/dmm-tools-para minimap --enable nanomaps --width 2040 --height 2040 "./_maps/map_files/stations/metastation.dmm"
tools/github-actions/dmm-tools-para minimap --enable nanomaps --width 2040 --height 2040 "./_maps/map_files/stations/cerestation.dmm"
tools/github-actions/dmm-tools-para minimap --enable nanomaps --width 2040 --height 2040 "./_maps/map_files/stations/emeraldstation.dmm"
# Move and rename files so the game understands them
cd "data/nanomaps"
mv "boxstation_nanomap_z1.png" "BoxStation_nanomap_z1.png"
mv "deltastation_nanomap_z1.png" "DeltaStation_nanomap_z1.png"
mv "metastation_nanomap_z1.png" "MetaStation_nanomap_z1.png"
mv "cerestation_nanomap_z1.png" "CereStation_nanomap_z1.png"
mv "emeraldstation_nanomap_z1.png" "EmeraldStation_nanomap_z1.png"
cd "../../"
cp "data/nanomaps/BoxStation_nanomap_z1.png" "icons/_nanomaps"
cp "data/nanomaps/DeltaStation_nanomap_z1.png" "icons/_nanomaps"
cp "data/nanomaps/MetaStation_nanomap_z1.png" "icons/_nanomaps"
cp "data/nanomaps/CereStation_nanomap_z1.png" "icons/_nanomaps"
cp "data/nanomaps/EmeraldStation_nanomap_z1.png" "icons/_nanomaps"
mv "data/minimaps/boxstation-1.png" "icons/_nanomaps/BoxStation_nanomap_z1.png"
mv "data/minimaps/deltastation-1.png" "icons/_nanomaps/DeltaStation_nanomap_z1.png"
mv "data/minimaps/metastation-1.png" "icons/_nanomaps/MetaStation_nanomap_z1.png"
mv "data/minimaps/cerestation-1.png" "icons/_nanomaps/CereStation_nanomap_z1.png"
mv "data/minimaps/emeraldstation-1.png" "icons/_nanomaps/EmeraldStation_nanomap_z1.png"
+7 -5
View File
@@ -1,9 +1,11 @@
# this is only ran locally, not part of github actions
from pathlib import Path
import subprocess
from avulto import DMM, DME
RENDERER = Path("tools/github-actions/nanomap-renderer")
RENDERER = Path("tools/github-actions/dmm-tools-para")
SCALE = 8
@@ -22,8 +24,8 @@ if __name__ == "__main__":
dmm = DMM.from_file(map_path)
width = dmm.size.x * SCALE
height = dmm.size.y * SCALE
commands.append([str(RENDERER), "minimap", "-w", str(width), "-h", str(height), str(map_path)])
commands.append(["mv", f"data/nanomaps/{dmm.filepath.stem}_nanomap_z1.png", f"icons/_nanomaps/stations/{technical_name}_nanomap_z1.png"])
commands.append([str(RENDERER), "minimap", "--enable", "nanomaps", "--width", str(width), "--height", str(height), str(map_path)])
commands.append(["mv", f"data/minimaps/{dmm.filepath.stem}-1.png", f"icons/_nanomaps/stations/{technical_name}_nanomap_z1.png"])
print("inspecting ruins...")
for pth in dme.subtypesof("/datum/map_template/ruin"):
@@ -38,8 +40,8 @@ if __name__ == "__main__":
dmm = DMM.from_file(map_path)
width = dmm.size.x * SCALE
height = dmm.size.y * SCALE
commands.append([str(RENDERER), "minimap", "-w", str(width), "-h", str(height), str(map_path)])
commands.append(["mv", f"data/nanomaps/{dmm.filepath.stem}_nanomap_z1.png", f"icons/_nanomaps/ruins/{ruin_id}_nanomap_z1.png"])
commands.append([str(RENDERER), "minimap", "--enable", "nanomaps", "--width", str(width), "--height", str(height), str(map_path)])
commands.append(["mv", f"data/minimaps/{dmm.filepath.stem}-1.png", f"icons/_nanomaps/ruins/{ruin_id}_nanomap_z1.png"])
print("executing...")
for command in commands: