|
Senior Member
Join Date: Feb 2010
Posts: 874
|
Well, this is new. Wanted to open my modified Broken Earth file in the editor to check something and got this:
"Encountered PCDATA for element 'document' proscribed against PCDATA". Anyone got any idea what that's about? I can get in and edit directly, of course, but sometimes when you just need to change something small the editor is easier. |
#1 |
Senior Member
Join Date: Aug 2013
Posts: 123
|
umm does the file work? is that ONE part of a single source or is that the entire file for the source.
Generally, that is an XML formatting error which indicates you have stuff in the wrong place.... For example, Code:
<tag>boo <subtag>blah</subtag> </tag> In this very simple example, tag is supposed to ONLY contain child tags and not "real" data. Now... I am not 100% sure that's what this is exactly complaining about, but that is the type of thing I could see validation code checking against. Best thing would be to link to google drive or dropbox if the file is very large or post here if it's smallish. |
#2 |
Senior Member
Join Date: Feb 2010
Posts: 874
|
File seems to be loading and operating fine; I just can't open it in the editor. And its a full sized .user file for the Broken Earth setting.
The odd thing about it is that its just an edited version of the .user file I was using just yesterday (with the changes necessary to deal with the change in eval scripts in Edges); and its being pretty unspecific. I can certainly upload and link to it, but its 3154 lines, I can't assume people are going to want to pile all the way through that. |
#3 |
Senior Member
Join Date: Feb 2010
Posts: 874
|
Okay, just put the old version back in to see if it would open that--and it will. What's odder, is HL is not throwing errors for doing so; in fact I created a character with an Edge with an eval script and it seems to be working. In addition, the editor is still show the "Edge with Bootstrapped Weapon/Armor" tab, which I thought was no longer supposed to be supported.
So now I'm really confused. |
#4 |
Senior Member
Join Date: Aug 2013
Posts: 123
|
Quote:
If you don't have both files, well.. don't sweat it, just make sure you test your work. Does anyone with DEEP knowledge or from LWD know if there is an XML schema for .user files(for everyone else, schema is the contract by which an XML document agrees to abide.) |
|
#5 |
Senior Member
Volunteer Data File Contributor
Join Date: Aug 2009
Posts: 1,556
|
That's a syntax error. It sounds like somewhere there's some scrambled code, and since it's reporting it at the document level, it's bouncing all the way up. If you send it to me, I'll take a look. I've got a good color-coding editor (UltraEdit).
_ Currently In Development: Savage Pathfinder, SWADE Fantasy Companion Future Development: SWADE Super Powers Companion, SWADE Sci-Fi Companion _ Currently Running: Savage Unity Inc. (homebrew multiverse theme) Setting Files Supported: Deadlands: Reloaded, Flash Gordon, Gaslight, Hellfrost, Interface Zero 2.0, Seven Worlds, Slipstream, Solomon Kane Future Setting Files: Savage Judge Dredd |
#6 |
Senior Member
Join Date: Feb 2010
Posts: 874
|
Since you've both offered, here's the current version (the one that's bouncing off the editor):
https://drive.google.com/open?id=0Bx...zVTZ01HbjFGUlE and here's the prior one without the corrected eval scripts and the Weapon edges in their separate category: https://drive.google.com/open?id=0Bx...2FqenB0ZG9LejA (I don't do full multi-version saves, but I do make it a habit to keep last-working versions of things. What really puzzles me is that it loads into the program itself fine without an error; its just the editor that seems to spit up about it). |
#7 |
Senior Member
Volunteer Data File Contributor
Join Date: Aug 2009
Posts: 1,556
|
OK, found it.
Lines 810 and 862. The thing definition needs to start with a "<" character. _ Currently In Development: Savage Pathfinder, SWADE Fantasy Companion Future Development: SWADE Super Powers Companion, SWADE Sci-Fi Companion _ Currently Running: Savage Unity Inc. (homebrew multiverse theme) Setting Files Supported: Deadlands: Reloaded, Flash Gordon, Gaslight, Hellfrost, Interface Zero 2.0, Seven Worlds, Slipstream, Solomon Kane Future Setting Files: Savage Judge Dredd |
#8 |
Senior Member
Join Date: Aug 2013
Posts: 123
|
Good catch CC.
Paragon, how do you edit? What are you using? I would HIGHLY suggest using something like Notepad++ and download the XML tools, making sure to use the Validate or Check XML syntax features to make sure your edited files are valid XML. To be totally honest, I am very surprised this loaded in the main runtime at all since they are not valid XML. |
#9 |
Senior Member
Join Date: Feb 2010
Posts: 874
|
That was what surprised me. Given I'd been working on the modified file for a while, and doing some cut-and-paste between the previous one and this one, these are entirely comprehensible errors--but I'd have thought it just wouldn't load. And alternatively, would have given me more specific errors.
As to your question, I normally either use the built-in editor, or if I'm doing direct editing in the XML, GetDiz. I don't do an enormous amount of the latter, normally; as I noted the only reason this probably happened was because I was cutting and pasting between the pre-update version of the .user file and the updated one, because I'd discovered some problems in the former after I'd done the latter. And of course the error message was, to say the least, vague. Thanks as always, CC. |
#10 |
|
|