Well im trying to load this XML file and im getting errors, im pretty sure it is correct, this is my first time trying XML so ye , the error:
Code:
---- Debugging information ----
message : npcDrop : npcDrop
line number : 7
path : /list/dropController/drops/npcDrop
cause-message : npcDrop : npcDrop
class : java.util.List
cause-exception : com.thoughtworks.xstream.alias.CannotResolveClas***ception
required-type : [Lorg.experium.game.entity.npc.NpcDrops;
The first file i load the config like this ( it is not the complete file, just the loading part )
Code:
public class NpcDropList {
private int[] npcIds;
private NpcDrops[] drops;
}
the second one like this:
Code:
public class NpcDrops {
private int id;
private int[] count;
private int chance;
}
Im pretty sure it is the ints that is causing that, if you need anything else post here