Done Turbine Bug

Dieses Thema im Forum "Direwolf20" wurde erstellt von Terrails, 26. April 2015.

  1. Terrails

    Terrails Well-Known Member

    Beiträge:
    127
    Zustimmungen:
    8
    Ortszeit:
    16:00
    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

    Beiträge:
    379
    Zustimmungen:
    123
    Ortszeit:
    16:00
    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

    Beiträge:
    127
    Zustimmungen:
    8
    Ortszeit:
    16:00
    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

    Beiträge:
    1.701
    Zustimmungen:
    649
    Ortszeit:
    15:00
    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

    Beiträge:
    127
    Zustimmungen:
    8
    Ortszeit:
    16:00
    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

    Beiträge:
    1.701
    Zustimmungen:
    649
    Ortszeit:
    15:00
    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 gefällt das.
  7. Terrails

    Terrails Well-Known Member

    Beiträge:
    127
    Zustimmungen:
    8
    Ortszeit:
    16:00
    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

    Beiträge:
    1.701
    Zustimmungen:
    649
    Ortszeit:
    15:00
    Glad I could help ;)
     
  9. Terrails

    Terrails Well-Known Member

    Beiträge:
    127
    Zustimmungen:
    8
    Ortszeit:
    16:00
    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
     
    Zuletzt bearbeitet: 28. April 2015

Diese Seite empfehlen