Ulysses

Ulysses Stuff => General Chat & Help and Support => Topic started by: Digital Spit on July 15, 2012, 11:40:38 PM

Title: Motd White
Post by: Digital Spit on July 15, 2012, 11:40:38 PM
Hello again everyone.

I seem to be having the issue of my motd will not load from either the local file or the web page I'm pointing it to on the internet.

I've tried the help as listed here http://forums.ulyssesmod.net/index.php/topic,4787.msg20263.html#msg20263 (http://forums.ulyssesmod.net/index.php/topic,4787.msg20263.html#msg20263)

and here
http://forums.ulyssesmod.net/index.php/topic,3900.msg13792.html#msg13792 (http://forums.ulyssesmod.net/index.php/topic,3900.msg13792.html#msg13792)

I also searched google.

However I cannot find the issue to my problem. Below is a picture, though I warn you...It's pretty graphic.

(http://digitalspit.site.nfoservers.com/pictures/motd%20white.PNG)


I'm out of places to search here, all I know is last I heard it was a global problem.
Did I by chance miss an update? or am I just being a noob?
Title: Re: Motd White
Post by: MrPresident on July 16, 2012, 12:58:06 AM
This is a Garry's Mod problem...

Just wrote a panel from scratch in my gamemode I'm working on to test it. Don't even have ULX/ULib installed.

(https://dl.dropbox.com/u/5982978/Stranded/motd_broke.jpg)


edit: I tried the HTMLPanel:SetHTML control as well and it still shows a white screen. This leads me to believe that it's not so much a loading issue as it is a problem with the actual HTML panel itself. Probably webkit is broken in a recent patch to GMod.
Title: Re: Motd White
Post by: Digital Spit on July 16, 2012, 07:01:35 AM
Thank you very much with assisting me in my issue Mr President.
Title: Re: Motd White
Post by: LuaTenshi on July 18, 2012, 04:06:17 PM
I think this post is related to this...

If videos are not working remove the "http://" part, because apperently garry broke comment blocking and when you input some thing like this...

Code: [Select]
http://www.youtube.com/watch?v=OFUdKVN4ivQ
the server sees this...

Code: [Select]
http:
Other wise it should work unless your getting a plugin related error. ( Probably meaning you need to install or update flash player. )
Title: Re: Motd White
Post by: Megiddo on July 22, 2012, 07:30:25 AM
Ha ha ha. Garry broke comments? He can't even write a proper tokenizer and lexer? For shame...
Title: Re: Motd White
Post by: Assault_Trooper on July 24, 2012, 05:18:32 AM
It can be fixed by docking the HTML panel. It's the HTML:SetSize what breaks the panel and makes it white.

Code: [Select]
local Panel = vgui.Create( "DPanel" )
Panel:SetSize( 500, 500 )
Panel:Center()

local HTML = vgui.Create( "HTML", Panel )
HTML:Dock( FILL )
Title: Re: Motd White
Post by: MrPresident on July 24, 2012, 03:38:52 PM
I can confirm that this works. Thanks Assault_Trooper for providing the solution to this issue!

(https://dl.dropbox.com/u/5982978/Stranded/motd_fixed.jpg)

*edit* As it turns out I can not give Karma.. so +1 Virtual Karma for you! Maybe one of the UStaff guys can make it official. :P
Title: Re: Motd White
Post by: Wully616 on July 24, 2012, 05:42:06 PM
Would someone be able to post motdmenu.lua with this fix? I don't have a clue when it comes to lua.
Title: Re: Motd White
Post by: Stickly Man! on July 24, 2012, 06:01:12 PM
*edit* As it turns out I can not give Karma.. so +1 Virtual Karma for you! Maybe one of the UStaff guys can make it official. :P

Karma has been given, thanks Assault_Trooper! :)

Would someone be able to post motdmenu.lua with this fix? I don't have a clue when it comes to lua.

I have fixed the issue in motdmenu.lua and am finishing up some changes in XGUI, I'm going to try my hardest to get it released or at least pushed to SVN by tonight.
Title: Re: Motd White
Post by: Wully616 on July 24, 2012, 06:13:16 PM
I have fixed the issue in motdmenu.lua and am finishing up some changes in XGUI, I'm going to try my hardest to get it released or at least pushed to SVN by tonight.

That's great! No rush :)
Title: Re: Motd White
Post by: Stickly Man! on July 24, 2012, 06:49:15 PM
Whoo okay, turns out I have more to do than I thought, so we won't be pushing tonight lol. Here is the ulx.showMotdMenu() function from the motdmenu.lua that I fixed:

\ulx\lua\ulx\modules\cl\motdmenu.lua line 6

This isn't the full code, replace this with the existing ulx.showMotdMenu() function only!
Code: [Select]
function ulx.showMotdMenu()
local window = vgui.Create( "DFrame" )
if ScrW() > 640 then -- Make it larger if we can.
window:SetSize( ScrW()*0.9, ScrH()*0.9 )
else
window:SetSize( 640, 480 )
end
window:Center()
window:SetTitle( "ULX MOTD" )
window:SetVisible( true )
window:MakePopup()

local panel = vgui.Create( "DPanel", window )
local html = vgui.Create( "HTML", panel )

local button = vgui.Create( "DButton", window )
button:SetText( "Close" )
button.DoClick = function() window:Close() end
button:SetSize( 100, 40 )
button:SetPos( (window:GetWide() - button:GetWide()) / 2, window:GetTall() - button:GetTall() - 10 )

panel:SetSize( window:GetWide() - 20, window:GetTall() - button:GetTall() - 50 )
panel:SetPos( 10, 30 )
html:Dock( FILL )

if not isUrl then
html:SetHTML( file.Read( "ulx/motd.txt" ) )
else
html:OpenURL( url )
end
end

*Disclaimer! Code was not really approved by Megiddo and may be slightly changed before fix is released! But it still should work just fine :P
Title: Re: Motd White
Post by: Megiddo on July 24, 2012, 07:08:33 PM
What do you mean you can't give Karma, MrP?
Title: Re: Motd White
Post by: MrPresident on July 25, 2012, 07:34:51 AM
Not an option for me. :P I think it used to be before you guys made me a Global Mod, but I currently do not have the ability to modify a user's karma.
Title: Re: Motd White
Post by: Wully616 on July 25, 2012, 10:36:35 AM
Whoo okay, turns out I have more to do than I thought, so we won't be pushing tonight lol. Here is the ulx.showMotdMenu() function from the motdmenu.lua that I fixed:

\ulx\lua\ulx\modules\cl\motdmenu.lua line 6
Code: [Select]
function ulx.showMotdMenu()
local window = vgui.Create( "DFrame" )
if ScrW() > 640 then -- Make it larger if we can.
window:SetSize( ScrW()*0.9, ScrH()*0.9 )
else
window:SetSize( 640, 480 )
end
window:Center()
window:SetTitle( "ULX MOTD" )
window:SetVisible( true )
window:MakePopup()

local panel = vgui.Create( "DPanel", window )
local html = vgui.Create( "HTML", panel )

local button = vgui.Create( "DButton", window )
button:SetText( "Close" )
button.DoClick = function() window:Close() end
button:SetSize( 100, 40 )
button:SetPos( (window:GetWide() - button:GetWide()) / 2, window:GetTall() - button:GetTall() - 10 )

panel:SetSize( window:GetWide() - 20, window:GetTall() - button:GetTall() - 50 )
panel:SetPos( 10, 30 )
html:Dock( FILL )

if not isUrl then
html:SetHTML( file.Read( "ulx/motd.txt" ) )
else
html:OpenURL( url )
end
end

*Disclaimer! Code was not really approved by Megiddo and may be slightly changed before fix is released! But it still should work just fine :P

I tried this motdmenu.lua, it work's but only shows the clients cached motd from a previous server they have joined. I've got it set to the URL option.
I get this error in console when joining the server:
Code: [Select]
LX version 3.54 loaded.
[@ulib\client\cl_util.lua:9] Received bad RPC, invalid function (ulx.rcvMotd)!

Is that anything to do with it or am I missing something?
Title: Re: Motd White
Post by: Digital Spit on July 25, 2012, 11:10:45 AM
Thanks for the support guys!

Title: Re: Motd White
Post by: Stickly Man! on July 25, 2012, 12:13:57 PM
I tried this motdmenu.lua, it work's but only shows the clients cached motd from a previous server they have joined. I've got it set to the URL option.
I get this error in console when joining the server:
Code: [Select]
LX version 3.54 loaded.
[@ulib\client\cl_util.lua:9] Received bad RPC, invalid function (ulx.rcvMotd)!

Is that anything to do with it or am I missing something?

The code I posted wasn't the full motdmenu.lua file, it's only the one function (which is most of the file anyways). So open the old motdmenu.lua file, go to line 6 and replace only the ulx.showMotdMenu function (lines 6 to wherever the "end" is) with the code above.
Title: Re: Motd White
Post by: Wully616 on July 25, 2012, 04:17:44 PM
The code I posted wasn't the full motdmenu.lua file, it's only the one function (which is most of the file anyways). So open the old motdmenu.lua file, go to line 6 and replace only the ulx.showMotdMenu function (lines 6 to wherever the "end" is) with the code above.

Thanks Stickly, replaced the proper part and it worked. That's what I get for being  too hasty and replacing the whole file :)
Title: Re: Motd White
Post by: Megiddo on July 26, 2012, 05:13:55 PM
Not an option for me. :P I think it used to be before you guys made me a Global Mod, but I currently do not have the ability to modify a user's karma.

Odd. Do you have access now?
Title: Re: Motd White
Post by: MrPresident on July 26, 2012, 05:37:51 PM
Yep! I see the links under the karma section now.
Title: Re: Motd White
Post by: MrPresident on July 27, 2012, 03:03:42 PM
It's because they haven't fixed their ULX with the updated MOTD panel code. Until they do, it will appear white for you. You always use client code from the server over what is on your local machine.