Done Turbine Bug

Discussion in 'Direwolf20' started by Terrails, Apr 26, 2015.

  1. Terrails

    Terrails Well-Known Member

    Messages:
    127
    Likes Received:
    8
    Local Time:
    1:27 AM
    I have one Big Reactors turbine and when server restarts it shuts down (deactivate).
    Because of that im draining my yellorium for reactor.
    I use Direwolf20's reactor/turbine program but my turbine shuts down and my reactor is still on because power is lower than 50%.
    Direwolf20's program cannot turn on turbine! (because dire made it so)
     
  2. Pitschweis

    Pitschweis New Member

    Messages:
    379
    Likes Received:
    123
    Local Time:
    12:27 AM
    Hey CptComet :D I have the same issue.
    The only thing I can give you as an advice is to do it manually. Can you activate the turbine manually and will the program still continue working?

    Thats the reason why i don't use the DW program. Not efficient enough.
     
  3. Terrails

    Terrails Well-Known Member

    Messages:
    127
    Likes Received:
    8
    Local Time:
    1:27 AM
    Yea i need to manually start turbine and than DW20's program starts working. (if there was turbine redstone port.....)
     
  4. chaosblad3

    chaosblad3 Very Well-Known Member Patron Tier 1

    Messages:
    1,701
    Likes Received:
    649
    Local Time:
    11:27 PM
    Edit the program so that it can turn the turbine on.. should be as simple as adding turbine.setActive(true) in an appropriate part of the code (replacing turbine with whatever the DW20 code has the variable named as in the peripheral.warp statement.
     
  5. Terrails

    Terrails Well-Known Member

    Messages:
    127
    Likes Received:
    8
    Local Time:
    1:27 AM
    I looked in reactor code and i can only see :
    t = peripheral.find("BigReactors-Turbine")
    is that it?
    do i need to make t.setActive(true)

    It already has that :
    Code:
    function online()
       r.setActive(true)
       --button.flash("Online")
    end
    
    function offline()
       r.setActive(false)
       --button.flash("Offline")
    end
    
    function setTurbineOnline()
       t.setActive(true)
       --button.flash("Online")
    end
    
    function setTurbineOffline()
       t.setActive(false)
       --button.flash("Offline")
    reactor pastebin
    button pastebin
     
  6. chaosblad3

    chaosblad3 Very Well-Known Member Patron Tier 1

    Messages:
    1,701
    Likes Received:
    649
    Local Time:
    11:27 PM
    Yeah peripheral.find is just a newer more easy way to peripheral.warp but t would be the variable name so t.setActive(true) should work if you put it straight after the peripheral.find line.
     
    Terrails likes this.
  7. Terrails

    Terrails Well-Known Member

    Messages:
    127
    Likes Received:
    8
    Local Time:
    1:27 AM
    it is working i made it like this :
    Code:
    os.loadAPI("button")
    
    p = peripheral.find("tile_blockcapacitorbank_name")
    m = peripheral.find("monitor")
    r = peripheral.find("BigReactors-Reactor")
    t = peripheral.find("BigReactors-Turbine")
    
    t.setActive(true)
     
  8. chaosblad3

    chaosblad3 Very Well-Known Member Patron Tier 1

    Messages:
    1,701
    Likes Received:
    649
    Local Time:
    11:27 PM
    Glad I could help ;)
     
  9. Terrails

    Terrails Well-Known Member

    Messages:
    127
    Likes Received:
    8
    Local Time:
    1:27 AM
    Can i make only to it auto starts turbine and coils when needed because i got errors with program it always says errors like this :
    Code:
    reactor:568: attempt to compare nil with number
    reactor:10: Unable to access reactor - port is not connected
    First error happens after some time and second when i try to open program after first error shows.
    I connected cable and wired modem to reactor error is still here

    I wanna fix that somehow or i wanna program what just start coils when needed and always make turbine on for reactor i can use Power Monitor and Redstone Port[DOUBLEPOST=1430210955][/DOUBLEPOST]bump
     
    Last edited: Apr 28, 2015

Share This Page