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



    Waste Of Space Wiki

    Programming: Difference between revisions

    Content deleted Content added
    m I messed up!!! I meant to revert only one change
    Tag: Undo
    m Bunch of minor edits.
    Line 1: Line 1:
    [[File:ComputerDiagram.png|alt=|thumb|300x300px|Diagram for how to construct a basic computer including a MicroController.]]Waste of Space features a programming language named '''Pilot.lua'''. Pilot.lua lets players manipulate the states of objects in-game. As Pilot.lua is a superset of [https://luau-lang.org/ Luau] – Roblox' superset of [https://en.wikipedia.org/wiki/Lua_(programming_language) Lua] 5.1 ''–'' learning Luau (or at least Lua 5.1) first would be benificial.
    [[File:ComputerDiagram.png|alt=|thumb|300x300px|Diagram for how to construct a basic computer including a MicroController.]]Waste of Space features a programming language named '''Pilot.lua'''. Pilot.lua lets players manipulate the states of objects in-game. As Pilot.lua is a superset of [https://luau-lang.org/ Luau] – Roblox' superset of [https://en.wikipedia.org/wiki/Lua_(programming_language) Lua] 5.1 ''–'' learning Luau (or at least Lua 5.1) first would be beneficial.
    Important parts for programing:


    Documentation for all the parts can be found here [https://github.com/iimurpyh/pilot-lua/wiki].
    *[[Microcontroller]] - Runs code when triggered by polysilicon if it is powered. This is an essential part, as it is the only way to run code unprivileged. <!-- "..as it is the only way to run code unprivileged" as administrators can use the terminal. -->
    Important parts for programming:
    *[[Port]] - Allows the microcontroller to interact with other objects, configure them, and send triggers. While not strictly essential, it is still a core part of programming as it is the only way for a microcontroller to interact with its surroundings.

    *[[Screen]] - Displays user interface objects on its surface (such as TextLabel, ImageLabel, ..). It is one of the most common ways to provide the user with feedback as it is able to display it in a clear, visual way. It can be to a certain extent supplemented with the much easier to program [[Sign|signs]].
    *[[Microcontroller]] - Runs code when triggered by Polysilicon if it is powered. This is an essential part, as it is the only way to run code.
    *[[Port]] - Allows the Microcontroller to interact with other objects, configure them, and send triggers. While not strictly essential, it is still a core part of programming as it is the only way for a Microcontroller to interact with its surroundings.
    *[[Screen]] - Displays user interface objects on its surface using Gui elements (such as TextLabel, Button, ..). It is one of the most common ways to provide the user with feedback as it is able to display it in a clear, visual way. It can be to a certain extent supplemented with the much easier to program [[Sign|signs]].
    *[[Disk]] - Stores values in a [https://create.roblox.com/docs/education/coding-5/intro-to-dictionaries dictionary] format. Can store large amounts of data like code and [[Model Builder|model codes]]. Data stored on a disk is permanent, as opposed to variables on a microcontroller (which are lost when the microcontroller is powered off, or the server is restarted).
    *[[Disk]] - Stores values in a [https://create.roblox.com/docs/education/coding-5/intro-to-dictionaries dictionary] format. Can store large amounts of data like code and [[Model Builder|model codes]]. Data stored on a disk is permanent, as opposed to variables on a microcontroller (which are lost when the microcontroller is powered off, or the server is restarted).
    *[[EthernetCable]] (optional) - Works like a wire for ports.
    *[[EthernetCable]] (optional) - Allows Ports to reach further when placed touching the hole of the port, similar to how a wire allows power to reach further.
    *(UNSTABLE) [[Router]] (optional) - The router is the [[Antenna]] of [[EthernetCable|ethernet cables]]. It does the same thing as [[EthernetCable|ethernet cables]], only wireless. This is incredibly useful, as it allows for wireless connections, and allows for parts to be connected from across the region. Note that this is ONLY in [https://www.roblox.com/games/4569607361/Waste-Of-Space-UNSTABLE unstable].
    *(UNSTABLE) [[Router]] (optional) - The router is the [[Antenna]] of [[EthernetCable|ethernet cables]]. It does the same thing as [[EthernetCable|ethernet cables]], only wireless. This is incredibly useful, as it allows for wireless connections, and allows for parts to be connected from across the region. Note that this is ONLY in [https://www.roblox.com/games/4569607361/Waste-Of-Space-UNSTABLE unstable].


    Line 16: Line 18:
    *[[Microphone]] - Retrieves chat messages. Can be used for chat logs or chat commands.
    *[[Microphone]] - Retrieves chat messages. Can be used for chat logs or chat commands.
    *[[Instrument]] - Measures physical properties such as temperature or velocity.
    *[[Instrument]] - Measures physical properties such as temperature or velocity.
    *[[TouchScreen]] - A improved version of the [[Screen]], as it allows you to get the X and Y (in offset) of the cursor on the screen.
    *[[TouchScreen]] - A improved version of the [[Screen]], as it allows you to get the X and Y (in offset) of the cursor on the screen. Note that you can use buttons on Screens for User input.


    As an example, the code below is code for a smart turret that takes chat commands and targets players accordingly, with the command <code>target playername</code>:<syntaxhighlight lang="lua" line="1">
    As an example, the code below is code for a smart turret that takes chat commands and targets players accordingly, with the command <code>target playername</code>:<syntaxhighlight lang="lua" line="1">
    Cookies help us deliver our services. By using our services, you agree to our use of cookies.

    Recent changes

  • Jo857294 • 2 days ago
  • 116.111.185.163 • 14 days ago
  • 116.111.185.163 • 14 days ago
  • 116.111.185.163 • 14 days ago
  • Cookies help us deliver our services. By using our services, you agree to our use of cookies.