ERROR :: Error occured on d6308c2d-4ced-88bd-c00a-0689c15f55fb
Traceback (most recent call last):
File "C:\Users\jajay\Documents\PalEdit\PalEdit\palworld_pal_edit\PalEdit.py", line 1044, in loadpal
File "C:\Users\jajay\Documents\PalEdit\PalEdit\palworld_pal_edit\PalInfo.py", line 328, in __init__
File "C:\Users\jajay\Documents\PalEdit\PalEdit\palworld_pal_edit\PalInfo.py", line 571, in UpdateMaxHP
File "C:\Users\jajay\Documents\PalEdit\PalEdit\palworld_pal_edit\PalInfo.py", line 534, in CalculateIngameStats
TypeError: 'NoneType' object is not subscriptable
Solve:
in PalInfo.py replace
def UpdateMaxHP(self):
if self.IsTower() or self.IsHuman():
return
self._obj['Hp']['value']['Value']['value'] = self.CalculateIngameStats()["HP"]
return #this seems to be handled by the game itself now; impressive
new_hp = self.CalculateIngameStats()["HP"]
self._obj['MaxHP']['value']['Value']['value'] = new_hp * 1000
self._obj['HP']['value']['Value']['value'] = new_hp * 1000
to
def UpdateMaxHP(self):
self._obj['Hp']['value']['Value']['value'] = self.CalculateIngameStats()["HP"]
return #this seems to be handled by the game itself now; impressive
if self.IsTower() or self.IsHuman():
return
new_hp = self.CalculateIngameStats()["HP"]
self._obj['MaxHP']['value']['Value']['value'] = new_hp * 1000
self._obj['HP']['value']['Value']['value'] = new_hp * 1000
Solve:
in PalInfo.py replace
to