[option] Disable commands popping up in chat

Suggestions that have been added to the game.

Moderator: ickputzdirwech

Danielv123
Inserter
Inserter
Posts: 48
Joined: Sun Jan 03, 2016 10:28 am
Contact:

[option] Disable commands popping up in chat

Post 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.

User avatar
ssilk
Global Moderator
Global Moderator
Posts: 12889
Joined: Tue Apr 16, 2013 10:35 pm
Contact:

Re: [option] Disable commands popping up in chat

Post 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
Cool suggestion: Eatable MOUSE-pointers.
Have you used the Advanced Search today?
Need help, question? FAQ - Wiki - Forum help
I still like small signatures...

Danielv123
Inserter
Inserter
Posts: 48
Joined: Sun Jan 03, 2016 10:28 am
Contact:

Re: [option] Disable commands popping up in chat

Post 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?

Nexela
Smart Inserter
Smart Inserter
Posts: 1828
Joined: Wed May 25, 2016 11:09 am
Contact:

Re: [option] Disable commands popping up in chat

Post 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.

Danielv123
Inserter
Inserter
Posts: 48
Joined: Sun Jan 03, 2016 10:28 am
Contact:

Re: [option] Disable commands popping up in chat

Post 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.

Zeblote
Filter Inserter
Filter Inserter
Posts: 973
Joined: Fri Oct 31, 2014 11:55 am
Contact:

Re: [option] Disable commands popping up in chat

Post 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.

User avatar
ssilk
Global Moderator
Global Moderator
Posts: 12889
Joined: Tue Apr 16, 2013 10:35 pm
Contact:

Re: [option] Disable commands popping up in chat

Post 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).
Cool suggestion: Eatable MOUSE-pointers.
Have you used the Advanced Search today?
Need help, question? FAQ - Wiki - Forum help
I still like small signatures...

Oxyd
Former Staff
Former Staff
Posts: 1428
Joined: Thu May 07, 2015 8:42 am
Contact:

Re: [option] Disable commands popping up in chat

Post 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.

User avatar
aubergine18
Smart Inserter
Smart Inserter
Posts: 1264
Joined: Fri Jul 22, 2016 8:51 pm
Contact:

Re: [option] Disable commands popping up in chat

Post by aubergine18 »

Added note about /silent-command to wiki: https://wiki.factorio.com/index.php?tit ... g_commands
Better forum search for modders: Enclose your search term in quotes, eg. "font_color" or "custom-input" - it prevents the forum search from splitting on hypens and underscores, resulting in much more accurate results.

Chocolatetthunder
Long Handed Inserter
Long Handed Inserter
Posts: 74
Joined: Sat Sep 03, 2016 12:00 am
Contact:

Re: [option] Disable commands popping up in chat

Post 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?
3Ra Gaming Owner
join us on discord @ http://www.3RaGaming.com/discord

Post Reply

Return to “Implemented Suggestions”