Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Radio's Broken sometimes #62

Closed
NinjaPloze opened this issue Mar 19, 2015 · 5 comments
Closed

Radio's Broken sometimes #62

NinjaPloze opened this issue Mar 19, 2015 · 5 comments

Comments

@NinjaPloze
Copy link

Often the radios work and sometimes they don't decide to work. Here's the LUA error I get when it doesn't work:

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

  1. onCanHear - gamemodes/hl2rp/plugins/radio/sh_plugin.lua:209
    1. send - gamemodes/nutscript/gamemode/core/libs/sh_chatbox.lua:155
    2. Run - gamemodes/nutscript/gamemode/core/hooks/sv_hooks.lua:237
      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/modules/net.lua:32
@smt923
Copy link

smt923 commented Jun 29, 2015

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```

@Chessnut
Copy link
Owner

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

On Mon, Jun 29, 2015 at 10:19 AM, smt notifications@github.com 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).

@smt923
Copy link

smt923 commented Jun 29, 2015

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

@Chessnut
Copy link
Owner

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

@smt923
Copy link

smt923 commented Jun 30, 2015

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants