Jump to content

Edit History

Please note that revisions older than 365 days are pruned and will no longer show here
doughphunghus

doughphunghus

My guess: first error is causing the second.  Ive seen a few of these "ambiguous generic XML  errors with no indication what lone of code it failed on" and its a pain on the ass (TFP: please always give line numbers on all XML/parse errors if possible!).

 

im going to also guess that you are missing a required property or attribute called "LootGamestage" OR you put "LootGamestage" in a place it is not valid... or there is a weird typo.

 

anyway: these errors are hard to troubleshoot and if you make the module available for people to look at they may spot the error.  my general troubleshooting steps are:

 

- make sure the XML is "valid" in an XML parser. I use an editor to make my mods that does this automatically, however, all they do is make sure your XML tags match and you don't have a major XML formatting error (like an attribute is missing an = or a ". They do NOT check the data/strings inside the XML tags (as thats not something an XML parser can check.

 

- All the other "generic parsing errors" i have seen are because of typos or mis formatting the data inside the xpath or XML attributes and the game cannot parse the data. The XML is valid (all tags match, etc) just the data inside them the game uses has an issue and (my guess) is the game loads the xml (it parses ok) an then tries to read the data in it and it chokes on something.

 

Here are some Made up Examples of what it might be:

1. You have a non number in a numeric field. Like value="2," or value="2-"

 

2. you have a mismatched square bracket orin the xpath tag. Like;

<xpath="/items/item[@name='xyz'">
 

3. or you have a single quote where there should be a double quote, or similar, like:

<xpath="/items/item[@name="xyz"]"

 

3. maybe? You have an attribute or property in your item/block that is not valid. Like:

instead of "value="10" you have something like "number="10". 
or for a property you have a property that is totally wrong (like a typo in the property name) or is not allowed or recognized for that item/block like:

<property nane="bananas"\>
or

<promperty> ... stuff here ... </promperty>

doughphunghus

doughphunghus

My guess: first error is causing the second.  Ive seen a few of these "ambiguous generic XML  errors with no indication what lone of code it failed on" and its a pain on the ass (TFP: please always give line numbers on all XML/parse errors if possible!).

 

im going to guess that you are missing a required property or attribute called "LootGamestage" OR you put "LootGamestage" in a place it is not valid... or there is a weird typo.

 

anyway: these errors are hard to troubleshoot and if you make the module available for people to look at they may spot the error.  my general troubleshooting steps are:

 

- make sure the XML is "valid" in an XML parser. I use an editor to make my mods that does this automatically, however, all they do is make sure your XML tags match and you don't have a major XML formatting error (like an attribute is missing an = or a ". They do NOT check the data/strings inside the XML tags (as thats not something an XML parser can check.

 

- All the other "generic parsing errors" i have seen are because of typos or mis formatting the data inside the xpath or XML attributes and the game cannot parse the data. The XML is valid (all tags match, etc) just the data inside them the game uses has an issue and (my guess) is the game loads the xml (it parses ok) an then tries to read the data in it and it chokes on something.

 

Here are some Made up Examples of what it might be:

1. You have a non number in a numeric field. Like value="2," or value="2-"

 

2. you have a mismatched square bracket orin the xpath tag. Like;

<xpath="/items/item[@name='xyz'">
 

3. or you have a single quote where there should be a double quote, or similar, like:

<xpath="/items/item[@name="xyz"]"

 

3. maybe? You have an attribute or property in your item/block that is not valid. Like:

instead of "value="10" you have something like "number="10". 
or for a property you have a property that is totally wrong (like a typo in the property name) or is not allowed or recognized for that item/block like:

<property nane="bananas"\>
or

<promperty> ... stuff here ... </promperty>

doughphunghus

doughphunghus

My guess: first error is causing the second.  Ive seen a few of these "ambiguous generic XML  errors with no indication what lone of code it failed on" and its a pain on the ass (TFP: please always give line numbers on all XML/parse errors if possible!).
 

anyway: these errors are hard to troubleshoot and if you make the module available for people to look at they may spot the error.  my general troubleshooting steps are:

 

- make sure the XML is "valid" in an XML parser. I use an editor to make my mods that does this automatically, however, all they do is make sure your XML tags match and you don't have a major XML formatting error (like an attribute is missing an = or a ". They do NOT check the data/strings inside the XML tags (as thats not something an XML parser can check.

 

- All the other "generic parsing errors" i have seen are because of typos or mis formatting the data inside the xpath or XML attributes and the game cannot parse the data. The XML is valid (all tags match, etc) just the data inside them the game uses has an issue and (my guess) is the game loads the xml (it parses ok) an then tries to read the data in it and it chokes on something.

 

Here are some Made up Examples of what it might be:

1. You have a non number in a numeric field. Like value="2," or value="2-"

 

2. you have a mismatched square bracket orin the xpath tag. Like;

<xpath="/items/item[@name='xyz'">
 

