Wired Data Plug
From GMod Wiki
Wiremod Tool | Back |
Function: | Spawns plugs and sockets for use with the hi-speed wire system. |
Primary fire: | Create/Update Socket |
Secondary fire: | Create Create/Update Plug |
Reload: | No action. |
Notes: | Not a floppy disk! |
Brief
A physics-handled data connection for use with Hi-speed wire. Often used to make controller ports on wire systems.
Instructions
The socket is wired to the host system (cpu or e2, usually), and the plug is wired to the device that you want to plug in.
Inputs
Socket: none. Plug: Memory (wire this to the client device.)
Outputs
Socket: Connected, Memory (wire this to an address bus) Plug: none.
Variables
Color of the plug.
Useful hints
The data plug does not function as a floppy drive or storage medium, but an adapter. This can be confusing since the plug looks like a disk and there is no cord.
Color coding sockets can do a lot for the user!
You can wire an address bus to the socket for complex devices (i.e. a mouse/keyboard hybrid)
If you don't like working with memory, you can use ports! Just link the socket to the CPU's IOBus, and the plug to a Data Port. This can make IO a lot easier for beginners.
E2 use requires a wirelink.
Example
To make the plug behave like a storage disk, wire it to a RAM chip.
To make a data plug behave like a cord, use an invisible wire (length 0) and make a rope between the device and the plug.