Are you still going to try to fix it? It's not too big of a deal, but it cuts off the bottom and right sides of the picture, as shown above.
The only thing wrong for me is the avatar being pink and black
[QUOTE=seabeds;47517002]The only thing wrong for me is the avatar being pink and black[/QUOTE]
Then there was an error fetching it from the Steam API.
[QUOTE=code_gs;47518436]Then there was an error fetching it from the Steam API.[/QUOTE]
What would be a fixing solution to that? I'm new to lua.
there isnt any. That happens if the SteamAPI isn't working cuz of overload or smth.
[QUOTE=Tomelyr;47545635]there isnt any. That happens if the SteamAPI isn't working cuz of overload or smth.[/QUOTE]
Oh. Well I tried the addon only once. So is there a chance that if I add the addon again, it might work?
I'm still running it without problems, except that the image is too big. i didnt looked into the issue
[QUOTE=Tomelyr;47545824]I'm still running it without problems, except that the image is too big. i didnt looked into the issue[/QUOTE]
And you never modified it or anything right? When i was killed by The World, it was pink and black too
EDIT: it is working for me. As far as your issue, change the numbers in ttt_deathbadge\lua\autorun
Line 217:
local avatar = vgui.Create("AvatarImage", grad)
avatar:SetPos(0, 0)
if !ply:IsPlayer() or ply:IsBot() then
avatar:SetSize(128, 128)
avatar:SetPlayer(ply, 128)
else
avatar:SetSize(28, 128)
avatar:SetPlayer(ply, 128)
end
Ok, now something odd is happening. I originaly tested and fixed this on my friends testing server. It was alright and working for everyone except him. So i went ahead and added it to my server but now we switched roles. It works for everyone but me.
[QUOTE=seabeds;47548757]And you never modified it or anything right? When i was killed by The World, it was pink and black too
EDIT: it is working for me. As far as your issue, change the numbers in ttt_deathbadge\lua\autorun
Line 217:
local avatar = vgui.Create("AvatarImage", grad)
avatar:SetPos(0, 0)
if !ply:IsPlayer() or ply:IsBot() then
avatar:SetSize(128, 128)
avatar:SetPlayer(ply, 128)
else
avatar:SetSize(28, 128)
avatar:SetPlayer(ply, 128)
end[/QUOTE]
There's a typo in your code with the 28, which should be 128.
This should work:
[code] local avatar = vgui.Create("AvatarImage", grad)
avatar:SetPos(0, 0)
if !ply:IsPlayer() or ply:IsBot() then
avatar:SetSize(128, 128)
avatar:SetPlayer(ply, 128)
else
avatar:SetSize(128, 128)
avatar:SetPlayer(ply, 128)
end[/code]
Hiya!
I love this addon, i just have a question.
Im pretty sure i have the fully up to date version of the addon, but when it shows up the avatars are off center.
[IMG]https://i.gyazo.com/a921a4b0f3235bc8442261d3fa127675.png[/IMG]
Is there anyway to fix this?
Thanks guys!
to all those having pink and black errors where the steam image should appear.go into lua/autorun/dmsg.lua and comment out the following lines by putting -- at the start of the line just before the code. Line 2,Line70,and Line 74.if using notepad++ lines commented out should turn green.All these lines are related to cgradient.png and that's what seems to be causing the pink and black error(at least on our server) hope this helps someone.
[QUOTE=Etna;49189207]to all those having pink and black errors where the steam image should appear.go into lua/autorun/dmsg.lua and comment out the following lines by putting -- at the start of the line just before the code. Line 2,Line70,and Line 74.if using notepad++ lines commented out should turn green.All these lines are related to cgradient.png and that's what seems to be causing the pink and black error(at least on our server) hope this helps someone.[/QUOTE]
thx etna i was just about to say that it wasnt working for me i will try and edit if this works or not for me :) merry christmas or happy holidays :)
didnt work >:( purple an d black still
Wow can't believe it's already been more than 2 years since I released this
We still use it on our server!
-snip-
Are you still working on this? Please, make it compatible with SpecDM
My avatars are broken, is there a fix for this?
[URL="https://www.dropbox.com/s/1ysmyk6o0ay9sxb/ttt_deathbadge_fixed.zip?dl=1"]FULLY FIXED VERSION HERE![/URL]
Fixes include:
-Avatars no longer being shurnk to an abnormal size
-Now supports Spectator Deathmatch
-No longer overlaps if a second panel is created while one is existing (it removes the existing panel and then creates the new panel)
If anyone needs any help with this addon, just post on this thread and I'll do my best to help.
Edit:
Updated and fixed issue with SpecDM colours.
Fixed the issue with IsGhost error
Fixed the issue with avatar not showing up when killed by the world
[QUOTE=Britain;50174412][URL="https://www.dropbox.com/s/1ysmyk6o0ay9sxb/ttt_deathbadge_fixed.zip?dl=1"]FULLY FIXED VERSION HERE![/URL]
Fixes include:
-Avatars no longer being shurnk to an abnormal size
-Now supports Spectator Deathmatch
-No longer overlaps if a second panel is created while one is existing (it removes the existing panel and then creates the new panel)
If anyone needs any help with this addon, just post on this thread and I'll do my best to help.
Edit:
Updated and fixed issue with SpecDM colours.
Fixed the issue with IsGhost error
Fixed the issue with avatar not showing up when killed by the world[/QUOTE]
Getting this error now(you might have forgot to update your download link?):
[ERROR] addons/ttt-deathbadge-4_21_2016/lua/autorun/dmsg.lua:245: attempt to call method 'IsGhost' (a nil value)
1. MakeDMSG - addons/ttt-deathbadge-4_21_2016/lua/autorun/dmsg.lua:245
2. func - addons/ttt-deathbadge-4_21_2016/lua/autorun/dmsg.lua:286
3. unknown - lua/includes/extensions/net.lua:32
[QUOTE=Violat0r;50230319]Getting this error now(you might have forgot to update your download link?):
[ERROR] addons/ttt-deathbadge-4_21_2016/lua/autorun/dmsg.lua:245: attempt to call method 'IsGhost' (a nil value)
1. MakeDMSG - addons/ttt-deathbadge-4_21_2016/lua/autorun/dmsg.lua:245
2. func - addons/ttt-deathbadge-4_21_2016/lua/autorun/dmsg.lua:286
3. unknown - lua/includes/extensions/net.lua:32[/QUOTE]
Working on that atm. Should hopefully have an update pushed by tomorrow.
Did you ever get this updated?
As long you didn't got SpecDM installed or plan on installing it, IsGhost isn't defined as an function.
If you don't want to use SpecDM, then just search for the line "if ply:IsGhost() then"
And replace following lines:
[lua] if ply:IsPlayer() then
if ply:IsGhost() then
Msg("You were killed by " .. ply:Nick() .. ", he was a " .. index[3][3]:upper() .. ".\n")
else
Msg("You were killed by " .. ply:Nick() .. ", he was a " .. index[role][3]:upper() .. ".\n")
end
else
Msg("You were killed by the world.\n")
end
[/lua]
with
[lua]
if ply:IsPlayer() then
Msg("You were killed by " .. ply:Nick() .. ", he was a " .. index[role][3]:upper() .. ".\n")
else
Msg("You were killed by the world.\n")
end
[/lua]
[QUOTE=Tomelyr;50369862]As long you didn't got SpecDM installed or plan on installing it, IsGhost isn't defined as an function.
If you don't want to use SpecDM, then just search for the line "if ply:IsGhost() then"
And replace following lines:
[lua] if ply:IsPlayer() then
if ply:IsGhost() then
Msg("You were killed by " .. ply:Nick() .. ", he was a " .. index[3][3]:upper() .. ".\n")
else
Msg("You were killed by " .. ply:Nick() .. ", he was a " .. index[role][3]:upper() .. ".\n")
end
else
Msg("You were killed by the world.\n")
end
[/lua]
with
[lua]
if ply:IsPlayer() then
Msg("You were killed by " .. ply:Nick() .. ", he was a " .. index[role][3]:upper() .. ".\n")
else
Msg("You were killed by the world.\n")
end
[/lua][/QUOTE]
This seems to have fixed the errors I was having. Thank you! :)
[QUOTE=Tomelyr;50369862]As long you didn't got SpecDM installed or plan on installing it, IsGhost isn't defined as an function.
If you don't want to use SpecDM, then just search for the line "if ply:IsGhost() then"
And replace following lines:
[lua] if ply:IsPlayer() then
if ply:IsGhost() then
Msg("You were killed by " .. ply:Nick() .. ", he was a " .. index[3][3]:upper() .. ".\n")
else
Msg("You were killed by " .. ply:Nick() .. ", he was a " .. index[role][3]:upper() .. ".\n")
end
else
Msg("You were killed by the world.\n")
end
[/lua]
with
[lua]
if ply:IsPlayer() then
Msg("You were killed by " .. ply:Nick() .. ", he was a " .. index[role][3]:upper() .. ".\n")
else
Msg("You were killed by the world.\n")
end
[/lua][/QUOTE]
I swore I'd updated it with this in as I just gave up trying to get it to work. Thanks for the heads up however. I'll update my addon.
[editline]22nd May 2016[/editline]
Should be fixed now.
That's wrong btw. With removing this part, i'm breaking the SpecDM compatibility on purpose, so i don't need to fix the if itself.
Now that i've looked more into it, you could try this. haven't tested it, since i don't run SpecDM
[lua] if ply:IsPlayer() then
if ply.IsGhost and ply:IsGhost() then
Msg("You were killed by " .. ply:Nick() .. ", he was a " .. index[3][3]:upper() .. ".\n")
else
Msg("You were killed by " .. ply:Nick() .. ", he was a " .. index[role][3]:upper() .. ".\n")
end
else
Msg("You were killed by the world.\n")
end[/lua]
[QUOTE=Tomelyr;50373283]That's wrong btw. With removing this part, i'm breaking the SpecDM compatibility on purpose, so i don't need to fix the if itself.
Now that i've looked more into it, you could try this. haven't tested it, since i don't run SpecDM
[lua] if ply:IsPlayer() then
if ply.IsGhost and ply:IsGhost() then
Msg("You were killed by " .. ply:Nick() .. ", he was a " .. index[3][3]:upper() .. ".\n")
else
Msg("You were killed by " .. ply:Nick() .. ", he was a " .. index[role][3]:upper() .. ".\n")
end
else
Msg("You were killed by the world.\n")
end[/lua][/QUOTE]
That could work. The issue with it is that if you are killed by the world, it'll sometimes throw an IsGhost error. I think there's an if statement to check if SpecDM actually exists. I'll look into updating this soon.
Many thanks for maintaining this addon of mine.
Hey, im looking for the death panel addon and i was wondering if you still have a copy of it
Sorry, you need to Log In to post a reply to this thread.