diff --git a/src/com/gpl/rpg/atcontentstudio/model/gamedata/ActorCondition.java b/src/com/gpl/rpg/atcontentstudio/model/gamedata/ActorCondition.java index b721ed4..ce29cf5 100644 --- a/src/com/gpl/rpg/atcontentstudio/model/gamedata/ActorCondition.java +++ b/src/com/gpl/rpg/atcontentstudio/model/gamedata/ActorCondition.java @@ -236,7 +236,12 @@ public class ActorCondition extends JSONElement { if (this.icon_id != null) { String spritesheetId = this.icon_id.split(":")[0]; if (getProject().getSpritesheet(spritesheetId) == null) { + System.out.println("Actor Condition"); System.out.println(this.id); + System.out.println("failed to load spritesheet"); + System.out.println(spritesheetId); + System.out.println("while creating backling for icon_id"); + System.out.println(this.icon_id); } getProject().getSpritesheet(spritesheetId).addBacklink(this); } diff --git a/src/com/gpl/rpg/atcontentstudio/model/gamedata/JSONElement.java b/src/com/gpl/rpg/atcontentstudio/model/gamedata/JSONElement.java index 6a6359f..3910742 100644 --- a/src/com/gpl/rpg/atcontentstudio/model/gamedata/JSONElement.java +++ b/src/com/gpl/rpg/atcontentstudio/model/gamedata/JSONElement.java @@ -39,14 +39,15 @@ public abstract class JSONElement extends GameDataElement { Map jsonObj = (Map)obj; String id = (String) jsonObj.get("id"); try { - if (id != null && id.equals(this.id )) { - this.parse(jsonObj); - this.state = State.parsed; - break; - } + if (id != null && id.equals(this.id )) { + this.parse(jsonObj); + this.state = State.parsed; + break; + } } catch(Exception e){ System.out.println("Error in ID: " + id); + System.out.println(e.getMessage()); } } } catch (FileNotFoundException e) {