Page 1 of 1

Chat Handling/Parsing

Posted: Mon Mar 21, 2016 6:44 am
by Jasdahlk
Hello! I'll admit I'm very new to the Factorio modding scene, so I apologize if I've missed some information somewhere already.

I was curious about how chat (and/or entering commands) is handled in Multiplayer; where it "originates" and if it can be intercepted and handled -- and potentially modified -- before being passed along and sent as normal.

I don't mind doing some reading if anyone has information sources about it, but from my own searches it looked like something that isn't discussed, or even exists. If it doesn't exist, is it something outside the scope of the current API?

Re: Chat Handling/Parsing

Posted: Mon Mar 21, 2016 7:16 am
by DaveMcW
Mods can't parse the chat.

You can build a special command that will launch your mod when typed: http://lua-api.factorio.com/0.12.27/LuaRemote.html

Re: Chat Handling/Parsing

Posted: Mon Mar 21, 2016 3:58 pm
by Jasdahlk
Thanks for the response.

I was hoping to build some kind of "command whitelist" system for some extra administrative abilities on servers, but it looks like that's not something that can be done at this time. Time to work more on familiarizing myself with what the API can do. :)