Page 1 of 1

Small Fix for people using the xp_statistics_v1.1.zip on 3.x

Posted: Wed Feb 28, 2007 3:20 am
by fang-gaming
Some people might have noticed their xp stat pages have messed up.

like this chap viewtopic.php?t=2588

Now I know there is talk that the 3.x db structure may change completly but for now this will work.

What happens is when you connect wc3ft 3.x to your 2.3.2 database it adds an extra column into the database moving all your information one along.

to fix this modify your functions.inc.php file at lines 4 - 11 from this

Code: Select all

define("PLAYER_ID", 0);
define("PLAYER_NAME", 1);
define("XP", 2);
define("RACE", 3);
define("SKILL1", 4);
define("SKILL2", 5);
define("SKILL3", 6);
define("SKILL4", 7);
to this

Code: Select all

define("PLAYER_ID", 0);
define("PLAYER_IP", 1);
define("PLAYER_NAME", 2);
define("XP", 3);
define("RACE", 4);
define("SKILL1", 5);
define("SKILL2", 6);
define("SKILL3", 7);
define("SKILL4", 8);
and that should do it. works for ours http://www.fang-gaming.co.uk/xp/

Posted: Wed Feb 28, 2007 7:57 am
by YamiKaitou
Well, for RC6, there will be a completely new database table structure. So this will only work for RC5 and down

Posted: Wed Feb 28, 2007 8:34 am
by DesasterUK
Allready posted here:
viewtopic.php?t=2324

Posted: Wed Feb 28, 2007 12:17 pm
by Geesu
I'm working on a new version for 3.x - don't waste time on adapting to the new structure

Posted: Fri Mar 02, 2007 3:58 am
by fang-gaming
YamiKaitou wrote:Well, for RC6, there will be a completely new database table structure. So this will only work for RC5 and down
fang-gaming wrote: Now I know there is talk that the 3.x db structure may change completly but for now this will work.
I did mention that is was going to completly change and I just though some people (like us) who connected a 3.x server to their xp db but still use 2.3.2 might find this useful ;)

Posted: Fri Mar 02, 2007 7:32 am
by YamiKaitou
But, like DesasterUK said, this has already been posted maybe twice now