Author |
Message |
Guest
Offline
|
Posted: Sat Mar 25, 2006 7:21 am Post subject: python questions |
 |
|
|
|
1: im having some issues with the commands. i copied the really basic example from wiki and it doesnt work. ?help t1 works though. the weird part is that i have the watchgreen module set to load at startup and the ?watchgreen works fine. then i tried switching the 't1' to 'watchgreen' and it worked. does that mean the module needs to be loaded at startup if i want the commands to work?
2: in core.h (Ifreqman interface) it says you can stop people from changing ships with some of the functions and it has some python comments there. does that mean i can do that with python too? if so, i have no idea how and could use some assistance
3: is it possible to access some of the commands from python. mainly i was wondering if it was possible to call ?gamerecord from python.
thanks |
|
Back to top |
|
 |
Smong Server Help Squatter

Joined: 1043048991 Posts: 0x91E Offline
|
Posted: Sat Mar 25, 2006 8:15 am Post subject: |
 |
|
|
|
Quote: | # note: add cmd_moo to conf/groupdef.dir/default so players have permission to
# use this command. | Did you follow those instructions? Add cmd_t1 to default.
The freqman stuff, there is an fm_password.py that comes with asss you can look at as an example. Note this "chains" freq managers. In the attach modules setting of your arena.conf make sure fm_normal attaches before fm_password (or whatever you make).
Controlling the record module from py isn't possible with vanilla asss. You can however get someone to add an interface to it for you and recompile the pymod and record modules. Unless you own the server you probably want to find the person that manages it and get them to do it for you. |
|
Back to top |
|
 |
Guest
Offline
|
Posted: Sat Mar 25, 2006 9:19 am Post subject: |
 |
|
|
|
alright, thanks! and sorry for being blind : P |
|
Back to top |
|
 |
|