The quarry after restarting does not dig correctly, but new quarries do

Good day, I encountered such a problem that after restarting the career server, they dig the wrong value of resources.
The backpumpjack.refill commands do not help, if you install a new quarry, the new quarry digs normally, but the old one continues to dig terribly.
I also use the GatherControl plugin, but it has x1 mining rates

Please help me solve the problem, because there is no remove function on the server so that players can remove the quarry and reinstall it

 

{
"Apply patch for mining rates for more precise pM config params": true,
"Patch for ladder flyhack": true,
"Patch for light signal when quarry is running": true,
"Maximum stack size for diesel engine (-1 to disable function)": 100,
"Number of slots for diesel storage (-1 to disable function)": 48,
"Number of slots for output storage (-1 to disable function)": 48,
"Time per barrel of diesel in second (-1 to disable function, default time 125 sec)": 120,
"Enable static quarry resource modifier": true,
"refill command name": "backpumpjack.refill",
"Info command name": "backpumpjack.info",
"Reset resource deposit command name": "backpumpjack.reset",
"Search radius for past resource deposit allocation (use 0.0 to disable)": 0.0,
"Items in report list": [
"stones",
"metal.ore",
"metal.fragments",
"hq.metal.ore",
"metal.refined",
"sulfur.ore",
"sulfur",
"lowgradefuel",
"crude.oil"
],
"Settings": {
"Use Discord hook": false,
"Use Discord timestamp": true,
"Discord hook url": "",
"Use Notify plugin": false,
"Debug": false,
"Log to file": false,
"Use Teams": true,
"Use Friends": true,
"Use Clans": true,
"Use clan table": true,
"Block damage another player's survey crater": false,
"Block deploy a quarry on another player's survey crater": false
},
"Chat Settings": {
"Chat Prefix": "<color=#00FFFF>[BackPumpJack]</color>: ",
"Chat SteamID Icon": 0
},
"Permission List": [
{
"Permission": "backpumpjack.use",
"Priority": 0,
"Oil Crater Chance": 20.0,
"Oil Crater Settings": {
"Minimum Mineral Amount": 1,
"Maximum Mineral Amount": 1,
"Allow Duplication Of Mineral Item": true,
"Mineral Items": [
{
"Mineral Item Short Name": "crude.oil",
"Chance": 50.0,
"Minimum pM": 28.8,
"Maximum pM": 28.8
},
{
"Mineral Item Short Name": "lowgradefuel",
"Chance": 50.0,
"Minimum pM": 81.6,
"Maximum pM": 81.6
}
]
},
"Normal Crater Settings": {
"Modify Chance (If not modified, use default mineral)": 100.0,
"Minimum Mineral Amount": 2,
"Maximum Mineral Amount": 4,
"Allow Duplication Of Mineral Item": false,
"Mineral Items": [
{
"Mineral Item Short Name": "stones",
"Chance": 60.0,
"Minimum pM": 1200.0,
"Maximum pM": 1200.0
},
{
"Mineral Item Short Name": "metal.ore",
"Chance": 50.0,
"Minimum pM": 900.0,
"Maximum pM": 900.0
},
{
"Mineral Item Short Name": "sulfur.ore",
"Chance": 50.0,
"Minimum pM": 600.0,
"Maximum pM": 600.0
},
{
"Mineral Item Short Name": "hq.metal.ore",
"Chance": 50.0,
"Minimum pM": 50.0,
"Maximum pM": 50.0
}
]
}
},
{
"Permission": "backpumpjack.vip",
"Priority": 2,
"Oil Crater Chance": 20.0,
"Oil Crater Settings": {
"Minimum Mineral Amount": 2,
"Maximum Mineral Amount": 2,
"Allow Duplication Of Mineral Item": false,
"Mineral Items": [
{
"Mineral Item Short Name": "crude.oil",
"Chance": 50.0,
"Minimum pM": 38.0,
"Maximum pM": 38.0
},
{
"Mineral Item Short Name": "lowgradefuel",
"Chance": 50.0,
"Minimum pM": 100.0,
"Maximum pM": 100.0
}
]
},
"Normal Crater Settings": {
"Modify Chance (If not modified, use default mineral)": 100.0,
"Minimum Mineral Amount": 4,
"Maximum Mineral Amount": 4,
"Allow Duplication Of Mineral Item": true,
"Mineral Items": [
{
"Mineral Item Short Name": "stones",
"Chance": 40.0,
"Minimum pM": 1600.0,
"Maximum pM": 1600.0
},
{
"Mineral Item Short Name": "metal.ore",
"Chance": 50.0,
"Minimum pM": 1200.0,
"Maximum pM": 1200.0
},
{
"Mineral Item Short Name": "sulfur.ore",
"Chance": 50.0,
"Minimum pM": 800.0,
"Maximum pM": 800.0
},
{
"Mineral Item Short Name": "hq.metal.ore",
"Chance": 50.0,
"Minimum pM": 75.0,
"Maximum pM": 75.0
}
]
}
}
],
"Static quarry settings": {
"Stone": {
"Mineral Items": [
{
"Mineral Item Short Name": "stones",
"Resource per minutes (pM)": 2500.0
},
{
"Mineral Item Short Name": "metal.ore",
"Resource per minutes (pM)": 500.0
}
]
},
"HQM": {
"Mineral Items": [
{
"Mineral Item Short Name": "hq.metal.ore",
"Resource per minutes (pM)": 25.0
}
]
},
"Sulfur": {
"Mineral Items": [
{
"Mineral Item Short Name": "sulfur.ore",
"Resource per minutes (pM)": 500.0
}
]
},
"Oil": {
"Mineral Items": [
{
"Mineral Item Short Name": "crude.oil",
"Resource per minutes (pM)": 30.0
},
{
"Mineral Item Short Name": "lowgradefuel",
"Resource per minutes (pM)": 85.0
}
]
}
},
"Permission Admin": "backpumpjack.admin",
"Version": {
"Major": 1,
"Minor": 4,
"Patch": 33
}
}

