1

Topic: [REQUEST] Mod that saves capture time to a file

Hi.
I need little server modification - saving flag capture time and some info to txt file.

filename:
logs/flags-(date).txt

lines:
current_time#map#nick#team#capture_time#server_name

Example:
logs/flags-02.01.2010.txt:

12:24:32#ctf2#Vandal#Red#21.32#Test server
12:26:22#ctf2#Vandal#Red#23.32#Test server
12:30:55#ctf2#Stefan#Blue#20.13#Test server
12:31:32#ctf2#Vandal#Red#22.52#Test server
12:33:32#ctf2#Vandal#Red#21.36#Test server

And some variable sv_saveflaglog to turn it on, by default should be off.

I think writing mod like this won't take more than 30 min if you like programming.

Any volunteer?
Thanks in advance.

2

Re: [REQUEST] Mod that saves capture time to a file

30 minutes is quite much for this... you just need to add a command in variables.hpp and then write in a file... well if you want I can do it, but I need the sources of the original mod.

Not Luck, Just Magic.

3 (edited by vandal 2010-01-03 17:42:59)

Re: [REQUEST] Mod that saves capture time to a file

We are using pure server, not a mod. Thanks!

http://www.teeworlds.com/?page=downloads&id=5063

4

Re: [REQUEST] Mod that saves capture time to a file

vandal wrote:

Hi.
I need little server modification - saving flag capture time and some info to txt file.

There is already a command like this in instagib mod, it broadcast the capture time... I thought you wanted to do an historic of all captures.

Not Luck, Just Magic.

5 (edited by vandal 2010-01-03 20:15:59)

Re: [REQUEST] Mod that saves capture time to a file

Yes, history of all captures in txt files without any unnecessary mods, thats what i am asking for.

6

Re: [REQUEST] Mod that saves capture time to a file

Oh, sorry I didn't know that capture times were in pure version. I do it now.

Not Luck, Just Magic.

7

Re: [REQUEST] Mod that saves capture time to a file

Request done.
Download the binaries (Windows)
I put gametype to 'mCTF' (had no other idea), because the server is unpure and devs forbid us to broadcast it as CTF wink

Not Luck, Just Magic.

8 (edited by vandal 2010-01-05 02:55:32)

Re: [REQUEST] Mod that saves capture time to a file

oops. I need it for linux. Could anyone compile it for linux?. Thanks!

9

Re: [REQUEST] Mod that saves capture time to a file

Download the sources (.zip)
I only modifed the game folder, so you just have to extract it, and replace it in the teeworlds 0.5.2 pure sources (in the src folder).

Not Luck, Just Magic.