Ulysses

General => Developers Corner => Topic started by: xXBryanXx on January 16, 2014, 04:31:37 PM

Title: Removing the ULX MOTD?
Post by: xXBryanXx on January 16, 2014, 04:31:37 PM
I have a custom MOTD that I am trying to replace the default ULX MOTD with and I want to use the same command (!motd). When I disable the ULX motd, it disables the entire !motd command. I tried going into the ulx files and changing the ULX command to !umotd, but that didn't work. If anyone knows how to do this, please tell me. Thanks.
Title: Re: Removing the ULX MOTD?
Post by: Megiddo on January 16, 2014, 05:02:48 PM
Put the motd you want under garrysmod_root/ulx_motd.txt.
Title: Re: Removing the ULX MOTD?
Post by: Neku on January 16, 2014, 05:18:01 PM
You mean a full on custom motd, or just one you wrote?
Title: Re: Removing the ULX MOTD?
Post by: xXBryanXx on January 16, 2014, 05:49:44 PM
You mean a full on custom motd, or just one you wrote?

It is a full on custom MOTD with derma panels etc.
Title: Re: Removing the ULX MOTD?
Post by: Megiddo on January 16, 2014, 08:14:27 PM
Ah sorry, I misunderstood. You should be able to remove lua/ulx/modules/cl/motdmenu.lua to disable the ULX MOTD.
Title: Re: Removing the ULX MOTD?
Post by: xXBryanXx on January 17, 2014, 12:59:45 PM
I removed motdmenu.lua and it removes the ULX motd, but it seems like it's still interfering with my custom motd because nothing shows up now when I type !motd.
Title: Re: Removing the ULX MOTD?
Post by: Megiddo on January 17, 2014, 05:46:00 PM
How did you register "!motd"?
Title: Re: Removing the ULX MOTD?
Post by: xXBryanXx on January 18, 2014, 11:34:12 AM
How did you register "!motd"?

What do you mean by that?
Title: Re: Removing the ULX MOTD?
Post by: Neku on January 18, 2014, 11:45:05 AM
What do you mean by that?

You need to add the command "!motd".
Title: Re: Removing the ULX MOTD?
Post by: xXBryanXx on January 18, 2014, 12:31:27 PM
You need to add the command "!motd".

To my custom MOTD? The command is already added to that.
Title: Re: Removing the ULX MOTD?
Post by: Megiddo on January 18, 2014, 03:17:28 PM
To my custom MOTD? The command is already added to that.

How? Share the code.
Title: Re: Removing the ULX MOTD?
Post by: xXBryanXx on January 18, 2014, 06:12:38 PM
How? Share the code.

I purchased the MOTD from someone else. I have the code, but changing the command is in a config file which then links to another file which puts it into effect. I can show you the code for the config file, if that would be of any use.

It seems to me, that ulx still is trying to use the ULX motd, and doesn't let anything else use the !motd command.
Title: Re: Removing the ULX MOTD?
Post by: Megiddo on January 18, 2014, 10:15:07 PM
I purchased the MOTD from someone else. I have the code, but changing the command is in a config file which then links to another file which puts it into effect. I can show you the code for the config file, if that would be of any use.

It seems to me, that ulx still is trying to use the ULX motd, and doesn't let anything else use the !motd command.

No. It sounds like you're simply not registering it as a command.
Title: Re: Removing the ULX MOTD?
Post by: xXBryanXx on January 19, 2014, 08:53:14 AM
No. It sounds like you're simply not registering it as a command.

I change the command to something else such as !motdu and it works. !motd does not work.
Title: Re: Removing the ULX MOTD?
Post by: Megiddo on January 20, 2014, 07:25:53 AM
The command is registered in ulx/modules/sh/menus.lua, but it's only registered if the motdmenu.lua exists.
Title: Re: Removing the ULX MOTD?
Post by: JamminR on January 20, 2014, 08:49:27 AM
The command is registered in ulx/modules/sh/menus.lua, but it's only registered if the motdmenu.lua exists.

Bryan, Are you sure you removed it from the server's path, and not your local game (or, are you running listen server?)
Have fast DL? Clean it from any there?

Title: Re: Removing the ULX MOTD?
Post by: xXBryanXx on January 24, 2014, 09:19:35 AM
Bryan, Are you sure you removed it from the server's path, and not your local game (or, are you running listen server?)
Have fast DL? Clean it from any there?

I am running a dedicated server, and yes, I did remove the old ulx motd from the server via FTP.
Title: Re: Removing the ULX MOTD?
Post by: xXBryanXx on January 29, 2014, 03:15:30 PM
So does anyone have any ideas on how to fix this?
Title: Re: Removing the ULX MOTD?
Post by: frustratedgamers on February 03, 2014, 04:57:50 PM
you could just turn off the motd under the ulx config by setting the show motd option to 0
 Can't remember the path at the moment but it shouldnt be hard to find, its a txt either in the ulx folder in your data folder or in the addons ulx folder.

You may need to remove the phrasing that will say motd is disabled though
Title: Re: Removing the ULX MOTD?
Post by: JamminR on February 07, 2014, 09:24:07 PM
So does anyone have any ideas on how to fix this?
Comment out gmod/data/ulx/config.txt "motdfile", then make sure your script or server.cfg is setting the motdfile convar to something other than what it used to have for ULX.
If you've not reset it on the server, it's likely the same.