PDA

View Full Version : New modules


themagic8ball
20th August 2005, 22:41
I am in the process of learning Python and trying to create new modules for MM. I need to know how to go about getting them into MM and then debugging them and also testing them without restarting the server each time. I can't find enough information in the docs to do this.

K
20th August 2005, 22:45
All the info you need is the docs / rcon commands line help.

Starter tips.
1. use a copy of mm_sample.py as a base.
2. Turn up logging to level 10
3. load you module using "mm load <module_name>"
4. keep an eye on modmanager.log for errors
5. fix any errors you see then reload with "mm reload <module_name>" and repeat
6. if there are errors with your shutdown() code u may need to restart the server.

themagic8ball
20th August 2005, 23:34
Thanks for the reply, and I just have one more thing. How do I upload to my server through clanforge. I understand there is a zipping process involved but I'm still a little stuck.

K
21st August 2005, 10:32
You cant upload direct to the server. This will never be allowed for BF2 due to the restrictions on ranked servers.
If however you wish to submit a completed and tested module we will review it an submit to EA for approval

themagic8ball
21st August 2005, 12:54
How am I supposed to complete and test it if I can't get it on the server?

Mugworth
21st August 2005, 15:45
you can download the Bf2 server files and modmanager and run it locally on a lan, and debug it there.