Jump to content

Boxes not removed from map

Fixed 1.1.5 1.1.6

Skippyroo
Skippyroo

Posted

Hi,

I am having similar problems as in the 'Map Icon' thread. I now have 9 boxes showing on my map but all have been emptied and can't be removed. Even if I destroy the box the icon remains.

After spending some time with this I have found out that all works well until I reboot my server. Once rebooted, any Lucky Boxes that were in the world before reboot become locked and cannot be removed. Can this be fixed or is there a command I can use to clear all redundant boxes before or after a reboot?

 

Cheers

 

Skippyroo

mattffhh

Posted

Hey,

I will look into it, and get back to you.
Just to be sure, are you using the newest version of Lucky Crates?

KInd regards,
mattffhh

mattffhh

Posted

Changed Status from Pending to Work in Progress

Changed Fixed In to Next Version

mattffhh

Posted

Can you also provide your Lucky Crates config files and oxide or carbon version?

Thanks.

 

Skippyroo

Posted

Hi,

Yes using the latest Lucky Crates version 1.1.5, the Carbon version is 2.0.184.0. Config as below, although still the same with the default config.

{
  "Log player looting to file": true,
  "Destroy Lucky Crate on looting": true,
  "Max number of slots in a container": 6,
  "Always fill all container slots": true,
  "Prevent duplicate items": true,
  "Container type to use": "box.wooden.large",
  "Large box skin id": 3346528269,
  "Small box skin id": 3346533967,
  "Debug mode": false,
  "Broadcast Lucky Crate spawn to all players": true,
  "Broadcast message": "<color=#FF9900>[LuckyCrate]</color> A Lucky Crate has spawned at {x}, {y}, {z} in grid {grid}, {distance}m away to the {direction}!",
  "Total maximum number of Lucky Crates that can exist": 50,
  "Number of Lucky Crates to spawn each interval": 1,
  "Maximum number of Lucky Crates on the map at any given time": 20,
  "Duration of the Lucky Crate in seconds": 500.0,
  "Lucky Crate spawn frequency in seconds": 120,
  "Lucky Crate spawn attempts": 10,
  "Maximum allowed slope angle for crate spawning": 15.0,
  "Enable map marker": true,
  "Show Lucky Crates items on the map marker": true,
  "Map marker duration in seconds": 300.0,
  "Map marker name": "Lucky Crate",
  "Check Lucky Crates to destroy interval in seconds": 60.0
}

Cheers

Skippyroo

LuckyCrates.json

mattffhh

Posted (edited)

Hey!

This should all be sorted now — when the server restarts or stops normally, any Lucky Crates and map markers that were left behind will automatically be cleaned up.

If you still see any map markers after the update, just unload the plugin once.
Then remove any floating vending machines connected to the Lucky Crates (they're located around Y = -300).
This is a one-time thing — after that, it’s all handled automatically by the plugin.

I also added a backup cleanup when the server starts, just in case.
You can enable debug mode if you want to see cleanup info in the console (note: this will also show other Lucky Crate debug messages).
Before, cleanup was only happening during the unload process, which might not have run in certain scenarios.
Now, everything will tidy itself up during any reboot so the map stays clean no matter what!

Appreciate you taking the time to let me know about it and please let me know if this worked out for you 🙂 

Kind regards,
mattffhh

Edited by mattffhh
Skippyroo

Posted

Hi,

Working a treat now 😎. Rebooted server and all 9 stubborn crates are now gone. Crates are spawning and working as they should so it looks like you have fixed it.

Thanks for sorting it out so quickly, I'll post again in a few days time and let you know if all is well.

 

All the best!

 

Skippyroo

  • Like 1
Skippyroo

Posted

Hi Again,

 

Lucky Crates has been working fine since your fix, no issues whatsoever. Except for today with the May Rust update Lucky Crates will not load at all.

Regards

Skippyroo

mattffhh

Posted

Hey,

Great that it's working, the new update broke the plugin as they changed something with VendingMachines. I am working on a fix and will publish a new update soon.

Kind regards,

mattffhh

mattffhh

Posted

Changed Status from Work in Progress to Fixed

1.7m

Downloads

Total number of downloads.

8k

Customers

Total customers served.

121.2k

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.