Hello, everytime my server restarts, or I reload the plugin new items stack on top of the originals. If I look at the map, instead of having one vending machine, it shows 3 because there are now 3 occupying the same space.
If I previously spawned a car lift. I can "makill" the top one, after that I have to admin kill the layers underneath. The plugin gives me the following message when I try to "makill" the underlying objects: "That entity is not managed by Monument Addons."
If I unload the plugin, none of the existing spawned items disappear.
Thanks in advance.
Items added with MA are stacking up.Fixed
How long has this been happening?
There can be two causes. One is that the plugin is experiencing an error while destroying addons during the unload routine, basically interrupting the process. However, in the default config, the plugin does not save entities across restarts, meaning the entities will be gone after server restarts, which you said is not the case, so this is probably not the cause in your case.
Most likely you have enabled the feature to save entities across restarts to preserve their state. In this mode, the plugin intentionally does not remove addons when unloaded, but instead remembers the entity id of all spawned addons so that it can find them on reload. If it does not find them, it spawns them again. What is probably happening is that an error is occuring while saving the ids, so the plugin thinks the entities always need to be respawned. If this is the case, there should be errors in your logs that will help me pinpoint the cause of the failure.
You can also disable saving of entities, and this issue should no longer occur. However, any info you can provide me to troubleshoot will help me fix this edge case.
I only noticed it a couple of hours ago, but probably started when I installed the newest version of MA. I don't know if any of the following will be useful to you. I only saw one error that specifically calls out MA. If there is other language you think would be helpful for me to search for, please let me know.
Error while compiling MonumentAddons: 'BaseMountable' does not contain a definition for 'FixedUpdateMountables' | Line: 6233, Pos: 52
MonumentAddons was compiled successfully in 1643ms
Fallback handler could not load library /home/container/RustDedicated_Data/MonoBleedingEdge/x86_64/data-0x5631d8bb8740.so
[Monument Addons] Configuration appears to be outdated; updating and saving
[Monument Addons] Configuration changes saved to MonumentAddons.json
Loaded plugin Monument Addons v0.18.0 by WhiteThunder
[Monument Addons] Loaded profile Default (26 entities).
[Monument Addons] Loaded profile MonumentLifts by WhiteThunder/Mevent (6 entities).
[Monument Addons] Profile MonumentsRecycler has been automatically migrated.
[Monument Addons] Loaded profile MonumentsRecycler by WhiteThunder/Dana (8 entities).
[Monument Addons] Loaded profile OutpostAirwolf by WhiteThunder (5 entities).
noticing this after updating to v0.18.0 too. My server reset twice and i did a manuall reload that's when i noticed I have 3 of everything. It's pasting them all again like it doesn't remember the state. no errors in log. switching to false will remove the entities and repaste correctly, but setting false after the fact still leaves entities around.
I went back to bccc451 - far back enough I knew it was working and not having problems anymore
Can't ent kill a bandit conversation guy, any easy way to wipe out everything monumentaddons did?
firingLaserzCan't ent kill a bandit conversation guy, any easy way to wipe out everything monumentaddons did?
Unfortunately, there's no way to do that, as the only record is the state file, and the plugin is not properly keeping track of the state.
I pushed a change to GitHub which should fix this, and will cleanup duplicates that spawned previously. Please try it and let me know if it works.
Thanks, that was quick! I should have waited a bit before going around ent killing them all. I didn't see dropzones in the list but it is remembering state now.
[Warning] [Monument Addons] Found and killed likely duplicate entity [airwolfspawner] at (839.30, 25.79, 424.94)
[Warning] [Monument Addons] Found and killed likely duplicate entity [airwolfspawner] at (839.30, 25.79, 424.94)
[Warning] [Monument Addons] Found and killed likely duplicate entity [airwolfspawner] at (839.30, 25.79, 424.94)
[Warning] [Monument Addons] Found and killed likely duplicate entity [airwolfspawner] at (839.30, 25.79, 424.94)
[Warning] [Monument Addons] Found and killed likely duplicate entity [bandit_conversationalist] at (839.62, 25.16, 411.88)
[Warning] [Monument Addons] Found and killed likely duplicate entity [bandit_conversationalist] at (839.62, 25.16, 411.88)
[Warning] [Monument Addons] Found and killed likely duplicate entity [bandit_conversationalist] at (839.62, 25.16, 411.88)
[Warning] [Monument Addons] Found and killed likely duplicate entity [bandit_conversationalist] at (839.62, 25.16, 411.88)
Thanks for confirming! I'll go ahead and release this update on uMod.
Dropzones aren't entities so they weren't subject to this issue.
Thanks very much for getting on this issue so quickly.