So... we see you haven't signed up here on our website.  

Do you really want to sit here and be "Unregistered" all your life?  No, of course you don't!  So, click this here link and you'll take that all important first step into enlightenment! (or something, whatever...)

[Completed] Server Wipe Button

Discussion in 'Feature Requests' started by Xyniik, Feb 8, 2017.

  1. Xyniik

    Xyniik New Member JFF Member

    Would it be possible to create a button that when clicked it wipes the entire server?

    All information for the server is located under the "\ConanSandbox\Saved\" folders in the root directory of the server.

    I don't know if this will help you out but I made a similar code for a program before but I've altered it a little to just give you an idea:

    private void wipeDirectory_OnClick(object sender, MouseEventArgs e)
    DialogResult dialogResult =
    MessageBox.Show("You are about to erase " + serverDirectory + "\ConanSandbox\Saved\", "Wipe Server",
    if (dialogResult == DialogResult.Yes)

    Array.ForEach(Directory.GetFiles(@serverDirectory + "\ConanSandbox\Saved\"),
    delegate(string path) { File.Delete(path); });
    If this code works for you feel free but I was really just posting it so you can get a better understanding of what I was thinking. Sometimes code speaking code is easier than words! :)
    Obviously the serverDirectory variable would be whatever you use to save the server location and you would just set the button event onClick and link to this.

    Lemme know if this helps at all!
    • Like Like x 1
  2. Trekkan

    Trekkan JFF Administrator Staff Member

    Sure, I can add that in. =) I know exactly what you're looking for I think. More of a "reset" of the game state, not a reinstall of the server itself.
  3. Xyniik

    Xyniik New Member JFF Member

    Yeah, basically just clear out all characters and structures. Mainly because with it being alpha, there is going to be a lot of new changes and usually its just best to start completely fresh.

Share This Page