Author Topic: Motd White  (Read 8142 times)

0 Members and 3 Guests are viewing this topic.

Offline Digital Spit

  • Jr. Member
  • **
  • Posts: 79
  • Karma: 1
Motd White
« 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

and here
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.




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?

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: Motd White
« Reply #1 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.




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.
« Last Edit: July 16, 2012, 01:02:21 AM by MrPresident »

Offline Digital Spit

  • Jr. Member
  • **
  • Posts: 79
  • Karma: 1
Re: Motd White
« Reply #2 on: July 16, 2012, 07:01:35 AM »
Thank you very much with assisting me in my issue Mr President.

Offline LuaTenshi

  • Hero Member
  • *****
  • Posts: 545
  • Karma: 47
  • Just your ordinary moon angel!
    • Mirai.Red
Re: Motd White
« Reply #3 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. )
« Last Edit: July 18, 2012, 04:08:07 PM by HeLLFox_15 »
I cry every time I see that I am not a respected member of this community.

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: Motd White
« Reply #4 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...
Experiencing God's grace one day at a time.

Offline Assault_Trooper

  • Newbie
  • *
  • Posts: 20
  • Karma: 1
    • Trooper's Gaming Servers
Re: Motd White
« Reply #5 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 )

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: Motd White
« Reply #6 on: July 24, 2012, 03:38:52 PM »
I can confirm that this works. Thanks Assault_Trooper for providing the solution to this issue!



*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

Offline Wully616

  • Jr. Member
  • **
  • Posts: 64
  • Karma: 10
    • WullysGamers
Re: Motd White
« Reply #7 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.
[/url]

Offline Stickly Man!

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 1270
  • Karma: 164
  • What even IS software anymore?
    • XGUI
Re: Motd White
« Reply #8 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.
Join our Team Ulysses community discord! https://discord.gg/gR4Uye6

Offline Wully616

  • Jr. Member
  • **
  • Posts: 64
  • Karma: 10
    • WullysGamers
Re: Motd White
« Reply #9 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 :)
[/url]

Offline Stickly Man!

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 1270
  • Karma: 164
  • What even IS software anymore?
    • XGUI
Re: Motd White
« Reply #10 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
« Last Edit: July 31, 2012, 09:09:30 AM by Stickly Man! »
Join our Team Ulysses community discord! https://discord.gg/gR4Uye6

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: Motd White
« Reply #11 on: July 24, 2012, 07:08:33 PM »
What do you mean you can't give Karma, MrP?
Experiencing God's grace one day at a time.

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: Motd White
« Reply #12 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.

Offline Wully616

  • Jr. Member
  • **
  • Posts: 64
  • Karma: 10
    • WullysGamers
Re: Motd White
« Reply #13 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?
[/url]

Offline Digital Spit

  • Jr. Member
  • **
  • Posts: 79
  • Karma: 1
Re: Motd White
« Reply #14 on: July 25, 2012, 11:10:45 AM »
Thanks for the support guys!