Skip to content

Commit

Permalink
Refactors cassettes and the cassette player
Browse files Browse the repository at this point in the history
  • Loading branch information
Absolucy committed Dec 25, 2024
1 parent f24cb08 commit 59476a5
Show file tree
Hide file tree
Showing 30 changed files with 1,013 additions and 664 deletions.
17 changes: 17 additions & 0 deletions SQL/tgstation_schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -802,6 +802,23 @@ CREATE TABLE `subsystem_metrics` (
PRIMARY KEY (`id`) USING BTREE
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Table structure for table `cassettes`
--
DROP TABLE IF EXISTS `cassettes`;
CREATE TABLE `cassettes` (
`id` VARCHAR(255) NOT NULL PRIMARY KEY,
`name` VARCHAR(42) NOT NULL,
`desc` VARCHAR(144) NOT NULL,
`status` TINYINT UNSIGNED NOT NULL,
`author_name` VARCHAR(42) NOT NULL,
`author_ckey` VARCHAR(30) NOT NULL,
`front` TEXT NOT NULL DEFAULT '{}',
`back` TEXT NOT NULL DEFAULT '{}',
CONSTRAINT `front` CHECK (json_valid(`front`)),
CONSTRAINT `back` CHECK (json_valid(`back`))
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
Expand Down
126 changes: 63 additions & 63 deletions _maps/map_files/BoxStation/BoxStation.dmm
Original file line number Diff line number Diff line change
Expand Up @@ -21341,53 +21341,6 @@
/obj/machinery/quantum_server,
/turf/open/floor/iron/dark,
/area/station/security/bitden)
"gSC" = (
/obj/structure/sign/painting/library_private{
pixel_y = -32
},
/obj/structure/table/wood,
/obj/item/device/cassette_tape/friday{
pixel_y = 2;
pixel_x = 9
},
/obj/item/device/walkman{
pixel_y = 7;
pixel_x = -8
},
/obj/item/device/walkman{
pixel_y = 7;
pixel_x = -8
},
/obj/item/device/walkman{
pixel_y = 7;
pixel_x = -8
},
/obj/item/device/walkman{
pixel_y = 7;
pixel_x = -8
},
/obj/item/device/walkman{
pixel_y = 7;
pixel_x = -8
},
/obj/item/device/walkman{
pixel_y = 7;
pixel_x = -8
},
/obj/item/device/walkman{
pixel_y = 7;
pixel_x = -8
},
/obj/item/device/walkman{
pixel_y = 7;
pixel_x = -8
},
/obj/item/device/walkman{
pixel_y = 7;
pixel_x = -8
},
/turf/open/floor/iron/vaporwave,
/area/station/service/library/printer)
"gSE" = (
/turf/open/floor/carpet/purple,
/area/station/command/heads_quarters/rd)
Expand Down Expand Up @@ -26093,20 +26046,6 @@
/obj/machinery/deepfryer,
/turf/open/floor/iron/kitchen,
/area/station/service/kitchen)
"iuI" = (
/obj/effect/turf_decal/tile/red/fourcorners,
/obj/structure/rack,
/obj/item/gun/energy/disabler{
pixel_x = -3;
pixel_y = 3
},
/obj/item/gun/energy/disabler,
/obj/item/gun/energy/disabler{
pixel_x = 3;
pixel_y = -3
},
/turf/open/floor/iron/dark,
/area/station/ai_monitored/security/armory)
"iuJ" = (
/obj/effect/turf_decal/tile/dark_blue/full,
/obj/effect/turf_decal/bot_white,
Expand Down Expand Up @@ -42564,6 +42503,53 @@
/obj/structure/cable,
/turf/open/floor/iron,
/area/station/cargo/warehouse)
"nOJ" = (
/obj/structure/sign/painting/library_private{
pixel_y = -32
},
/obj/structure/table/wood,
/obj/item/cassette_tape/friday{
pixel_y = 2;
pixel_x = 9
},
/obj/item/device/walkman{
pixel_y = 7;
pixel_x = -8
},
/obj/item/device/walkman{
pixel_y = 7;
pixel_x = -8
},
/obj/item/device/walkman{
pixel_y = 7;
pixel_x = -8
},
/obj/item/device/walkman{
pixel_y = 7;
pixel_x = -8
},
/obj/item/device/walkman{
pixel_y = 7;
pixel_x = -8
},
/obj/item/device/walkman{
pixel_y = 7;
pixel_x = -8
},
/obj/item/device/walkman{
pixel_y = 7;
pixel_x = -8
},
/obj/item/device/walkman{
pixel_y = 7;
pixel_x = -8
},
/obj/item/device/walkman{
pixel_y = 7;
pixel_x = -8
},
/turf/open/floor/iron/vaporwave,
/area/station/service/library/printer)
"nOK" = (
/obj/machinery/firealarm/directional/north,
/turf/open/floor/iron/dark/side{
Expand Down Expand Up @@ -50234,6 +50220,20 @@
/obj/machinery/holopad,
/turf/open/floor/carpet,
/area/station/service/chapel)
"qrg" = (
/obj/effect/turf_decal/tile/red/fourcorners,
/obj/structure/rack,
/obj/item/gun/energy/disabler{
pixel_x = -3;
pixel_y = 3
},
/obj/item/gun/energy/disabler,
/obj/item/gun/energy/disabler{
pixel_x = 3;
pixel_y = -3
},
/turf/open/floor/iron/dark,
/area/station/ai_monitored/security/armory)
"qrn" = (
/obj/structure/cable,
/obj/machinery/atmospherics/components/binary/pump/on{
Expand Down Expand Up @@ -103790,7 +103790,7 @@ oRs
csZ
gGx
dAx
iuI
qrg
lZV
jZp
jRr
Expand Down Expand Up @@ -122881,7 +122881,7 @@ qaG
gji
dOL
nVc
gSC
nOJ
nBE
nep
mhc
Expand Down
122 changes: 61 additions & 61 deletions _maps/map_files/MetaStation/MetaStation.dmm
Original file line number Diff line number Diff line change
Expand Up @@ -9301,14 +9301,6 @@
},
/turf/open/floor/iron/dark/textured,
/area/station/medical/pathology)
"dtx" = (
/obj/machinery/atmospherics/pipe/smart/manifold4w/supply/hidden/layer4,
/obj/structure/cable,
/obj/machinery/atmospherics/pipe/smart/manifold4w/scrubbers/hidden/layer2,
/obj/item/kirbyplants/random,
/obj/machinery/camera/autoname/directional/north,
/turf/open/floor/iron/white,
/area/station/science/explab)
"dtB" = (
/obj/machinery/atmospherics/pipe/smart/manifold/purple/visible{
dir = 8
Expand Down Expand Up @@ -33386,28 +33378,6 @@
/obj/machinery/duct,
/turf/open/floor/engine,
/area/station/science/xenobiology)
"lFk" = (
/obj/machinery/light_switch/directional/east,
/obj/effect/turf_decal/tile/red/half/contrasted{
dir = 8
},
/obj/item/ammo_box/magazine/m35,
/obj/item/ammo_box/magazine/m35,
/obj/structure/rack,
/obj/item/ammo_box/magazine/m35,
/obj/item/ammo_box/magazine/m35,
/obj/item/ammo_box/magazine/m35,
/obj/item/ammo_box/magazine/m35,
/obj/item/ammo_box/magazine/m35,
/obj/item/ammo_box/magazine/m35,
/obj/item/ammo_box/magazine/m35,
/obj/item/ammo_box/magazine/m35,
/obj/item/gun/ballistic/automatic/pistol/paco/no_mag,
/obj/item/gun/ballistic/automatic/pistol/paco/no_mag{
pixel_y = 6
},
/turf/open/floor/iron/dark,
/area/station/ai_monitored/security/armory)
"lFo" = (
/obj/structure/disposalpipe/segment{
dir = 9
Expand Down Expand Up @@ -43960,6 +43930,14 @@
/obj/machinery/light/small/directional/west,
/turf/open/floor/iron/freezer,
/area/station/hallway/primary/aft)
"pjY" = (
/obj/machinery/atmospherics/pipe/smart/manifold4w/supply/hidden/layer4,
/obj/structure/cable,
/obj/machinery/atmospherics/pipe/smart/manifold4w/scrubbers/hidden/layer2,
/obj/item/kirbyplants/random,
/obj/machinery/camera/autoname/directional/north,
/turf/open/floor/iron/white,
/area/station/science/explab)
"pke" = (
/obj/effect/turf_decal/tile/red,
/obj/effect/turf_decal/tile/red{
Expand Down Expand Up @@ -46323,6 +46301,28 @@
/obj/machinery/station_map/engineering/directional/south,
/turf/open/floor/iron,
/area/station/hallway/primary/central)
"qcE" = (
/obj/machinery/light_switch/directional/east,
/obj/effect/turf_decal/tile/red/half/contrasted{
dir = 8
},
/obj/item/ammo_box/magazine/m35,
/obj/item/ammo_box/magazine/m35,
/obj/structure/rack,
/obj/item/ammo_box/magazine/m35,
/obj/item/ammo_box/magazine/m35,
/obj/item/ammo_box/magazine/m35,
/obj/item/ammo_box/magazine/m35,
/obj/item/ammo_box/magazine/m35,
/obj/item/ammo_box/magazine/m35,
/obj/item/ammo_box/magazine/m35,
/obj/item/ammo_box/magazine/m35,
/obj/item/gun/ballistic/automatic/pistol/paco/no_mag,
/obj/item/gun/ballistic/automatic/pistol/paco/no_mag{
pixel_y = 6
},
/turf/open/floor/iron/dark,
/area/station/ai_monitored/security/armory)
"qcP" = (
/obj/effect/landmark/blobstart,
/obj/effect/mapping_helpers/burnt_floor,
Expand Down Expand Up @@ -51147,34 +51147,6 @@
},
/turf/open/floor/iron,
/area/station/engineering/atmos)
"rIa" = (
/obj/structure/table/wood,
/obj/item/device/walkman{
pixel_y = 4;
pixel_x = -6
},
/obj/item/device/walkman{
pixel_y = 4;
pixel_x = -6
},
/obj/item/device/walkman{
pixel_y = 4;
pixel_x = -6
},
/obj/item/device/cassette_tape/blank{
pixel_y = 3;
pixel_x = 5
},
/obj/item/device/cassette_tape/blank{
pixel_y = 3;
pixel_x = 5
},
/obj/item/device/cassette_tape/blank{
pixel_y = 3;
pixel_x = 5
},
/turf/open/floor/wood,
/area/station/service/library)
"rIh" = (
/obj/machinery/light/directional/east,
/obj/effect/turf_decal/tile/neutral{
Expand Down Expand Up @@ -68703,6 +68675,34 @@
},
/turf/open/floor/iron,
/area/station/hallway/secondary/command)
"xPT" = (
/obj/structure/table/wood,
/obj/item/device/walkman{
pixel_y = 4;
pixel_x = -6
},
/obj/item/device/walkman{
pixel_y = 4;
pixel_x = -6
},
/obj/item/device/walkman{
pixel_y = 4;
pixel_x = -6
},
/obj/item/cassette_tape/blank{
pixel_y = 3;
pixel_x = 5
},
/obj/item/cassette_tape/blank{
pixel_y = 3;
pixel_x = 5
},
/obj/item/cassette_tape/blank{
pixel_y = 3;
pixel_x = 5
},
/turf/open/floor/wood,
/area/station/service/library)
"xQb" = (
/obj/machinery/light/directional/east,
/obj/structure/filingcabinet,
Expand Down Expand Up @@ -89105,7 +89105,7 @@ nxF
sVY
cyk
qzS
rIa
xPT
ahD
wki
jIY
Expand Down Expand Up @@ -97544,7 +97544,7 @@ sDw
eew
hxF
daO
lFk
qcE
anl
vDh
ewj
Expand Down Expand Up @@ -109463,7 +109463,7 @@ tVv
tVv
tVv
tVv
dtx
pjY
aqv
lHE
pQf
Expand Down
Loading

0 comments on commit 59476a5

Please sign in to comment.