• OpenAura help (We all know Conna won't do it as quickly as we'd like)
    24 replies, posted
Like many I'm having some problems with OpenAura and it will sucking along with the speedyness of the updates, any suggestions would help a load. Please don't anyone say "Oh you shouldn't of bought it anyway it's shit yadadadada" DON'T YOU THINK WE KNOW THAT NOW! Anywho here's what's going down. [IMG]http://i55.tinypic.com/wcnwqr.jpg[/IMG] When players try to create a character they get this along with this lua error: [@openaura\gamemode\openaura\derma\cl_skin.lua:283] bad argument #1 to 'pairs' (table expected, got nil)(Hook: KeyRelease) [@openaura\gamemode\openaura\derma\cl_skin.lua:283] bad argument #1 to 'pairs' (table expected, got nil) [IMG]http://i51.tinypic.com/2na5zk9.jpg[/IMG] Players are met with the same error as before, so do I just wait it out or is there a way we can fix this manually? Thanks.
Post cl_skin.lua
Uploaded it, seen as it was 778 lines. [url]http://www.mediafire.com/?844p1iil8pqrl9u[/url]
This isn't a real fix, but it should fix the errors and possibly breakages. [lua]-- Called when a menu is layed out. function SKIN:LayoutMenu(panel) if not panel then return end local w = panel:GetMinimumWidth() for k, v in pairs(panel.Panels) do v:PerformLayout(); w = math.max( w, v:GetWide() ); end; panel:SetWide(w); local y = 0 for k, v in pairs(panel.Panels) do v:SetWide(w); v:SetPos(0, y); v:InvalidateLayout(true); y = y + v:GetTall(); end; panel:SetTall(y); end;[/lua] [editline]28th May 2011[/editline] (line 280 - 301)
switch the panel.Panels with panel:GetItems() then replace line 292 with y = y + v:GetTall() + 2; to fix a scrollbar issue [editline]28th May 2011[/editline] basically, replace the old SKIN:LayoutMenu function with this [lua]function SKIN:LayoutMenu(panel) local w = panel:GetMinimumWidth() for k, v in pairs(panel:GetItems()) do v:PerformLayout(); w = math.max( w, v:GetWide() ); end; panel:SetWide(w); local y = 0 for k, v in pairs(panel:GetItems()) do v:SetWide(w); v:SetPos(0, y); v:InvalidateLayout(true); y = y + v:GetTall() + 2; end; panel:SetTall(y); end;[/lua]
Will test it now and let you know. [editline]28th May 2011[/editline] Works like a charm, thank you guys ever so bloody much <3
no problem
[QUOTE=Knallex;30091665]no problem[/QUOTE] Just found another small thing, same problem. When equipping Armor [phasefour\gamemode\schema\cl_hooks.lua:101] attempt to get length of field 'Panels' (a nil value) [ When equipping weapons [phasefour\gamemode\schema\cl_hooks.lua:80] attempt to get length of field 'Panels' (a nil value) N Uploaded the cl_hook [url]http://www.mediafire.com/?a11t11mzdd89r9c[/url]
Same thing again by the looks of it Line 80 and 101 are both the same: [lua] local panel = menuPanel.Panels[#menuPanel.Panels]; [/lua] Change each of them to [lua] local panels = menuPanel:GetItems() local panel = panels[#panels]; [/lua]
[QUOTE=Toneo;30095970]Same thing again by the looks of it Line 80 and 101 are both the same: [lua] local panel = menuPanel.Panels[#menuPanel.Panels]; [/lua] Change each of them to [lua] local panels = menuPanel:GetItems() local panel = panels[#panels]; [/lua][/QUOTE] Fixed it, thank you. If I find anything else I will post it here. Again many thanks you're a life saver.
I have a similar error with openaura when I try to use items, it sais [openaura\gamemode\openaura\sh_core.lua:1526] attempt to get length of field 'Panels' (a nil value)(Hook: KeyRelease)] Here is my sh_core: [url]http://www.mediafire.com/?ac53vl7zag51tgm[/url]
EDIT: Fixed
What? XD It happens when you pick up an item -__-
FIXED
Hi all. I also have some troubles in [openaura\gamemode\openaura\sh_core.lua:2251] attempt to get length of field 'Panels' (a nil value)(Hook: HUDDrawScoreBoard) when player presses F1. There is that file: [url]http://www.mediafire.com/?9xd2k8l13f3ldd7[/url] FIXED.
Hmmm
[QUOTE=Dralker;30136012]Hi all. I also have some troubles in [openaura\gamemode\openaura\sh_core.lua:2251] attempt to get length of field 'Panels' (a nil value)(Hook: HUDDrawScoreBoard) when player presses F1. There is that file: [url]http://www.mediafire.com/?9xd2k8l13f3ldd7[/url] FIXED.[/QUOTE] Wondering, how you fixed it.
[QUOTE=Moja;30242736]Wondering, how you fixed it.[/QUOTE] Read the code?
Just change "local panel = panels[#panels];" to "local panel = nil;" in both situations.
late getting onto this thread, but when trying to work with PCmod 2.0.4 im getting this error [addons\pcmod2\lua\pcmod\cl_gui.lua:275] attempt to get length of field 'Panels' (a nil value) any ideas as to how to fix?
Duh having such an error that wont even let me start the server. [@gamemode\openaura\libraries\sh_plugin.lua:147] Infinite Loop Detected! And here is the 147 [lua]local cachedHooks = self:CacheHook(name);[/lua] And the whole function is [lua]-- A function to call the cached hook. function openAura.plugin:CallCachedHook(name, callGamemodeHook, ...) local cachedHooks = self:CacheHook(name); for k, v in ipairs(cachedHooks) do local value = v.Callback(v.plugin, ...); if (value != nil) then return value; end; end; if (openAura.schema) then if (openAura.schema[name] and type( openAura.schema[name] ) == "function") then local value = openAura.schema[name](openAura.schema, ...); if (value != nil) then return value; end; end; end; if (callGamemodeHook) then if (openAura[name] and type( openAura[name] ) == "function") then local value = openAura[name](openAura, ...); if (value != nil) then return value; end; end; end; end;[/lua]
Now I know this thread is dead but hey, it's for openAura. The OA I dled from openAuth seems to be broken, in animations and /fallover, anyone know why? No errors, for some reason.
[QUOTE=colelang11;30845156]late getting onto this thread, but when trying to work with PCmod 2.0.4 im getting this error [addons\pcmod2\lua\pcmod\cl_gui.lua:275] attempt to get length of field 'Panels' (a nil value) any ideas as to how to fix?[/QUOTE] find [CODE][HTML]local pn = dm.Panels[ #dm.Panels ][/HTML][/CODE] and change in [CODE][HTML] local panels = dm:GetItems() local pn = panels[#panels];[/HTML][/CODE]
I need some help with OpenAura [url]http://imageshack.us/photo/my-images/6/oafeil.png/[/url]
Sorry, you need to Log In to post a reply to this thread.