Files
Paradise/tools/github-actions/nanomap-renderer-invoker.sh
Tobias Berger 10f6187ffc Fix render_nanomaps action (#21151)
* Fix render_nanomaps action

Use up-to-date VM and updated SpacemanDMM with modified source

* Revert changes to SpacemanDMM/nanomap-renderer

Note that during map generation this will cause errors in the form of:
```
error: #error Your version of BYOND is too out-of-date to compile this project. Go to https://secure.byond.com/download and update.
error: #error You need version 514.1554 or higher
```
2023-05-23 09:23:52 +01:00

19 lines
1.0 KiB
Bash
Executable File

#!/bin/bash
set -e
# Generate maps
tools/github-actions/nanomap-renderer minimap -w 2040 -h 2040 "./_maps/map_files/cyberiad/cyberiad.dmm"
tools/github-actions/nanomap-renderer minimap -w 2040 -h 2040 "./_maps/map_files/Delta/delta.dmm"
tools/github-actions/nanomap-renderer minimap -w 2040 -h 2040 "./_maps/map_files/MetaStation/MetaStation.dmm"
tools/github-actions/nanomap-renderer minimap -w 2040 -h 2040 "./_maps/map_files/cerestation/cerestation.dmm"
# Move and rename files so the game understands them
cd "data/nanomaps"
mv "cyberiad_nanomap_z1.png" "Cyberiad_nanomap_z1.png"
mv "delta_nanomap_z1.png" "Delta_nanomap_z1.png"
#mv "MetaStation_nanomap_z1.png" "MetaStation_nanomap_z1.png" # What's even the point of this?
mv "cerestation_nanomap_z1.png" "CereStation_nanomap_z1.png"
cd "../../"
cp "data/nanomaps/Cyberiad_nanomap_z1.png" "icons/_nanomaps"
cp "data/nanomaps/Delta_nanomap_z1.png" "icons/_nanomaps"
cp "data/nanomaps/MetaStation_nanomap_z1.png" "icons/_nanomaps"
cp "data/nanomaps/CereStation_nanomap_z1.png" "icons/_nanomaps"