Ulysses

Ulysses Stuff => Suggestions => Topic started by: pikkip on December 30, 2011, 04:34:50 PM

Title: Only echo
Post by: pikkip on December 30, 2011, 04:34:50 PM
Hi, i am owning a build server, and every time i am running a cmd etc. like !kick [Name] it shows my message "!kick [Name]" and the echo.

It would be nice that its only the echo will appear, to minimize the chat log and space in chat.

Thanks,
pikkip
Title: Re: Only echo
Post by: JamminR on December 30, 2011, 05:33:41 PM
First, best way to prevent chat spam, don't use chat to run commands. Chat isn't meant to be stopped.
Use console commands. They autocomplete for you and can usually be done faster than chat commands.

Second, re: console commands -
If you've not already, take a look at your <gmod_server>/data/ulx/config.txt.
It has many options, including what is echo'ed to clients.
If you don't have a config.txt there, COPY (not edit) the config.txt file from <gmod_server>/addons/ulx/data/ulx/ to your <gmod_server>/data/ulx folder then look for/edit the section that looks like below.
Code: [Select]
ulx logEcho 1 ; Echo mode
; Echo modes:
; 0 - OFF No output to any players when an admin command is used
; 1 - ANONYMOUS Output to players without access to see who used the command (admins by default) similar to "(Someone) slapped Bob with 0 damage"
; 2 - FULL Output to players similar to "Foo slapped Bob with 0 damage"
There are also several other logging options you may use to help. Look over them, consider them carefully...many things logged, if turned off, may be a detriment later.

Third - Use XGUI with second part modification above.
Title: Re: Only echo
Post by: pikkip on January 01, 2012, 11:24:20 AM
First, best way to prevent chat spam, don't use chat to run commands. Chat isn't meant to be stopped.
Use console commands. They autocomplete for you and can usually be done faster than chat commands.

Second, re: console commands -
If you've not already, take a look at your <gmod_server>/data/ulx/config.txt.
It has many options, including what is echo'ed to clients.
If you don't have a config.txt there, COPY (not edit) the config.txt file from <gmod_server>/addons/ulx/data/ulx/ to your <gmod_server>/data/ulx folder then look for/edit the section that looks like below.
Code: [Select]
ulx logEcho 1 ; Echo mode
; Echo modes:
; 0 - OFF No output to any players when an admin command is used
; 1 - ANONYMOUS Output to players without access to see who used the command (admins by default) similar to "(Someone) slapped Bob with 0 damage"
; 2 - FULL Output to players similar to "Foo slapped Bob with 0 damage"
There are also several other logging options you may use to help. Look over them, consider them carefully...many things logged, if turned off, may be a detriment later.

Third - Use XGUI with second part modification above.

Well, its was more so it will remove the "!kick [Name]" thing in chat, not the echo.

Any change of i can do that by editing anything?
Title: Re: Only echo
Post by: Aaron113 on January 01, 2012, 11:17:58 PM
In ULib/lua/ulib/server/concommand.lua try adding
Code: [Select]
return ""AFTER line 58...

Didn't test it, but I believe it should work.
Title: Re: Only echo
Post by: pikkip on January 02, 2012, 07:00:05 PM
In ULib/lua/ulib/server/concommand.lua try adding
Code: [Select]
return ""AFTER line 58...

Didn't test it, but I believe it should work.

I dint quite get this...

Is it possible for you to copy your own, past it in desktop, edit what you think can solve it, and send it in here, i will be grateful if you did, and ofc. i am still grateful for that you solved it for me, i just need to know how i do it, (I'm the worst Einstein evar)

*Edit* I tried just add it instantly into the code, and it worked! (Tought it was gonna do errors after i saw all those "end")

Thanks mate, must live long! (or something like that... lol..)
Title: Re: Only echo
Post by: Aaron113 on January 03, 2012, 02:47:29 PM
No problem.
Title: Re: Only echo
Post by: krooks on January 04, 2012, 09:03:01 AM
Thanks Aaron113! This is actually something I've wanted as well.  8)
Title: Re: Only echo
Post by: pikkip on January 05, 2012, 06:17:53 AM
:3 hes a awesome dude,

oh btw, i wanna suggest this to the official ULX ect. with a option aswell as you can turn off the echo, you will be enable to turn off chat (or something like that) hopefully this idea gets trough =3