PtokaX forum

Development Section => Your Developing Problems => Topic started by: Jemte on 25 August, 2005, 04:14:01

Title: reloading text files through script
Post by: Jemte on 25 August, 2005, 04:14:01
I was curious if i overlooked such a command or if it was possible to include in a future release. I write some stats out to a file and wanted it to be accessible with text file support. but when the stats are updated you have to manually reload the text files so that youre able to access the new information.

would it just be easier for me to just have the script handle the trigger and just read from the file on requests?
Title:
Post by: bastya_elvtars on 29 August, 2005, 16:02:22
QuoteOriginally posted by Jemte
I was curious if i overlooked such a command or if it was possible to include in a future release. I write some stats out to a file and wanted it to be accessible with text file support. but when the stats are updated you have to manually reload the text files so that youre able to access the new information.

would it just be easier for me to just have the script handle the trigger and just read from the file on requests?

There is texter bot by plop, maybe someone will convert it for you.
Title:
Post by: Jemte on 29 August, 2005, 22:05:43
the texter bot just seems to be the predecessor to the now built-in text file support. I have no problems reading from the file and displaying it.

I wanted to know if there was some scriptable command to reload text files and if not to request such a feature.
Title:
Post by: bastya_elvtars on 29 August, 2005, 23:20:54
A clientside script should do it with a timer. :D