character_details table max hp, power etc [Resolved]

Old bugs stored here for reference.
Locked
bolly
Retired
Posts: 389
Joined: Mon Sep 21, 2009 3:03 pm
Location: Leeds, UK

character_details table max hp, power etc [Resolved]

Post by bolly » Sat Dec 05, 2009 2:31 am

When you zone there is a problem where the power field will take the value of max_hp and the hp field will take the value of max_power

Seems like the values are getting mixed up somewhere
Last edited by bolly on Sun Dec 06, 2009 9:00 am, edited 1 time in total.

LethalEncounter
Team: Zombie
Posts: 2717
Joined: Wed Jul 25, 2007 10:10 pm

Re: character_details table max hp, power etc

Post by LethalEncounter » Sat Dec 05, 2009 9:45 am

Yup, they were mixed up in the update statement and are now fixed. Good catch!

User avatar
John Adams
Retired
Posts: 9684
Joined: Thu Jul 26, 2007 6:27 am
EQ2Emu Server: EQ2Emulator Test Center
Characters: John
Location: Arizona
Contact:

Re: character_details table max hp, power etc

Post by John Adams » Sat Dec 05, 2009 1:40 pm

Weird, I thought we changed that months ago in the DB (the default values anyway). Was there something wrong in the code, too? Oops.

bolly
Retired
Posts: 389
Joined: Mon Sep 21, 2009 3:03 pm
Location: Leeds, UK

Re: character_details table max hp, power etc

Post by bolly » Sat Dec 05, 2009 3:25 pm

fast as lightning, cheers!

LethalEncounter
Team: Zombie
Posts: 2717
Joined: Wed Jul 25, 2007 10:10 pm

Re: character_details table max hp, power etc

Post by LethalEncounter » Sat Dec 05, 2009 7:29 pm

John Adams wrote:Weird, I thought we changed that months ago in the DB (the default values anyway). Was there something wrong in the code, too? Oops.
Yup, the values were switched in the query.

User avatar
John Adams
Retired
Posts: 9684
Joined: Thu Jul 26, 2007 6:27 am
EQ2Emu Server: EQ2Emulator Test Center
Characters: John
Location: Arizona
Contact:

Re: character_details table max hp, power etc

Post by John Adams » Sat Dec 05, 2009 7:36 pm

Doh, well if I recall, the only thing I switched in character_details table update was that max_hp was 40 and max_power was 45 - but I think now I know why they were reversed. Not sure how I caught that, but I think it was when players died they revived with their values swapped. Never thought the code was at fault.

bolly
Retired
Posts: 389
Joined: Mon Sep 21, 2009 3:03 pm
Location: Leeds, UK

Re: character_details table max hp, power etc [Resolved]

Post by bolly » Sun Dec 06, 2009 9:01 am

Tested this mornings revision and it works great, thanks!

Locked

Who is online

Users browsing this forum: No registered users and 1 guest