Lone Wolf Development Forums

Lone Wolf Development Forums (http://forums.wolflair.com/index.php)
-   HL - Savage Worlds (http://forums.wolflair.com/forumdisplay.php?f=59)
-   -   .user file won't open in editor (http://forums.wolflair.com/showthread.php?t=58314)

Paragon May 2nd, 2017 10:01 AM

.user file won't open in editor
 
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.

jfrazierjr May 2nd, 2017 10:49 AM

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.

Paragon May 2nd, 2017 11:34 AM

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.

Paragon May 2nd, 2017 11:42 AM

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.

jfrazierjr May 2nd, 2017 01:20 PM

Quote:

Originally Posted by Paragon (Post 249121)
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.

Are you using some type of source control? ie, do you have access to both the original and "broken" one? If so, can you do a diff(alternately, if you have both files and can link, I could do a diff.) The XML may be well formed, but may not be VALID and there is a difference!!! Valid refers to being having a structure which corresponds to a "contact" so speak, what tags can be where, in what order, how many, etc, etc etc. The runtime for building characters may not enforce the validity constraint, while the editor seems to do so.

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.)

CapedCrusader May 2nd, 2017 01:46 PM

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).

Paragon May 2nd, 2017 03:40 PM

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).

CapedCrusader May 3rd, 2017 05:00 PM

OK, found it.
Lines 810 and 862. The thing definition needs to start with a "<" character.

jfrazierjr May 3rd, 2017 05:57 PM

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.

Paragon May 3rd, 2017 06:38 PM

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.


All times are GMT -8. The time now is 02:25 AM.

Powered by vBulletin® - Copyright ©2000 - 2024, vBulletin Solutions, Inc.
wolflair.com copyright ©1998-2016 Lone Wolf Development, Inc. View our Privacy Policy here.