Giter VIP home page Giter VIP logo

Comments (5)

smt923 avatar smt923 commented on July 29, 2024

edit: uuuh only just found this is for the hl2rp schema, it's a custom schema but the radio plugin is from hl2rp so yeah

Sorry to dig this one up but I'm now having this again, only mine is on this line:

local listenerEnts = ents.FindInSphere(listener:GetPos(), speakRange)

Worked totally fine for me in hl2rp however now in a custom schema it appears to be happening randomly and sporadically, between bursts of working totally fine

full error:

[ERROR] gamemodes/schema/plugins/radio/sh_plugin.lua:212: attempt to index a nil value
  1. onCanHear - gamemodes/schema/plugins/radio/sh_plugin.lua:212
   2. send - gamemodes/nutscript/gamemode/core/libs/sh_chatbox.lua:155
    3. Run - gamemodes/nutscript/gamemode/core/hooks/sv_hooks.lua:242
     4. unknown - gamemodes/nutscript/plugins/chatbox/sh_plugin.lua:69
      5. func - gamemodes/nutscript/gamemode/core/libs/external/sh_netstream2.lua:117
       6. unknown - lua/includes/extensions/net.lua:32```

from hl2rp.

Chessnut avatar Chessnut commented on July 29, 2024

But how is it indexing a nil value? This doesn't make sense

On Mon, Jun 29, 2015 at 10:19 AM, smt [email protected] wrote:

Sorry to dig this one up but I'm now having this again, only mine is on
this line:

local listenerEnts = ents.FindInSphere(listener:GetPos(), speakRange)

Worked totally fine for me in hl2rp however now In a custom schema it
appears to be happening randomly and sporadically, between bursts of
working totally fine

full error:

[ERROR] gamemodes/schema/plugins/radio/sh_plugin.lua:212: attempt to index a nil value

  1. onCanHear - gamemodes/schema/plugins/radio/sh_plugin.lua:212
    1. send - gamemodes/nutscript/gamemode/core/libs/sh_chatbox.lua:155
    2. Run - gamemodes/nutscript/gamemode/core/hooks/sv_hooks.lua:242
      1. unknown - gamemodes/nutscript/plugins/chatbox/sh_plugin.lua:69
      2. func - gamemodes/nutscript/gamemode/core/libs/external/sh_netstream2.lua:117
      3. unknown - lua/includes/extensions/net.lua:32```


Reply to this email directly or view it on GitHub
#62 (comment).

from hl2rp.

smt923 avatar smt923 commented on July 29, 2024

Okay so, now this is kinda going entirely off hl2rp but I don't think it's a hl2rp issue specifically, I changed my radios from the hl2rp ones to the modernrp ones without any modifications. same error:

[ERROR] gamemodes/nsmetro2033/plugins/radio/sh_plugin.lua:202: attempt to index a nil value
  1. onCanHear - gamemodes/nsmetro2033/plugins/radio/sh_plugin.lua:202
   2. send - gamemodes/nutscript/gamemode/core/libs/sh_chatbox.lua:155
    3. Run - gamemodes/nutscript/gamemode/core/hooks/sv_hooks.lua:242
     4. unknown - gamemodes/nutscript/plugins/chatbox/sh_plugin.lua:69
      5. func - gamemodes/nutscript/gamemode/core/libs/external/sh_netstream2.lua:117
       6. unknown - lua/includes/extensions/net.lua:32

that line specifically is now

    onCanHear = function(speaker, listener)

I have literally no idea and can't say anything that'd help debug it, randomly it works, randomly it breaks (can hear the radio beep and the command goes through, only no radio text is seen by anyone and the errors pop up in the server console)

as to the nil value thing I really have no idea

from hl2rp.

Chessnut avatar Chessnut commented on July 29, 2024

That line can't give that error so that doesn't really make sense

from hl2rp.

smt923 avatar smt923 commented on July 29, 2024

I really dunno what to like say or give you to help, I'm just as confused, is there any good way of like trying to debug this on my end?

from hl2rp.

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.