Done so my basic cc script crashed the server

Discussion in 'Infinity' started by ben_mkiv, Mar 1, 2016.

  1. ben_mkiv

    ben_mkiv Well-Known Member

    Messages:
    482
    Likes Received:
    106
    Local Time:
    7:35 AM
    Hi,
    my basic script seemed to crash the server. Are the chests with the item + book placed by a script?

    Because it worked fine for a week without any trouble, and i'm a bit in doubt that it was the main reason.


    code from what i remember
    Code:
    local val = 0
    
    while true do
      val = rs.getAnalogInput("back")
      if val < 15 then
    	rs.setOutput("bottom", true)
    	sleep(1)
    	rs.setOutput("bottom", false)
      end
      sleep(10)
    end
    
    replaced that thing by a timer now, but i think that cc uses less cpu time, so i would prefer the cc solution
     
  2. pizzaluc

    pizzaluc Well-Known Member

    Messages:
    348
    Likes Received:
    90
    Local Time:
    7:35 AM
    i am not sure why your code would crash the server, but yes. the chest with the item and book, is something the server automatically does sometimes when it can. other times a staff member have to remove the crashing block manually
     
  3. SirWill

    SirWill Founder

    Messages:
    12,284
    Likes Received:
    3,708
    Local Time:
    7:35 AM
    Can you please try it again.
     
  4. ben_mkiv

    ben_mkiv Well-Known Member

    Messages:
    482
    Likes Received:
    106
    Local Time:
    7:35 AM
    ok, re-placed it. server running fine since 5 minutes :)

    i'll report back if it produces a crash again[DOUBLEPOST=1456871183,1456848109][/DOUBLEPOST]happened again...

    also noticed that some other computer got removed, which from what i remember didn't run anything.

    i'll just not use cc until that got fixed

    edit:
    actually it seems to also crash when i try to remove cc-monitors
     
    Last edited: Mar 1, 2016
  5. Timkoo

    Timkoo Well-Known Member

    Messages:
    529
    Likes Received:
    39
    Local Time:
    7:35 AM
    Crash-Server-Warrior !!
     
    petolego likes this.
  6. MrWisski

    MrWisski Well-Known Member

    Messages:
    1,110
    Likes Received:
    522
    Local Time:
    1:35 AM
    Fixed the patch that was in progress, and tested in game on IE4 - no crash, with this program, with a computer with (and without) redstone on the back input.

    Will require a restart for the patch to take effect on the servers, however. IE4 is the only one, at the time of this writing, to have the patch in effect :D
     
    Last edited: Mar 8, 2016
    ben_mkiv likes this.

Share This Page