ID:175122
Jun 9 2003, 4:16 am
|
|
Is there a way to force all the hosts to delete the save files? Someone said something like a Pwipe.
|
Jun 9 2003, 11:02 am
|
|
All the host does it go to the folder the players are saved in then delete all the saves
|
In response to Koolguy900095
|
|
I know this. There are so may host though, and some don't want to do it. Is there a way to force it?
|
In response to TK6000
|
|
Save the value of world.version with all savefiles. When you load a savefile, compare the version from the savefile with a var like "lastpwipeversion". If the savefile version is older, delete the savefile and cancel its loading.
Then you can set lastpwipeversion (and upload) when you want to do a pwipe: <code>var/lastpwipeversion=10</code> All savefiles previous to game version 10 will then be deleted when they're loaded. Don't set the var back next version! Only change it when you want to do another pwipe. This should also work with old savefiles, that haven't saved world.version; when you try to read the version number from them, you'll get a value of "null", which is probably less than the value of "lastpwipeversion". Or you could just threaten to ban anyone who refuses to do a pwipe when you say so. =P |