BF2Statistics.com :: Forums :: General :: Bugs
 
<< Previous thread | Next thread >>
BF2statistics 1.4.x Bug List
Go to page   <<      
Moderators: MrNiceGuy, Twhyman, Chump, Twisted, hurr1k4ne
Author Post
hurr1k4ne
Sun Feb 01 2009, 08:00AM


Registered Member #387
Joined: Thu Feb 16 2006, 06:05AM

Posts: 154
if i get some spare time i will do a new release.... and include the fixes....
Anything Missing here?????

RTFF =read the f***in forum
Back to top
Thinner
Sun Feb 01 2009, 09:55AM
Registered Member #2900
Joined: Fri Feb 23 2007, 09:46AM

Posts: 227
Nice to see an admin here again.

Yes for sure, there are some more bugs. IMHO the whole system needs a rework for more security, more features and simplier mod-support. I've done a lot, but it's still under development.
Back to top
Thinner
Mon Jun 08 2009, 05:56PM
Registered Member #2900
Joined: Fri Feb 23 2007, 09:46AM

Posts: 227
Bug: Veteran/Expert Tactical Support Combat Badge/Grappling Hook Badge/Zip Line Badge definition is wrong. You will never ever reach 100/500 deployes in a round.
Fix 1: /python/bf2/stats/medal_data_xpack.py


change to:

  1.                 #Tactical Support Combat Badge
  2.                         #Basic
  3.                         ('1260602_1',   'X1fbb',   1, object_stat ('weapons', 'deployed', WEAPON_TYPE_TACTICAL, 10)),
  4.  
  5.                         #Veteran
  6.                         ('1260602_2',   'X1fbb',   1, f_and(  has_medal ('1260602_1'),
  7.                                 f_plus( global_stat ('de-6'), object_stat ('weapons', 'deployed', WEAPON_TYPE_TACTICAL), 100))),
  8.  
  9.  
  10.                         #Expert 
  11.                         ('1260602_3',   'X1fbb',   1, f_and(  has_medal ('1260602_2'),
  12.                                 f_plus( global_stat ('de-6'), object_stat ('weapons', 'deployed', WEAPON_TYPE_TACTICAL), 500))),
  13.  
  14.                 #Grappling Hook Usage
  15.                         #Basic
  16.                         ('1260708_1',   'X1ghb',   1, object_stat ('weapons', 'deployed', WEAPON_TYPE_GRAPPLINGHOOK, 10)),
  17.  
  18.                         #Veteran
  19.                         ('1260708_2',   'X1ghb',   1, f_and(  has_medal ('1260708_1'),
  20.                                 f_plus( global_stat ('de-7'), object_stat ('weapons', 'deployed', WEAPON_TYPE_GRAPPLINGHOOK), 100))),
  21.  
  22.                         #Expert 
  23.                         ('1260708_3',   'X1ghb',   1, f_and(  has_medal ('1260708_2'),
  24.                                 f_plus( global_stat ('de-7'), object_stat ('weapons', 'deployed', WEAPON_TYPE_GRAPPLINGHOOK), 500))),
  25.        
  26.                 #Zip Line Usage
  27.                         #Basic
  28.                         ('1262612_1',   'X1zlb',   1, object_stat ('weapons', 'deployed', WEAPON_TYPE_ZIPLINE, 10)),
  29.  
  30.                         #Veteran
  31.                         ('1262612_2',   'X1zlb',   1, f_and(  has_medal ('1262612_1'),
  32.                                 f_plus( global_stat ('de-8'), object_stat ('weapons', 'deployed', WEAPON_TYPE_ZIPLINE), 100))),
  33.  
  34.                         #Expert 
  35.                         ('1262612_3',   'X1zlb',   1, f_and(  has_medal ('1262612_2'),
  36.                                 f_plus( global_stat ('de-8'), object_stat ('weapons', 'deployed', WEAPON_TYPE_ZIPLINE), 500))),
  37.        


