Jump to content

2 Screenshots

This area is intended for discussion and questions. Please use the support area for reporting issues or getting help.

Recommended Comments



Elloco

Posted (edited)

nvm fixed

Edited by Elloco
  • Like 1
BroShelbi

Posted

"Player Max Sleeping Bag/Bed limit": 15,

this option not working

You can fix it?

Scalbox

Posted

what doesn't work?
When you set the limit by distance, a sphere appears.
Even though the bed appears yellow, if there are no other beds in the dome that appears, the bed will work and will not have a cooldown, you are also told as a message

AlexF

Posted (edited)

My friend have this error - I can even tell you why this is - because of the registration of privileges in the CS, if you load it with a different perm name(vip1, vip2..), the plugin spams:
Failed to call hook 'OnActiveItemChanged' on plugin 'UltimateBeds v1.0.8' (InvalidOperationException: Sequence contains no matching element)
at System.Linq.Enumerable.First[TSource] (System.Collections.Generic.IEnumerable`1[T] source, System.Func`2[T,TResult] predicate) [0x00011] in <a314714511a14f84b853c03efd8682b8>:0
at Oxide.Plugins.UltimateBeds.GetPlayerRolePermission (System.UInt64 steamID) [0x00034] in <8a8c125ded594d2db96c6c1ea63e8fac>:0
at Oxide.Plugins.UltimateBeds.CanChangeBagsRange (BasePlayer player) [0x00017] in <8a8c125ded594d2db96c6c1ea63e8fac>:0
at Oxide.Plugins.UltimateBeds.OnActiveItemChanged (BasePlayer player, Item oldItem, Item newItem) [0x0000d] in <8a8c125ded594d2db96c6c1ea63e8fac>:0
at Oxide.Plugins.UltimateBeds.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x001e6] in <8a8c125ded594d2db96c6c1ea63e8fac>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <795304323ac74a298b8ed190a1dfa739>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000de] in <beb2b64691c64e2b95b99491bd85442c>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <beb2b64691c64e2b95b99491bd85442c>:0

[UltimateBeds] Exception: Sequence contains no matching element
[UltimateBeds] Exception: Sequence contains no matching element

Edited by AlexF
Scalbox

Posted

3 hours ago, AlexF said:

My friend have this error - I can even tell you why this is - because of the registration of privileges in the CS, if you load it with a different perm name(vip1, vip2..), the plugin spams:
Failed to call hook 'OnActiveItemChanged' on plugin 'UltimateBeds v1.0.8' (InvalidOperationException: Sequence contains no matching element)
at System.Linq.Enumerable.First[TSource] (System.Collections.Generic.IEnumerable`1[T] source, System.Func`2[T,TResult] predicate) [0x00011] in <a314714511a14f84b853c03efd8682b8>:0
at Oxide.Plugins.UltimateBeds.GetPlayerRolePermission (System.UInt64 steamID) [0x00034] in <8a8c125ded594d2db96c6c1ea63e8fac>:0
at Oxide.Plugins.UltimateBeds.CanChangeBagsRange (BasePlayer player) [0x00017] in <8a8c125ded594d2db96c6c1ea63e8fac>:0
at Oxide.Plugins.UltimateBeds.OnActiveItemChanged (BasePlayer player, Item oldItem, Item newItem) [0x0000d] in <8a8c125ded594d2db96c6c1ea63e8fac>:0
at Oxide.Plugins.UltimateBeds.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x001e6] in <8a8c125ded594d2db96c6c1ea63e8fac>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <795304323ac74a298b8ed190a1dfa739>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000de] in <beb2b64691c64e2b95b99491bd85442c>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <beb2b64691c64e2b95b99491bd85442c>:0

[UltimateBeds] Exception: Sequence contains no matching element
[UltimateBeds] Exception: Sequence contains no matching element

Hi can you send me your configuration?
Do you use oxide or carbon?
Thanks

AlexF

Posted

3 hours ago, Scalbox said:

Hi can you send me your configuration?
Do you use oxide or carbon?
Thanks

    "default": {
      "Player Max Sleeping Bag/Bed limit": 5,
      "Sleeping bag unlock time after placed": 300,
      "Bed unlock time after placed": 120,
      "Sleeping bag respawn cooldown": 300,
      "Bed respawn cooldown": 120,
      "Sleeping Bag Range: Radius within which to check other Sleeping Bags placed. Default: 50 (lower = more Sleeping Bags close to each other)": 50,
      "Bed Range: Radius within which to check other Beds placed. Default: 50 (lower = more Beds close to each other)": 50
    },
    "vip": {
      "Player Max Sleeping Bag/Bed limit": 7,
      "Sleeping bag unlock time after placed": 210,
      "Bed unlock time after placed": 84,
      "Sleeping bag respawn cooldown": 210,
      "Bed respawn cooldown": 84,
      "Sleeping Bag Range: Radius within which to check other Sleeping Bags placed. Default: 50 (lower = more Sleeping Bags close to each other)": 35,
      "Bed Range: Radius within which to check other Beds placed. Default: 50 (lower = more Beds close to each other)": 35
    },
    "shopsuper": {
      "Player Max Sleeping Bag/Bed limit": 10,
      "Sleeping bag unlock time after placed": 30,
      "Bed unlock time after placed": 12,
      "Sleeping bag respawn cooldown": 30,
      "Bed respawn cooldown": 12,
      "Sleeping Bag Range: Radius within which to check other Sleeping Bags placed. Default: 50 (lower = more Sleeping Bags close to each other)": 5,
      "Bed Range: Radius within which to check other Beds placed. Default: 50 (lower = more Beds close to each other)": 5
    }

 

Scalbox

Posted

9 hours ago, AlexF said:
    "default": {
      "Player Max Sleeping Bag/Bed limit": 5,
      "Sleeping bag unlock time after placed": 300,
      "Bed unlock time after placed": 120,
      "Sleeping bag respawn cooldown": 300,
      "Bed respawn cooldown": 120,
      "Sleeping Bag Range: Radius within which to check other Sleeping Bags placed. Default: 50 (lower = more Sleeping Bags close to each other)": 50,
      "Bed Range: Radius within which to check other Beds placed. Default: 50 (lower = more Beds close to each other)": 50
    },
    "vip": {
      "Player Max Sleeping Bag/Bed limit": 7,
      "Sleeping bag unlock time after placed": 210,
      "Bed unlock time after placed": 84,
      "Sleeping bag respawn cooldown": 210,
      "Bed respawn cooldown": 84,
      "Sleeping Bag Range: Radius within which to check other Sleeping Bags placed. Default: 50 (lower = more Sleeping Bags close to each other)": 35,
      "Bed Range: Radius within which to check other Beds placed. Default: 50 (lower = more Beds close to each other)": 35
    },
    "shopsuper": {
      "Player Max Sleeping Bag/Bed limit": 10,
      "Sleeping bag unlock time after placed": 30,
      "Bed unlock time after placed": 12,
      "Sleeping bag respawn cooldown": 30,
      "Bed respawn cooldown": 12,
      "Sleeping Bag Range: Radius within which to check other Sleeping Bags placed. Default: 50 (lower = more Sleeping Bags close to each other)": 5,
      "Bed Range: Radius within which to check other Beds placed. Default: 50 (lower = more Beds close to each other)": 5
    }

 

Do you use oxide or carbon?
 

Scalbox

Posted

Hi all
I am not adding any new features to the plugin at the moment, but if you need any features that you would like to see in the plugin, please write them here in the comments.
Thanks

TheRustingDead

Posted (edited)

I have a question, what should the server-side cvar be set to?

we want to limit regular players to 1 bag and VIP's to 3, here is my current server cvar, does this plugin override it and disable or alter the UI notification it creates?

max_sleeping_bags "1"

Edit:

Plugin is loading, but is not working. Here is my config

 

{
  "Chat Command": [
    "ub",
    "ultimatebeds"
  ],
  "Chat Prefix": "UltimateBeds",
  "RolePermission": {
    "default": {
      "Player Max Sleeping Bag/Bed limit": 1,
      "Sleeping bag unlock time after placed": 300,
      "Bed unlock time after placed": 120,
      "Sleeping bag respawn cooldown": 300,
      "Bed respawn cooldown": 120,
      "Sleeping Bag Range: Radius within which to check other Sleeping Bags placed. Default: 50 (lower = more Sleeping Bags close to each other)": 50,
      "Bed Range: Radius within which to check other Beds placed. Default: 50 (lower = more Beds close to each other)": 50,
      "Sleeping Bag Decay Settings": {
        "Enable Custom Decay. Default: false": false,
        "Disable Decay. Default: false": false,
        "Delay before decay starts. Default: 24 hours": 24,
        "Duration of decay. Default: 12 hours": 12
      }
    },
    "vip1": {
      "Player Max Sleeping Bag/Bed limit": 3,
      "Sleeping bag unlock time after placed": 300,
      "Bed unlock time after placed": 120,
      "Sleeping bag respawn cooldown": 300,
      "Bed respawn cooldown": 80,
      "Sleeping Bag Range: Radius within which to check other Sleeping Bags placed. Default: 50 (lower = more Sleeping Bags close to each other)": 50,
      "Bed Range: Radius within which to check other Beds placed. Default: 50 (lower = more Beds close to each other)": 50,
      "Sleeping Bag Decay Settings": {
        "Enable Custom Decay. Default: false": false,
        "Disable Decay. Default: false": false,
        "Delay before decay starts. Default: 24 hours": 24,
        "Duration of decay. Default: 12 hours": 12
      }
    },
    "vip2": {
      "Player Max Sleeping Bag/Bed limit": 5,
      "Sleeping bag unlock time after placed": 100,
      "Bed unlock time after placed": 50,
      "Sleeping bag respawn cooldown": 80,
      "Bed respawn cooldown": 40,
      "Sleeping Bag Range: Radius within which to check other Sleeping Bags placed. Default: 50 (lower = more Sleeping Bags close to each other)": 50,
      "Bed Range: Radius within which to check other Beds placed. Default: 50 (lower = more Beds close to each other)": 50,
      "Sleeping Bag Decay Settings": {
        "Enable Custom Decay. Default: false": false,
        "Disable Decay. Default: false": false,
        "Delay before decay starts. Default: 24 hours": 24,
        "Duration of decay. Default: 12 hours": 12
      }
    },
    "vip3": {
      "Player Max Sleeping Bag/Bed limit": 60,
      "Sleeping bag unlock time after placed": 60,
      "Bed unlock time after placed": 30,
      "Sleeping bag respawn cooldown": 40,
      "Bed respawn cooldown": 20,
      "Sleeping Bag Range: Radius within which to check other Sleeping Bags placed. Default: 50 (lower = more Sleeping Bags close to each other)": 50,
      "Bed Range: Radius within which to check other Beds placed. Default: 50 (lower = more Beds close to each other)": 50,
      "Sleeping Bag Decay Settings": {
        "Enable Custom Decay. Default: false": false,
        "Disable Decay. Default: false": false,
        "Delay before decay starts. Default: 24 hours": 24,
        "Duration of decay. Default: 12 hours": 12
      }
    }
  },
  "VersionNumber": {
    "Major": 1,
    "Minor": 0,
    "Patch": 9
  }
}

 

Edited by TheRustingDead
Scalbox

Posted

17 minutes ago, TheRustingDead said:

I have a question, what should the server-side cvar be set to?

we want to limit regular players to 1 bag and VIP's to 3, here is my current server cvar, does this plugin override it and disable or alter the UI notification it creates?

max_sleeping_bags "1"

Edit:

Plugin is loading, but is not working. Here is my config

 

{
  "Chat Command": [
    "ub",
    "ultimatebeds"
  ],
  "Chat Prefix": "UltimateBeds",
  "RolePermission": {
    "default": {
      "Player Max Sleeping Bag/Bed limit": 1,
      "Sleeping bag unlock time after placed": 300,
      "Bed unlock time after placed": 120,
      "Sleeping bag respawn cooldown": 300,
      "Bed respawn cooldown": 120,
      "Sleeping Bag Range: Radius within which to check other Sleeping Bags placed. Default: 50 (lower = more Sleeping Bags close to each other)": 50,
      "Bed Range: Radius within which to check other Beds placed. Default: 50 (lower = more Beds close to each other)": 50,
      "Sleeping Bag Decay Settings": {
        "Enable Custom Decay. Default: false": false,
        "Disable Decay. Default: false": false,
        "Delay before decay starts. Default: 24 hours": 24,
        "Duration of decay. Default: 12 hours": 12
      }
    },
    "vip1": {
      "Player Max Sleeping Bag/Bed limit": 3,
      "Sleeping bag unlock time after placed": 300,
      "Bed unlock time after placed": 120,
      "Sleeping bag respawn cooldown": 300,
      "Bed respawn cooldown": 80,
      "Sleeping Bag Range: Radius within which to check other Sleeping Bags placed. Default: 50 (lower = more Sleeping Bags close to each other)": 50,
      "Bed Range: Radius within which to check other Beds placed. Default: 50 (lower = more Beds close to each other)": 50,
      "Sleeping Bag Decay Settings": {
        "Enable Custom Decay. Default: false": false,
        "Disable Decay. Default: false": false,
        "Delay before decay starts. Default: 24 hours": 24,
        "Duration of decay. Default: 12 hours": 12
      }
    },
    "vip2": {
      "Player Max Sleeping Bag/Bed limit": 5,
      "Sleeping bag unlock time after placed": 100,
      "Bed unlock time after placed": 50,
      "Sleeping bag respawn cooldown": 80,
      "Bed respawn cooldown": 40,
      "Sleeping Bag Range: Radius within which to check other Sleeping Bags placed. Default: 50 (lower = more Sleeping Bags close to each other)": 50,
      "Bed Range: Radius within which to check other Beds placed. Default: 50 (lower = more Beds close to each other)": 50,
      "Sleeping Bag Decay Settings": {
        "Enable Custom Decay. Default: false": false,
        "Disable Decay. Default: false": false,
        "Delay before decay starts. Default: 24 hours": 24,
        "Duration of decay. Default: 12 hours": 12
      }
    },
    "vip3": {
      "Player Max Sleeping Bag/Bed limit": 60,
      "Sleeping bag unlock time after placed": 60,
      "Bed unlock time after placed": 30,
      "Sleeping bag respawn cooldown": 40,
      "Bed respawn cooldown": 20,
      "Sleeping Bag Range: Radius within which to check other Sleeping Bags placed. Default: 50 (lower = more Sleeping Bags close to each other)": 50,
      "Bed Range: Radius within which to check other Beds placed. Default: 50 (lower = more Beds close to each other)": 50,
      "Sleeping Bag Decay Settings": {
        "Enable Custom Decay. Default: false": false,
        "Disable Decay. Default: false": false,
        "Delay before decay starts. Default: 24 hours": 24,
        "Duration of decay. Default: 12 hours": 12
      }
    }
  },
  "VersionNumber": {
    "Major": 1,
    "Minor": 0,
    "Patch": 9
  }
}

 

Hi
have you assigned the permission ultimatebeds.default for everyone and the permission ultimatebeds.vip1 for vip players?
Open a support ticket

TheRustingDead

Posted (edited)

I tried opening a support ticket, but it wouldn't go through and I think it banned me. 
edit: I was on the discord and I see what you mean now, I will open one on codefling

Yes I have assigned the permissions, I was testing them on the admin account and it was not doing anything.

We are on normal oxide, and running a few plugins. Also what should the server-side cvar be?

Edited by TheRustingDead
Scalbox

Posted

the plugin uses a cache system to improve performance. So you have to wait 5 minutes from when you change the permissions or alternatively restart the plugin

Scalbox

Posted

The server side convar is not taken into account when using the plugin, you can put any value

TheRustingDead

Posted

Thank you so much, foolish mistake on my part. Sorry for the pings!

Have a good day! and thanks for answering the cvar question

Scalbox

Posted

I just tried your setup on my test and everything works fine. You have to wait 5 minutes until you assign permissions, or alternatively restart the plugin

Scalbox

Posted

1 minute ago, TheRustingDead said:

Thank you so much, foolish mistake on my part. Sorry for the pings!

Have a good day! and thanks for answering the cvar question

No problem, is everything working now?

Scalbox

Posted

I will make an update, which clears the cache when changing permissions, so as to avoid problems

  • Like 1
Scalbox

Posted

Plugin updated

  • Like 1
TheRustingDead

Posted

You the man!
Hey I havent had time to test it yet, but how do you think this plugin deals with bag gifting? If I set the limit to 1 for default will it use their allotment for gifting?

Scalbox

Posted

If you gift your bed to someone else, it does not count towards the player's limit, but will count towards the player's limit who receives the bed.

Scalbox

Posted

The same basic mechanism that Rust uses

TheRustingDead

Posted

I see, I guess I am just worried about players gifting bags to other players that never end up joining and then they are stuck with no bag.

Scalbox

Posted

3 minutes ago, TheRustingDead said:

I see, I guess I am just worried about players gifting bags to other players that never end up joining and then they are stuck with no bag.

the player in the rust settings can decide whether or not to allow other players to assign beds to him.
If he disables it, no one can assign beds to him

 

Scalbox

Posted

And in any case the player can see the various beds from the map, he can delete it by clicking the bed from the map and free up 1 space again

TheRustingDead

Posted

We are a hardcore server so there is no map 😬

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Like 1

User Feedback

1.6m

Downloads

Total number of downloads.

7.7k

Customers

Total customers served.

115.3k

Files Sold

Total number of files sold.

2.3m

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.