×
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

    Automatic Reactor: Difference between revisions

    Content deleted Content added
    m Finished dlaywire autoreactor
    Added more explainations onto the code itself (Also Title-Cased Titles and bolder warnings)
    Line 1: Line 1:
    <br />Warning: automatic reactors that use microcontroller need you to know lua pilot, wiki code below is not good and can cause mass uranium leak.
    <br />'''''Warning: automatic reactors that use microcontroller need you to know lua pilot, wiki code below is not good and can cause mass uranium leak.'''''

    It is recommended to use delay wire auto reactors



    ''It is recommended to use delay wire auto reactors''
    <h2></h2>


    Automatic Reactor is a term used for [[Reactor|reactors]] which are regulated through mechanisms rather than the player. They are necessary for feasible multi-reactor power systems.
    Automatic Reactor is a term used for [[Reactor|reactors]] which are regulated through mechanisms rather than the player. They are necessary for feasible multi-reactor power systems.


    == Delay wire auto reactor ==
    == Delay Wire Auto Reactor ==
    [[File:Delay wire autoreactor.png|thumb|350x350px|A working delay wire autoreactor they have many types u can even do line with tons of autoreactors or try use polysilicon frequency]]
    [[File:Delay wire autoreactor.png|thumb|350x350px|A working delay wire autoreactor they have many types u can even do line with tons of autoreactors or try use polysilicon frequency]]


    Line 28: Line 27:




    == Microcontroller auto refuel reactor ==
    == Microcontroller Auto Refuel Reactor ==
    There are two mechanisms per reactor, one for managing temperature, the other for dispensing uranium when it runs out. Rod control is achieved through temperature sensors, which read the reactor's temperature when attached to it, and sends signals when it moves out of range. When used with polysilicons, the signals can be used to lower or raise the control rods.
    There are two mechanisms per reactor, one for managing temperature, the other for dispensing uranium when it runs out. Rod control is achieved through temperature sensors, which read the reactor's temperature when attached to it, and sends signals when it moves out of range. When used with polysilicons, the signals can be used to lower or raise the control rods.


    Line 45: Line 44:
    <syntaxhighlight lang="lua" line="1">
    <syntaxhighlight lang="lua" line="1">


    --How much fuel is left in the reactor before the microcontroller ejects it.
    local eject_time = 0.9 --This determines when to eject, change this to control when you want to eject fuel. (0 to 1)
    --Change this to control when you want to refuel (0 to 1) (Recommeded is 0.2 to 0.5)
    local eject_treshold = 0.25


    local reactor = GetPartFromPort(1, "Reactor")
    local reactor = GetPartFromPort(1, "Reactor")
    Line 51: Line 52:


    while wait() do
    while wait() do
    local fuel = reactor:GetFuel()
    local fuel = reactor:GetFuel()
    for i = 1, #fuel do
    for i=1, #fuel do
    if fuel[i] <= eject_time then
    if fuel[i] <= eject_treshold then
    TriggerPort(3)
    TriggerPort(3) -- Eject fuel
    dispenser:Dispense()
    dispenser:Dispense() -- Dispense fresh fuel
    wait(1)
    wait(1)
    end
    end
    end
    end
    end
    end
    </syntaxhighlight>
    </syntaxhighlight>
    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 • 15 days ago
  • 116.111.185.163 • 15 days ago
  • 116.111.185.163 • 15 days ago
  • Cookies help us deliver our services. By using our services, you agree to our use of cookies.