ULX

Author Topic: Another MOTD Problem.  (Read 6351 times)

0 Members and 1 Guest are viewing this topic.

Offline Ascension

  • Newbie
  • *
  • Posts: 5
  • Karma: 0
Another MOTD Problem.
« on: January 24, 2012, 06:47:29 PM »
Basically, regardless of what my ulx_motd.txt contains, the in-game motd will contain the same text.
This is what it says in game:
#Build

1. Listen to administrators. (Higher rank means more authority)

2. Do not mess with other peoples unless they want you to.

3. Do not DeathMatch people who do not wish to be deathmatched.

4. Do not attempt to crash the server or minge in any way. ( This includes prop minge and tool minge )

5. As long as you aren't bothering someone, you are not at fault.

6. Do not harass others.

7. Do not hack.

8. Do not camp spawn or spawn kill.
- Ascension & Gregory

Here's what the ulx_motd.txt says:


<html>
<body>


<div style="text-align: center;">



<div style="width: 70%; margin: 0px auto; border: 5px solid #ccc; background-color: #eee; padding: 10px; font-size: 12px; font-family: Tahoma; margin-top: 30px; color: #222; text-align: left;">

<div style="font-size: 30px; font-family: impact; width: 100%; margin-bottom: 20px;">Ascension RP</div>

---------------------------------------------------------------------------------------------------------------</br>

<div style="text-allign: center;">Global Rules</br>

1. Listen to administrators. (Higher rank means more authority)</br>

2. Do not RDM.</br>

3. Do not Metagame.</br>

4. Do not break NLR.</br>

5. Do not prop minge.</br>

6. Do not spam text or mic.</br>

7. After death, you must wait atleast 3 minutes before returing to the spot of which you died.</br>

8. Do not break public microwaves.</br>

9. You may not have more than 3 doors, be it fading or tool, per entrance.</br>

---------------------------------------------------------------------------------------------------------------</br>

<div style="text-allign: center;">Class-Specific Rules</br>

Hobo: Must build bases within reasonable size.</br>

CP: Do not random arrest. Do not arrest people without a reason. Must listen to Chief.</br>

Gun Dealer: May be private as long as one Gun Dealer is selling to public.</br>

Cook: At least one public microwave must be available. However, not every cook must have one publicly available.</br>

Hitman: Minimum of 1000$ per hit.</br>

Body Guard: Do not use excessive force unless target is in danger. Do not stunstick abuse.</br>

Thief/Hacker: May only use lethal force in an unprovoked self-defense situation.</br>

Gangster: Must listen to mob boss. Do not kill cops for being cops. This is RDM. Must have atleast 3 members to raid.</br>

---------------------------------------------------------------------------------------------------------------</br>

These rules may change at any time for any reason. Check back frequently as ignorance is not an excuse.</br>

---------------------------------------------------------------------------------------------------------------</br>
<div style="width: 100%; text-align: center; margin: 24px; font-weight: bold;">- Ascension & Gregory</div>

</div>

</div>


</body>
</html>


I have tried everything from a fresh install of ulx and ulib from the svn tonight, to deleting the cache and removing all other ulx related addons. I also tried searching through sv.db and cl.db.

If it helps, I am running darkrp 2.4.2 with FADMIN.

Thanks for your time in advance.

Offline Aaron113

  • Hero Member
  • *****
  • Posts: 803
  • Karma: 102
Re: Another MOTD Problem.
« Reply #1 on: January 24, 2012, 07:12:38 PM »
Where is this ulx_motd.txt file that you're editing?

Offline Ascension

  • Newbie
  • *
  • Posts: 5
  • Karma: 0
Re: Another MOTD Problem.
« Reply #2 on: January 24, 2012, 07:20:10 PM »
addons/ulx/ulx_motd.txt

Also, it's worth knowing that there are two separate servers under one FTP.
The build server's MOTD works fine. The DarkRP one does not.

Offline Aaron113

  • Hero Member
  • *****
  • Posts: 803
  • Karma: 102
Re: Another MOTD Problem.
« Reply #3 on: January 24, 2012, 07:56:49 PM »
Ahh, nvm... I was thinking that the motd was a txt file written into your data folder (It's been a while since I've really used ULX).

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Another MOTD Problem.
« Reply #4 on: January 24, 2012, 08:21:33 PM »
First, never edit Ulysses project files within /addons ... though it's possible some other addons have you edit configs there/etc, addons folder is virtual, we never recommend you do it for our projects. Updating would overwrite them.
Second, from your server console, type 'motdfile'.. I believe thats the variable you need to see where it points.
Modify the motdfile variable to point to gmod_root/this_file (after copying ours out of addons of course)
or, to keep it 'consistent so you know where it is', copy it to /data/ulx/<this file> and point the motdfile variable there.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Ascension

  • Newbie
  • *
  • Posts: 5
  • Karma: 0
Re: Another MOTD Problem.
« Reply #5 on: January 24, 2012, 08:24:57 PM »
Should I move ulx out of addons?

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Another MOTD Problem.
« Reply #6 on: January 24, 2012, 08:32:25 PM »
The motd file, yes.
The config files for ulx, if you edit them, yes (They actually state to do so in capital letters at the top)
Any edited data files should be copied/edited in gmod/data/ulx.
As for the addon itself (ulib and ulx folders), no..they are best left in /addons.

Never edit addons files unless specifically told to do so :)
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Ascension

  • Newbie
  • *
  • Posts: 5
  • Karma: 0
Re: Another MOTD Problem.
« Reply #7 on: January 24, 2012, 08:57:07 PM »
What file do I have to edit for the location ULX reads as the MOTD file? Or can I just type that command and be done forever?

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Another MOTD Problem.
« Reply #8 on: January 24, 2012, 09:10:25 PM »
Though just about any mod can modify the "motdfile" console variable, I believe by default we set it to gmod_root/ulx.motd.txt
From your server, copy the file there.
From your server console, type 'motdfile' and hit enter. It should point to gmod_root/ulx_motd.txt
If it doesn't, from server console, type in - motdfile "ulx_motd.txt" and hit enter
If it changes to something else again, another mod is changing it.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Ascension

  • Newbie
  • *
  • Posts: 5
  • Karma: 0
Re: Another MOTD Problem.
« Reply #9 on: January 25, 2012, 08:10:31 AM »
That fixed it. Thanks.