I also have a broken quarry that digs 14 hqm per minute, although I have never seen such values anywhere that it digs so little

Make sure you are using the latest version  (V1.4.34)
version 1.4.33 was having issue since August game update.

Try concole command "backpumpjack.reset"  to reset resources to all quarries

I tested with your config, and it works and no issue after multiple server restart
You can activate the "log to file" in config file,  to get more info 

thanks for the quick reply, i will try to apply the logs and see where the error occurs

Greetings, I'm joining the author with a few minor changes. Someone contacted me about a quarry that was mining strangely. I installed a new one next to it, and everything is fine with it. I tried refilling, resetting, removing the patch for PM, disabling rates for static, and tweaking the entire configuration, restarting server, unload plugin and restarting server, but there were no results.

If I install the quarry, delete the plugin from the plugins folder, run the quarry, for example, on 1 barrel, it stops, then I reboot the server and install the plugin back, then the quarry will not work as it did before unloading the plugin after installation.

It seems to me that at some point something changes inside the quarry, some information, after which the plugin is no longer able to take control of the quarry, no matter what you do. Also, during my tests, there were cases where the runtime on one barrel was -1, but the broken quarry seemed to work indefinitely on it. When I set 125 in the config, it finally stopped, i.e., the plugin has some effect on the quarry, but apparently not completely.

 

Probably the most appropriate thing to do in this situation would be to install some kind of debug version, which will first of all provide you with information about what's happening while the broken quarry is still on the server, because tomorrow there's a wipe.

This isn't the first time we've resolved some situations together, and when I can provide a clear sequence of actions for verification, I do so, but in this situation is looking impossible :(

"Back Pump Jack" (1.4.34) by Arainrr/Lorenzo (1.23s / 12 MB) - BackPumpJack.cs


Merged post

and yeah, this is my crocked quarry:

    {
      "position": {
        "x": -982.529663,
        "y": 25.83414,
        "z": -1341.16309
      },
      "isLiquid": false,
      "mineralItems": [
        {
          "shortname": "hq.metal.ore",
          "amount": 7748220,
          "workNeeded": 11.920248
        }
      ]
    },

if i "workNeeded": 11.920248 (~40 pM on backpumpjack.info) change to "workNeeded": 0.920248 (~535 pM on backpumpjack.info) ill gather with 1 barrel (125 sec) ~104 HQM Ore, but in new quarry with my default config (48.5 pM for HQM) i gather 100 HQM Ore, when backpumpjack.info i see 48.5 pM, i think that plugin cant apply something for this crocked quarry



Merged post

and crocked quarry with workNeeded": 11.920248 gather only 6 HQM Ore for 1 barrel, and in new quarry 48.5 pM for HQM (~100 HQM Ore for 1 barrel) = "workNeeded": 9.896907 in DataFile

 

its all so strange)

Possible reason this can happend
- quarry was spawn by admin or something other then survey charge and the ownerId is 0  (instead of steamId), 
- The player that placed the quarry does not have a permission
In both case, the plugin will not manage resources of these quarry

