Jump to content
Sign in to follow this  
caryatid23

grepping in game chat

Recommended Posts

Hey all;

 

Anyone know if there is a way to get the in game chat text as the server is running ( read only is fine )? In particular I'd like to be able to monitor the chat for specific keywords.

Letting the players type something like "ADMIN: shiznitz broke dawg." So that I can handle things without having to have the client up; or even have some automated behaviours. 

 

Thanks!

Dave

Share this post


Link to post
Share on other sites

Well, there is a "chatlog = 0" entry in the data/startup.cfg file. I think if you set it to 1 - a chat log will be generated (I haven't tried it yet - just guessing). Then you need a script or program to parse this log for new items every second or so and look for keywords.

 

And for automated behaviors... your script/program then can also establish rcon connection with your dedicated server (see bin/console/readme.txt file for details). With player chat input and rcon interface you could trigger server-side commands (Translator: Server Input). In the end - players could influence the mission with chat commands (if that's what you are looking for with automation).

  • Upvote 2

Share this post


Link to post
Share on other sites

Interesting info...thanks Sim.....what is the location of saved chat txt file?

Thanks

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...