Results 1 to 8 of 8

Thread: Wire User error

  1. #1
    andy1976uk
    Guest andy1976uk's Avatar

    Default

    I'm getting this when I try to use it. Error: [Scripted Entity Function] entities/gmod_wire_button/init.lua:19: Entity is NULL (If it was previously OK it has been deleted)

    Wire User has never worked for me, but can't remember previous errors. Any ideas?

  2. #2
    That furred thing Black Phoenix's Avatar
    Join Date
    Feb 2007
    Location
    Kyiv, Ukraine
    Posts
    3,565

    Default

    Do you use final SVN revision?
    I'm a wire-crazy person with a tail.

    Take a daily journey into my brain

    D2K5

  3. #3
    andy1976uk
    Guest andy1976uk's Avatar

    Default

    Do you use final SVN revision?[/b]
    Yep, revision 494 now?

  4. #4
    Wirererer high6's Avatar
    Join Date
    Apr 2007
    Posts
    244

    Default

    I'm getting this when I try to use it. Error: [Scripted Entity Function] entities/gmod_wire_button/init.lua:19: Entity is NULL (If it was previously OK it has been deleted)

    Wire User has never worked for me, but can't remember previous errors. Any ideas?[/b]
    Did you try to do anything previously? I can think of some reasons why this happens.

  5. #5
    Wirererer _Kilburn's Avatar
    Join Date
    Jul 2007
    Location
    France
    Posts
    277

    Default

    The error comes from gmod_wire_button. I assume this is because the player given to the function Use of this button is NULL. Wire User has never been designed to work with default GMod and Wire buttons.

    Edit : I found this in the wire user:

    Code:
    trace.Entity:Fire("use","1",0)
    Why not just using this instead ?

    Code:
    trace.Entity:Use(self.Entity:GetPlayer())


  6. #6
    andy1976uk
    Guest andy1976uk's Avatar

    Default

    The error comes from gmod_wire_button. I assume this is because the player given to the function Use of this button is NULL. Wire User has never been designed to work with default GMod and Wire buttons.

    Edit : I found this in the wire user:

    Code:
    trace.Entity:Fire("use","1",0)
    Why not just using this instead ?

    Code:
    trace.Entity:Use(self.Entity:GetPlayer())
    [/b]
    This worked perfectly, many thanks kilburn

  7. #7
    Wirererer _Kilburn's Avatar
    Join Date
    Jul 2007
    Location
    France
    Posts
    277

    Default

    Perfectly ? This may work even better.

    Code:
    if trace.Entity.Use and trace.Entity.GetPlayer then
    ****trace.Entity:Use(trace.Entity:GetPlayer())
    else
    ****trace.Entity:Fire("use","1",0)
    end
    So, if you press someone else's non-wire button, it should simulate a keypress in his numpad, not yours. And it should also work with non-scripted buttons built in the map that don't have a Use function.


  8. #8
    That furred thing Black Phoenix's Avatar
    Join Date
    Feb 2007
    Location
    Kyiv, Ukraine
    Posts
    3,565

    Default

    I'll put that in SVN in few moments
    I'm a wire-crazy person with a tail.

    Take a daily journey into my brain

    D2K5

Similar Threads

  1. Wire Toolgun user?
    By ShadowVipr in forum Wiremod General Chat
    Replies: 5
    Last Post: 05-16-2009, 03:16 PM
  2. Broken Wire User
    By andy1976uk in forum Bug Reports Archive
    Replies: 4
    Last Post: 08-08-2007, 01:20 PM
  3. Wire Pod / User suggestions
    By andy1976uk in forum Ideas & Suggestions
    Replies: 6
    Last Post: 08-05-2007, 09:08 PM
  4. Wire User?
    By timas in forum Installation and Malfunctions Support
    Replies: 6
    Last Post: 06-27-2007, 07:34 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