Forums
BF2Statistics.com :: Forums :: Tech Support
Veteran Grapple and Zipline
Ok I have change the number of deploys of the Veteran badge on my sever but no one with 75 grapples has received the Veteran badge yet. Looking at other badge this code seem to apply that you need to deploy the grappling hook 75 time in one round. Which seem highly unlikely.
How do I get it to be once some one has 75 grapples they get the badge?
- #Grappling Hook Usage
- #Basic
- ('1260708_1', 'X1ghb', 1, object_stat ('weapons', 'deployed', WEAPON_TYPE_GRAPPLINGHOOK, 5)),
- #Veteran
- ('1260708_2', 'X1ghb', 1, f_and( has_medal ('1260708_1'),
- object_stat ('weapons', 'deployed', WEAPON_TYPE_GRAPPLINGHOOK, 75))),
How do I get it to be once some one has 75 grapples they get the badge?
[ Edited Tue May 26 2009, 07:27AM ]
Hi,
you changed medal_data_xpack.py, right?
But these medals are only checked if you are playing xpack.
Have a look at medals.py:
# Most MODs don't use SF medals, so we'll default to bf2 medals_data
running_mod = str(host.sgl_getModDirectory())
if ( running_mod.lower() == 'mods/xpack' ):
from bf2.stats.medal_data_xpack import *
else:
from bf2.stats.medal_data import *
you changed medal_data_xpack.py, right?
But these medals are only checked if you are playing xpack.
Have a look at medals.py:
# Most MODs don't use SF medals, so we'll default to bf2 medals_data
running_mod = str(host.sgl_getModDirectory())
if ( running_mod.lower() == 'mods/xpack' ):
from bf2.stats.medal_data_xpack import *
else:
from bf2.stats.medal_data import *
I have added this code to the normal medal data file. I can get the basic badges but that is it. Am I missing other code?
I don't know for now. But IMHO you don't need to add the xpack medals from medal_data_xpack.py to medal_data.py. Backup medal_data.py and create a copy of medal_data_xpack.py and rename this copy to medal_data.py. Or change import code in medals.py to import medal_data_xpack.py only for all Mods.
To debug your problem i need to know which Mod are you playing.
To debug your problem i need to know which Mod are you playing.
please have a look here: http://www.bf2statistics.com/e107_plugins/forum/forum_viewtopic.php?6348.post

Joined: Sat Mar 11 2006, 07:10AM
Joined: Fri Feb 23 2007, 08:46AM