• Please make sure you are familiar with the forum rules. You can find them here: https://forums.tripwireinteractive.com/index.php?threads/forum-rules.2334636/

Server Displaying elapsed time in hostname

Kyper

Active member
Dec 8, 2011
32
0
Hopefully this isn't a dupe thread due to my poor search-fu, but I noticed a server that updates its host name with the elapsed time. How is this accomplished? Is it as simple as variable subsitution like ${elapsedTime} or was a private custom mutator used?

Spoiler!
Spoiler!
 
Sever Color and Elapsed Time

Sever Color and Elapsed Time

Hey guys i took a few hours to look into this problem and was able to modify the ServerColor.U code to do this. ServerColorTime.rar The code is server side only but i still renamed the package just to be sure there are no issues. Included is the ServerColorTime.u/.ucl and ServerColorTime.ini

There are now 3 values in the config ServerName, ServerVar, and mapcolor. The script will insert ( Elapsed: 00:00 ) in between the ServerName and ServerVar. You can play with this and place the time anywhere in the server name. You can also use the INI to color the time by closing the ServerName= line in the config with the color you want the time to be.

all you have to do is copy these files to your KillingFloor/system and in [Engine.GameEngine] use,

ServerActors=Servercolortime.ServerColortimeActor

INSTEAD of the normal ServerColor.ServerColorActor

original ServerColor thread http://forums.tripwireinteractive.com/showthread.php?t=31186&highlight=servercolor
 
Last edited:
Upvote 0
Hey guys i took a few hours to look into this problem and was able to modify the ServerColor.U code to do this. ServerColorTime.rar The code is server side only but i still renamed the package just to be sure there are no issues. Included is the ServerColorTime.u/.ucl and ServerColorTime.ini

There are now 3 values in the config ServerName, ServerVar, and mapcolor. The script will insert ( Elapsed: 00:00 ) in between the ServerName and ServerVar. You can play with this and place the time anywhere in the server name. You can also use the INI to color the time by closing the ServerName= line in the config with the color you want the time to be.

all you have to do is copy these files to your KillingFloor/system and in [Engine.GameEngine] use,

ServerActors=Servercolortime.ServerColortimeActor

INSTEAD of the normal ServerColor.ServerColorActor

Won't use because ServerColor always break my server statistics (PHP + GameQ), but great work anyways! :)
 
Upvote 0
If you would like i could most likely whip up a mutator that tacks it to the end of the servers name

EDIT: http://www.ILLHQ.net/kf/ElapsedTime.rarhttp://www.ILLHQ.net/kf/ElapsedTime.rar

Thanks! Will test!

//It's working, but it breaks a part of my query unfortunately :( --> Players 1195789067/1415933281, should be 0/6 :)

I stick to normal install because GameQ is a bit not updated, and my dirty patch (to detect if player is spectator) breaks it a lot more.

Thanks anyways for time.
 
Last edited:
Upvote 0
Object not found!


The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again.

If you think this is a server error, please contact the webmaster. Error 404

www.illhq.net
Apache/2.4.10 (Win32) PHP/5.6.3

Good job.... Anyone else got a copy of this so I can try out?

Or the source code and I can compile it myself...?
 
Upvote 0