Jump to content

Discohook link and Carbon support

Closed 1.0.6

oge
oge

Posted (edited)

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/"
        }
      ]
    }
  }
}

 

image.png

image.png

Edited by s0meh00ks
Tangerine

Posted

Preset link is an example and broke due to site not saving presets. Just use it to create own one.
As we discussed in discord plugin is not able to delete files because your system denies access to them.

Everything else works fine.

Tangerine

Posted

Changed Status from Pending to Closed

dfgas

Posted

can you please explain more? are we not allowed to delete files in the carbon directory? how do i trigger the weekly just as a test and make sure it deletes a config file i want gone?

 

Tangerine

Posted

3 hours ago, dfgas said:

can you please explain more? are we not allowed to delete files in the carbon directory? how do i trigger the weekly just as a test and make sure it deletes a config file i want gone?

 

This is not about carbon, but your OS and permissions. Usually in pterodactyl like systems or closed hostings, plugins doesn't have full access to files. You have to change that if you have such ability ofc.

1.7m

Downloads

Total number of downloads.

8.1k

Customers

Total customers served.

122k

Files Sold

Total number of files sold.

2.5m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.