3. or you have a single quote where there should be a double quote, or similar, like:

<xpath="/items/item[@name="xyz"]"

 

3. maybe? You have an attribute or property in your item/block that is not valid. Like:

instead of "value="10" you have something like "number="10". 
or for a property you have a property that is totally wrong (like a typo in the property name) or is not allowed or recognized for that item/block like:

<property nane="bananas"\>
or

<promperty> ... stuff here ... </promperty>

doughphunghus

doughphunghus

My guess: first error is causing the second.  Ive seen a few of these "ambiguous generic XML  errors with no indication what lone of code it failed on" and its a pain on the ass (TFP: please always give line numbers on all XML/parse errors if possible!).
 

anyway: these errors are hard to troubleshoot and if you make the module available for people to look at they may spot the error.  my general troubleshooting steps are:

 

- make sure the XML is "valid" in an XML parser. I use an editor to make my mods that does this automatically, however, all they do is make sure your XML tags match and you don't have a major XML formatting error (like an attribute is missing an = or a ". They do NOT check the data/strings inside the XML tags (as thats not something an XML parser can check.

 

- All the other "generic parsing errors" i have seen are because of typos or mis formatting the data inside the xpath or XML attributes and the game cannot parse the data. The XML is valid (all tags match, etc) just the data inside them the game uses has an issue and (my guess) is the game loads the xml (it parses ok) an then tries to read the data in it and it chokes on something.

 

Here are some Made up Examples of what it might be:

1. You have a non number in a numeric field. Like value="2," or value="2-"

 

2. you have a mismatched square bracket orin the xpath tag. Like;

<xpath="/items/item[@name='xyz'">
 

3. or you have a single quote where there should be a double quote, or similar, like:

<xpath="/items/item[@name="xyz"]"

 

3. maybe? You have an attribute or property in your item/block that is not valid. Like:

instead of "value="10" you have something like "number="10". 
or for a property you have a property that is totally wrong (like a typo in the property name) or is not allowed or recognized for that item/block like:

<property nane="bananas"\>
or

<promperty> ... stuff here ... </promperty>

doughphunghus

doughphunghus

My guess: first error is causing the second.  Ive seen a few of these "ambiguous generic XML  errors with no indication what lone of code it failed on" and its a pain on the ass (TFP: please always give line numbers on all XML errors!).
 

anyway: these errors are hard to troubleshoot and if you make the module available for people to look at they may spot the error.  my general troubleshooting steps are:

- make sure the XML is "valid" in an XML parser. I use an editor to make my mods that does this automatically, however, all they do is make sure your XML tags match and you don't have a major XML formatting error (like an attribute is missing an = or a ". They do NOT check the data/strings inside the XML tags (as thats not something an XML parser can check.

 

- All the other "generic parsing errors" i have seen are because of typos or mis formatting the data inside the xpath or XML attributes and the game cannot parse the data.

Here are some Made up Examples:

1. You have a non number in a numeric field. Like value="2," or value="2-"

 

2. you have a mismatched square bracket orin the xpath tag. Like;

<xpath="/items/item[@name='xyz'">
 

3. or you have a single quote where there should be a double quote, or similar, like:

<xpath="/items/item[@name="xyz"]"

 

3. maybe? You have an attribute or property in your item/block that is not valid. Like:

instead of "value="10" you have something like "number="10". 
or for a property you have a property that is totally wrong (like a typo in the property name) or is not allowed or recognized for that item/block like:

<property nane="bananas"\>
or

<promperty> ... stuff here ... </promperty>

doughphunghus

doughphunghus

My guess: first error is causing the second.  Ive seen a few of these "ambiguous generic XML  errors with no indication what lone of code it failed on" and its a pain on the ass (TFP: please always give line numbers on all XML errors!).
 

anyway: these errors are hard to troubleshoot and if you make the module available for people to look at they may spot the error.  my general troubleshooting steps are:

- make sure the XML is "valid" in an XML parser. I use an editor to make my mods that does this automatically, however, all they do is make sure your XML tags match and you don't have a major XML formatting error (like an attribute is missing an = or a ". They do NOT check the data/strings inside the XML tags (as thats not something an XML parser can check.

 

- All the other "generic parsing errors" i have seen are because of typos or mis formatting the data inside the xpath or XML attributes and the game cannot parse the data.

Here are some Made up Examples:

1. You have a non number in a numeric field. Like value="2," or value="2-"

 

2. you have a mismatched square bracket orin the xpath tag. Like;

<xpath="/items/item[@name='xyz'">
 

3. or you have a single quote where there should be a double quote, or similar, like:

<xpath="/items/item[@name="xyz"]"

 

3. maybe? You have an attribute or property in your item/block that is not valid. Like:

instead of "value="10" you have something like "number="10". 
or for a property you have a property that is totally wrong (like a typo in the property name) or is not allowed or recognized for that item/block like:

<property nane="bananas"\>
or

<promperty>

×
×
  • Create New...