Try using concole command "backpumpjack.reset" 
and see what the resources are after that with command "backpumpjack.info" , stand close to the quarry you want the info.

Merged post

also, please send config so i can test in similar conditions

I don't have any privileges, all players have the same rights, the quarry was searched for and installed by the same player, I am in close contact with him, the OwnerID also corresponds to this player.

After the reset, the resources are changed to some standard ones, then I unload the plugin, go to the data file and insert my parameters from the fresh working quarry into the broken quarry, the broken quarry begins to dig the specified resources, but in a completely different quantity, in a smaller one, although the info shows exactly the same values ​​​​as in the fresh quarry.
I don't mind the configuration, but you'll just waste your time on unnecessary tests, just like you did with the author's configuration. Don't take this as a negative, please)

{
  "Apply patch for mining rates for more precise pM config params": true,
  "Patch for ladder flyhack": true,
  "Patch for light signal when quarry is running": true,
  "Maximum stack size for diesel engine (-1 to disable function)": -1,
  "Number of slots for diesel storage (-1 to disable function)": 6,
  "Number of slots for output storage (-1 to disable function)": 36,
  "Time per barrel of diesel in second (-1 to disable function, default time 125 sec)": -1,
  "Enable static quarry resource modifier": true,
  "refill command name": "backpumpjack.refill",
  "Info command name": "backpumpjack.info",
  "Reset resource deposit command name": "backpumpjack.reset",
  "Search radius for past resource deposit allocation (use 0.0 to disable)": 25.0,
  "Items in report list": [
    "stones",
    "metal.ore",
    "metal.fragments",
    "hq.metal.ore",
    "metal.refined",
    "sulfur.ore",
    "sulfur",
    "lowgradefuel",
    "crude.oil"
  ],
  "Settings": {
    "Use Discord hook": false,
    "Use Discord timestamp": true,
    "Discord hook url": "",
    "Use Notify plugin": false,
    "Debug": false,
    "Log to file": true,
    "Use Teams": true,
    "Use Friends": false,
    "Use Clans": false,
    "Use clan table": false,
    "Block damage another player's survey crater": true,
    "Block deploy a quarry on another player's survey crater": true
  },
  "Chat Settings": {
    "Chat Prefix": "<color=#99FFFF>[BackPumpJack]</color>\n",
    "Chat SteamID Icon": 0
  },
  "Permission List": [
    {
      "Permission": "backpumpjack.teststonemetal",
      "Priority": 0,
      "Oil Crater Chance": 0.0,
      "Oil Crater Settings": {
        "Minimum Mineral Amount": 1,
        "Maximum Mineral Amount": 2,
        "Allow Duplication Of Mineral Item": false,
        "Mineral Items": [
          {
            "Mineral Item Short Name": "crude.oil",
            "Chance": 100.0,
            "Minimum pM": 1.0,
            "Maximum pM": 30.0
          },
          {
            "Mineral Item Short Name": "lowgradefuel",
            "Chance": 100.0,
            "Minimum pM": 1.0,
            "Maximum pM": 85.0
          }
        ]
      },
      "Normal Crater Settings": {
        "Modify Chance (If not modified, use default mineral)": 100.0,
        "Minimum Mineral Amount": 2,
        "Maximum Mineral Amount": 2,
        "Allow Duplication Of Mineral Item": false,
        "Mineral Items": [
          {
            "Mineral Item Short Name": "stones",
            "Chance": 100.0,
            "Minimum pM": 1.0,
            "Maximum pM": 3750.0
          },
          {
            "Mineral Item Short Name": "metal.ore",
            "Chance": 100.0,
            "Minimum pM": 1.0,
            "Maximum pM": 750.0
          }
        ]
      }
    },
    {
      "Permission": "backpumpjack.testothers",
      "Priority": 0,
      "Oil Crater Chance": 0.0,
      "Oil Crater Settings": {
        "Minimum Mineral Amount": 1,
        "Maximum Mineral Amount": 2,
        "Allow Duplication Of Mineral Item": false,
        "Mineral Items": [
          {
            "Mineral Item Short Name": "crude.oil",
            "Chance": 100.0,
            "Minimum pM": 1.0,
            "Maximum pM": 30.0
          },
          {
            "Mineral Item Short Name": "lowgradefuel",
            "Chance": 100.0,
            "Minimum pM": 1.0,
            "Maximum pM": 85.0
          }
        ]
      },
      "Normal Crater Settings": {
        "Modify Chance (If not modified, use default mineral)": 100.0,
        "Minimum Mineral Amount": 1,
        "Maximum Mineral Amount": 1,
        "Allow Duplication Of Mineral Item": false,
        "Mineral Items": [
          {
            "Mineral Item Short Name": "sulfur.ore",
            "Chance": 100.0,
            "Minimum pM": 1.0,
            "Maximum pM": 750.0
          },
          {
            "Mineral Item Short Name": "hq.metal.ore",
            "Chance": 100.0,
            "Minimum pM": 1.0,
            "Maximum pM": 39.0
          }
        ]
      }
    },
    {
      "Permission": "backpumpjack.use",
      "Priority": 0,
      "Oil Crater Chance": 0.0,
      "Oil Crater Settings": {
        "Minimum Mineral Amount": 1,
        "Maximum Mineral Amount": 2,
        "Allow Duplication Of Mineral Item": false,
        "Mineral Items": [
          {
            "Mineral Item Short Name": "crude.oil",
            "Chance": 100.0,
            "Minimum pM": 1.0,
            "Maximum pM": 30.0
          },
          {
            "Mineral Item Short Name": "lowgradefuel",
            "Chance": 100.0,
            "Minimum pM": 1.0,
            "Maximum pM": 85.0
          }
        ]
      },
      "Normal Crater Settings": {
        "Modify Chance (If not modified, use default mineral)": 100.0,
        "Minimum Mineral Amount": 1,
        "Maximum Mineral Amount": 2,
        "Allow Duplication Of Mineral Item": false,
        "Mineral Items": [
          {
            "Mineral Item Short Name": "stones",
            "Chance": 100.0,
            "Minimum pM": 1.0,
            "Maximum pM": 4800.5
          },
          {
            "Mineral Item Short Name": "metal.ore",
            "Chance": 100.0,
            "Minimum pM": 1.0,
            "Maximum pM": 960.0
          },
          {
            "Mineral Item Short Name": "sulfur.ore",
            "Chance": 100.0,
            "Minimum pM": 1.0,
            "Maximum pM": 960.0
          },
          {
            "Mineral Item Short Name": "hq.metal.ore",
            "Chance": 100.0,
            "Minimum pM": 1.0,
            "Maximum pM": 48.5
          }
        ]
      }
    },
    {
      "Permission": "backpumpjack.oremax",
      "Priority": 0,
      "Oil Crater Chance": 0.0,
      "Oil Crater Settings": {
        "Minimum Mineral Amount": 0,
        "Maximum Mineral Amount": 0,
        "Allow Duplication Of Mineral Item": false,
        "Mineral Items": []
      },
      "Normal Crater Settings": {
        "Modify Chance (If not modified, use default mineral)": 100.0,
        "Minimum Mineral Amount": 4,
        "Maximum Mineral Amount": 4,
        "Allow Duplication Of Mineral Item": false,
        "Mineral Items": [
          {
            "Mineral Item Short Name": "stones",
            "Chance": 100.0,
            "Minimum pM": 4800.5,
            "Maximum pM": 4800.5
          },
          {
            "Mineral Item Short Name": "metal.ore",
            "Chance": 100.0,
            "Minimum pM": 960.0,
            "Maximum pM": 960.0
          },
          {
            "Mineral Item Short Name": "sulfur.ore",
            "Chance": 100.0,
            "Minimum pM": 960.0,
            "Maximum pM": 960.0
          },
          {
            "Mineral Item Short Name": "hq.metal.ore",
            "Chance": 100.0,
            "Minimum pM": 48.5,
            "Maximum pM": 48.5
          }
        ]
      }
    },
    {
      "Permission": "backpumpjack.fuelmax",
      "Priority": 0,
      "Oil Crater Chance": 100.0,
      "Oil Crater Settings": {
        "Minimum Mineral Amount": 2,
        "Maximum Mineral Amount": 2,
        "Allow Duplication Of Mineral Item": false,
        "Mineral Items": [
          {
            "Mineral Item Short Name": "crude.oil",
            "Chance": 100.0,
            "Minimum pM": 30.0,
            "Maximum pM": 30.0
          },
          {
            "Mineral Item Short Name": "lowgradefuel",
            "Chance": 100.0,
            "Minimum pM": 85.0,
            "Maximum pM": 85.0
          }
        ]
      },
      "Normal Crater Settings": {
        "Modify Chance (If not modified, use default mineral)": 0.0,
        "Minimum Mineral Amount": 0,
        "Maximum Mineral Amount": 0,
        "Allow Duplication Of Mineral Item": false,
        "Mineral Items": []
      }
    }
  ],
  "Static quarry settings": {
    "Stone": {
      "Mineral Items": [
        {
          "Mineral Item Short Name": "stones",
          "Resource per minutes (pM)": 3600.4
        },
        {
          "Mineral Item Short Name": "metal.ore",
          "Resource per minutes (pM)": 720.0
        }
      ]
    },
    "HQM": {
      "Mineral Items": [
        {
          "Mineral Item Short Name": "hq.metal.ore",
          "Resource per minutes (pM)": 36.4
        }
      ]
    },
    "Sulfur": {
      "Mineral Items": [
        {
          "Mineral Item Short Name": "sulfur.ore",
          "Resource per minutes (pM)": 720.0
        }
      ]
    },
    "Oil": {
      "Mineral Items": [
        {
          "Mineral Item Short Name": "crude.oil",
          "Resource per minutes (pM)": 43.4
        },
        {
          "Mineral Item Short Name": "lowgradefuel",
          "Resource per minutes (pM)": 122.6
        }
      ]
    }
  },
  "Permission Admin": "backpumpjack.admin",
  "Version": {
    "Major": 1,
    "Minor": 4,
    "Patch": 34
  }
}

 

