Official Soldat Forums

Server Talk => Scripting Releases => Topic started by: Timer on January 10, 2011, 09:21:25 am

Title: CTF based Climb Server Time Keeping Scipt
Post by: Timer on January 10, 2011, 09:21:25 am
Hello everyone,

Well I know there are other similar time keeping scripts out there for climb servers but I tried to make a very friendly version which in which is very simple to modify and can even be done in-server and be saved automatically to an ini file.

The script is a run-along script meaning just put it in your scripts folder read the manual I conviently created for you, changes the configurations to your liking and play.

Here is how it works:
Well basically it reads ini files (which you have to create, but I show you how to do) and for each map lets say there is someone who caps/returns/scores to end the current map, well if they were fast enough to rank in the top3 places for that map they will be listed as the /top3.

However rather than explain in great detail I already made a very useful manual for this script.

Enjoy!!

One more thing, I also have completed an HNS version of this but haven't completed the manual yet and will be working on Rambo version as well as Race-Mode version.
Title: Re: CTF based Climb Server Time Keeping Scipt
Post by: Gizd on January 10, 2011, 11:15:12 am
http://forums.soldat.pl/index.php?topic=7409.0 (http://forums.soldat.pl/index.php?topic=7409.0)

This script overally gets a "not recommended" rank from me for massive use of built-in ReadINI function.
Title: Re: CTF based Climb Server Time Keeping Scipt
Post by: Timer on January 10, 2011, 04:14:25 pm
Sorry but could you elaborate a little more on why using built-in ReadINI isn't good? Being as this is the first script I've posted and I immediately recieved a "not recommended", I would like to know whats wrong with this method for loading/reading INI's for future reference.

Thanks  ;)

Title: Re: CTF based Climb Server Time Keeping Scipt
Post by: dnmr on January 10, 2011, 04:47:51 pm
Sorry but could you elaborate a little more on why using built-in ReadINI isn't good? Being as this is the first script I've posted and I immediately recieved a "not recommended", I would like to know whats wrong with this method for loading/reading INI's for future reference.

Thanks  ;)


readini is quite slow compared to reading files manually i suppose. It is also considered bad practice to access the same file repeatedly when you can actually read it once and parse from there.
However, when you think of it, all kind of  caches should ease the load on your hardware, but i'm not completely sure how it works. The best solution is not to count on it and just do the thing manually (readfile, split by whatever separators you use and get the pieces you need).
Title: Re: CTF based Climb Server Time Keeping Scipt
Post by: Timer on January 10, 2011, 11:20:59 pm
Ok thank you I will take that into consideration  :)