Finder

Find Players, SleepingBags, Buildings, Items, and teleport to them

Total Downloads: 7,323 - First Release: Apr 3, 2015 - Last Update: Feb 8, 2017

5/5, 19 likes
  1. Hello,
    I think there are a problem with the Permission on this script:

    Loaded plugin Finder v3.0.3 by Reneb

    grant Group XXX finder.find:

    Permission 'finder.find' doesn't exist
     
  2. Wulf

    Wulf Community Admin

    Wulf updated Finder with a new update entry:

    3.0.4

     
  3. OK so I updated 2 mods tonight after having a stable server for weeks..... I updated Finder @ 8:28pm then SkipNightVote @ 8:35pm and my server crashed INSTANTLY as soon as SkipNightVote was loaded. SO I assumed it was that causing the crash but after removing SkipNightVote i had two other subsequent crashes then I removed Finder and put back the older version and no crashes.....

    I am not 100% saying Finder did this, but it looks like it did.
     
  4. SUGGESTION:

    When doing a find on cupboards maybe allow the distinction between auth on cupboard AND/OR owner of cupboard.

    I ask because many people when they raid they auth on the cabinet but it is not theirs.
    [DOUBLEPOST=1490469961][/DOUBLEPOST]
    This I would like to delete bc it is not a Finder problem.
     
  5. OK so it seems there may be a bug in the mod.... I am standing next to a box full of M249s and running the command:

    /find item M249 1

    and it reports back only 1 at that location.... it seems the box look (to check storage containers) is not totaling the box since it is 1 per slot.

    I guess I do not understand this section of code... looks like the amount of the item from the box is always set to 0:

    Code:
                        foreach (StorageContainer sc in Resources.FindObjectsOfTypeAll<StorageContainer>())
                        {
                            ItemContainer inventory = sc.inventory;
                            if (inventory == null) continue;
                            List<Item> list = inventory.itemList.FindAll((Item x) => x.info.itemid == item.itemid);
                            int amount = 0; '<=============
                            if (amount < itemamount) continue;
                            pu.AddFind("Box", sc.transform.position, amount.ToString());
                        }
    
    [DOUBLEPOST=1492359182][/DOUBLEPOST]This MAY make more sense but I am still testing...

    Code:
                        foreach (StorageContainer sc in Resources.FindObjectsOfTypeAll<StorageContainer>())
                        {
                            ItemContainer inventory = sc.inventory;
                            if (inventory == null) continue;
                            List<Item> list = inventory.itemList.FindAll((Item x) => x.info.itemid == item.itemid);
                            if (list.Count < itemamount) continue;
                            pu.AddFind("Box", sc.transform.position, list.Count.ToString());
                        }
    
     
    Last edited by a moderator: Apr 16, 2017
  6. I think that list.Count is invalid because then if there are 10 items in each of 3 slots it returns 3 not 30.... I tried this but keep getting the error "Finder.cs(336,48): error CS1501: No overload for method `GetAmount' takes `1' arguments" EVEN THOUGH right below in the next for each the nearly exact same code is working.

    Code:
                        foreach (StorageContainer sc in Resources.FindObjectsOfTypeAll<StorageContainer>())
                        {
                            ItemContainer inventory = sc.inventory;
                            if (inventory == null) continue;
                            List<Item> list = inventory.itemList.FindAll((Item x) => x.info.itemid == item.itemid);
                            int amount = inventory.GetAmount(item.itemid);
                            if (list.Count < itemamount) continue;
                            pu.AddFind("Box", sc.transform.position, list.Count.ToString());
                        }
    
     
  7. hopefully @Reneb will see this and review the above post(s).
     
  8. Forgive me if this has already been answered, but is there a way to use this to find all sleepers without names? Thank you for your attention.

    Pax Rubigo
     
  9. Oxide v2.0.3250 (on start server):
    Code:
    08:46 [Error] Error while compiling: Finder.cs(265,99): error CS1061: Type `Oxide.Plugins.BuildingBlock' does not contain a definition for `OwnerID' and no extension method `OwnerID' of type `Oxide.Plugins.BuildingBlock' could be found. Are you missing an assembly reference?
    
     
  10. Wulf

    Wulf Community Admin

    You're using the BuildingBlock.cs plugin which is causing conflicts with other plugins. Either rename the plugin or update to the BuildingBlocker.cs version. It might require a server restart.
     
  11. Is this for admins only or is this for anyone to use? How can i make for admins only?
     
  12. It's for anyone you assign the permission to, but yes, it's generally admin-only.

    Edit: So basically, if you are an admin or use
    Code:
    grant user/group name/groupname finder.find
     
  13. "NotAllowed" I am admin, only admin. I tried to use my name as well as steamID and both got the "NotAllowed" return in console.
     
  14. "oxide.grant group admin finder.find" in console. Most likely you are not registered as owner (do "ownerid [steamid]" in rcon) if it denies you to set permissions. Try the rcon, not the F1 console?
     
  15. when I do /find building on a certain player...the chat goes blank.... no error.. just blank. Only on that one player from what I have seen though.
     
  16. I can't work out how the coordinates work for this mod. Can someone help?
     
  17. hey there, i would like to ask if it's possible to view a list of all sleepers in the server? thanks
     
  18. Very useful plugin. Thanks for the work you put into it. Is there a log file that I need to delete between map wipes so that old players that have not played on the new map do not show up in the "/find player" search?