Data, 1st quarry - broken, 3rd quarry - my new quarry with correct gather

{
  "quarryDataList": [
    {
      "position": {
        "x": -982.529663,
        "y": 25.83414,
        "z": -1341.16309
      },
      "isLiquid": false,
      "mineralItems": [
        {
          "shortname": "hq.metal.ore",
          "amount": 8478491,
          "workNeeded": 9.896907
        },
        {
          "shortname": "stones",
          "amount": 6563691,
          "workNeeded": 0.0999895856
        },
        {
          "shortname": "sulfur.ore",
          "amount": 7097207,
          "workNeeded": 0.5
        },
        {
          "shortname": "metal.ore",
          "amount": 8918774,
          "workNeeded": 0.5
        }
      ]
    },
    {
      "position": {
        "x": -1620.39478,
        "y": 31.4474831,
        "z": -1668.10742
      },
      "isLiquid": false,
      "mineralItems": [
        {
          "shortname": "hq.metal.ore",
          "amount": 9902202,
          "workNeeded": 19.9733181
        }
      ]
    },
    {
      "position": {
        "x": -980.989746,
        "y": 26.5005226,
        "z": -1269.502
      },
      "isLiquid": false,
      "mineralItems": [
        {
          "shortname": "hq.metal.ore",
          "amount": 8478491,
          "workNeeded": 9.896907
        },
        {
          "shortname": "stones",
          "amount": 6563691,
          "workNeeded": 0.0999895856
        },
        {
          "shortname": "sulfur.ore",
          "amount": 7097207,
          "workNeeded": 0.5
        },
        {
          "shortname": "metal.ore",
          "amount": 8918774,
          "workNeeded": 0.5
        }
      ]
    }
  ]
}


