Code Monkey home page Code Monkey logo

Comments (5)

TomyLobo avatar TomyLobo commented on August 31, 2024

I have no idea how that is even possible...
line 95 is this: self.TargetFilter:Setup(nil,nil,nil,nil,nil,nil,nil,nil,nil,trace.Entity)
self.TargetFilter is only ever set to nil or an entity whose class is verified to be gmod_wire_rfid_filter, which has a Setup method
And if it was nil, Lua wouldn't even get to attempting the call.

If your wire and wire-extras are up to date with the master branch on github (cause that's what I was looking at) and there are no conflicting add-ons installed, I'd put blame on Garry.

from wire-extras.

X-Coder avatar X-Coder commented on August 31, 2024

Thanks for your answer. Wire and Extras are up to date, for wire I use the workshop version.

So you can link the the rfid filter without issues to target finder? -Then it must be something on my side.

from wire-extras.

TomyLobo avatar TomyLobo commented on August 31, 2024

I didn't say I could.
My results are from code analysis only.

from wire-extras.

philxyz avatar philxyz commented on August 31, 2024

This works for me with no lua errors linking an RFID Filter to a target finder by right clicking the filter, then the finder (I'm using latest wire and latest wire-extras). Close ticket?

from wire-extras.

X-Coder avatar X-Coder commented on August 31, 2024

I just tried it again today on newest git wire/wire extras in multiplayer, still the same error for me, just on line 96 instead of 95.

The error is kind of odd, even if I check the class of the object right before I try to call Setup, I get the error on this line "attempt to call method 'Setup' (a nil value)":

if(self.TargetFilter:GetClass() == "gmod_wire_rfid_filter") then          
  self.TargetFilter:Setup(nil,nil,nil,nil,nil,nil,nil,nil,nil,trace.Entity)
end

Looking in the init.lua file, Setup is definitively defined. Even If I rename the Setup function (to get around some conflict which maybe a addon could cause messing around with all Setup functions) to something different I get the error.

If it works for you, then it can only be some conflicting addon. I close it now, as this seems not a bug within wire.

If someone has the same error, post here I will reopen it.

from wire-extras.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.