Added logging for incorrect housing sign object id errors and bypassed java dump.

This commit is contained in:
Cekis
2018-03-23 15:57:37 -07:00
committed by CekisSWG
parent c3a2f3a3d3
commit 3ab28fa659
@@ -2638,10 +2638,14 @@ public class player_structure extends script.base_script
}
if (!hasObjVar(structure, "player_structure.sign.id"))
{
LOG("sissynoid", "Structure(" + structure + ") does not have a House Sign ObjVar");
LOG("playerStructure", "Structure(" + structure + ") at location [" + getLocation(structure).toString() + "] does not have a House Sign ObjVar");
return;
}
obj_id signId = getObjIdObjVar(structure, "player_structure.sign.id");
if(!isValidId(signId)){
LOG("playerStructure", "Structure (" + structure + ") at location [" + getLocation(structure).toString() + "] has an invalid value for player_structure.sign.id.");
return;
}
String signText = getName(signId);
int indexOfAbandonedText = signText.indexOf(player_structure.CITY_ABANDONED_TEXT);
if (indexOfAbandonedText > -1)