Strange Life value [Coregina RC3]
Posted: Tue Jun 05, 2007 8:41 am
A really strange bug (?) happens in our live shard with latest 097 Linux core: sometimes Life and MaxLife of NPCs gets very high without a reason... so high that on next reboot POL can't start saying Life is out of value for that NPC... :?
Running RecalcVitals() on NPC, reset MaxLife to right value.
Here's our GetLifeMaximumValue function:
In latest error happening we saw: cprop PF was 4, Life was something about 1.900.000.000 and MaxLife was 79548 :shock:
Even if we can debug our scripts to search for a point where Life could be wrongly set too high, MaxLife cannot be set by script... so I think there's a problem in core... :sad:
Any idea?
P.S.: could this this the cause of our often SaveWorldState error
Running RecalcVitals() on NPC, reset MaxLife to right value.
Here's our GetLifeMaximumValue function:
Code: Select all
exported function GetLifeMaximumValue(who)
var pf := GetObjProperty(who, "PF");
if(pf)
return pf * 100;
else
return 10000; // default: 100
endif
endfunction
Even if we can debug our scripts to search for a point where Life could be wrongly set too high, MaxLife cannot be set by script... so I think there's a problem in core... :sad:
Any idea?
P.S.: could this this the cause of our often SaveWorldState error