Scripting server setups

2 replies [Last post]
gen.X.SuperBo!
Offline
Joined: Sep 2003
Posts:

Is there any way to run a script on player connect and map end?

I would like to run a script every time a player connects and every time a map ends, and I would like to get the scores on map end.

Also, what kind of coding language can I use?

What I want to do is to make a check in database on player connect and update another database on map end using the CD-key to find the player. The database stuff is no prob, but the code language and the timing is a prob.

Been thinking about generating some kind of player ranking/stats on my 1v1 server this way..

|¯BRO5¯| Don Pedro
Offline
Joined: Feb 2004
Posts:
Scripting server setups

If your on a unix/linux server, why not use PERL. I dont realy know how you should do it, but cant you just have the script checking the logfile?

i remember some time back i tried a real nice pre-made for-free script on our local network, displaying real nice ranking/stats and it even posted on a remote http server if i wanted. This was years ago, dont.. remember what it was called. If i got time, ill try look it up.

I have just found one in PERL, havent tried it but looks simple to edit:
http://mips.as.arizona.edu/~chad/q3/parse-quake3-log.pl

easy
Developer
easy's picture
Offline
Joined: Sep 2003
Posts:
Scripting server setups

The problem is that the Quake 3 Virtual Machine (QVM) is a restricted and sandboxed "tool". That means that a modification has no access to the system and it's functionality.

To have access to extended functions, databases, etc. you will need to compile a library (.dll, .so file) like RA3 uses to do.