As title says, the link: https://share.discohook.app/go/j1elnjf1 is broken
----------
also i don't find it working for carbon data dirs? when i run autowipe.run monthly for example, it's not cleaning the data files/folders that i specified from carbon
Edit: I think i've found the issue; I think it's in the persistence of the RestartWipePreset var in the carbon/data/AAutoWipe/Data.json directory, when i run the command, it gets set to "monthly" in this case, but when the server restarts and the Loaded() func is executed, it's empty, which causes the TryRunWipe function to return as the wipePreset string is null or whitespace
---------
Example config:
{
"Wipe restart seconds": 10,
"Enabled wipe presets": [
"weekly",
"monthly"
],
"Backup files before wiping them?": true,
"Discord webhook url": "why are you even looking here, huh?",
"Wipe presets": {
"weekly": {
"Identity/Map files that should be wiped.": [
".sav",
"player.deaths.",
"player.identities.",
"player.states.",
"player.tokens.",
"sv.files."
],
"Oxide files that should be wiped.": [
"data/WIPE",
"data/Clans/Players",
"data/Clans/ClansList.json",
"data/Clans/Invites.json",
"data/Kits/kits_data.json",
"data/PlaytimeTracker/user_data.json",
"config/wipe.json",
"logs"
],
"ConVar commands (executed on server start)": [
"server.level \"Procedural Map \"",
"server.seed \"55555\"",
"server.worldsize \"4000\""
],
"Wipe commands (executed on server full load)": [
"test command here",
"and another one"
],
"Is wipe preset persistent, if true it won't be auto removed after executed.": true,
"Wipe schedule": {
"Schedule frequency (Daily, Weekly, Monthly)": "Weekly",
"Time of day in local time or UTC": "11:31:00",
"Day of week for weekly/monthly frequency (Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday)": "Friday",
"Number of Matching Days? Sets the number of days per month to match the given criterion (default is 1).": 1,
"Use UTC time? (If false, local time will be used)": false,
"Time since map file creation time, for FileTime frequency.": "00:00:00"
},
"Discord wipe announce message files (data/AAutoWipe/filename.json) (Use: 'https://share.discohook.app/go/j1elnjf1' to get json)": [
"weeklywipe"
],
"File replacements (SUPPORTS ONLY ZIP)": [
{
"Zip source file (Located in data/AAutoWipe/filename.zip)": "test",
"Destination (from root folder)": "oxide/"
}
]
},
"biweekly": {
"Identity/Map files that should be wiped.": [
".sav",
"player.deaths.",
"player.identities.",
"player.states.",
"player.tokens.",
"sv.files."
],
"Oxide files that should be wiped.": [
"data/WIPE",
"config/wipe.json",
"logs"
],
"ConVar commands (executed on server start)": [
"server.level \"Procedural Map \"",
"server.seed \"55555\"",
"server.worldsize \"4000\""
],
"Wipe commands (executed on server full load)": [
"test command here",
"and another one"
],
"Is wipe preset persistent, if true it won't be auto removed after executed.": true,
"Wipe schedule": {
"Schedule frequency (Daily, Weekly, Monthly)": "FileTime",
"Time of day in local time or UTC": "11:31:00",
"Day of week for weekly/monthly frequency (Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday)": "Friday",
"Number of Matching Days? Sets the number of days per month to match the given criterion (default is 1).": 1,
"Use UTC time? (If false, local time will be used)": false,
"Time since map file creation time, for FileTime frequency.": "14.00:00:00"
},
"Discord wipe announce message files (data/AAutoWipe/filename.json) (Use: 'https://share.discohook.app/go/j1elnjf1' to get json)": [
"weeklywipe"
],
"File replacements (SUPPORTS ONLY ZIP)": [
{
"Zip source file (Located in data/AAutoWipe/filename.zip)": "test",
"Destination (from root folder)": "oxide/"
}
]
},
"monthly": {
"Identity/Map files that should be wiped.": [
".sav",
"player.blueprints",
"player.deaths",
"player.identities",
"player.states",
"player.tokens",
"sv.files"
],
"Oxide files that should be wiped.": [
"data/Clans/Players",
"data/Clans/ClansList.json",
"data/Clans/Invites.json",
"data/Kits/kits_data.json",
"data/PlaytimeTracker/user_data.json",
"data/wipe",
"config/wipe.json",
"logs"
],
"ConVar commands (executed on server start)": [
"server.level \"Procedural Map\"",
"server.seed \"55555\"",
"server.worldsize \"4000\""
],
"Wipe commands (executed on server full load)": [
"test command here",
"and another one"
],
"Is wipe preset persistent, if true it won't be auto removed after executed.": true,
"Wipe schedule": {
"Schedule frequency (Daily, Weekly, Monthly)": "Monthly",
"Time of day in local time or UTC": "14:00:00",
"Day of week for weekly/monthly frequency (Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday)": "Tuesday",
"Number of Matching Days? Sets the number of days per month to match the given criterion (default is 1).": 1,
"Use UTC time? (If false, local time will be used)": true,
"Time since map file creation time, for FileTime frequency.": "00:00:00"
},
"Discord wipe announce message files (data/AAutoWipe/filename.json) (Use: 'https://share.discohook.app/go/j1elnjf1' to get json)": [
"monthlywipe"
],
"File replacements (SUPPORTS ONLY ZIP)": [
{
"Zip source file (Located in data/AAutoWipe/filename.zip)": "test",
"Destination (from root folder)": "oxide/"
}
]
}
}
}