Inicio > Game Server how-to > Project Reality and Afterdune scripts (How to)

Project Reality and Afterdune scripts (How to)

Domingo, 2 de Mayo de 2010

The amount of support tickets we get after each PR update about the AD scripts not working made us make this post.

The scripts work and they are fairly easy to install however the documentation is split in a web site (hosted here: http://afterdune.parabans.com/) and a readme file named HOW TO INSTALL.TXT in each script. If you don’t read both and follow the instructions they just wont work.

We decided to create this post with step by step instructions consolidating both.

  • 1st how they work

There is a base module that is needed for the rest to work (ad_base) and several submodules

  • 2nd how to make them actually work

To enable the base module you need to copy the contents of AD_BASE in your “/bf2/admin/” folder when you unzip it in there it will create a folder named: “/bf2/admin/ad_scripts/”

Once that is done you need to edit: “/bf2/mods/pr/phyton/game/__init__.py and add the following:

#——————————————————————
# Add your custom script’s initilization bellow
#

## [ad_scripts]
import sys
sys.path.append(‘admin/ad_scripts/’)
import ad_init
## [/ad_scripts]

Once that is done the base module will start but the submodules not.

Download the modules you want to use. (typically ad_admin)
trow them into your ad_scripts folder in “/bf2/admin/”

then yo need to edit: ad_init.py file in the same folder. And Add the following two lines in ad_init.py:

import ad_admin
ad_admin.init()

Then you add admins on the “ad_admin_settings.py” file.

Restart the server and they should work.
If your server refuses to start the most likely cause is that your “ad_admin_settings.py” file has errors being the most common that you left a colon on the last admin added.

admin1 hash power,
admin2 hash power,
last hash power

(NO COLON)

hope this helps.

Share
  1. Sin comentarios aún.
  1. Sin trackbacks aún.