Wired Data Plug

From GMod Wiki

Jump to: navigation, search
Wire Icon.png Wiremod ToolYarin Kaul Icon ArrowSquare32 left.png Back
Information 16x16.png Function:Spawns plugs and sockets for use with the hi-speed wire system.
link=User:{{{author}}} Primary fire:Create/Update Socket
Wrench orange.png Secondary fire:Create Create/Update Plug
Link break.png Reload:No action.
Page white text.png 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.

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox