Jump to content

MON@H

Creator
  • Posts

    389
  • Joined

File Comments posted by MON@H

    Limit Entities

       3,499    200

    @SlayersRust the easiest way to implement other plugin support is to add a custom hook into that plugin to let other plugins to block some action. Something like "CanPlaceDeployable" or "OnExtendedPlaced". Then other plugins like Limit Entities could add that hook to block/allow that action

    Limit Entities

       3,499    200

    @snapple I try not to complicate things unnecessarily. Notifications about the limit of a specific object are quite clear, and messages about the general limit are secondary. If you have a complex permission system with many limits, I think it is more logical to use a separate plugin to inform the player, like info/menu, etc.

    Limit Entities

       3,499    200

    @Soller added in v2.2.3.

    While the global limit will work correctly, the building limit for growables requires additional changes. I need more time to test how to implement the building limit without impacting performance.

    Limit Entities

       3,499    200

    @Soller 

    Quote

    All growables are fully excluded from the count, so you can't limit any growables with this plugin, and players are free to plant them. I was considering adding this as an option, but it can significantly reduce performance, so at this point, I decided to refrain from it.

    Implementing tracking of growables may dramatically affect performance, especially on a PvE server where the number of growables might be extremely large. I will think about it in the meantime.

    Limit Entities

       3,499    200

    @shturval I have no issues on my server, and no one has reported any problems with skins. I can’t test this specific case myself since I don’t have the DLC, but you’re welcome to connect to my server and test it yourself if you’d like. And of course, if such a bug exists, I’ll fix it.

    • Like 1

    Limit Entities

       3,499    200

    @Maximo My plugin can’t control what another plugin spawns. If you want to add a limit, you need to modify the original plugin’s codebase directly, rather than trying to restrict it from the "outside."

    Limit Entities

       3,499    200

    @Maximo datafile only used to store building owners. If you want support, please create a support request and provide more details. From what you've described, it's not entirely clear what your problem is.

    Limit Entities

       3,499    200

    @Maximo yes, code for abandoned bases wasn't thoroughly tested, so it may be inaccurate. If you really want to figure out what exactly issue is, you can set "Log Level (Debug, Info, Warning, Off)": "Debug" and try to claim some bases. I can fix inaccuracy in code, but I need some additional info about issue. Feel free to create a support request and give additional info about such cases.

    • Like 1

    Limit Entities

       3,499    200

    @The Bob this plugin uses CanBuild hook, so you can call it like this:

    if (LimitEntities != null
    && LimitEntities.IsLoaded
    && LimitEntities.Call("CanBuild", planner, entity, target) != null)
    {
        Puts("Building is blocked by LimitEntities");
    }

    The player will be shown a building restriction message

    • Like 1

    Limit Entities

       3,499    200

    @Nstahg8r it's not spawned in game. It's crafted if the player has a Steam item (more info here or here).

    If you disabled it using this plugin, players will not be able to place it. Just wait until the next wipe, no need to erase anything.

    Limit Entities

       3,499    200

    @Nstahg8r it's supported in latest version 

    PrefabID: 132493746
    PrefabShortName: xmas.advanced.lights.deployed
    Prefab: assets/prefabs/misc/xmas/poweredlights/xmas.advanced.lights.deployed.prefab

     

    Limit Entities

       3,499    200

    @ZombZ I tested and it's on the list: 

    PrefabID: 4267988016
    PrefabShortName: chippyarcademachine
    Prefab: assets/prefabs/misc/chippy arcade/chippyarcademachine.prefab

    Works as expected

    Limit Entities

       3,499    200

    @Hawkhill Group limits are on my to-do list, I'm looking for the best way to avoid performance impact. I could add this long time ago, but as I said before - performance is the main concern of this plugin, so please be patient.

    • Like 1

    Limit Entities

       3,499    200

    @Dave, you can have as many permissions as you want. You are free to add/remove them comepletely including default one. If you're removing permission, don't leave an empty name there, remove the while block.

     

    Quote
      "Permissions": [
        {
          "Permission": "limitentities.vip",
          "Priority": 20,
          "Limits Global": {
            "Limit Total": 5000,
            "Limits Entities": {
              "assets/prefabs/building core/foundation.triangle/foundation.triangle.prefab": 500,
              "assets/prefabs/building core/foundation/foundation.prefab": 500,
              "assets/prefabs/building core/roof.triangle/roof.triangle.prefab": 400,
              "assets/prefabs/building core/roof/roof.prefab": 400
            }
          },
          "Limits Building": {
            "Limit Total": 2000,
            "Limits Entities": {
              "assets/prefabs/deployable/search light/searchlight.deployed.prefab": 15,
              "assets/prefabs/deployable/windmill/electric.windmill.small.prefab": 15
            }
          }
        },
        {
          "Permission": "limitentities.elite",
          "Priority": 30,
          "Limits Global": {
            "Limit Total": 10000,
            "Limits Entities": {
              "assets/prefabs/building core/foundation.triangle/foundation.triangle.prefab": 2000,
              "assets/prefabs/building core/foundation/foundation.prefab": 2000,
              "assets/prefabs/building core/roof.triangle/roof.triangle.prefab": 1000,
              "assets/prefabs/building core/roof/roof.prefab": 1000
            }
          },
          "Limits Building": {
            "Limit Total": 5000,
            "Limits Entities": {
              "assets/prefabs/deployable/search light/searchlight.deployed.prefab": 20,
              "assets/prefabs/deployable/windmill/electric.windmill.small.prefab": 20
            }
          }
        }
      ],

    What exactly you want to customize in prefab names, I don't understand.

    @SlayersRust, use limitentities.list console command to get all supported prefab names into log file. Open log file in logs dir and find the one you want.

    Limit Entities

       3,499    200

    @BadLands the limit is set per player, so if a player has "Limits Global" = 5, each player can place 5 entities. 2 players can place 10 and so on,

    I already told you, "Limits Building" is meant to restrict entities per one "base," but it only applies to entities placed on building blocks. However, "furnace.large" does not fall into this category. For "furnace.large" and other entities that are not placed on building blocks "Limits Building" simply won't work.

    Limit Entities

       3,499    200

    @BadLands You can set clan members amount limit in your clan plugin settings.

    default config contains 3 permissions:

    1. default
    2. vip

    3. elite

    Create as many as you like. For example:

    1. default
    2. tier1
    3. tier2
    4. ...
    5. tier100

    Just grant permission "limitentities.tierX" when player got new tier

    Limit Entities

       3,499    200

    @BadLands why do you have only one permission? Create one for each tier, the higher tier the higher limits amount. Lets say 1 tier only 1 furnace allowed, ter 2 - 2, and so on. Or set lower limit for clan members amount

    Also, why does your "Limits Building" = "Limits Global"? That doesn't make sense, you can just remove entities from "Limits Building" in that case and only keep ones that have lower amount than "Limits Global"

    Think of it as "Limits Global" = total amount on the server, "Limits Building" = total amount in one "base". If you set "Limits Global" = 5 and "Limits Building" = 5, then there is no sense to use "Limits Building", since they will not be able to build more anyways.

    Limit Entities

       3,499    200

    "Limits Building" is meant to restrict entities per one "base," but it only applies to entities placed on building blocks. However, "furnace.large" does not fall into this category. So, if 5 players each place 5 "large furnaces," no limits will be imposed. Implementing limits based on territory, such as "in TC range," is feasible, but there is a significant risk that this could lead to performance issues. This plugin was designed with the primary concern that performance > functionality. Perhaps I'll come up with something in the future, but no promises.

    Limit Entities

       3,499    200

    @BadLands I con't understand what exactly are you talking about. I'm not aware of any method which allows to avoid limits. Give me detailed description of what exactly going on on your server and maybe I'll be able to help you.

    If you are talking about building limit with multi TC, then range will not help

    Limit Entities

       3,499    200

    @BetterDeadThanZed there are no wildcards. I was thinking about adding entities grouping, but it would add complexity to the code and probably performance loss, with a payoff from little to nothing. Limiting by exact prefab doing 99% scenarios and for 1% it doesn't it's still possible to just set lower limit. For your example you can set regular foundation to 50 and triangle foundation to 25 and it may be pretty much it.

    About TC, "Limits Global" is personal per player and has nothing to do with TC but "Limits Building" has. For building limit check, if there is a cupboard placed - the limits of the owner of the cupboard will apply, if the cupboard is not placed - the restrictions of the owner of the first block will apply.

    Limit Entities

       3,499    200
    On 2/18/2023 at 9:46 PM, SlayersRust said:

    How do the Priorities work Monah? I have Default Group 5k, VIP 7500, ELITE 15,000. How do I make sure Elite group can build to 15k? I have other vips that also have elite and vip and default. How do I make sure their elite works? For some reason they are stuck at 7500 entities. Do I give elite 0,1,2,3 priority? I don't understand? I feel like one is overlapping the other and not allowing them to build to 15,000.

    In this scenario i showed above what Number Priority would my elite vip need to be to have the highest building limit?|

          "Priority": 2,

    Damn, I missed this message for some reason. In your example you can just keep the default priority and it should work. The higher tier of your group, the higher priority you should set. Like default = 10, VIP = 20, Elite = 30, Ultimate = 40, GODLIKE = 50 etc... If player has several permissions, the one with highest priority will be applied. Isn't this clear from description? I hope you figured it out already...

    UPD: Oh, now I see... There were a typo in default config file and vip priority = elite = 1. Fixed in latest version.

    Limit Entities

       3,499    200

    @SlayersRustbuilding blocks is a different story, you can't use this logic to them, since they are all build as twig tier. You'll have to increase litits accordinaly, because adding Raidable base territory check into plugin can impact performance and people who don't want this feature will hurt.

    Maybe I'll come up with something later

    Raidable Bases

       50,027    4365
    10 hours ago, romanulrich said:

    Hi, /rbe despawn after 2.6.0 patch doesnt work, players buy raid with /buyraid and when finished it, they always did /rbe despawn before but now after buyraid if they type /rbe despawn, its doing nothing. not despawning base at all. It works to me as admin. did I miss something? thanks al ot

    Added `Refunds => Block Despawn If Base Is Damaged` (true)

    Message, probably, should be changed to something like "Base was damaged, unable to despawn" or something, to avoid confusions like this

    PunishAttacker

       162    34
    On 2/17/2022 at 12:32 AM, Python said:
    Failed to call hook 'OnEntityTakeDamage' on plugin 'PunishAttacker v1.4.2' (UnauthorizedAccessException: Доступ к системе ограничен, недостаточно прав для исполЬзования -> System.IO.StringWriter)
    
    at Oxide.Plugins.PunishAttacker+JsonCreator.CreateJson (System.Collections.Generic.List`1[T] components) [0x00000] in <e91023c78ad142ebb74c4bc87e3e7b3c>:0
    
    at Oxide.Plugins.PunishAttacker+UiBuilder.ToJson () [0x00000] in <e91023c78ad142ebb74c4bc87e3e7b3c>:0
    
    at Oxide.Plugins.PunishAttacker+UiBuilder.AddUi (BasePlayer player) [0x00010] in <e91023c78ad142ebb74c4bc87e3e7b3c>:0
    
    at Oxide.Plugins.PunishAttacker.UICreateNotification (BasePlayer player, System.Int32 scaleMultiplier) [0x0012f] in <e91023c78ad142ebb74c4bc87e3e7b3c>:0
    
    at Oxide.Plugins.PunishAttacker.Punish (BasePlayer attacker, BasePlayer victim, System.Single amount) [0x0000d] in <e91023c78ad142ebb74c4bc87e3e7b3c>:0
    
    at Oxide.Plugins.PunishAttacker.OnEntityTakeDamage (BasePlayer victim, HitInfo info) [0x002b2] in <e91023c78ad142ebb74c4bc87e3e7b3c>:0
    
    at Oxide.Plugins.PunishAttacker.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x005d1] in <e91023c78ad142ebb74c4bc87e3e7b3c>:0
    
    at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <60c318df79ed41688ea59335e48d61ad>:0
    
    at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <dfcb48ea05694263bbc08e62a39c274c>:0
    
    at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <dfcb48ea05694263bbc08e62a39c274c>:0

    На одном хостинге нелЬзя исполЬзоватЬ класс StringWriter, если я правилЬно понял. Можно переписатЬ плагин как-то? 

    Возможно последняя версия заработает на том хостинге (если ещё актуалЬно)

    Limit Entities

       3,499    200
    On 7/22/2022 at 6:56 PM, CryEngine said:

    bcuz all what i need is assets/prefabs/deployable/hitch & trough/hitchtrough.deployed.prefab 6 per base, not more.

    UPD.
    When u play with friends ( team system ) so u can put x2x3 and more items, when you solo, works perfectly.
    any idea to fix it?

    Can't reproduce the issue. Like I said before, if you want to get a fast support - don't use comments, create support thread and describe  more details there, so I could reproduce the issue.

    • Love 1

    Limit Entities

       3,499    200
    On 7/22/2022 at 6:56 PM, CryEngine said:

    bcuz all what i need is assets/prefabs/deployable/hitch & trough/hitchtrough.deployed.prefab 6 per base, not more.

    UPD.
    When u play with friends ( team system ) so u can put x2x3 and more items, when you solo, works perfectly.
    any idea to fix it?

    Hmm, this issue has never been reported before, I will check it and fix it soon

     

    On 8/16/2022 at 8:34 PM, Emigo said:

    Is it possible to block general building instead of listing entities? Like limiting the construccion to 1000 entities per player. 

    Yes, it's in config called "Limit Total"

    • Like 1

    Limit Entities

       3,499    200

    @MNfreakTim, if you are asking about this plugin data file - there is none. All data is cached in memory, so there is no phisical file you could read (Since this plugin was about maximizing performance). So if you need to trace all players builded entities, you should use some other plugin for that. This plugin was tested so many times that I can ensure you it counts correctly.

About Us

Codefling is the largest marketplace for plugins, maps, tools, and more, making it easy for customers to discover new content and for creators to monetize their work.

Downloads
2.7m
Total downloads
Customers
11.5k
Customers served
Files Sold
163.9k
Total sales
Payments
3.5m
Processed total
×
×
  • 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.