Reset world script

Discussion in 'Multiplayer Meeting Room' started by }-=Loki=-{, Apr 27, 2016.

  1. }-=Loki=-{

    }-=Loki=-{ Ensign

    Joined:
    Feb 20, 2016
    Messages:
    10
    Likes Received:
    14
    Edited: Things have changed, and this script no longer resets the planet POIs (dron bases etc), so i've deleted it

    So Akua is full, and has way too many hideous gray square player shacks, so I looked into resetting the starter worlds
    A search showed that people suggested deleting the playfield folder for Akua
    Some testing left me concerned about all the player structure files, and the POI's
    So.... I wrote this batch file to clear all structures on a playfield, then the actual playfield
    then I thought, "maybe others would find this useful..."

    Stick it in your server 's Empyrion folder, and call it like this
    step 1: tell players way in advance....(regular spam message, "contact admin to help move if you need to")
    step 2. stop the server
    step 3. Backup your Save folder (you do this already right?!!)
    step 4. ResetWorld "Save Name" "Playfield Name"
    e.g. ResetWorld "Lokis" "Akua"
    (you can make a shortcut if that's easier for you)
    step 5. start the server

    I'll add this to my server manager app, but for now it's easy enough as a .bat file
    what it does:
    looks for all .txt files in the shared folder, and sees if a line starts with the playfield name and a comma
    then it deletes the matching folder contents, the matching folder, and the .txt file
    finally, it removes the playfield iteself

    (if you copy and paste, double check that the quotes are correct)
    ResetWorld.bat

    [DELETED as obsolete]
     
    #1
    Last edited: May 6, 2016
  2. Myrmidon

    Myrmidon Rear Admiral

    Joined:
    Mar 26, 2016
    Messages:
    1,734
    Likes Received:
    2,066
    Can this be used for single player games?
     
    #2
  3. }-=Loki=-{

    }-=Loki=-{ Ensign

    Joined:
    Feb 20, 2016
    Messages:
    10
    Likes Received:
    14
  4. Myrmidon

    Myrmidon Rear Admiral

    Joined:
    Mar 26, 2016
    Messages:
    1,734
    Likes Received:
    2,066
    Ok thank you I might test it on one of my backup saves.
     
    #4
  5. Radje

    Radje Ensign

    Joined:
    Apr 19, 2016
    Messages:
    2
    Likes Received:
    0
    Is there an other way to reset POI's without harming player's structures?
     
    #5
  6. }-=Loki=-{

    }-=Loki=-{ Ensign

    Joined:
    Feb 20, 2016
    Messages:
    10
    Likes Received:
    14
    Actually, resetting the POIs is relatively easy.
    Just delete the related folders from the Shared folder (e.g. "BA_Epsilon_DroneBase_3011")

    The problem is if a player has taken over a base (it has a player core) then once reset, the drone base still belongs to the player
    This has some nasty side effects
    1. the turrets are firing and have infinite ammo
    2. NOONE can destory the turrets except the player who owns the base (its a PVE planet...)
    3. NOONE can loot the base except the player who owns the base

    If you're ok with the above
    e.g.
    1. im on a single player game and i can remove my core first, no biggie
    2. this is a multiplayer,but ive gotten all players to remove their cores
    then removing the folders is still an option for you
    however... there is no easy way to know which planet a POI is on since the related text file is not there

    The player core info for drone bases used to be in the shared folder, but not any more.
     
    #6
    Radje likes this.
  7. Radje

    Radje Ensign

    Joined:
    Apr 19, 2016
    Messages:
    2
    Likes Received:
    0
    Thanks for the fast reply!

    The situation at hand:
    We have been playing on this save for a little while now and we would love to be able to play on it for a bit longer with the new entities/structures.
    Most planets have been raided, but no structures (or once that need to stay) owned by players are present.
    We would like to reset those planets, so they will have the new POIs with the new turrets, etc.

    As I understand from your post, its easy to reset individual POIs by deleting their corresponding folders. I assume the server creates fresh ones?
    How about deleting the folder of an entire planet? (It seems planets and orbits are separated) Those this work the same way? e.g. deleting "/empyrion/Saves/Games/New Game/Playfields/Skillon" will create a fresh Skillon when flying to that planet again?

    Thanks again for your help!
     
    #7
  8. }-=Loki=-{

    }-=Loki=-{ Ensign

    Joined:
    Feb 20, 2016
    Messages:
    10
    Likes Received:
    14
    Yes, that's right. Deleting the play field will reset the world and ore. However any vessels and player bases currently on the world would be orphaned (the main reason I wrote the script was to help clean this up, and for that my script would still work fine)
     
    #8
  9. Myrmidon

    Myrmidon Rear Admiral

    Joined:
    Mar 26, 2016
    Messages:
    1,734
    Likes Received:
    2,066
    How one can reset all the POIs or make them respawn as new alien structures, to same or other locations on any planet?
     
    #9

Share This Page