1. These forums are archived and available in read-only format. No new accounts may be created and content may not be added or edited. This archive is dedicated to hoshiwara.t who tragically passed away in April of 2015. She will be forever missed.

Automatic Planet Restoration

Discussion in 'Announcements and Information' started by Kazyyk, Aug 16, 2014.

  1. Kazyyk

    Kazyyk Administrator

    Joined:
    Dec 16, 2013
    Messages:
    290
    Likes Received:
    819
    Hello everybody!

    I'm excited to present some rather interesting news. Some of you may have already noticed that wiped planets are mysteriously re-appearing without Moderator intervention. This isn't magic, but the power of a computer script I introduced to the server a few days back.

    We've been doing test runs of the script and it seems to be performing excellently, so I'm here to announce it to you all that it exists.
    Here's how it works:
    1. Whenever a planet wipes, the script detects this.
    2. It unzips the last backup containing the world file for that planet.
    3. It waits until the planet is unloaded from Starbound's memory. (This happens 30 seconds after a planet lacks any players)
    4. It then replaces the damaged planet file with the good one from the backup. Tada!
    So, in a nutshell, if your planet wipes, all you have to do is leave the planet. Make sure everybody is off of it. Take a break. Maybe go get a drink. When you come back, it should be good as new. Be careful, though! If you re-visit the planet before the 30 seconds is up, Starbound will reset the timer.
    So it's recommended that you wait at least a minute before returning to the planet.

    The script isn't perfect. It can't handle two or more wipes at the same time, but I'm working on a new version to address that issue.
    I'll be sure to bump this post once it's released.

    EDIT: If you'd like to be a beta tester for some of my future work, you can sign up here: http://goo.gl/LJGNTf

    EDIT #2: Version 2.1 has been released. Changelog as a reply to this thread. This version supports multiple planet wipes.

    Cheers!
     
    #1 Kazyyk, Aug 16, 2014
    Last edited by a moderator: Aug 24, 2014
  2. TAP123

    TAP123 New Member

    Joined:
    Jan 5, 2014
    Messages:
    266
    Likes Received:
    0
    Nice! So now there won't be too much of a work load for the moderators and people can get their RP on.
     
  3. Switchback

    Switchback Iss likess fissh eyess~!

    Joined:
    Jan 3, 2014
    Messages:
    869
    Likes Received:
    0
    This is the best thing since chocolate milk
     
  4. Kazyyk

    Kazyyk Administrator

    Joined:
    Dec 16, 2013
    Messages:
    290
    Likes Received:
    819
    Now I want chocolate milk...
     
  5. Switchback

    Switchback Iss likess fissh eyess~!

    Joined:
    Jan 3, 2014
    Messages:
    869
    Likes Received:
    0
    AND SO DO I. * runs off to get chocolate milk *
     
  6. Epsilon

    Epsilon The official AI of Chorus

    Joined:
    May 28, 2014
    Messages:
    47
    Likes Received:
    0
    Hurray for black magic Science!
     
  7. Spinach Pirate

    Spinach Pirate The Adorable Spinach

    Joined:
    Feb 1, 2014
    Messages:
    486
    Likes Received:
    0
    can you get some for me?
     
  8. Switchback

    Switchback Iss likess fissh eyess~!

    Joined:
    Jan 3, 2014
    Messages:
    869
    Likes Received:
    0
    but... if i use up all the milk me mum will get mad at me ;~;
     
  9. TAP123

    TAP123 New Member

    Joined:
    Jan 5, 2014
    Messages:
    266
    Likes Received:
    0
    Just pour a little bit into your USB drive, I'm sure that'll work in delivering it to TheAdorableSpinach promptly!
     
  10. Switchback

    Switchback Iss likess fissh eyess~!

    Joined:
    Jan 3, 2014
    Messages:
    869
    Likes Received:
    0
    now theres just milk in my usb drive and a pissed off mom...
     
  11. Spinach Pirate

    Spinach Pirate The Adorable Spinach

    Joined:
    Feb 1, 2014
    Messages:
    486
    Likes Received:
    0
    I understand
     
  12. invictus69

    invictus69 New Member

    Joined:
    Jul 2, 2014
    Messages:
    205
    Likes Received:
    0
    Good work Kazyyk, you done good mang.
     
  13. Khaltor

    Khaltor Lore Master

    Joined:
    Jun 13, 2014
    Messages:
    624
    Likes Received:
    120
    Get the one(s) responsible a medal!
     
  14. Sammy McHammyDoodle

    Sammy McHammyDoodle New Member

    Joined:
    Jan 13, 2014
    Messages:
    415
    Likes Received:
    0
    But this won't be able to restore the planets after theuniverse wipe right? Because of the probable new randomly generated planets and stuff.
    Still is handy for the future and now.
     
  15. Kazyyk

    Kazyyk Administrator

    Joined:
    Dec 16, 2013
    Messages:
    290
    Likes Received:
    819
    Hey, if anyone wants to sign up to be a beta tester for some of my future work, you can sign up here:
    http://goo.gl/LJGNTf
     
  16. Kazyyk

    Kazyyk Administrator

    Joined:
    Dec 16, 2013
    Messages:
    290
    Likes Received:
    819
    Unless they radically change how planets work, it should be fine.
    I can also change it to adapt to whatever they dish out.
    (Although the best case scenario would be that they fix the wiping all together)
     
  17. Switchback

    Switchback Iss likess fissh eyess~!

    Joined:
    Jan 3, 2014
    Messages:
    869
    Likes Received:
    0
    what would beta testing include?
     
  18. Sammy McHammyDoodle

    Sammy McHammyDoodle New Member

    Joined:
    Jan 13, 2014
    Messages:
    415
    Likes Received:
    0
    Alright sweet but qwith a big update like this you would probably expect a wipe.
     
  19. Kazyyk

    Kazyyk Administrator

    Joined:
    Dec 16, 2013
    Messages:
    290
    Likes Received:
    819
    It could depend, but I'd imagine it'd mainly involve taking some of your time to login and mess around on the test server.
     
  20. Reconus

    Reconus Moderator
    Staff Member

    Joined:
    Feb 23, 2014
    Messages:
    276
    Likes Received:
    45
    Had to correct. I blame OCD :c