ULX

Author Topic: motd  (Read 12183 times)

0 Members and 1 Guest are viewing this topic.

Offline Thelol182

  • Newbie
  • *
  • Posts: 8
  • Karma: 0
motd
« on: January 29, 2011, 07:14:27 AM »
Ive tried to find this... ive been using google to.. plz help me how do i make a Forum in the MOTD thanks

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: motd
« Reply #1 on: January 29, 2011, 08:38:53 AM »
The motd in Garry's mod (or any source game) won't do file hosting. You can only send straight html as a presentation. Images/etc must be linked to a server host.
However, SVN of ulx will allow pointing to a URL where you run a forum.

On your server, go to your <gmod>/data/ulx/config.txt
One of the first editable items is 'ulx showotd', make sure it's set to 1
The next line, motdfile, change from the ulx_motd.txt to "http://your.url.com/"
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Thelol182

  • Newbie
  • *
  • Posts: 8
  • Karma: 0
Re: motd
« Reply #2 on: January 29, 2011, 08:45:04 AM »
i dont got ulx in data folder only "ulx_logs" got ulx in addons only .. running version 3.40 downloaded from here

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: motd
« Reply #3 on: January 29, 2011, 09:15:57 AM »
Ah, you're using our (old) release.
I recommend using SVN. It's a total command structure rewrite, extremely stable at this point, has a much more impressive GUI menu, and the developers who visit here who write plugins for ULX or ULib have been using it's new command system.

See http://forums.ulyssesmod.net/index.php/topic,3092.0.html
You'll need both SVN of ULib and ULX.
Before going SVN, I recommand deleting your gmod/addons/ulib and ulx folders
You'll need to shut down your server before editing/deleting addons folders.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Thelol182

  • Newbie
  • *
  • Posts: 8
  • Karma: 0
Re: motd
« Reply #4 on: January 29, 2011, 09:34:53 AM »
aight uploading them both now to server thanks :)
« Last Edit: January 29, 2011, 09:38:56 AM by Thelol182 »

Offline Thelol182

  • Newbie
  • *
  • Posts: 8
  • Karma: 0
Re: motd
« Reply #5 on: January 29, 2011, 09:48:37 AM »
ok ive tried editing that but it stills show me a other website.... o.O

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: motd
« Reply #6 on: January 29, 2011, 01:20:37 PM »
Did you remove the old Ulib and ulx folders first?
What is it showing?
What URL are you putting in?
You don't put what I said as an example, you put in the server address you want to show when people join. Your URL.
Like if you wanted to show our forums, you'd do
Code: [Select]
ulx showmotd 1
motdfile "http://www.ulyssesmod.net"

Make sure you aren't editing files in your addons/ulx folder. Go straight to gmod/data/ulx/configs.txt
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Thelol182

  • Newbie
  • *
  • Posts: 8
  • Karma: 0
Re: motd
« Reply #7 on: January 29, 2011, 04:22:03 PM »
yeah and yeah thats how i did, btw new ulx dosent it got a menu? :o tried to open it unknown command :/ ,  site im trying to get to is "http://TsMgcc.com"

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: motd
« Reply #8 on: January 29, 2011, 04:41:17 PM »
When you say 'it loaded another page', what did it load?
After joining your server, type motdfile in server and game console.
If it says something different, you may have a conflicting mod or setting. Make sure you don't have your Source /settings/server.cfg set for a motdfile parameter..
Also, I've no idea if Source's webkit handles redirects. (Not a limitation of ULX, we use Gmod's(Source's) webkit)
The link you gave for the forum actually redirects to a totally separate URL.
Grab _that_ url and paste it directly in if the above motdfile parameter doesn't work.

Also, yes it's got a menu, Xgui is now included. (claps/applause)
Stickly man, Megiddo, can "ulx menu" not open the xgui menu anymore? Has the menu startup changed to "xgui"?
What error are you getting when you type "ulx menu".
Check both server and game console for error.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: motd
« Reply #9 on: January 30, 2011, 06:52:30 PM »
Stickly man, Megiddo, can "ulx menu" not open the xgui menu anymore? Has the menu startup changed to "xgui"?

I guess it doesn't, Stickly's adding it in though. :)
Experiencing God's grace one day at a time.

Offline Thelol182

  • Newbie
  • *
  • Posts: 8
  • Karma: 0
Re: motd
« Reply #10 on: January 31, 2011, 09:14:06 AM »
well i made the Motd into rules instead couldn't get the site to work in Motd not that imoportant anyway thought it would look better. But is there a way to have "accept" and "decline" on the Motd sense im using it for rules, example Accept after like a certain amount of time or Decline and be kicked thanks,

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: motd
« Reply #11 on: January 31, 2011, 02:27:39 PM »
Not in ULX by default.
Check out/search our developer and suggestion forum areas. I think someone posted code there a long time ago. If not like you asked, then at least a timed Ok button

BTW, no, we probably won't add it to ULX by default, though we'll never say no to an addon.
Why? Pretty much uselss. I know of no one that wouldn't just click 'accept' all the time and get kicked later on anyway for breaking rules listed.

« Last Edit: January 31, 2011, 02:29:26 PM by JamminR »
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Thelol182

  • Newbie
  • *
  • Posts: 8
  • Karma: 0
Re: motd
« Reply #12 on: February 01, 2011, 03:34:15 AM »
yeah true ^^ im new to ulx im gonna learn more ebfore i start with addons xD