Skip to content

Commit

Permalink
remove TCS scripting
Browse files Browse the repository at this point in the history
  • Loading branch information
Spookerton committed Jan 18, 2024
1 parent 87d9ddf commit d90b523
Show file tree
Hide file tree
Showing 24 changed files with 1 addition and 3,350 deletions.
18 changes: 0 additions & 18 deletions code/game/machinery/telecomms/server.dm
Original file line number Diff line number Diff line change
Expand Up @@ -16,25 +16,18 @@
var/max_logs = 400 // maximum number of logs
var/log_cull_count = 10 // number of logs to cull at a time
var/totaltraffic = 0 // gigabytes (if > 1024, divide by 1024 -> terrabytes)
var/list/memory = list() // stored memory
var/rawcode = "" // the code to compile (raw text)
var/datum/TCS_Compiler/Compiler // the compiler that compiles and runs the code
var/autoruncode = FALSE // TRUE if the code is set to run every time a signal is picked up
var/encryption = "null" // encryption key: ie "password"
var/salt = "null" // encryption salt: ie "123comsat"
var/obj/item/radio/headset/server_radio


/obj/machinery/telecomms/server/Destroy()
QDEL_NULL_LIST(log_entries)
QDEL_NULL(Compiler)
QDEL_NULL(server_radio)
return ..()


/obj/machinery/telecomms/server/Initialize()
Compiler = new
Compiler.Holder = src
server_radio = new
return ..()

Expand Down Expand Up @@ -94,8 +87,6 @@
signal.data["server"] = src
var/identifier = num2text(rand(-1000, 1000) + world.time)
log.name = "data packet ([sha1(identifier)])"
if (autoruncode && Compiler)
Compiler.Run(signal)
var/send_success = relay_information(signal, /obj/machinery/telecomms/hub)
if (!send_success)
relay_information(signal, /obj/machinery/telecomms/broadcaster)
Expand All @@ -112,15 +103,6 @@
update_logs()


/obj/machinery/telecomms/server/proc/compile()
return Compiler?.Compile(rawcode)


/obj/machinery/telecomms/server/proc/setcode(text)
if (istext(text))
rawcode = text


/obj/machinery/telecomms/server/proc/update_logs()
if (logs >= max_logs)
log_entries.Cut(0, log_cull_count)
Expand Down
177 changes: 0 additions & 177 deletions code/game/machinery/telecomms/traffic_control.dm

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef T_BOARD
#error T_BOARD macro is not defined but we need it!
#error T_BOARD macro is not defined but we need it!
#endif

/obj/item/circuitboard/comm_monitor
Expand All @@ -11,8 +11,3 @@
name = T_BOARD("telecommunications server monitor console")
build_path = /obj/machinery/computer/telecomms/server
origin_tech = list(TECH_DATA = 3)

/obj/item/circuitboard/comm_traffic
name = T_BOARD("telecommunications traffic control console")
build_path = /obj/machinery/computer/telecomms/traffic
origin_tech = list(TECH_DATA = 3)
127 changes: 0 additions & 127 deletions code/modules/scripting/AST/AST Nodes.dm

This file was deleted.

Loading

0 comments on commit d90b523

Please sign in to comment.