PDA

View Full Version : Chat Log Entry Timestamps



Gigermann
July 28th, 2014, 19:22
I'd like to be able to add timestamps to each chat-log entry; possibly also a running total time. For experimentation/troubleshooting purposes. Has something like this been done already and I've missed it?

Moon Wizard
July 28th, 2014, 20:16
I added support for the os.time function in our Lua interface in v3.0, so you should be able to use that. There is no support for timers, or turning on time stamps for chat/console or logging.

Regards,
JPG

Gigermann
July 28th, 2014, 22:28
Are there any known extensions that modify the chat log via Lua that might be repurposed? I know a bit of Javascript, but I'm not a coder—I wouldn't be able to make it from scratch.

Bidmaron
July 29th, 2014, 03:48
MW, thanks for adding os.time. Somehow, I missed that you had done that.

Moon Wizard
July 29th, 2014, 04:10
There are no APIs to modify chat log directly. Adding time stamps to existing messages would require overriding an existing ruleset to inject into the messages.

A general purpose time stamp capability would require a fair amount of changes that would need to be updated and maintained with each new release.

From your original post, I thought you were looking to add time stamps to code you were adding to FG already.

Regards,
JPG