+ Reply to Thread
Results 1 to 10 of 10

Thread: Entity Discovery Bugs

  1. #1
    goluch
    Guest goluch's Avatar

    Default Entity Discovery Bugs

    Me and some of my mates who are epic at wire have all tryed to use the allow and disallow players functions how ever when every they are called the chip shuts down and says script error.

  2. #2
    Spucatum Tauri Bull's Avatar
    Join Date
    Jun 2008
    Location
    Finland
    Posts
    6,009

    Default Re: Entity Discovery Bugs

    Yes and?

    You might want to include some code.
    My signature has a point.
    Quote Originally Posted by Squeakyneb View Post
    when l3ulletje says do it, do it.
    That

    Quote Originally Posted by Anticept View Post
    By the way, Bull is in charge.

  3. #3
    Wiremod Helper Lyinginbedmon's Avatar
    Join Date
    Mar 2009
    Location
    England
    Posts
    2,659

    Default Re: Entity Discovery Bugs

    If it says script error it's likely an issue with wire. Try reinstalling.

  4. #4
    goluch
    Guest goluch's Avatar

    Default Re: Entity Discovery Bugs

    the functions in general do not work cus my mate soundkiller has tried like 100 times.
    and its not just me its loads of ppl.
    findExcludePlayer()
    findAllowPlayer()

  5. #5
    Spucatum Tauri Bull's Avatar
    Join Date
    Jun 2008
    Location
    Finland
    Posts
    6,009

    Default Re: Entity Discovery Bugs

    Again, post some code.

    "We can't get this to work, so it must be broken."
    Is not enough.
    My signature has a point.
    Quote Originally Posted by Squeakyneb View Post
    when l3ulletje says do it, do it.
    That

    Quote Originally Posted by Anticept View Post
    By the way, Bull is in charge.

  6. #6
    goluch
    Guest goluch's Avatar

    Default Re: Entity Discovery Bugs

    [highlight=e2]
    findinShere(entity()os(),10000)
    findByClass("player")
    findExcludePlayer(entity()wner())
    Target = find()
    [/highlight]

  7. #7
    Wiremod Helper Lyinginbedmon's Avatar
    Join Date
    Mar 2009
    Location
    England
    Posts
    2,659

    Default Re: Entity Discovery Bugs

    Wll ExcludePlayer() should be before the findinShere (Which should be findInSphere) for one thing.

    Oh yeah, "findinShere" is probably the issue.

  8. #8
    Spucatum Tauri Bull's Avatar
    Join Date
    Jun 2008
    Location
    Finland
    Posts
    6,009

    Default Re: Entity Discovery Bugs

    Code:
    findinShere(entity():pos(),10000)
    findByClass("player")
    findExcludePlayer(entity():owner())
    Target = find()
    First you search for all entities in a sphere.
    Then you search for a players.
    After searching you exclude the owner from future finds
    And then you return the first find of the player search?

    That is in theory at least.

    In practice:
    You first put every single entity, from a huge sphere, in a index.
    And straight afterwards you try to do the same with every player.

    Entity discovery takes a lot of resources, doing it twice will high likely will cause your errors.
    It's pointless anyway... findByClass("player") Will delete everything found in the sphere

    This should give you better results:
    Code:
    ## Maybe needed, maybe not.
    ## findClearWhiteList() 
    ## findClearBlackList() 
    
    findAllowClass("player")
    findExcludePlayer(entity():owner())
    findinSphere(entity():pos(),10000)
    Target = find()
    But again, don't runOnTick this code. Once every 1 second should be plenty.
    Last edited by Bull; 04-19-2009 at 12:56 PM.
    My signature has a point.
    Quote Originally Posted by Squeakyneb View Post
    when l3ulletje says do it, do it.
    That

    Quote Originally Posted by Anticept View Post
    By the way, Bull is in charge.

  9. #9
    Wire Sofaking Echo51's Avatar
    Join Date
    Feb 2009
    Location
    Denmark
    Posts
    1,489

    Default Re: Entity Discovery Bugs

    Simple typos ruin everything :P

    lulle, that avatar is freaking me out when it moves
    Proud of my non-existant life...
    In russia, Expression 2 codes you!
    Quote Originally Posted by Snowden42 View Post
    Nooblishious? That's a signature keeper.

  10. #10
    goluch
    Guest goluch's Avatar

    Default Re: Entity Discovery Bugs

    Quote Originally Posted by Lyinginbedmon View Post
    Wll ExcludePlayer() should be before the findinShere (Which should be findInSphere) for one thing.

    Oh yeah, "findinShere" is probably the issue.
    nope i couldn't be bothered to cut and paste so i typed with a slight error that correctly spelt in the real thing.

+ Reply to Thread

Similar Threads

  1. Expression 2 - Entity Discovery
    By chiss in forum Expression 2 Discussion & Help
    Replies: 12
    Last Post: 03-17-2009, 01:02 PM
  2. E2 Entity Discovery, findResult , Loops?
    By Dave-X in forum Expression 2 Discussion & Help
    Replies: 4
    Last Post: 02-09-2009, 01:13 PM
  3. Known value bugs.
    By IEF015 in forum Bug Reports
    Replies: 2
    Last Post: 05-19-2008, 05:56 AM
  4. Several bugs
    By Norseman in forum Bug Reports Archive
    Replies: 5
    Last Post: 12-22-2007, 03:47 AM
  5. 3 Bugs
    By Beer in forum Bug Reports Archive
    Replies: 5
    Last Post: 10-10-2007, 04:05 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
proceed-collector
proceed-collector
proceed-collector
proceed-collector
linguistic-parrots
linguistic-parrots
linguistic-parrots
linguistic-parrots