Log in

View Full Version : Zone crash after recompile


Dymerius
10-26-2006, 10:59 AM
I downloaded the 7.0.871 binaries and everything works properly.

However, I created a new build of zone and made no changes. The follow error is produced when (after numerous trials, this seems to be the case) a player character engages a caster NPC in combat.

http://192.168.1.101/cohpvp/images/debugerror.jpg

Zone freezes up when this error occurs, but it can be ignored which causes zone to resume running normally until the error is produced again seconds later.

Does anyone know what might be causing this error?

Thanks in advance for your time,

John Adams
10-26-2006, 12:14 PM
Can't post links to images on local network addresses (192.168.x.x). Gotta be a public address for us to see it.

Dymerius
10-26-2006, 12:45 PM
Yikes, I can't believe I did that. My apologies. Oops! Here is the screenshot:

http://68.63.72.149/cohpvp/images/debugerror.jpg

John Adams
10-26-2006, 03:38 PM
That's a little out of my scope of knowledge, sorry... you sure things are compiling ok? And what are you using to compile? VS Express, 2003, 2005? Might help others help you if they knew about your environment.

cbodmer
10-26-2006, 06:55 PM
Open special_attacks.cpp in an editor, go to line 964 and change:

bool did_attack;

to

bool did_attack=false;

Try to compile again and see if it works any better. From looking at the code, the variable did_attack is in undefined state if the switch doesn't enter any case statements, ie if GetClass() is DRUID or WIZARD for example.

-Chris

Dymerius
10-27-2006, 12:23 AM
John Adams: Yea, things have are compiling correctly as far as I know.. I use VS2005pro

cbodmer: Thanks a lot. I'll give that a shot and let you know if it helps!

LostZaphod
10-27-2006, 01:54 AM
special_attack.cpp (line 941)
is the function
void NPC::DoClassAttacks(Mob *target) {

the varailble "did_attack" is not defined. We need to add a line after line 941

bool did_attack = false;