Skip to content

Commit

Permalink
rename all station files and datums, consolidate types into one file (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
warriorstar-orion authored Mar 30, 2024
1 parent c87c5e4 commit d52535a
Show file tree
Hide file tree
Showing 14 changed files with 41 additions and 41 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ jobs:
strategy:
fail-fast: false # Let all map tests run to completion
matrix:
maptype: ['/datum/map/cyberiad', '/datum/map/delta', '/datum/map/metastation', '/datum/map/cerestation']
maptype: ['/datum/map/boxstation', '/datum/map/deltastation', '/datum/map/metastation', '/datum/map/cerestation']
byondtype: ['STABLE']
services:
mariadb:
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions code/controllers/subsystem/non_firing/SSmapping.dm
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ SUBSYSTEM_DEF(mapping)
map_datum = text2path(lines[1])
map_datum = new map_datum
catch
map_datum = new /datum/map/cyberiad // Assume cyberiad if non-existent
map_datum = new /datum/map/boxstation // Assume cyberiad if non-existent
fdel("data/next_map.txt") // Remove to avoid the same map existing forever
else
map_datum = new /datum/map/cyberiad // Assume cyberiad if non-existent
map_datum = new /datum/map/boxstation // Assume cyberiad if non-existent

/datum/controller/subsystem/mapping/Shutdown()
if(next_map) // Save map for next round
Expand Down
6 changes: 0 additions & 6 deletions code/modules/mapping/cerestation.dm

This file was deleted.

5 changes: 0 additions & 5 deletions code/modules/mapping/cyberiad.dm

This file was deleted.

5 changes: 0 additions & 5 deletions code/modules/mapping/delta.dm

This file was deleted.

5 changes: 0 additions & 5 deletions code/modules/mapping/metastation.dm

This file was deleted.

30 changes: 30 additions & 0 deletions code/modules/mapping/station_datums.dm
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
/datum/map/boxstation
fluff_name = "NSS Cyberiad"
technical_name = "Cyberiad"
map_path = "_maps/map_files/stations/boxstation.dmm"
webmap_url = "https://webmap.affectedarc07.co.uk/maps/paradise/cyberiad/"

/datum/map/metastation
fluff_name = "NSS Cerebron"
technical_name = "MetaStation"
map_path = "_maps/map_files/stations/metastation.dmm"
webmap_url = "https://webmap.affectedarc07.co.uk/maps/paradise/metastation/"

/datum/map/deltastation
fluff_name = "NSS Kerberos"
technical_name = "Delta"
map_path = "_maps/map_files/stations/deltastation.dmm"
webmap_url = "https://webmap.affectedarc07.co.uk/maps/paradise/deltastation/"

/datum/map/cerestation
fluff_name = "NSS Farragus"
technical_name = "CereStation"
map_path = "_maps/map_files/stations/cerestation.dmm"
webmap_url = "https://webmap.affectedarc07.co.uk/maps/paradise/cerestation/"
min_players_random = 60

/datum/map/test_tiny
fluff_name = "test_tiny"
technical_name = "test_tiny"
map_path = "_maps/map_files/test_tiny/test_tiny.dmm"
voteable = FALSE
5 changes: 0 additions & 5 deletions code/modules/mapping/test_tiny.dm

This file was deleted.

6 changes: 1 addition & 5 deletions paradise.dme
Original file line number Diff line number Diff line change
Expand Up @@ -1962,13 +1962,9 @@
#include "code\modules\lighting\lighting_turf.dm"
#include "code\modules\mapping\access_helpers.dm"
#include "code\modules\mapping\base_map_datum.dm"
#include "code\modules\mapping\cerestation.dm"
#include "code\modules\mapping\cyberiad.dm"
#include "code\modules\mapping\delta.dm"
#include "code\modules\mapping\mapping_helpers.dm"
#include "code\modules\mapping\merge_conflicts.dm"
#include "code\modules\mapping\metastation.dm"
#include "code\modules\mapping\test_tiny.dm"
#include "code\modules\mapping\station_datums.dm"
#include "code\modules\mapping\windoor_access_helpers.dm"
#include "code\modules\maptext_alerts\location_blurbs.dm"
#include "code\modules\maptext_alerts\text_blurbs.dm"
Expand Down
14 changes: 7 additions & 7 deletions tools/github-actions/nanomap-renderer-invoker.sh
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
#!/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"
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"
# 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 "boxstation_nanomap_z1.png" "Cyberiad_nanomap_z1.png"
mv "deltastation_nanomap_z1.png" "Delta_nanomap_z1.png"
mv "metastation_nanomap_z1.png" "MetaStation_nanomap_z1.png"
mv "cerestation_nanomap_z1.png" "CereStation_nanomap_z1.png"
cd "../../"
cp "data/nanomaps/Cyberiad_nanomap_z1.png" "icons/_nanomaps"
Expand Down

0 comments on commit d52535a

Please sign in to comment.