ULX

Author Topic: Problem with the ULX MOTD  (Read 8258 times)

0 Members and 1 Guest are viewing this topic.

Offline Polishhotdog

  • Newbie
  • *
  • Posts: 9
  • Karma: 0
Problem with the ULX MOTD
« on: August 08, 2010, 05:08:42 PM »
Hello, i'm currently running a Gmod server with the gamemode Trouble in Terrorist Town, it is also running the ULX admin mod. I've been trying to get the MOTD working but it simply refuses to work. I've edited the ulx_motd file to have my MOTD in it but when on the server typing !motd wont make it show up. I also want it to show up as soon as someone joins the server. I've alos tried adding the motdfile command and set it to "motdfile ulx_motd"

Also, here is a link to the MOTD, i might've gotten the HTML wrong: http://pastebin.com/wJ3Y3xk1

Offline Stickly Man!

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 1270
  • Karma: 164
  • What even IS software anymore?
    • XGUI
Re: Problem with the ULX MOTD
« Reply #1 on: August 08, 2010, 05:16:22 PM »
Hmm, worked fine for me-- Are you sure you stuck your ulx_motd.txt file in the garrysmod/ folder and NOT in garrysmod/addons/ulx/?
And are you sure you set ulx_showMotd (on the server) to 1?
Do you get any server/client console errors when you type !motd?
Join our Team Ulysses community discord! https://discord.gg/gR4Uye6

Offline Polishhotdog

  • Newbie
  • *
  • Posts: 9
  • Karma: 0
Re: Problem with the ULX MOTD
« Reply #2 on: August 08, 2010, 05:29:18 PM »
I set showmotd to 1 and when i type !motd nothing happens. There are 2 MOTD files though..

Theres on in Garrysmod/ called ulx_motd.txt
and another in Garrysmod/addons/ULX/ called ulx_motd.txt

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Problem with the ULX MOTD
« Reply #3 on: August 08, 2010, 06:44:59 PM »
Uh, just reviewing your html quickly, yes, it's broken. Badly.

Now, as to whether or not that would affect it from showing during a non-Sandbox custom made gamemode, I'm not sure.
I've had no experience with Steam's new webkit (nor am I even sure Gmod is using yet, I think it is).

Should really check your server console for errors when players join or run "ulx motd" from client console or "!motd" from chat.
Check all three.

"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Fuskare01

  • Newbie
  • *
  • Posts: 9
  • Karma: 0
    • F16Gaming
Re: Problem with the ULX MOTD
« Reply #4 on: August 09, 2010, 08:00:40 AM »
Your HTML is really messy :P
Looked through it and here's a version that should work:
http://pastebin.com/srM69sWD
Read the commented sections (<!-- -->) for suggestions.

Also, this page might help: http://www.w3schools.com/html/default.asp
And learning CSS is very good for styling your pages: http://www.w3schools.com/css/default.asp
(Note that external stylesheets doesn't seem to work with the motd.txt, try a <meta name="refresh" content="0;myRealPage.html" />)
Programmers are in a race with the Universe to create bigger and better idiot-proof programs, while the Universe is trying to create bigger and better idiots. So far the Universe is winning. //Anon

Currently learning C# and PHP

Offline Polishhotdog

  • Newbie
  • *
  • Posts: 9
  • Karma: 0
Re: Problem with the ULX MOTD
« Reply #5 on: August 13, 2010, 10:01:38 PM »
Your HTML is really messy :P
Looked through it and here's a version that should work:
http://pastebin.com/srM69sWD
Read the commented sections (<!-- -->) for suggestions.

Also, this page might help: http://www.w3schools.com/html/default.asp
And learning CSS is very good for styling your pages: http://www.w3schools.com/css/default.asp
(Note that external stylesheets doesn't seem to work with the motd.txt, try a <meta name="refresh" content="0;myRealPage.html" />)

I tried your MOTD in the link and it still isnt working, i called it motd.txt and placed it in server/garrysmod/ and its still not working.

PS. I wasnt the one who made the HTML, one of my friends did.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Problem with the ULX MOTD
« Reply #6 on: August 14, 2010, 07:50:26 AM »
For ulx to see it, name it ulx_motd.txt and place it in the gmod root.
Also, if you're running a listen server, I'm pretty sure the host doesn't see it when starting up the server/joining.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Polishhotdog

  • Newbie
  • *
  • Posts: 9
  • Karma: 0
Re: Problem with the ULX MOTD
« Reply #7 on: August 14, 2010, 06:01:34 PM »
I renamed the file to ulx_motd.txt and also placed ulx_ShotMotd "1" into the servers CFG but it's still not showing up. Is it something to do with the gamemode?

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Problem with the ULX MOTD
« Reply #8 on: August 14, 2010, 08:18:16 PM »
Possibly, easiest way to test is start a game in sandbox mode.
Other than that, I'm lost at this point.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Polishhotdog

  • Newbie
  • *
  • Posts: 9
  • Karma: 0
Re: Problem with the ULX MOTD
« Reply #9 on: August 14, 2010, 10:20:18 PM »
Well i spoke to a friend who also has a server running ULX and apparently he told me that the version of ULX that i had didn't support TTT Or something like that, so he changed it to the SVN version and guess what, It works now! :D

So the problem was an outdated version of ULX. Thanks for all of the help though.