×
Create a new article
Write your page title here:
We currently have 276 articles on Waste Of Space Wiki. Type your article name above or create one of the articles listed here!



    Waste Of Space Wiki

    Port: Difference between revisions

    Content added Content deleted
    mNo edit summary
    m (Added a bit of trivia as well has a reminder of proper EthernetCable placement.)
     
    (4 intermediate revisions by 4 users not shown)
    Line 1: Line 1:
    {{Object
    {{Object
    |title1 = {{PAGENAME}}
    |title1 = {{PAGENAME}}
    |image1 = [[File:Port.png|thumb|Port in a testing server.]]
    |image1 = [[File:Port.png|thumb]]
    |type = {{#invoke:GetPartInfo|getField|Type}}
    |type = {{#invoke:GetPartInfo|getField|Type}}
    |recipe={{#invoke:GetPartInfo|getField|Recipe}}
    |uses= Used in programming
    |raw_recipe={{#invoke:GetPartInfo|getField|Raw recipe}}
    |configuration={{#invoke:GetPartInfo|getField|Configuration}}
    |malleability={{#invoke:GetPartInfo|getField|Malleability}}
    |malleability={{#invoke:GetPartInfo|getField|Malleability}}
    |default_size={{#invoke:GetPartInfo|getField|DefaultSize}}
    |durability={{#invoke:GetPartInfo|getField|Durability}}
    |durability={{#invoke:GetPartInfo|getField|Durability}}
    |default_colour={{#invoke:GetPartInfo|getField|DefaultColor}}
    |flammable={{#invoke:GetPartInfo|getField|Flammable}}
    |flammable={{#invoke:GetPartInfo|getField|Flammable}}
    |recipe={{#invoke:GetPartInfo|getField|Recipe}}
    |raw_recipe={{#invoke:GetPartInfo|getField|Raw recipe}}
    }}
    }}


    A device that allows [[Microcontroller|microcontrollers]] to acess parts in world, to connect to a part you must use the function [https://github.com/iimurpyh/pilot-lua/wiki/Microcontroller-Globals#part-getpartfromportint-port-string-parttype|<code>GetPartFromPort()</code>] and write the ID of the port and the part you want to get. Example: <code>GetPartFromPort(1, "Reactor")</code>
    The port is used by micontrollers for interactions with items.

    The port can only access parts placed on its hole but [[EthernetCable]] can be used to access any part connected to the EthernetCable. It is important to remember that EthernetCable is place '''After''' the port and not before.

    [[File:MicrocontrollerDiagram.png]]


    === In-game description ===
    === In-game description ===
    {{#invoke:GetPartInfo|getField|Description}}
    {{#invoke:GetPartInfo|getField|Description}}

    == Configuration ==
    {{#invoke:GetPartInfo|getField|ConfigurationLarge}}

    === Trivia ===
    *The Port isnt the only the only way to access parts in-world.
    [[Category:Parts]]
    [[Category:Parts]]
    [[Category:Resources]]

    Latest revision as of 09:46, 21 May 2024

    A device that allows microcontrollers to acess parts in world, to connect to a part you must use the function GetPartFromPort() and write the ID of the port and the part you want to get. Example: GetPartFromPort(1, "Reactor")

    The port can only access parts placed on its hole but EthernetCable can be used to access any part connected to the EthernetCable. It is important to remember that EthernetCable is place After the port and not before.

    In-game description[edit | hide all | hide | edit source]

    "An object used primarily in programming. Allows a microcontroller and computers to interact with their surroundings. "

    Configuration[edit | hide | edit source]

    • PortID(number) [0 - 10000000000] - The ID of this port used to utilize this port by connected microcontrollers.

    Trivia[edit | hide | edit source]

    • The Port isnt the only the only way to access parts in-world.
    Cookies help us deliver our services. By using our services, you agree to our use of cookies.

    Recent changes

  • Axenori • 3 days ago
  • Voivsone • 4 days ago
  • Axenori • 4 days ago
  • Axenori • 5 days ago
  • Cookies help us deliver our services. By using our services, you agree to our use of cookies.