Jump to content

After Server Restart the Crafting Progress is lost

Closed 3.0.0 3.0.1

ZargoZ
ZargoZ

Posted

Hello,

my Server makes every Day a Restart. After the Server restart the Skills of all players are set all to 0. 

 

Mr01sam

Posted

Does the data folder get wiped after your restarts? Also can you post your config?

ZargoZ

Posted

{
  "Version": {
    "Major": 3,
    "Minor": 0,
    "Patch": 0
  },
  "Options": {
    "PreventUselessPerks": false,
    "SaveOnServerSave": false
  },
  "Perks": {
    "lethal": {
      "ImageUrl": "https://i.ibb.co/pKdCMGw/lethal.png",
      "Color": "0.49 0.161 0.161 1",
      "Modifier": 10.0,
      "MaxRank": 5,
      "Weight": 5
    },
    "durable": {
      "ImageUrl": "https://i.ibb.co/7RsnSBj/durable.png",
      "Color": "0.659 0.42 0.161 1",
      "Modifier": 20.0,
      "MaxRank": 5,
      "Weight": 5
    },
    "efficient": {
      "ImageUrl": "https://i.ibb.co/ZHgwYg0/efficient.png",
      "Color": "0.369 0.62 0.361 1",
      "Modifier": 15.0,
      "MaxRank": 5,
      "Weight": 5
    },
    "plated": {
      "ImageUrl": "https://i.ibb.co/fNXv4Jx/plated.png",
      "Color": "0.541 0.678 0.702 1",
      "Modifier": 10.0,
      "MaxRank": 5,
      "Weight": 5
    }
  },
  "Categories": {
    "Clothing": {
      "Enabled": true,
      "ImageUrl": "https://i.ibb.co/9YhRZCH/tailoring.png",
      "TrackedByDefault": false
    },
    "Melee": {
      "Enabled": true,
      "ImageUrl": "https://i.ibb.co/7Gyb4X4/weaponsmithing.png",
      "TrackedByDefault": false
    },
    "Bows": {
      "Enabled": true,
      "ImageUrl": "https://i.ibb.co/x50T2yJ/bowmaking.png",
      "TrackedByDefault": false
    },
    "Firearms": {
      "Enabled": true,
      "ImageUrl": "https://i.ibb.co/rxpH6B3/gunsmithing.png",
      "TrackedByDefault": false
    },
    "Tools": {
      "Enabled": true,
      "ImageUrl": "https://i.ibb.co/t3gVHKv/toolcrafting.png",
      "TrackedByDefault": false
    }
  },
  "ItemLeveling": {
    "Table": "ItemLevels",
    "XpGainedForItemWorkbenchTier": [
      1,
      1,
      1,
      1,
      1
    ]
  },
  "CategoryLeveling": {
    "DuplicationChancePerLevel": 0.001,
    "CraftingSpeedIncreasePerLevel": 0.01,
    "Table": "CategoryLevels",
    "XpGainedForItemWorkbenchTier": [
      1,
      2,
      3,
      5,
      8
    ]
  },
  "QualityTiers": {
    "Table": "QualityChances",
    "SingleStarImageUrl": "https://i.ibb.co/xLF7pk4/starb.png",
    "ImageUrls": [
      "https://i.ibb.co/HdvFyvS/star1c.png",
      "https://i.ibb.co/Xyk7XdW/star2c.png",
      "https://i.ibb.co/PhpMr9t/star3c.png",
      "https://i.ibb.co/yNgYZW4/star4c.png",
      "https://i.ibb.co/N1RpDPV/star5c.png"
    ],
    "RarityColors": [
      "1 1 1 1",
      "0.4 0.929 0.361 1",
      "0.2 0.459 0.91 1",
      "0.69 0.38 0.839 1",
      "1 0.839 0 1",
      "1 0.412 0 1"
    ]
  },
  "SkillsMenu": {
    "OpenMenuCommand": "skills",
    "ShowStatistics": true
  },
  "Tracking": {
    "MaxTrackedItems": 2,
    "X": 310,
    "Y": 14
  },
  "InventoryOverlay": {
    "ShowClothingModifiers": true,
    "QualityStarsSizeScale": 1.0,
    "InspectionBannerImageUrl": "https://i.ibb.co/N1THK27/banner-lines.png"
  },
  "HudButtons": {
    "QualityButton": {
      "Show": true,
      "IconUrl": "assets/icons/info.png",
      "Color": "1 1 1 0.5",
      "ShowText": false,
      "TextSize": 6,
      "Size": 30,
      "X": -225,
      "Y": 13
    },
    "SkillsButton": {
      "Show": true,
      "IconUrl": "assets/icons/xp.png",
      "Color": "1 1 1 0.5",
      "ShowText": false,
      "TextSize": 6,
      "Size": 36,
      "X": 215,
      "Y": 13
    }
  },
  "Notifications": {
    "Enabled": true,
    "PlaySfx": true,
    "X": 24,
    "Y": 100
  }
}

PlayerCraftingSkills.json are all Players there but all eintrys are 0 

Mr01sam

Posted

When the plugin loads, it should load that skills file into memory (if it exists), and then on save (which happens on unload) it will save the skills that are in memory back to that data file. At some point, it either must not have been able to save that file properly, or it was not able to load the file properly. In the config, you can try setting "SaveOnServerSave" to true, this will save the data file every time your server does its routine save. However, I only recommend doing that if your server is configured to save infrequently, like every hour or so. If its saves every minute you will get lag if that is set to true.

I recommend trying this out. Please do keep me updated if you come across this issue again OR if you see any error that occurs when the plugin is loaded/unloaded.

You can also use the "/qc playerdata backup" command to create a copy of current player data. The plugin only keeps one backup at a time though, so after you create it I recommend renaming the backup file or copying it to a different location so that you can restore it later.

I hope this gives you some options to work with.

Mr01sam

Posted

I think I have identified what the issue might have been. I have implemented a potential fix in v3.0.1, though I was unable to reproduce this issue, so I can't say for certain, but the fix that I made makes sense.

Mr01sam

Posted

Changed Status from Pending to Closed

Changed Fixed In to 3.0.1

1.4m

Downloads

Total number of downloads.

6.9k

Customers

Total customers served.

102.3k

Files Sold

Total number of files sold.

2m

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.