Ulysses
Ulysses Stuff => General Chat & Help and Support => Topic started 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?
-
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.
-
Thank you very much with assisting me in my issue Mr President.
-
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...
http://www.youtube.com/watch?v=OFUdKVN4ivQ
the server sees this...
http:
Other wise it should work unless your getting a plugin related error. ( Probably meaning you need to install or update flash player. )
-
Ha ha ha. Garry broke comments? He can't even write a proper tokenizer and lexer? For shame...
-
It can be fixed by docking the HTML panel. It's the HTML:SetSize what breaks the panel and makes it white.
local Panel = vgui.Create( "DPanel" )
Panel:SetSize( 500, 500 )
Panel:Center()
local HTML = vgui.Create( "HTML", Panel )
HTML:Dock( FILL )
-
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
-
Would someone be able to post motdmenu.lua with this fix? I don't have a clue when it comes to lua.
-
*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.
-
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 :)
-
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!
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
-
What do you mean you can't give Karma, MrP?
-
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.
-
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
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:
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?
-
Thanks for the support guys!
-
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:
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.
-
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 :)
-
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?
-
Yep! I see the links under the karma section now.
-
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.