This started happening last Friday, I host a Jailbreak dedicated server, and i think i messed up something because i can't make my MOTD show using ULX or even a custom URL.
I just wanted to set up a MOTD that showed the rules on my server. Does anyone know how to fix this?
Please provide the file/url you are trying to use.
to change the ulx motd, modify the ulx_motd file in garrysmod/addons/ulx/ulx_motd.txt
[QUOTE=Dinnanid;45319147]Please provide the file/url you are trying to use.[/QUOTE]
I'm tring to link my Steam group: [url]http://steamcommunity.com/groups/marmitabr/discussions/0/45350245290221078/[/url]
This is my MOTD file, I messed up big, i saw some post here on facepunch that I needed the source code from the webpage I wanted to display in the URL.
Anyway, here's my current MOTD:
[CODE]<!DOCTYPE html>
<html>
<head>
<title>
-REGRAS DO SERVIDOR- :: MarmitaBR </title>
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
<link href="http://steamcommunity-a.akamaihd.net/public/shared/css/buttons.css?v=2187195380" rel="stylesheet" type="text/css" >
<link href="http://steamcommunity-a.akamaihd.net/public/shared/css/shared_global.css?v=922269276" rel="stylesheet" type="text/css" >
<link href="http://steamcommunity-a.akamaihd.net/public/css/globalv2.css?v=1204642556" rel="stylesheet" type="text/css" >
<link href="http://steamcommunity-a.akamaihd.net/public/css/skin_1/calendar.css?v=3711880088" rel="stylesheet" type="text/css" >
<link href="http://steamcommunity-a.akamaihd.net/public/css/skin_1/modalContent.css?v=285919421" rel="stylesheet" type="text/css" >
<link href="http://steamcommunity-a.akamaihd.net/public/css/skin_1/forums.css?v=2344523152" rel="stylesheet" type="text/css" >
<link href="http://steamcommunity-a.akamaihd.net/public/css/skin_1/groupv2.css?v=1637242841" rel="stylesheet" type="text/css" >
<link href="http://steamcommunity-a.akamaihd.net/public/css/skin_1/header.css?v=2308222011" rel="stylesheet" type="text/css" >
<script type="text/javascript" src="http://steamcommunity-a.akamaihd.net/public/javascript/prototype-1.7.js?v=1689141782&l=portuguese"></script>
<script type="text/javascript" src="http://steamcommunity-a.akamaihd.net/public/javascript/scriptaculous/scriptaculous.js?load=effects,controls,slider,dragdrop&v=2401837926&l=portuguese"></script>
<script type="text/javascript" src="http://steamcommunity-a.akamaihd.net/public/javascript/global.js?v=3140245157&l=portuguese"></script>
<script type="text/javascript" src="http://steamcommunity-a.akamaihd.net/public/javascript/jquery-1.11.1.min.js?v=2819955032&l=portuguese"></script>
<script type="text/javascript" src="http://steamcommunity-a.akamaihd.net/public/shared/javascript/tooltip.js?v=795698382&l=portuguese"></script>
<script type="text/javascript" src="http://steamcommunity-a.akamaihd.net/public/shared/javascript/shared_global.js?v=880841400&l=portuguese"></script>
<script type="text/javascript">$J = jQuery.noConflict();
if ( typeof JSON != 'object' || !JSON.stringify || !JSON.parse ) { document.write( "<scr" + "ipt type=\"text\/javascript\" src=\"http:\/\/steamcommunity-a.akamaihd.net\/public\/javascript\/json2.js?v=1833709312&l=portuguese\"><\/script>\n" ); };
</script><script type="text/javascript" src="http://steamcommunity-a.akamaihd.net/public/javascript/modalv2.js?v=1486498018&l=portuguese"></script>
<script type="text/javascript" src="http://steamcommunity-a.akamaihd.net/public/javascript/calendar.js?v=2046767628&l=portuguese"></script>
<script type="text/javascript" src="http://steamcommunity-a.akamaihd.net/public/javascript/group.js?v=1555525991&l=portuguese"></script>
<script type="text/javascript" src="http://steamcommunity-a.akamaihd.net/public/javascript/forums.js?v=2804443180&l=portuguese"></script>
<script type="text/javascript" src="http://steamcommunity-a.akamaihd.net/public/javascript/modalContent.js?v=2619669445&l=portuguese"></script>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-33779068-1']);
_gaq.push(['_setSampleRate', '0.4']);
_gaq.push(['_setCustomVar', 1, 'Logged In', 'false', 2]);
_gaq.push(['_setCustomVar', 2, 'Client Type', 'External', 2]);
_gaq.push(['_setCustomVar', 3, 'Cntrlr', 'groups', 3]);
_gaq.push(['_setCustomVar', 4, 'Method', "groups\/discussions", 3]);
_gaq.push(['_trackPageview']);
_gaq.push(['_setSessionCookieTimeout', 900000]);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</head>
<body class="flat_page">
<div class="pagecontent ">
<!-- header bar, contains info browsing user if logged in -->
<div id="global_header">
<div class="content">
<div class="logo">
<span id="logo_holder">
<a href="http://store.steampowered.com/">
<img src="http://steamcommunity-a.akamaihd.net/public/images/header/globalheader_logo.png" width="176" height="44" border="0" alt="Logo do Steam" />
</a>
</span>
<!--[if lt IE 7]>
<style type="text/css">
#logo_holder img { filter:progid:DXImageTransform.Microsoft.Alpha(opacity=0); }
#logo_holder { display: inline-block; width: 176px; height: 44px; filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='http://steamcommunity-a.akamaihd.net/public/images/header/globalheader_logo.png'); }
</style>
<![endif]-->
</div>
<div style="position: absolute; left: 200px;" id="supernav">
<a class="menuitem supernav" href="http://store.steampowered.com/" data-tooltip-content="
<a class="submenuitem" href="http://store.steampowered.com/">Em destaque</a>
<a class="submenuitem" href="http://store.steampowered.com/news/">Notícias</a>
<a class="submenuitem" href="http://store.steampowered.com/recommended/">Recomendados</a>
<a class="submenuitem" href="http://steamcommunity.com/my/wishlist/">Lista de Desejos</a>
<a class="submenuitem" href="http://store.steampowered.com/stats/">ESTATÍSTICAS</a>
">
LOJA </a>
<a class="menuitem supernav" style="display: block" href="http://steamcommunity.com/" data-tooltip-content="
<a class="submenuitem" href="http://steamcommunity.com/">Início</a>
<a class="submenuitem" href="http://steamcommunity.com/discussions/">DISCUSSÕES</a>
<a class="submenuitem" href="http://steamcommunity.com/workshop/">Workshop</a>
<a class="submenuitem" href="http://steamcommunity.com/greenlight/">Greenlight</a>
<a class="submenuitem" href="http://steamcommunity.com/market/">Mercado</a>
">
Comunidade </a>
<a class="menuitem" href="http://store.steampowered.com/about/">
SOBRE </a>
<a class="menuitem" href="http://support.steampowered.com/">
SUPORTE </a>
</div>
<script type="text/javascript">
jQuery(document).ready(function($) {
$('.tooltip').v_tooltip();
$('.supernav').v_tooltip({'location':'bottom', 'tooltipClass': 'supernav_content', 'offsetY':-4, 'offsetX': 1, 'horizontalSnap': 4, 'tooltipParent': '#supernav', 'correctForScreenSize': false});
});
</script> <div id="global_actions">
<div id="global_action_menu">
<div class="header_installsteam_btn header_installsteam_btn_green">
<div class="header_installsteam_btn_leftcap"></div>
<div class="header_installsteam_btn_rightcap"></div>
<a class="header_installsteam_btn_content" href="http://store.steampowered.com/about/">
Instalar o Steam </a>
</div>
<a class="global_action_link" href="https://steamcommunity.com/login/home/?goto=groups%2Fmarmitabr%2Fdiscussions%2F0%2F45350245290221078%2F">Iniciar Sessão</a>
|
<span class="pulldown global_action_link" id="language_pulldown" onclick="ShowMenu( this, 'language_dropdown', 'right' );">idioma</span>
<div class="popup_block" id="language_dropdown" style="display: none;">
<div class="shadow_ul"></div><div class="shadow_top"></div><div class="shadow_ur"></div><div class="shadow_left"></div><div class="shadow_right"></div><div class="shadow_bl"></div><div class="s
[QUOTE=Thicoo;45319669]I'm tring to link my Steam group: [url]http://steamcommunity.com/groups/marmitabr/discussions/0/45350245290221078/[/url]
This is my MOTD file, I messed up big, i saw some post here on facepunch that I needed the source code from the webpage I wanted to display in the URL.
Anyway, here's my current MOTD:
-snip-
[editline]7th July 2014[/editline]
I know how and where to put it, the problem is that even using motdfile ulx_motd.txt on the console doesn't help anymore, MOTD doesn't display to people when they join my server[/QUOTE]
Is "ulx showMotd" set to 1?
The tell you the truth, making your own MOTD with derma and such is better that ulx. This is because its ugly IMO. If you do decide to make your own, just hook it OnInitalSpawn.
[QUOTE=Dinnanid;45321362]Is "ulx showMotd" set to 1?[/QUOTE]
Idk, how can I know? Thanks for the replies and sorry, i'm new to this.
[editline]7th July 2014[/editline]
[QUOTE=helix757;45321591]The tell you the truth, making your own MOTD with derma and such is better that ulx. This is because its ugly IMO. If you do decide to make your own, just hook it OnInitalSpawn.[/QUOTE]
If only I knew how to do such thing
[QUOTE=Thicoo;45322317]Idk, how can I know? Thanks for the replies and sorry, i'm new to this.[/quote]
Type ulx showMotd in console and see what it is set to.
[QUOTE=code_gs;45322345]Type ulx showMotd in console and see what it is set to.[/QUOTE]
It's set to 0, is that the issue?
[QUOTE=Thicoo;45330617]It's set to 0, is that the issue?[/QUOTE]
Set it to 1 or do !menu in-game go to the settings tab in the ulx xgui menu and there should be an motd list option and make sure "show motd" is ticked
[QUOTE=Skate;45330737]Set it to 1 or do !menu in-game go to the settings tab in the ulx xgui menu and there should be an motd list option and make sure "show motd" is ticked[/QUOTE]
So.. I did what you said, now the ulx_motd is set to 1 and the box is ticked, however, the MOTD is still missing and i can't understand why. Also, whenever I exit my server, the option that i ticked in the ULX dissapears.
[QUOTE=Skate;45330737]Set it to 1 or do !menu in-game go to the settings tab in the ulx xgui menu and there should be an motd list option and make sure "show motd" is ticked[/QUOTE]
Anyone alive? I could really use some help
You could use a HUDPaint hook on the client side which runs one time...
[code] hook.Add( "HUDPaint", "DisplaySomething:HUDPaint", function( )
// Helper Variable
local _p = LocalPlayer( );
// Wait till player is valid to itself
if ( !IsValid( _p ) ) then return; end
// Create VGUI:
local _panel = vgui.Create( "DFrame" );
_panel:SetSize( 400, 400 );
_panel:Center( );
_panel:MakePopup( );
// Only need this hook once to verify player is in game
hook.Remove( "HUDPaint", "DisplaySomething:HUDPaint" );
end );[/code]
It will open the panel when the player is fully in game. That is clientside.
Alternatively, instead of opening it there, you could do a hook.Call( "MOTD", GAMEMODE );
[url]https://dl.dropboxusercontent.com/u/26074909/tutoring/vgui/motd.lua.html[/url]
If you want the server involved ( not necessary ) : [url]https://dl.dropboxusercontent.com/u/26074909/tutoring/vgui/display_vgui_on_initial_spawn.lua.html[/url]
[url]https://dl.dropboxusercontent.com/u/26074909/tutoring/vgui/understanding_hardcoding_of_screensizes.lua.html[/url]
All of these aren't "best" solutions, but they aren't the worst of all either. I'd recommend ditching ULX.
Sorry, you need to Log In to post a reply to this thread.