Can't edit some vending machinesFixed

Hi. I have a problem, I can't get the Editor up when I'am trying to edit the vending machines. I can do it on one.

Are you saying you don't see the "Edit" button? If so, for which vending machines? Please tell me as much as you can about those vending machines.

  • Custom map?
  • Custom monument?
  • Was the vending machine part of the map, or spawned by a plugin?
  • Was it working at some point in the past?

Yes, it's custom map and monument. The vending machine was part of the map and yes they worked when we used none custom map

Try using the Monument Finder commands to verify that it detects the Monument and shows the vending machine as within the monument bounds that Monument Finder has. Most likely, the vending machine is outside the bounds, so you'll have to configure the bounds in Monument Finder to expand them.

Okay, thanks for the help

Just to add some info to this. I've also had a similar issue. 
Monument Addon loads but profiles aren't aligned to the monument also causing some NPC vendors not to get the edit tag.
Reloading Finder and then Addons after fixes this. Since wipe, it's happened twice on a restart. Almost like it's happening out of order. 

DuckTales

Just to add some info to this. I've also had a similar issue. 
Monument Addon loads but profiles aren't aligned to the monument also causing some NPC vendors not to get the edit tag.
Reloading Finder and then Addons after fixes this. Since wipe, it's happened twice on a restart. Almost like it's happening out of order. 

The load order shouldn't matter because Custom Vending Setup detects when Monument Finder reloads in order to reinitialize.

What you are describing fits a pattern seen previously. At least two map developers were distributing a faulty version of a plugin called MapProtection which would unload itself in the same tick as the OnServerInitialized hook, which caused an Oxide bug where the OnServerInitialized hook would not be called for the next alphabetically ordered plugin (I've seen reports for multiple plugins including Monument Finder and MiniCopter Options). That was causing Monument Finder to never initialize (without any errors) so it thought there were no monuments. As a result, Custom Vending Setup wouldn't recognize vending machines as being at monuments because Monument Finder would say there were no monuments, so the vending machine edit button wouldn't be shown. The issue would happen every server restart, but would resolve as soon as Monument Finder was reloaded.

Did you start using a new custom map this wipe, and did it come with a MapProtection plugin? If so, the map developer may be distributing the faulty version of that plugin by mistake and should get the correct file from the developer. Note: The issue is supposed to be fixed in MapProtection v1.0.2, but somehow multiple map developers were distributing a file that had the logic of v1.0.1 but with the version number v1.0.2 which lead to some confusion, so whether the actual latest version of the plugin is being used needs to be determined by checking the logic of the plugin (the version number cannot be trusted).

Thanks White Thunder. 

The map is generated via Rustmaps and then edited by myself with my own custom outpost prefab. No MapProtect plugin is used. However, I do password-protect the map. That's the only form of protection I use on the .map file itself.

Next restart I'll keep an eye on the logs and also the visual element of Monument Finder ingame and see if anything stands out. 
I'll also run a local version with just the needed plugins installed, just to see if another plugin might be doing something funky.

Since you mentioned Monument Addons in your post, are you only seeing this issue (missing edit button) for MonumentAddons-spawned vending machines, or for the ones that are part of the map as well? If the addons are spawning, then Monument Finder is working fine and Monument Addons is integrating with it fine. If you don't see the edit button for those vending machines, then that's an integration issue between Monument Addons and Custom Vending Setup. Basically Monument Addons tells Custom Vending Setup that it controls the loading/saving of data for those vending machines, so Custom Vending Setup doesn't care about monuments for those ones.

NKXTQs24ExGTuL8.jpg WhiteThunder

Since you mentioned Monument Addons in your post, are you only seeing this issue (missing edit button) for MonumentAddons-spawned vending machines, or for the ones that are part of the map as well? If the addons are spawning, then Monument Finder is working fine and Monument Addons is integrating with it fine. If you don't see the edit button for those vending machines, then that's an integration issue between Monument Addons and Custom Vending Setup. Basically Monument Addons tells Custom Vending Setup that it controls the loading/saving of data for those vending machines, so Custom Vending Setup doesn't care about monuments for those ones.

You're correct, it appears to be Monument Finder that's causing the issue and then having knock-on effects. Let me do my best to explain and troubleshoot.

So originally we had a report of Monument Addons not aligning to monuments. We reloaded the plugins and thought nothing more of it.
We then got reports of custom vending machines not having the correct items. Reloading this also fixed it. At the time it hadn't clicked that because Finder hadn't got the correct coordinates so the vending machine weren't found.

I made a copy on my local server with just the following plugins loaded.

AdminMenu
CarVendor
CustomVendingSetup
ImageLibrary
MonumentAddons
MonumentFinder
SignArtist
Ubertool

I started the server and everything was aligned on the monument. I restarted the server and found Outpost unaligned again. Along with vending machine not displaying the correct item
https://imgur.com/a/OEp4FwA

Image 1 - Unaligned
Image 2 - /mf closest to show the bounding box
Image 3 - After reloading Monument Finder it correctly aligns.

The config section from MF for Outpost. No changes since before the update.
    "<size=36>Outpost</size>": {
      "Position": {
        "Auto determine from monument marker": false,
        "Auto determine from prevent building volume": true
      },
      "Rotation": {
        "Auto determine from monument marker": false,
        "Auto determine from prevent building volume": true
      },
      "Bounds": {
        "Auto determine from monument marker": false,
        "Auto determine from prevent building volume": false,
        "Use custom bounds": true,
        "Custom bounds": {
          "Size": {
            "x": 200.0,
            "y": 50.0,
            "z": 200.0
          },
          "Center adjustment": {
            "x": 0.0,
            "y": 12.0,
            "z": 0.0
          }
        }
      }
    },​

Appreciate this is probably a Monument Finder thing now. If you want me to remake this post over there let me know.
Also if i can provide any more information let me know.

Many Thanks

Yes, please make this post in Monument Finder for tracking purposes.

Most likely, this is related to usage of the prevent building volume. My guess is that there are multiple, and MF is finding the wrong one. One possible reason would be the addons themselves, since deployables often have prevent building volumes on them. For instance, the "unaligned" box might be from the monument volume, and the "aligned" one is from an addon, which would explain why the bounds are aligned only when you reload MF after some time, since that's when the addons are present. As a test, you can try unloading MA, then reload MF to see if that changes where it sees the monument.

Locked automatically