Merged post

Try it:

1) find survey

2) deploy mining quarry

3) start it for 1 barrel

4) unload plugin

5) server console - quit (restart)

6) start this quarry for 1 barrel

7) You'll end up with broken resource extraction

And no matter what I tried, I couldn't restore it. Let me clarify right away: this situation was invented during my tests to get at least some information. This doesn't happen in normal operation, but I hope you can see some connection between these situations, as you obviously have a better understanding of your plugin.

Try the new update, and let me know.  also tested on staging.

Merged post

you may need to do a "backpumpjack.reset"  command to force the recalculation of resources

Thank you. Unfortunately, I can't tell if this would have repaired my broken quarry, since I've already revived it (I described how in Discord). However, I don't understand the purpose of the reset command. Could you explain its original purpose? Is it meant to recalculate the quarry's resources with random ones from the config?

In the screenshot, the correct multipliers the player used are shown first, but after the reset, the resources are completely different. On the plus side, the quarry did start yielding them with the correct multiplier, so thank you for that.

I hope the issue with quarries breaking and the bug related to work time (due to time per barrel = -1) have also been resolved.

 



Merged post

and maybe you could improve the reset command? It would be great if you could apply it to a single specific quarry or to all of them at once.

Also, it would be awesome if the game remembered the original resources that were in the quarry when it was placed. Then, the reset command or a new command could restore the quarry to its original state with its initial resources.

This seems more correct than just randomizing the resources, because sometimes players are very careful about choosing which resources to place their quarry on.