I am having a few problems with my TTT atm. First time I have touched TTT so yer.
First one is sometimes peoples player models would go to that generic black slender man looking player model. I am using vanilla player models and cs is mounted correctly.
[IMG]http://i.imgur.com/lwTUq0W.jpg?1[/IMG]
Secondly sometimes when you are holding a gun there will be second set of hands beneath you. Also using vanilla guns + this gun pack [url]http://steamcommunity.com//sharedfiles/filedetails/?id=194965598[/url] which adds more cs weapons.
[IMG]http://i.imgur.com/9s0X3b2.jpg?1[/IMG]
Thirdly when banning someone with ulx it will say you have banned console. I am running the latest ulx&ulib and the latest TTT. I have used ulx with darkrp and that works fine but seems to only do it with TTT.
[img]http://puu.sh/ga0To/f2a5366f26.jpg[/img]
I am not getting any errors or client side errors aswell..
List of addons I currently use
[QUOTE]Cake anti cheat
Gmod legs
excl's map vote
Damagelogs
T Death faker
T Jihad Bomb
TTT Killer notifier
TTT silence scout
T Prop faker
T silenced m4
TTT Weapon collection
Easyscoreboard
ulx
ulib
ulx TTT commands
Spykrs weapon selection menu[/QUOTE]
Any help would be much appreciated
Thanks
Update your ULX from github: [url]https://github.com/Nayruden/Ulysses[/url]
That will doc the u banned console thing.
For the other two we would need to see errors and code. If you want add me on steam and I'll help you out tomorrow, else of not upload your code up here slog with any server side/client side errors
[QUOTE=YourStalker;47201253]Update your ULX from github: [url]https://github.com/Nayruden/Ulysses[/url]
That will doc the u banned console thing.
For the other two we would need to see errors and code. If you want add me on steam and I'll help you out tomorrow, else of not upload your code up here slog with any server side/client side errors[/QUOTE]
Ahh yes that worked, thank you. I sent you a add.
You have a second set of hands because of the legs mod not correctly hiding / repositioning them.
[QUOTE=Acecool;47202471]You have a second set of hands because of the legs mod not correctly hiding / repositioning them.[/QUOTE]
Oh ok, I would assume there is a ttt compatible one out there then, also what that maybe be the issue of the black playermodels as well?
[QUOTE=datguyrick;47208262]Oh ok, I would assume there is a ttt compatible one out there then, also what that maybe be the issue of the black playermodels as well?[/QUOTE]
Which legs mod are you using?
I re downloaded [url]http://steamcommunity.com/sharedfiles/filedetails/?id=112806637[/url] but I was using those before but i'm pretty sure it was a older version which I just copied over from another server.
-snip-
Alright well I had a look through client side errors and there is only 1 error and saw it in console
[IMG]http://puu.sh/geaMS/b1d276cc79.png[/IMG]
I can't get into contact with spykr or post on his thread on sf cause his thing expired so yer :/
Lines 5 - 26
[code]
function WPNSELECTION:SelectWep(group, wep)
if frmWeapons == nil then return end
local wlist local text
if group == 1 then wlist = mdlPrimary text = lblSelPrimary
elseif group == 2 then wlist = mdlSecondary text = lblSelSecondary
elseif group == 3 then wlist = mdlGrenade text = lblSelGrenade end
if wlist == nil then return end
local items = wlist:GetItems()
for _,item in pairs(items) do
if item.icon.class == wep then
text:SetAlpha(0)
item.selected = true
text:SetText(string.upper(item.icon.name))
text:AlphaTo(255, 0.2, 0)
else
item.selected = false
end
end
end
[/code]
What is GetItems defined as? If wlist isn't a dpanellist, GetItems won't work.
Well it is a weapon selection menu for TTT so GetItems as get the guns? I'm not too sure, I don't know alot of lua lingo.
[IMG]http://i.imgur.com/ERuB3OW.jpg?1[/IMG]
Can you look for any time mdlPrimary, mdlSecondary, or mdlGrenade appear in the code? To do this quickly, use Notepad++, press CTRL + Shift + F, set the directory to the addon directory, set the file filter to *.lua, and search those three separately.
[code]
WeaponSelectionMenu\lua\autorun\client\cl_weaponselection.lua
Line 10: if group == 1 then wlist = mdlPrimary text = lblSelPrimary
Line 33: if group == 1 then wlist = mdlPrimary text = lblSelPrimary
Line 100: mdlPrimary = vgui.Create("DPanelSelect", grpPrimary)
Line 101: mdlPrimary:StretchToParent(0,0,0,0)
Line 102: mdlPrimary:SetPadding(3)
Line 103: mdlPrimary:SetSpacing(1)
Line 138: mdlPrimary:AddItem(pnl)
Line 291: for _,item in pairs(mdlPrimary:GetItems()) do if item.selected then primary = item.icon.class end end
[/code]
[code]
WeaponSelectionMenu\lua\autorun\client\cl_weaponselection.lua (7 hits)
Line 11: elseif group == 2 then wlist = mdlSecondary text = lblSelSecondary
Line 34: elseif group == 2 then wlist = mdlSecondary text = lblSelSecondary
Line 163: mdlSecondary = vgui.Create("DPanelSelect", grpSecondary)
Line 164: mdlSecondary:StretchToParent(0,0,0,0)
Line 165: mdlSecondary:SetPadding(gpadding)
Line 200: mdlSecondary:AddItem(pnl)
Line 293: for _,item in pairs(mdlSecondary:GetItems()) do if item.selected then secondary = item.icon.class end end
[/code]
[code]
WeaponSelectionMenu\lua\autorun\client\cl_weaponselection.lua (7 hits)
Line 12: elseif group == 3 then wlist = mdlGrenade text = lblSelGrenade end
Line 35: elseif group == 3 then wlist = mdlGrenade text = lblSelGrenade end
Line 225: mdlGrenade = vgui.Create("DPanelSelect", grpGrenade)
Line 226: mdlGrenade:StretchToParent(0,0,0,0)
Line 227: mdlGrenade:SetPadding(gpadding)
Line 269: mdlGrenade:AddItem(pnl)
Line 295: for _,item in pairs(mdlGrenade:GetItems()) do if item.selected then grenade = item.icon.class end end
[/code]
That's only one file. Can you do the whole addon please? I need to see what those three values are defined as.
cl_weaponselection
[code]
WPNSELECTION = {}
local frmWeapons
local current
function WPNSELECTION:SelectWep(group, wep)
if frmWeapons == nil then return end
local wlist local text
if group == 1 then wlist = mdlPrimary text = lblSelPrimary
elseif group == 2 then wlist = mdlSecondary text = lblSelSecondary
elseif group == 3 then wlist = mdlGrenade text = lblSelGrenade end
if wlist == nil then return end
local items = wlist:GetItems()
for _,item in pairs(items) do
if item.icon.class == wep then
text:SetAlpha(0)
item.selected = true
text:SetText(string.upper(item.icon.name))
text:AlphaTo(255, 0.2, 0)
else
item.selected = false
end
end
end
function WPNSELECTION:UnselectWep(group, wep)
if frmWeapons == nil then return end
local wlist local text
if group == 1 then wlist = mdlPrimary text = lblSelPrimary
elseif group == 2 then wlist = mdlSecondary text = lblSelSecondary
elseif group == 3 then wlist = mdlGrenade text = lblSelGrenade end
local items = wlist:GetItems()
for _,item in pairs(items) do
if item.icon.class == wep then
item.selected = false
text:AlphaTo(0, 0.05, 0)
end
end
end
function WPNSELECTION:Show()
local ply = LocalPlayer()
local w = 444
local bw,bh = 75,23
local margin, padding, shadow = 6, 4, 2
local hh = 25
local iconsize = 64
local gpadding = 4
local gh = iconsize + gpadding*2+2
local cw = w - margin*2 - padding*2
local h = (22 + margin*3 + bh + hh*2 + padding*5 + gh*2) + (WEAPONSELECTION_PRIMARIES_2ROWS and (gh-gpadding*2) or 0)
frmWeapons = vgui.Create("DFrame")
frmWeapons:SetTitle("Weapon Selection Menu")
frmWeapons:SetSize(w,h)
frmWeapons:Center()
local btnSave = vgui.Create("DButton", frmWeapons)
btnSave:SetSize(bw, bh)
btnSave:SetText("Save (" .. input.GetKeyName(WEAPONSELECTION_KEY) .. ")")
btnSave:SetPos(w - bw - margin, h - bh - margin)
btnSave.DoClick = function()
self:Save()
end
local btnCancel = vgui.Create("DButton", frmWeapons)
btnCancel:SetSize(bw, bh)
btnCancel:SetText("Cancel")
btnCancel:SetPos(margin, h - bh - margin)
btnCancel.DoClick = function()
frmWeapons:Remove()
end
local pnlContent = vgui.Create("DPanel", frmWeapons)
pnlContent:StretchToParent(margin, 22 + margin, margin, margin*2 + bh - 2)
pnlContent.Paint = function(s, w, h) draw.RoundedBox(2, 0, 0, w, h, Color(75,75,75,255)) end
local y = padding
local hdrPrimary = vgui.Create("DPanel", pnlContent)
hdrPrimary:SetSize(cw, hh)
hdrPrimary:SetPos(padding,y)
hdrPrimary.Paint = function(s, w, h) draw.RoundedBox(2, 0, 0, w, h, Color(50,50,50,255)) draw.RoundedBox(2, 0, 0, w, h-shadow, Color(55,55,55,255)) end
local lblPrimary = vgui.Create("DLabel", hdrPrimary) lblPrimary:SetText("PRIMARY") lblPrimary:SetFont("SelectionHeader") lblPrimary:StretchToParent(5,0,0,0) lblPrimary:SetContentAlignment(4)
lblSelPrimary = vgui.Create("DLabel", hdrPrimary) lblSelPrimary:SetText("") lblSelPrimary:SetFont("SelectionCurrent") lblSelPrimary:StretchToParent(0, 0, 5, 1) lblSelPrimary:SetContentAlignment(6)
y = y + hh + padding
local grpPrimary = vgui.Create("DPanel", pnlContent)
grpPrimary:SetSize(cw, (WEAPONSELECTION_PRIMARIES_2ROWS and (gh*2-gpadding*2) or gh))
grpPrimary:SetPos(padding, y)
grpPrimary.Paint = function(s, w, h) draw.RoundedBox(2, 0, 0, w, h, Color(55,55,55,255)) draw.RoundedBox(2, 0, 0, w, h-shadow, Color(60,60,60,255)) end
mdlPrimary = vgui.Create("DPanelSelect", grpPrimary)
mdlPrimary:StretchToParent(0,0,0,0)
mdlPrimary:SetPadding(3)
mdlPrimary:SetSpacing(1)
for class,v in pairs(WEAPONSELECTION_PRIMARIES) do
local pnl = vgui.Create("DPanel")
pnl:SetSize(iconsize+2, iconsize+1)
pnl.Paint = function(s, w, h) if s.selected then draw.RoundedBox(2, 0, 0, w, h, Color(0,0,0,150)) end end
local icon = vgui.Create("DImageButton", pnl)
icon:SetPos(1,1) icon:SetSize(iconsize, iconsize)
local wep = weapons.Get(class)
if wep == nil then continue end
icon:SetImage( wep.Icon )
local name = LANG.TryTranslation(wep.PrintName or "...") icon:SetTooltip( name )
icon.class = class
icon.name = name
icon.DoClick = function()
if icon:GetParent().selected then
self:UnselectWep(1, icon.class)
else
self:SelectWep(1, icon.class)
end
end
pnl.icon = icon
if not PlayerInGroups(v, ply) and CanPlayerSpawnWith(1, ply) then
local disable = vgui.Create("DPanel", pnl)
disable:StretchToParent(0,0,0,0)
disable.Paint = function(s, w, h) draw.RoundedBox(0, 0, 0, w, h, Color(0,0,0,180)) end
local lbldisable = vgui.Create("DLabel", disable)
lbldisable:StretchToParent(0,2,0,0)
lbldisable:SetContentAlignment(5)
lbldisable:SetText([[ VIP
ONLY]])
lbldisable:SetFont("SelectionDisabled2")
end
mdlPrimary:AddItem(pnl)
end
if not CanPlayerSpawnWith(1, ply) then
local disable = vgui.Create("DPanel", grpPrimary)
disable:StretchToParent(0,0,0,0)
disable.Paint = function(s, w, h) draw.RoundedBox(0, 0, 0, w, h, Color(0,0,0,200)) end
local lbldisable = vgui.Create("DLabel", disable)
lbldisable:StretchToParent(0,0,0,0)
lbldisable:SetContentAlignment(5)
lbldisable:SetText(WEAPONSELECTION_DISABLED_MSG)
lbldisable:SetFont("SelectionDisabled")
end
y = y + gh + padding + (WEAPONSELECTION_PRIMARIES_2ROWS and (gh-gpadding*2) or 0)
local hdrSecondary = vgui.Create("DPanel", pnlContent)
hdrSecondary:SetSize(cw/2 - padding/2, hh)
hdrSecondary:SetPos(padding,y)
hdrSecondary.Paint = function(s, w, h) draw.RoundedBox(2, 0, 0, w, h, Color(50,50,50,255)) draw.RoundedBox(2, 0, 0, w, h-shadow, Color(55,55,55,255)) end
local lblSecondary = vgui.Create("DLabel", hdrSecondary) lblSecondary:SetText("SECONDARY") lblSecondary:SetFont("SelectionHeader") lblSecondary:StretchToParent(5,0,0,0) lblSecondary:SetContentAlignment(4)
lblSelSecondary = vgui.Create("DLabel", hdrSecondary) lblSelSecondary:SetText("") lblSelSecondary:SetFont("SelectionCurrent") lblSelSecondary:StretchToParent(0, 0, 5, 1) lblSelSecondary:SetContentAlignment(6)
y = y + hh + padding
local grpSecondary = vgui.Create("DPanel", pnlContent)
grpSecondary:SetSize(hdrSecondary:GetWide(), gh)
grpSecondary:SetPos(padding, y)
grpSecondary.Paint = function(s, w, h) draw.RoundedBox(2, 0, 0, w, h, Color(55,55,55,255)) draw.RoundedBox(2, 0, 0, w, h-shadow, Color(60,60,60,255)) end
mdlSecondary = vgui.Create("DPanelSelect", grpSecondary)
mdlSecondary:StretchToParent(0,0,0,0)
mdlSecondary:SetPadding(gpadding)
for class,v in pairs(WEAPONSELECTION_SECONDARIES) do
local pnl = vgui.Create("DPanel")
pnl:SetSize(iconsize+2, iconsize+1)
pnl.Paint = function(s, w, h) if s.selected then draw.RoundedBox(2, 0, 0, w, h, Color(0,0,0,150)) end end
local icon = vgui.Create("DImageButton", pnl)
icon:SetPos(1,1) icon:SetSize(iconsize, iconsize)
local wep = weapons.Get(class)
if wep == nil then continue end
icon:SetImage( wep.Icon )
local name = LANG.TryTranslation(wep.PrintName or "...") icon:SetTooltip( name )
icon.class = class
icon.name = name
icon.DoClick = function()
if icon:GetParent().selected then
self:UnselectWep(2, icon.class)
else
self:SelectWep(2, icon.class)
end
end
pnl.icon = icon
if not PlayerInGroups(v, ply) and CanPlayerSpawnWith(2, ply) then
local disable = vgui.Create("DPanel", pnl)
disable:StretchToParent(0,0,0,0)
disable.Paint = function(s, w, h) draw.RoundedBox(0, 0, 0, w, h, Color(0,0,0,180)) end
local lbldisable = vgui.Create("DLabel", disable)
lbldisable:StretchToParent(0,2,0,0)
lbldisable:SetContentAlignment(5)
lbldisable:SetText([[ VIP
ONLY]])
lbldisable:SetFont("SelectionDisabled2")
end
mdlSecondary:AddItem(pnl)
end
if not CanPlayerSpawnWith(2, LocalPlayer()) then
local disable = vgui.Create("DPanel", grpSecondary)
disable:StretchToParent(0,0,0,0)
disable.Paint = function(s, w, h) draw.RoundedBox(0, 0, 0, w, h, Color(0,0,0,200)) end
local lbldisable = vgui.Create("DLabel", disable)
lbldisable:StretchToParent(0,0,0,0)
lbl
Sorry, you need to Log In to post a reply to this thread.