Page 1 of 1

An Extremely Noobish Question

Posted: Tue Feb 12, 2013 3:23 am
by Bigcheecho
Short Version: What variables, objects, etc. represent each value and object?
Long Version: I know the commands to Python, and absolutely want to get started programming scripts for AoS. However, I don't know what variable and object names represent each value. By that, I mean "where can I find the name for the variable that counts the amount of kills", etc. Is it in a text document? Or is it somewhere else?

Re: An Extremely Noobish Question

Posted: Tue Feb 12, 2013 5:31 am
by topo
It's hard to understand exactly what you want to know... could you give us a longer version?

Re: An Extremely Noobish Question

Posted: Tue Feb 12, 2013 5:47 am
by Bigcheecho
topo wrote:
It's hard to understand exactly what you want to know... could you give us a longer version?
No problem. Edited first post to give example of what I mean.

Re: An Extremely Noobish Question

Posted: Tue Feb 12, 2013 6:38 am
by topo
That cleared it up a little. :P

The base "connection" class is in pyspades/server.py on line 174 (at least for me), and is called ServerConnection.
In that class is a list of properties and methods, one of which is "kills". The basic class is extended by scripts - the first of which is feature_server/run.py and the rest of which are specified in config.txt. Really all you have to do to find things is make educated guesses and look around.
Probably not an amazing explanation because I'm pretty tired, but I hope it helps anyway.

Re: An Extremely Noobish Question

Posted: Wed Feb 13, 2013 2:57 am
by Bigcheecho
Thanks. :)