Forum > Serverside Modding
GlueButtons.lua problem!
(1/2) > >>
Nortwin:
Hey Modcraft!
I am doing a remake of the LUA files (GlueXML), to customize a login screen. However, when I log in, I get this:
What have I screwed in GlueButtons.lua?
Here is my code:
http://pastebin.com/KuPWdN5T
Thank you all!
Nortwin
schlumpf:
deleted bump
stoneharry:
Line 11 index in table is nil.
if ( _G[self:GetName().."Rays"]:IsShown() ) then
_G (the global Lua storage location) does not index the name of the object & Rays. No idea what would cause that, but a temporary hack fix:
--- Code: ---SECONDS_PER_PULSE = 0.75;
function GlueButtonMaster_OnUpdate(self, elapsed) if VX_MUSICTIMER then if VX_MUSICTIMER < GetTime() then VX_ONMUSIC = true; PlayLoginMusic(); end end if (_G[self:GetName().."Rays"]) then if ( _G[self:GetName().."Rays"]:IsShown() ) then local SECONDS_PER_PULSE = 0.75; local sign = self.pulseSign; local counter; if ( self.startPulse ) then counter = 0; self.startPulse = true; sign = 1; else counter = self.pulseCounter + (sign * elapsed); if ( counter > SECONDS_PER_PULSE ) then counter = SECONDS_PER_PULSE; sign = -sign; elseif ( counter < 0) then counter = 0; sign = -sign; end end local alpha = counter / SECONDS_PER_PULSE; _G[self:GetName().."Rays"]:SetVertexColor(1.0, 1.0, 1.0, alpha);
self.pulseSign = sign; self.pulseCounter = counter; end end end --- End code ---
schlumpf:
That's not a fix. The fix would be having the object in the interface.
stoneharry:
--- Quote from: "schlumpf" ---That's not a fix. The fix would be having the object in the interface. --- End quote ---
"Hack-fix",
It will fix the error message being displayed which is the primary issue at the moment. Implementing it properly by having the non-required object displayed is not necessary but preferable.
Navigation
[0] Message Index
[#] Next page
|