Quarry Levels

Quarry Levels 1.4.91

IMPORTANT! Do NOT UPDATE before the October update. Otherwise, it will not work.
  • Icons now load directly from the game, optimizing the display. Therefore, this plugin no longer uses Image Library.
  • Patched with Facepunch's internal changes.
  • Fixed a bug: Occasionally, on map quarries, if the option to extract all was not enabled, fuel would still be extracted from the map's quarries. This is now corrected.
The quarries should now extract the resources correctly. Lowgrade or other types of resources should no longer be added if it is not specified. There was a strange bug that sometimes occurred when the server was restarted.

Please report any problem, thank you.

PS: The quarries cannot be removed with /remove because Facepunch made them static. I'm thinking about implementing a button to dismantle the quarry and give the player a quarry item with a skin to store the quarry level. It will be implemented in the future.
Version 1.4.8 (We recommend saving the config before updating as new values are added)
- A new parameter has been added in the Config "Add Crude Oil as an additional resource in Mining Quarry": false (In case you do not want to use oil quarrys. Setting this to true disables the placement of Pump Jack / Quarry Oil)
- Added a configuration parameter to limit the number of Quarrys per player.
- Added a configuration parameter to limit the number of Oil Quarrys (Pumpjack) per player.
- A current version parameter has been added in the configuration for better management of new parameters in future updates.
- Several small bugs have been fixed.
  • Like
Reactions: Mankysieve
- Oil pumps are no longer replaced by normal quarries.
- Fixed adding custom fuel (broken in last update).
- Fixed operation after server restart (broken in last update).
This update should correct the error messages that appeared in the console when the server started.

Example: Failed to run a 2.00 timer in 'QuarryLevels v1.4.5' (NullReferenceException: )

I also made some minor adjustments, let me know if everything works correctly after the server reboot. Since now the configuration is applied to the quarrys after the server starts and not during loading.
I have managed to make a temporary patch to get the Quarrys back to normal operation. As soon as Facepunch fixes it natively, I will release another update to eliminate this patch.

Important:
When updating the plugin existing quarrys will not be fixed automatically. However, I have added a command with administrator permission to fix the ones that are placed on the map. To do this, use the /qlfix command (Using it once is enough)
- Fix for the new September update.
- The quarrys must now remember their owner.
- Fixed bug that occurred if you had the upgrade option disabled for the static Quarrys on the map itself. The current level screen was not displayed in the resource depot.
- Fixed bug that set the Quarry's default health at server restart instead of keeping the life according to its level of improvement.



If you have been experiencing an error since a couple of updates, check that you have the following parameters in the config:
"Type of Fuel Required": "lowgradefuel", OR "Type of Fuel Required": "diesel_barrel",
AND
"Fuel Consumption (Higher number = more duration per unit of fuel)": 20.0,
The quarry upgrade should now work correctly.
  • Like
Reactions: NedFlanders
IMPORTANT: DO NOT UPDATE UNTIL THE RUST MONTHLY UPDATE.