Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Button Reset World #440

Open
Arutosio opened this issue Feb 3, 2021 · 7 comments
Open

Button Reset World #440

Arutosio opened this issue Feb 3, 2021 · 7 comments

Comments

@Arutosio
Copy link
Contributor

Arutosio commented Feb 3, 2021

can you add a command or button inside admin gump where i can reset everything and reset the world as a new world with no items ... to clean up the world (this command can will be used by the owner)

@kamronbatman
Copy link
Contributor

Any exceptions? Should delete players too?

@Arutosio
Copy link
Contributor Author

Arutosio commented Feb 4, 2021

Any exceptions? Should delete players too?

maybe it would be good to also have a button that eliminates all the banks of all and another that eliminates all the player type characters

@kamronbatman
Copy link
Contributor

kamronbatman commented Feb 4, 2021

This will be very dangerous for production servers. Do you have any ideas for how to guard against accidental destruction of the server?

@Arutosio
Copy link
Contributor Author

Arutosio commented Feb 4, 2021

This will be very dangerous for production servers. Do you have any ideas for how to guard against accidental destruction of the server?

after pressing the button it asks you to type "RESET WOLRD" to confirm, and a full backup is made before continuing. if the buckup fails, the restoration must not take place.
the backup server to be able to return to the way it was before doing the restore

@thestupidity
Copy link

thestupidity commented Jul 28, 2023

It is my personal opinion that having any option to wipe the world from in-game is dangerous and should be avoided. If an administrator account is ever compromised (I have witnessed and heard more about such events), someone can wipe everything without having access to the host machine.

@kamronbatman
Copy link
Contributor

Yeah, we don't have a concept of dev vs prod server. We can add dev-only mechanics which simply wouldn't be possible in production. So if you wanted to wipe your shard, you would need to load up the server on dev mode and do it.

Thoughts on how to detect, beyond a config flag, when the server is in dev mode?

@jwvalentine
Copy link

jwvalentine commented Aug 22, 2024

Yeah, we don't have a concept of dev vs prod server. We can add dev-only mechanics which simply wouldn't be possible in production. So if you wanted to wipe your shard, you would need to load up the server on dev mode and do it.

Thoughts on how to detect, beyond a config flag, when the server is in dev mode?

Counter question:
Why does it need to be more complicated than a config flag in appSettings or someServerConfig.json?

Let's assume it is a production server:

  • The person would have to go to the config and change it to dev mode.
  • Server would have to restart.
  • User would have to log in to a privileged account (Developer or above?)
  • They would need to issue a command - I wouldn't recommend a gump button as the starting point so it cant be "accidentally" clicked.
  • A popup gump can be displayed "Hey, if you're really sure you want to delete everything and restart the world from scratch, type the following string: "I WANT TO DELETE ALL PLAYER DATA AND RESET THIS SERVER"

That's a lot of effort which more than adequately addresses danger levels - backups/archives don't need to be tested here, imo.

All that said: yes, it's dangerous, so why?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants