• Microphone + Radio (for RP)
    83 replies, posted
Ey there, I love the Voice Radio BUT.... I have a problem with FPP. I cant wire the Mic. I was building a studio and want to wire the OnAir on the mic to a chip. But i cant wire "World Props". Can someone help me!!! Thx RTC3Manie
Come on guys! This is serous! Please help me!
The model for my Microphone isn't working :( I can't figure out why, can anyone help?
How to modify DarkRP to delete microphones when you change job ? please help :)
Yea, can anyone please help me edit the DarkRP to remove the microphones?
[QUOTE=Fail Spy;34326972]The model for my Microphone isn't working :( I can't figure out why, can anyone help?[/QUOTE] Install it properly. [QUOTE=simze;34328095]How to modify DarkRP to delete microphones when you change job ? please help :)[/QUOTE] lua/autorun/server/removemics.lua [lua] hook.Add("Think", "gtfomicrophones", function() local found for _, ply in pairs(player.GetAll()) do if ply:Team() == "TEAM_RADIOOP" then found = true end end if found then return end for k, v in pairs(ents.GetAll()) do if v:GetClass() == "microphone" then v:Remove() end end end)[/lua] [QUOTE=Koolzkid162;35322313]Yea, can anyone please help me edit the DarkRP to remove the microphones?[/QUOTE] Above. Now stop bumping a dead thread.
[QUOTE=Phoenixf129;35327843]Install it properly. lua/autorun/server/removemics.lua hook.Add("Think", "gtfomicrophones", function()local foundfor _, ply in pairs(player.GetAll()) doif ply:Team() == "TEAM_RADIOOP" thenfound = trueendendif found then return endfor k, v in pairs(ents.GetAll()) doif v:GetClass() == "microphone" thenv:Remove()endendend)[/QUOTE] That's both wrong AND the most inefficient way to do it. ply:Team() always returns an integer. Comparing it to a string will always return false. Try this: [lua]hook.Add("OnPlayerChangedTeam", "RemoveMicrophones", function(ply, oldteam, newteam) for k, v in pairs(player.GetAll()) do if v:Team() == TEAM_RADIOOP then -- Assuming the team is TEAM_RADIOOP return end end for k,v in pairs(ents.FindByClass("microphone")) do SafeRemoveEntity(v) end end)[/lua] [editline]28th March 2012[/editline] [QUOTE=Phoenixf129;35327843] Now stop bumping a dead thread.[/QUOTE] One of my favourite servers is running this mod. It still works, it's still good and therefore the thread for it is not dead.
Please can someone update this addon to make it work with Garrys Mod 13? I tried it myself until this error appeared in the console: [CODE][ERROR] gamemodes/darkrp/gamemode/server/main.lua:824: attempt to index field 'dt' (a nil value) 1. callback - gamemodes/darkrp/gamemode/server/main.lua:824 2. RP_PlayerChat - gamemodes/darkrp/gamemode/server/chat.lua:20 3. unknown - gamemodes/darkrp/gamemode/server/chat.lua:63[/CODE] Uploaded it for justice: [url]http://www.mediafire.com/?ithklqhom4llraj[/url] Edit.: Alright. I just forgot to rename info.txt -_-°
I like to know if someone would be interested in converting this addon to GM13. According to mediafire there were 9 people already who downloaded it. And yes, of course I tried to fix it myself, but I'm not that experienced in GMod/lua. This error appears when you try to spawn a radio: [CODE]Couldn't include file 'includes\modules\voicechannel.lua' (File not found) (@addons/voiceradio/lua/autorun/radio_init.lua (line 20))[/CODE] So I did a little bit of a research and found this interesting article: [url]http://wiki.garrysmod.com/page/Lua/Tutorials/Creating_Libraries[/url] It was telling me to move the "voicechannel" module from ...\garrysmod\addons\voiceradio\lua\includes\modules\voicechannel.lua to ...\garrysmod\lua\includes\modules\voicechannel.lua Unfortunately I'm still getting the same error as before. Hopefully someone can take a look into this. It's a really nice addon.
[QUOTE=itkuitkzhji;38631381][CODE]Couldn't include file 'includes\modules\voicechannel.lua' (File not found)[/QUOTE] [QUOTE=Wiki]Transformations: GMod 13 does not currently transform periods into separators. If you search for "WAV.Parse", it will search for "lua\includes\modules\WAV.Parse.lua". It still looks for "sv_", "cl_", and "" prefixes, as appropriate.[/QUOTE] According to that, shouldn't you rename the Lua module to SV_VoiceChannel.lua, since I don't see it being called clientside anywhere.
That didn't have any effect. But thanks for the answer. ^^ Anyway I got it working: Move \voiceradio\lua\includes\modul es\voicechannel.lua to \voiceradio\lua\[B]autorun[/B]\includes\modul es\voicechannel.lua The server console says still it can't find it when someone spawns a radio or microphone. But they work flawlessly.
You should put up the download
What are the model and entity names for these? I looked in the Readme. Sorry to sound demanding. Thank you for any help.
help?
Have a look in the actual folder. It isn't rocket science. Preferably in the models/ or lua/entities/
I did. The 'radio_microphone' and 'radio_reciever' fail to work.
Someone should upload the GMOD 13 fix for this :)
I released a fixed version on the steam workshop page! I give credit to the genius creators! All i did was fix it. [url]http://steamcommunity.com/sharedfiles/filedetails/?id=117210659[/url]
This is a fantastic addon, and sometimes I wish the radio broadcaster job was vanilla for DarkRP.
[QUOTE=FPtje;35330496]That's both wrong AND the most inefficient way to do it. ply:Team() always returns an integer. Comparing it to a string will always return false. Try this: [lua]hook.Add("OnPlayerChangedTeam", "RemoveMicrophones", function(ply, oldteam, newteam) for k, v in pairs(player.GetAll()) do if v:Team() == TEAM_RADIOOP then -- Assuming the team is TEAM_RADIOOP return end end for k,v in pairs(ents.FindByClass("microphone")) do SafeRemoveEntity(v) end end)[/lua] [editline]28th March 2012[/editline] One of my favourite servers is running this mod. It still works, it's still good and therefore the thread for it is not dead.[/QUOTE] This still doesn't remove it, any ideas?
[QUOTE=Project G;39052389]I released a fixed version on the steam workshop page! I give credit to the genius creators! All i did was fix it. [url]http://steamcommunity.com/sharedfiles/filedetails/?id=117210659[/url][/QUOTE] It appears to have been removed from the workshop, can you re-upload it?
[url]http://steamcommunity.com/sharedfiles/filedetails/?id=123465664[/url] Enjoy ^^ Jacobr [QUOTE]What are the model and entity names for these?[/QUOTE] Models: models/props_lab/citizenradio.mdl - for the radio models/mic.mdl - for the microphone Entities: radio_microphone - for microphone radio_receiver - for radio Source: Init.lua in lua\entities\radio_microphone & lua\entities\radio_receiver
I seem to be getting this error, if you can investigate: Band Radio is not defined [ERROR] lua/entities/radio_microphone/init.lua:43: attempt to index field 'Band' (a nil value) 1. unknown - lua/entities/radio_microphone/init.lua:43 2. Spawn - [C]:-1 3. SpawnFunction - lua/entities/radio_microphone/init.lua:32 4. Spawn_SENT - gamemodes/sandbox/gamemode/commands.lua:601 5. unknown - gamemodes/sandbox/gamemode/commands.lua:654 6. unknown - lua/includes/modules/concommand.lua:69
Fixed :P
[QUOTE=jacobr;39406723]Fixed :P[/QUOTE] I put another error on workshop page. Please take a look
I have, but I am very confused at why this has happened. Really, I havn't been doing lua for very long and this is probably the hardest thing I have done.. xD Still, I am trying my best and will hopefully have a fix soon.
[QUOTE=jacobr;39414883]I have, but I am very confused at why this has happened. Really, I havn't been doing lua for very long and this is probably the hardest thing I have done.. xD Still, I am trying my best and will hopefully have a fix soon.[/QUOTE] Did you even bother trying it yourself or no.
[QUOTE]Did you even bother trying it yourself or no. [/QUOTE] Yes plenty.. This is why the problem is confusing me. It worked quite well for me when people were getting the "attempt to index field 'Band' (a nil value)" error and then when I thought I had fixed that I clearly broke that.. element of the code. Like I said: [QUOTE]Really, I havn't been doing lua for very long[/QUOTE] And I had hoped for some constructive support.
[QUOTE=jacobr;39430185]Yes plenty.. This is why the problem is confusing me. It worked quite well for me when people were getting the "attempt to index field 'Band' (a nil value)" error and then when I thought I had fixed that I clearly broke that.. element of the code. Like I said: And I had hoped for some constructive support.[/QUOTE] Hopefully you can fix the issue of the not working microphone or radio which can't hear what person is saying.
Can someone fix this wonderful addon, I had the fixed version from a previous guy but I deleted it by accident.. :suicide:
Sorry, you need to Log In to post a reply to this thread.