Page 1 of 1
					
				[option] Disable commands popping up in chat
				Posted: Tue Aug 16, 2016 10:13 pm
				by Danielv123
				I'll just get straight to it. I have a mod, and it sends the game an rcon request every few ticks. The game then goes "bleep" and prints a gray line in chat.
My game is a bleepfest. There is no way to substitute rcon for my purpose as I cannot read files with lua mods.
So I propose a simple checkbox in the options > others section that makes commands not show up in the chat or make bleeps.
			 
			
					
				Re: [option] Disable commands popping up in chat
				Posted: Wed Aug 17, 2016 9:25 pm
				by ssilk
				Not so good idea. I would suggest to tell your script - however that works and whatever it does - to supresses it's output instead. Somehting like pipe all to  dev/null
Something like
script  >/dev/nul  2>&1
Which should write stdout and stderr to dev/null
			 
			
					
				Re: [option] Disable commands popping up in chat
				Posted: Thu Aug 18, 2016 2:09 pm
				by Danielv123
				https://github.com/Danielv123/factorioClusterio
Client.js sends "/c remote.call('clusterio', 'import', '" + g[0] + "', " + g[1] + ")"
where g[0] is item-name and g[1] is count.
Spamming down the log for the script/server log is not a problem at all. The problem is that every time the command is executed the players get a small beep. How do I suppress that?
 
			 
			
					
				Re: [option] Disable commands popping up in chat
				Posted: Thu Aug 18, 2016 7:59 pm
				by Nexela
				I to would like to be able to suppress the beep. 
1st reason, debugging on tickets stuff.   I wouldon't like to suppress the beep until I need the beep.
2nd reason.  To print a message in chat while playing a totally different sound.
			 
			
					
				Re: [option] Disable commands popping up in chat
				Posted: Thu Aug 18, 2016 8:47 pm
				by Danielv123
				Nexela wrote:I to would like to be able to suppress the beep.
Looks like this can be managed by turning down GUI sounds in options>sound.
But then again, I like GUI sounds!
I was also able to make everything in the chat dissappear in a tick with a setting, but getting chat is kinda important. Disabling this just for commands would be great.
 
			 
			
					
				Re: [option] Disable commands popping up in chat
				Posted: Thu Aug 18, 2016 8:56 pm
				by Zeblote
				Instead of a gui option that every player has to toggle this should be a parameter when sending an rcon command, to execute it silently.
			 
			
					
				Re: [option] Disable commands popping up in chat
				Posted: Thu Aug 18, 2016 9:12 pm
				by ssilk
				Hm. I have looked a bit into docs. And my current thought about this is, that remote.interfaces should be able to be bound to other "devices" than the in-game-console (streams or files).
			 
			
					
				Re: [option] Disable commands popping up in chat
				Posted: Thu Sep 08, 2016 10:09 am
				by Oxyd
				I have added /silent-command to 0.14.5. /silent-command works just like /c, except it doesn't print the command ran to everyone's game console. It is only available to admins and over RCON/server console.
			 
			
					
				Re: [option] Disable commands popping up in chat
				Posted: Thu Sep 08, 2016 1:35 pm
				by aubergine18
				
			 
			
					
				Re: [option] Disable commands popping up in chat
				Posted: Thu Jan 05, 2017 8:04 pm
				by Chocolatetthunder
				Could you make it if the command was run as a silent command that if the command had an error it still would not spam all players?