OpenAura help (We all know Conna won't do it as quickly as we'd like)

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.

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)

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.

http://www.mediafire.com/?844p1iil8pqrl9u

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

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
http://www.mediafire.com/?a11t11mzdd89r9c

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]

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: http://www.mediafire.com/?ac53vl7zag51tgm

EDIT: Fixed

You probably tried to advdupe an item or something else abusive.

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: http://www.mediafire.com/?9xd2k8l13f3ldd7

FIXED.

Hmmm

Wondering, how you fixed it.

Read the code?

Just change “local panel = panels[#panels];” to “local panel = nil;” in both situations.