Sziasztok!
A DayZ módban sajnos laggol egy fájl. Ami azt illeti pár sor laggoltatja az egész szervert, semelyik játékosnak sincs több fps-e mint 3-5. Ez nem más mint a survivorSystem_client.lua, aminek pár sora laggos.
statsLabel = {}
statsWindows = guiCreateStaticImage(0.775,0.1,0.225,0.22,\"images/scrollmenu_1.png\",true)
guiSetAlpha(statsWindows,0.
statsLabel[\"zombieskilled\"] = guiCreateLabel(0,0.05,1,0.15,\"Megölt zombik: 0\",true,statsWindows)
guiLabelSetHorizontalAlign (statsLabel[\"zombieskilled\"],\"center\")
guiSetFont (statsLabel[\"zombieskilled\"], \"default-bold-small\" )
setElementData(statsLabel[\"zombieskilled\"],\"identifikation\",\"zombieskilled\")
statsLabel[\"headshots\"] = guiCreateLabel(0,0.15,1,0.15,\"Fejlövések: 0\",true,statsWindows)
guiLabelSetHorizontalAlign (statsLabel[\"headshots\"],\"center\")
guiSetFont (statsLabel[\"headshots\"], \"default-bold-small\" )
setElementData(statsLabel[\"headshots\"],\"identifikation\",\"headshots\")
statsLabel[\"murders\"] = guiCreateLabel(0,0.25,1,0.15,\"Ölések: 0\",true,statsWindows)
guiLabelSetHorizontalAlign (statsLabel[\"murders\"],\"center\")
guiSetFont (statsLabel[\"murders\"], \"default-bold-small\" )
setElementData(statsLabel[\"murders\"],\"identifikation\",\"murders\")
statsLabel[\"banditskilled\"] = guiCreateLabel(0,0.35,1,0.15,\"Megölt banditák: 0\",true,statsWindows)
guiLabelSetHorizontalAlign (statsLabel[\"banditskilled\"],\"center\")
guiSetFont (statsLabel[\"banditskilled\"], \"default-bold-small\" )
setElementData(statsLabel[\"banditskilled\"],\"identifikation\",\"banditskilled\")
statsLabel[\"blood\"] = guiCreateLabel(0,0.45,1,0.15,\"Vér: 12000\",true,statsWindows)
guiLabelSetHorizontalAlign (statsLabel[\"blood\"],\"center\")
guiSetFont (statsLabel[\"blood\"], \"default-bold-small\" )
setElementData(statsLabel[\"blood\"],\"identifikation\",\"blood\")
statsLabel[\"zombies\"] = guiCreateLabel(0,0.55,1,0.15,\"Zombik (Él/Össz): 0/0\",true,statsWindows)
guiLabelSetHorizontalAlign (statsLabel[\"zombies\"],\"center\")
guiSetFont (statsLabel[\"zombies\"], \"default-bold-small\" )
setElementData(statsLabel[\"zombies\"],\"identifikation\",\"zombies\")
statsLabel[\"backpack\"] = guiCreateLabel(0,0.65,1,0.15,\"Hátizsák: None\",true,statsWindows)
guiLabelSetHorizontalAlign (statsLabel[\"backpack\"],\"center\")
guiSetFont (statsLabel[\"backpack\"], \"default-bold-small\" )
setElementData(statsLabel[\"backpack\"],\"identifikation\",\"backpack\")
statsLabel[\"name\"] = guiCreateLabel(0,0.75,1,0.15,\"Név: \"..getPlayerName(getLocalPlayer()),true,statsWindows)
guiLabelSetHorizontalAlign (statsLabel[\"name\"],\"center\")
guiSetFont (statsLabel[\"name\"], \"default-bold-small\" )
setElementData(statsLabel[\"name\"],\"identifikation\",\"name\")
function showDebugMonitor ()
if not getElementData(localPlayer,\"logedin\") then
guiSetVisible(statsWindows,false)
end
if getElementData(localPlayer,\"logedin\") then
local visible = guiGetVisible(statsWindows)
guiSetVisible(statsWindows,not visible)
end
end
bindKey(\"F5\",\"down\",showDebugMonitor)
function refreshDebug()
if getElementData(getLocalPlayer(),\"logedin\") then
guiSetText(statsLabel[\"zombieskilled\"],\"Megölt zombik: \"..getElementData(getLocalPlayer(),\"zombieskilled\"))
guiSetText(statsLabel[\"headshots\"],\"Fejlövések: \"..getElementData(getLocalPlayer(),\"headshots\"))
guiSetText(statsLabel[\"banditskilled\"],\"Megölt banditák: \"..getElementData(getLocalPlayer(),\"banditskilled\"))
guiSetText(statsLabel[\"murders\"],\"Ölések: \"..getElementData(getLocalPlayer(),\"murders\"))
guiSetText(statsLabel[\"blood\"],\"Vér: \"..getElementData(getLocalPlayer(),\"blood\"))
guiSetText(statsLabel[\"zombies\"],\"Zombik (Él/Össz): \"..(getElementData(getRootElement(),\"zombiesalive\") or 0)..\"/\"..(getElementData(getRootElement(),\"zombiestotal\") or 0))
guiSetText(statsLabel[\"temperature\"],\"Testhő: \"..math.round(getElementData(getLocalPlayer(),\"temperature\"),2)..\"°C\")
guiSetText(statsLabel[\"humanity\"],\"Emberiség: \"..math.round(getElementData(getLocalPlayer(),\"humanity\"),2))
guiSetText(statsLabel[\"name\"],\"Név: \"..getPlayerName(getLocalPlayer()))
if getElementData(getLocalPlayer(),\"brokenbone\") then
guiSetText(statsLabel[\"brokenbone\"],\"Csonttörés: van\")
else
guiSetText(statsLabel[\"brokenbone\"],\"Csonttörés: nem\")
end
if getElementData(getLocalPlayer(),\"bleeding\") >= 1 then
guiSetText(statsLabel[\"bleeding\"],\"Vérzés: van\")
elseif getElementData(getLocalPlayer(),\"bleeding\") <= 1 then
guiSetText(statsLabel[\"bleeding\"],\"Vérzés: nem\")
end
guiSetText(statsLabel[\"thirst\"],\"Szomjúság: \"..math.round(getElementData(getLocalPlayer(),\"thirst\"),2))
guiSetText(statsLabel[\"food\"],\"Éhség: \"..math.round(getElementData(getLocalPlayer(),\"food\"),2))
guiSetText(statsLabel[\"alivetime\"],\"Életben lévő idő: \"..getElementData(getLocalPlayer(),\"alivetime\"))
if getElementData(getLocalPlayer(),\"MAX_Slots\") == 8 then
guiSetText(statsLabel[\"backpack\"],\"Hátizsák: nincs\")
elseif getElementData(getLocalPlayer(),\"MAX_Slots\") == 10 then
guiSetText(statsLabel[\"backpack\"],\"Hátizsák: Czech Vest Pouch\")
elseif getElementData(getLocalPlayer(),\"MAX_Slots\") == 12 then
guiSetText(statsLabel[\"backpack\"],\"Hátizsák: Patrol Pack\")
elseif getElementData(getLocalPlayer(),\"MAX_Slots\") == 14 then
guiSetText(statsLabel[\"backpack\"],\"Hátizsák: Assault Pack (ACU)\")
elseif getElementData(getLocalPlayer(),\"MAX_Slots\") == 16 then
guiSetText(statsLabel[\"backpack\"],\"Hátizsák: Survival (ACU)\")
elseif getElementData(getLocalPlayer(),\"MAX_Slots\") == 22 then
guiSetText(statsLabel[\"backpack\"],\"Hátizsák: Alice Pack\")
elseif getElementData(getLocalPlayer(),\"MAX_Slots\") == 26 then
guiSetText(statsLabel[\"backpack\"],\"Hátizsák: British Assault Pack\")
elseif getElementData(getLocalPlayer(),\"MAX_Slots\") == 30 then
guiSetText(statsLabel[\"backpack\"],\"Hátizsák: Czech Backpack\")
elseif getElementData(getLocalPlayer(),\"MAX_Slots\") == 36 then
guiSetText(statsLabel[\"backpack\"],\"Hátizsák: Coyote Backpack\")
elseif getElementData(getLocalPlayer(),\"MAX_Slots\") == 150 then
guiSetText(statsLabel[\"backpack\"],\"Hátizsák: Rucksack Backpack\")
end
guiSetText(statsLabel[\"ping\"],\"Ping: \"..getPlayerPing(getLocalPlayer()))
end
end
setTimer(refreshDebug,100,0)
weaponAmmoTable = {
[\"M1911 tár\"] = {
{\"M1911\", 22}
},
[\"M9 SD tár\"] = {
{\"M9 SD\", 23}
},
[\"Desert Eagle tár\"] = {
{
\"Desert Eagle\",
24
}
A sorok közt lesz a hiba, valahol a 360. sor környékén warningozik (olvashatatlanul gyors, kb 3 sorról van szó).
[ Szerintem az összes guiSetText hibás, mivel sikerült elkapni egy screent. ]
Bad argument @ \'guiSetText\' [Expected gui element at argument 1, got nil