Please notice, that tactical deployes depends on object template name. It's only triggered if weapon-template-name contains "flashbang", "teargas" or "molotovcocktail". This is hardcoded in server-executable. Xpack (Special Forces) will work, but other Mods may not.

Fix 2: /ASP/getplayerinfo.aspx

go near to end of the file

a) before line

$head .= "vac-0\tvac-1\tvac-2\tvac-3\tvac-4\tvac-5\tvac-6\n";


add

if (strpos($info, 'de-') !== false) {
$head .= "de-6\tde-7\tde-8\t";
}


b) before line

#vac-
$out .= "0\t0\t0\t0\t0\t0\t0\n";


add

if (strpos($info, 'de-') !== false) {
$out .= $roww['tacticaldeployed'] . "\t" .
$roww['grapplinghookdeployed'] . "\t" .
$roww['ziplinedeployed'] . "\t";

}



[ Edited Mon Jun 08 2009, 06:13PM ]
Back to top
brdempsey69
Mon Jun 08 2009, 10:28PM
Registered Member #1573
Joined: Fri Jun 23 2006, 04:09PM

Posts: 11

Edited: not bf2 stats related and Thinner provided a possible solution. Sorry about that.

[ Edited Thu Jun 11 2009, 05:23PM ]
Back to top
Thinner
Tue Jun 09 2009, 06:57PM
Registered Member #2900
Joined: Fri Feb 23 2007, 09:46AM

Posts: 227
This problem is not related to bf2statistics.

But to fix it you could edit the file \mods\bf2\Menu_server.zip\Nametag\nametags.con on your client and change line

Nametags.setTexture 22 Menu/Nametag/ranks 0 0 16 16

to

Nametags.setTexture 23 Menu/Nametag/ranks 0 0 16 16

Please notice that some mods (e.g. POE2) come with a nametags.con too, so you have to change it there too.


Back to top
Thinner
Mon Aug 17 2009, 08:37AM
Registered Member #2900
Joined: Fri Feb 23 2007, 09:46AM

Posts: 227
Bug: LAN-IP override doesn't work with PHP 5.3.0. All players will get IP of $stats_lan_override from config.php
You may see an error message like Warning: str_pad() expects parameter 4 to be long, string given

Fix: Change /ASP/includes/utils.php, lines 24 and 26 "STR_PAD_LEFT" to STR_PAD_LEFT
Back to top
Haslang
Mon Sep 07 2009, 03:04PM
Haslang

Registered Member #6702
Joined: Tue Sep 01 2009, 06:00PM

Posts: 10
Thinner wrote ...

Bug: LAN-IP override doesn't work with PHP 5.3.0. All players will get IP of $stats_lan_override from config.php
You may see an error message like Warning: str_pad() expects parameter 4 to be long, string given

Fix: Change /ASP/includes/utils.php, lines 24 and 26 "STR_PAD_LEFT" to STR_PAD_LEFT



If I change utils.php to that, XAMPP says I don't have the rights to access this site.
Back to top
Draketornado
Wed Oct 21 2009, 09:47AM
Registered Member #6836
Joined: Fri Oct 16 2009, 09:39AM

Posts: 2
Same problem for me but...

Try to connect the ASP over:

127.0.0.1/ASP/

Works for me...

Greets

Draketornado
Back to top
Go to page   <<       

Jump:     Back to top

Syndicate this thread: rss 0.92 Syndicate this thread: rss 2.0 Syndicate this thread: RDF
Powered by e107 Forum System


All original content © 2006 Bf2statistics.com. All trademarks belong to their respective owners. All Rights Reserved.

This is my Google PageRank™ - SmE Rank free service Powered by Scriptme This is my Google PageRank™ - SmE Rank free service Powered by Scriptme Content Management System Locator

Render time: 0.3474 sec, 0.0241 of that for queries. DB queries: 52.