[B][U]Voice Visualizer 1.3a - Stable![/U]
[/B]Hey, this is the addon I've been working on the last hour. I saw that there are many requests for an addon like this. This is a very simple, highly configurable and well working Voice Visualizer.
[B]What is a Voice Visualizer?
[/B]An image says more than 1000 words, so here you go:
[IMG]http://puu.sh/48na7.png[/IMG]
[IMG]http://puu.sh/48ncx.png[/IMG]
[B]Customizing..
[/B][CODE]
// Color
vv.BarColor = {
[0] = Color(255, 0, 0), -- Over 0% -> Red
[25] = Color(255, 255, 0), -- Over 25 % -> Yellow
[50] = Color(0, 255, 0) -- Over 50% -> Green
}
// Adjust Bar Height
-- This is a PERFECT setting - Be sure before changing it
-- Default: 40
vv.BarHeightMultiplier = 40
// Update Rate
-- If you want it faster, increase the rate
-- If you want it slower, decrease the rate
-- Default: 0.1
vv.UpdateRate = 0.1
// Single Bar Width
-- If you want more bars, decrease the value
-- and increase the Bar Count
-- Default: 5
vv.SingleBarWidth = 5
// Bar Count
-- How many bars do you want to be displayed?
-- Default: 30 (Perfect setting with bar width 5)
vv.BarCount = 30
// Bar Distance
-- Distance between 2 Bars
-- Default: 2
vv.BarDistance = 2
// Background Color
-- Background Color of the bar itself
-- This HAS to be a function
-- Default: Black
vv.BackgroundColor = function(panel, ply)
-- Tip if you have a TTT server
-- This will normalize the background color of the panel (Green for Inno, Blue for Detective and Red in private Traitor Voice Channel)
-- Change the line under me to: return panel.Color
return Color(0,0,0)
end
// Name Color
-- Color of the name
-- This HAS to be a function
-- Default: White
vv.NameColor = function(panel, ply)
return Color(255,255,255)
end
// Name Font
-- Font of the name
-- This HAS to be a function
-- Default: GModNotify
vv.NameFont = function(panel, ply)
return "GModNotify"
end
// Call Gamemode Paint function
-- I highly recommend this stays turned off
-- for example: If your gamemode draws a box, it will draw over the bar and stuff
-- That would not be good
-- Default: false (you should keep it that way)
vv.CallGamemodePaintFunc = false
// Gamemode Paint Function call
-- You have to test this function out on your gamemode
-- This sets wether the gamemode paint function should be called before (true) or after (false) my paint function
-- Again, test it out yourself
-- NOTE: If you have set vv.CallGamemodePaintFunc to false, this will be ignored!
-- Default: false
vv.CallGamemodePaintFuncFirst = false
[/CODE]
[U]vv.BarHeightMultiplier
[/U][I]Number[/I]
This changes the multiplier of the current volume. As I said above, 40 is the perfect setting - I don't recommend changing it.
[U]
vv.UpdateRate
[/U][I]Number[/I]
Every X seconds, a new bar is created. If you want it faster, decrease the value.
[U]vv.SingleBarWidth
[/U][I]Number
[/I]Here you can change the width of every single bar.
[U]vv.BarCount[/U]
[I]Number[/I]
How many bars are there? This is, again, a perfect setting - I don't recommend changing it.
[U]vv.BarDistance[/U]
[I]Number[/I]
The distance between 2 Bars, the default setting is perfect - I don't recommend changing it.
[U]vv.BackgroundColor[/U]
[I]Function(Parameter: Panel, Player) - Returns Color[/I]
Here you change the background color of every individual, it's a function so you can use the team color (for example). This HAS to be a function, even if it returns always the same color.
[U]vv.NameColor[/U]
[I]Function(Parameter: Panel, Player) - Returns Color[/I]
Here you change the font color of individual's name - so you can highlight admins or special people (for example).
[U]vv.NameFont[/U]
[I]Function(Parameter: Panel, Player) - Returns String[/I]
Here you change the font of individual's name - so you can highlight an admin or someone special.
[U]vv.CallGamemodePaintFunc[/U]
[I]Boolean - Default: false[/I]
Do you want to call the gamemode paint function? You need to test this out yourself.
[U]vv.CallGamemodePaintFuncFirst[/U]
[I]Boolean - Default: false[/I]
If you have [I]vv.CallGamemodePaintFunc[/I] set to true you can decide when the gamemode paint function should be called. Set it to true if you want it to be called before the VV-Paint function.
[B]Where will this work?
[/B]
On every "base"-based gamemode, that doesn't mess with the chat indicator.
[B]Tested & Compatible[/B]
- Sandbox (working without config changes)
- DarkRP (working without config changes)
- TTT (change of settings recommended)
- Stronghold (working without config changes)
[B]If you have any questions regarding other Gamemodes, please post them here.[/B]
[B]Installation
[/B]The installation is veeery simple, just copy the VoiceVisualizer in the addons/-Directory! Then restart the server.
[B]Download[/B]
[B]via Github: [/B] [URL="https://github.com/Freeaakyy/VoiceVisualizer"]https://github.com/Freeaakyy/VoiceVisualizer[/URL]
[B][U]TIPS FOR TTT[/U][/B]
If you have a TTT server, you probabbly want the default background color of the panel.
(Green for Innocent, Blue for Detective and Red for the private Traitor voice channel)
Change your [I]vv.BackgroundColor[/I]-Function to the following lines:
[CODE]vv.BackgroundColor = function(panel, ply)
return panel.Color
end[/CODE]
This is done by the help of TTT itself.
Jackool won't be happy.
Looks cool though! :D
Looks like my voice panel :c (except my colors are more faded)
@Chessnut: Every Music Player has this design, no one has "rights" for it :)
And: Is there even a different way to visualize voice? I don't think so :D
[QUOTE=Remscar;41932799]Jackool won't be happy.
Looks cool though! :D[/QUOTE]
This is what i was thinking haha.
Personally wont use this, if only becuase darkrp and voice visualization just dosnt have that "feel" for me.
[QUOTE=LessThanMatt;41932985]This is what i was thinking haha.
Personally wont use this, if only becuase darkrp and voice visualization just dosnt have that "feel" for me.[/QUOTE]
That's sad for Jackool, but this is a simple addon. He could have expected some would release it publicly - I don't see any need for this being for sell..
@Matt: Same goes for me, I will open a DarkRP-Server soo too, and I don't know yet. I saw it (Jackool's Voice thing :P) on a DarkRP-Server once - and it was fine there.
[QUOTE=Remscar;41932799]Jackool won't be happy.[/QUOTE]
I'm sure he won't mind, he already made a pretty penny off of his
Seen this in a lot of places for a while; it's run its course as being private addon. Nice to see it released (I personally won't use it as I made my own). Nice idea to mix up the colors.
[URL="http://coderhire.com/browse/script/127/voicechat-wavemeter"]http://coderhire.com/browse/script/127/voicechat-wavemeter[/URL]
Jeez, this doesn't look familiar.
So what can I do about this doubled/split chat indicator with no visualization?
The gamemode is F2S2: Stronghold incase that has anything to do with why it broke.
[IMG]http://i40.tinypic.com/33c0rd5.jpg[/IMG]
@delagious: Oh yes, this is a global bug. I will look into it.
I also tested it with DarkRP, same error.
[editline]23rd August 2013[/editline]
[B]Updated to 1.1[/B]
- Code is now much smaller
- Fixed the panel being shown twice, sorry for that
What's with the "jackool" shit? It's not hard to make something like this and the design is really generic. Jackool does not have any sort of copyright for this sorta thing. Anyway, good job OP.
Yes, that's what I think too.
Thanks :)
Waow :D It looks really nice and colorfull :)
Is there any chance it will work with TTT? Just wondering :3
but anyway :)
Looks awesome :)
I did not test it with TTT but it will definetly work, yes.
As I said in the first post, it's compatible with every "base"-based gamemode - TTT is based on the base gamemode :)
Just in case it shouldn't just PM or post the errors here.
I will fix it then.
[QUOTE=freakyy;41940792]I did not test it with TTT but it will definetly work, yes.
As I said in the first post, it's compatible with every "base"-based gamemode - TTT is based on the base gamemode :)
Just in case it shouldn't just PM or post the errors here.
I will fix it then.[/QUOTE]
Yes sir! Im on it :3
Edit: hmm.. okay: this is what i got so far :P... When I speak I cant see my own name, and the waves does not appear. No errors show up
But i still need another guy with mic to join my server and see if its the same :) I'll report back :P
Edit: Okay, Me and a friend tested this and It appear that we cant see our names or soundwaves. But we can hear each other :)
@morten: Go to your console and write: "voice_loopback 1", if you wish me to join your server - I have time, just add me in steam: fre4kpwned.
[QUOTE=freakyy;41941237]@morten: Go to your console and write: "voice_loopback 1", if you wish me to join your server - I have time, just add me in steam: fre4kpwned.[/QUOTE]
You have been added :)
[B]Updated again! Version 1.2[/B]
- Will now work with TTT
- Added some tips / tutorial if you have a TTT Server
- The function parameters have been updated: the first parameter will now always be the panel itself.
[B]Download:[/B] [URL="http://www.mediafire.com/download/r85c471ofw41fru/VoiceVisualizer1.2.zip"]http://www.mediafire.com/download/r85c471ofw41fru/VoiceVisualizer1.2.zip[/URL]
[QUOTE=ChewGum;41939472]What's with the "jackool" shit? It's not hard to make something like this and the design is really generic. Jackool does not have any sort of copyright for this sorta thing. Anyway, good job OP.[/QUOTE]
Agreed. Good job OP.
This is Garry's Mod - make what you'd like to. The main reason I am coding is for my portfolio anyway.
Also I think I saw this on Blackops' server before; it wasn't my idea really.
Well I have encountered another issue. Different from before but still broken it seems.
The chat indicator is now void of names and doesn't have the effect of your addon.
So basically the same issue morten has. Voice chat is still audible but not visually appealing.
Another screenshot in case you want to see the issue.
I also got this error when somebody left the game.
[LUA]
[ERROR] addons/voicevisualizer/lua/vv/cl_init.lua:133: Tried to use a NULL entity!
1. VoiceVolume - [C]:-1
2. UpdatePast - addons/voicevisualizer/lua/vv/cl_init.lua:133
3. unknown - addons/voicevisualizer/lua/vv/cl_init.lua:112
Timer Failed! [PanelThink2259665762][@addons/voicevisualizer/lua/vv/cl_init.lua (line 110)]
[/LUA]
[IMG]http://i41.tinypic.com/ajqaky.jpg[/IMG]
Are you not supposed to see your own bars while you talk?
Also, when someone was holding down the mic button and a new round started I got this error.
[CODE]
[ERROR] addons/voicevisualizer/lua/vv/cl_init.lua:127: Tried to use invalid object (type Panel) (Object was NULL or not of the right type)
1. __newindex - [C]:-1
2. unknown - addons/voicevisualizer/lua/vv/cl_init.lua:127
Timer Failed! [Simple][@addons/voicevisualizer/lua/vv/cl_init.lua (line 122)]
S[/CODE]
Yeah I don't see my own bars but others can. (On TTT)
On the other hand it doesn't seem to work in Stronghold.
It looks like my previous post in stronghold.
I guess this would work for any gamemode if every
gamemode didn't mess with the voice chat indicator.
Hey guys, I just edited my first post.
You are right, it should work for every gamemode BUT for those who mess with the chat indicator..
I'm working on it right now, I think I even have the Stronghold source code.
I will look into it.
[editline]24th August 2013[/editline]
Okay Update guys: My current local version is no longer hardcoded with TTT and the fix is .. global. But @Stronghold: Stronghold has their own VoicePanel-Object, what I did was overwriting the default object.
I am not sure how I fix this, however I have two ideas, First: Checking the GameMode and if it's Stronghold it defines the voicepanel with a different name. My other idea is to Overwrite the g_VoicePanelList:Add function, so that always mine is added. Maybe someone has an idea?
I can't fix it now, I need to go. I will fix this shit later today.
I am now getting the same error as pkhzor but it happens almost randomly or just too often with different events for me to discern a pattern.
[LUA]
[ERROR] addons/voicevisualizer/lua/vv/cl_init.lua:127: Tried to use invalid object (type Panel) (Object was NULL or not of the right type)
1. __newindex - [C]:-1
2. unknown - addons/voicevisualizer/lua/vv/cl_init.lua:127
Timer Failed! [Simple][@addons/voicevisualizer/lua/vv/cl_init.lua (line 122)]
[/LUA]
It works for me, i have no problems!
Thank you freakyy
[QUOTE=KingCentKing;41962619]It works for me, i have no problems!
Thank you freakyy[/QUOTE]
Are you using it on a TTT server or what?
The issue I have is brought about by the TTT fix.
It all works correctly but I randomly get the LUA error message in the top of the screen
and it blocks out the chat indicators at the top.
If the error message didn't show up it would be working fine.
It sounds like he did create a new, different fix for TTT though so hopefully it doesn't
produce error messages. Overall awesome addon though.
[B]Updated to 1.3[/B]
- Stronghold compatible (even without config changes)
- Should work with more gamemodes now (made some changes to the code, it's now more resistant against gamemode overwrites)
- Fixed a bug (thanks for reporting)
- Added vv.CallGamemodePaintFunc (bool)
- Added vv.CallGamemodePaintFuncFirst (bool)
[B]Suggestion[/B]
If you want I can start coding on a version that features settings like this:
vv.IsSandbox
vv.IsStronghold
vv.IsTTT
vv.IsDarkRP
What do you think about that?
Screen of Stronghold:
[IMG]http://puu.sh/49L65.png[/IMG]
Download: [URL="http://www.mediafire.com/download/qxngdwrvmy6mqnk/VoiceVisualizer1.3.zip"]http://www.mediafire.com/download/qxngdwrvmy6mqnk/VoiceVisualizer1.3.zip[/URL]
[CODE][ERROR] addons/voicevisualizer/lua/vv/cl_init.lua:192: Tried to use invalid object (type Panel) (Object was NULL or not of the right type)
1. __newindex - [C]:-1
2. unknown - addons/voicevisualizer/lua/vv/cl_init.lua:192
Timer Failed! [Simple][@addons/voicevisualizer/lua/vv/cl_init.lua (line 174)]
Y[/CODE]
still causes errors on ttt.
[QUOTE=freakyy;41976097]
[B]Suggestion[/B]
If you want I can start coding on a version that features settings like this:
vv.IsSandbox
vv.IsStronghold
vv.IsTTT
vv.IsDarkRP
What do you think about that?
[/QUOTE]
What exactly would this do?
If this makes things easier on the user or yourself by all means do it.
Also should changing my voice receive volume ingame change to
height of the bars because it does.
If that was not intended then it is a bug I found.
I too receive a new error.
[LUA]
[ERROR] addons/voicevisualizer/lua/vv/cl_init.lua:192: Tried to use invalid object (type Panel) (Object was NULL or not of the right type)
1. __newindex - [C]:-1
2. unknown - addons/voicevisualizer/lua/vv/cl_init.lua:192
Timer Failed! [Simple][@addons/voicevisualizer/lua/vv/cl_init.lua (line 174)]
[/LUA]
Sorry, you need to Log In to post a reply to this thread.