User:MarkNstein/PacketNerding

From Space Station 13 Wiki
Jump to navigation Jump to search

Possible addition(s) to Zamujasa's Station Network Guide.

We shall see


Fundamental Packet Processing

A quick reminder: The mainframe is the core-processing unit of the DWAINE network, terminals are just dumb peripherals. With the few exceptions, all the "thinking" (processing) happens in the mainframe. If the mainframe is offline, or a terminal is unable to communicate with it, then little can be accomplished with the DWAINE system.

The mainframe communicates with terminals and other peripherals with packets. With the exception of pings, the terminal will only act on a packet if it is the addressed recipient.

A ping packet has "ping" instead of an address. This packet (with sender info) is sent when you run term_ping at a DWAINE terminal.

address_1=ping

Recognized commands:

  • term_connect
  • term_message (term_input)
  • term_file (term_input)
  • term_break (term_input)
  • term_ping
  • term_disconnect
  • ping_reply


term_input(var/data, var/termid, var/datum/computer/file/the_file) var/list/commandlist = params2list(data) var/command = lowertext(commandlist["command"])



(Pipe) Pumps

[55:00:0]:command=broadcast_status; 
[55:01:0]:tag=Combustion Feed Pump (East); command=set_output_pressure; parameter=100; 
[55:01:5]:tag=Combustion Feed Pump (East); device=AGP; power=on; target_output=100; 
[55:11:9]:tag=Combustion Feed Pump (East); command=set_output_pressure; parameter=500; 
[55:12:4]:tag=Combustion Feed Pump (East); device=AGP; power=on; target_output=500;
[59:27:2]:tag=Combustion Feed Pump (East); command=set_output_pressure; parameter=1000; 
[59:27:7]:tag=Combustion Feed Pump (East); device=AGP; power=on; target_output=1000; 
[59:30:0]:tag=Combustion Feed Pump (East); command=set_output_pressure; parameter=2500; 
[59:30:5]:tag=Combustion Feed Pump (East); device=AGP; power=on; target_output=2500; 
[59:31:6]:tag=Combustion Feed Pump (East); command=set_output_pressure; parameter=5000; 
[59:32:1]:tag=Combustion Feed Pump (East); device=AGP; power=on; target_output=5000;
[28:36:7]:tag=Combustion Feed Pump (East); command=power_toggle; 
[28:37:1]:tag=Combustion Feed Pump (East); device=AGP; power=off; target_output=100;