LavishSettings Export and weird chars in .XML

Discussion of Inner Space

Moderators: Lavish Software Team, Moderators

Post Reply
Xeon
Non-Subscriber
Posts: 10
Joined: Mon Jan 22, 2007 2:30 am

LavishSettings Export and weird chars in .XML

Post by Xeon » Mon Mar 26, 2007 3:37 pm

I'm exporting a large amount of information from a LavishSetting object using

Code: Select all

LavishSettings[Actions]:Export[${ActionFileName}]
By large I mean hundreds of Set's each with 13 Settings

Every once in a while I'll look through the file and there will be weird error characters randomly placed. Sometimes in the data, sometime in the <Set name="blah"> etc. It's as if the Export stream is getting interrupted sometimes and just blips out that char.

Any ideas?

Lax
Owner
Posts: 6634
Joined: Fri Jun 18, 2004 6:08 pm

Post by Lax » Tue Mar 27, 2007 11:09 am

Any chance you can actually give me an example of what "weird chars" you're seeing? because i have no idea how to begin to answer this, other than ... the settings system does not insert "weird error characters"

Xeon
Non-Subscriber
Posts: 10
Joined: Mon Jan 22, 2007 2:30 am

Post by Xeon » Tue Mar 27, 2007 11:54 am

Yes, here is a xml file with the garbage in it.

http://www.reality.net/vanguard/action-data.zip

Code: Select all

	<Set Name="Brief Polish">
		<Setting Name="Stage">244938752</Setting>
		<Setting Name="Name">Brief Polish</Setting>
		<Setting Name="ActionPointCost">0</Setting>
		<Setting Name="Progress">0</Setting>
		<Setting Name="Quality">0</Setting>
		<Setting Name="ToolRequired">FALSE</Setting>
		<Setting Name="ToolName">NONE</Setting>
		<Setting Name="ItemRequired">FALSE</Setting>
		<Setting Name="ItemName">NONE</Setting>
		<Setting Name="QualLoss">3</Setting>
		<Setting Name="NumUsed">0</Setting>
&#31889;		<Setting Name="AvgProg">0</Setting>
		<Setting Name="AvgQual">0</Setting>
	</Set>

	<Set Name="Craftsmanship">
		<Setting Name="Stage">244938752</Setting>
		<Setting Name="Name">Craftsmanship</Setting>
		<Setting Name="ActionPointCost">150</Setting>
		<Setting Name="Progress">2</Setting>
		<Setting Name="Quality">4</Setting>
		<Setting Name="Tool&#31889;equired">TRUE</Setting>
		<Setting Name="ToolName">Saw</Setting>
		<Setting Name="ItemRequired">FALSE</Setting>
		<Setting Name="ItemName">NONE</Setting>
		<Setting Name="QualLoss">0</Setting>
		<Setting Name="NumUsed">9</Setting>
		<Setting Name="AvgProg">0.000000</Setting>
		<Setting Name="AvgQual">87.000000</Setting>
	</Set>

	<Set Name="Quality Estimation">
		<Setting Name="Stage">244938752</Setting>
		<Setting Name="Name">Quality Estimation</Setting>
		<Setting Name="ActionPointCost">150</Setting>
		<Setting Name="Progress">3</Setting>
		<Setting Name="Quality">3</Setting>
		<Setting Name="ToolRequired">FALSE</Setting>
		<Setting Name="ToolName">NONE</Setting>
		<Setting Name="ItemRequired">FALSE</Setting>
		<Setting Name="ItemName">NONE</Setting>
		<Setting Name="QualLoss">0</Setting>
		<Setting Name="NumUsed">174</Setting>
		<Setting Name="AvgProg">8.000000</Setting>
		<Set&#31889;ing Name="AvgQual">60.000000</Setting>
	</Set>

Lax
Owner
Posts: 6634
Joined: Fri Jun 18, 2004 6:08 pm

Post by Lax » Tue Mar 27, 2007 11:58 am

lol that's not garbage, it's chinese ;)

It's actually impossible for LavishSettings to generate those characters in those places. Sorry. Something else is interfering, and I can't possibly tell you what.

Xeon
Non-Subscriber
Posts: 10
Joined: Mon Jan 22, 2007 2:30 am

Post by Xeon » Tue Mar 27, 2007 12:00 pm

All I'm doing is this:

Code: Select all

LavishSettings[Actions]&#58;Export[$&#123;ActionFileName&#125;]
How could something else possibly interfere?

Lax
Owner
Posts: 6634
Joined: Fri Jun 18, 2004 6:08 pm

Post by Lax » Tue Mar 27, 2007 12:10 pm

And all I'm doing is something like:
fprintf("<Setting Name=\"%s\">") yadda yadda, how could a chinese character possibly be inserted into a text literal?

Like I said, it's not for me to decide. I can't even begin to imagine what it is. If I had to guess, I'd say a bad driver for hard drives or something, or a damaged i/o chip.

Xeon
Non-Subscriber
Posts: 10
Joined: Mon Jan 22, 2007 2:30 am

Post by Xeon » Tue Mar 27, 2007 12:19 pm

Lax wrote:And all I'm doing is something like:
fprintf("<Setting Name="%s">") yadda yadda, how could a chinese character possibly be inserted into a text literal?

Like I said, it's not for me to decide. I can't even begin to imagine what it is. If I had to guess, I'd say a bad driver for hard drives or something, or a damaged i/o chip.
While I would normally tend to agree with you, I also saw a similar corruption from someone else's LavishSetting export. That one was pretty small, maybe 40 lines total. At the time I though it was just a corrupted .zip file, but then I started to see it in mine also.

I'll ask Amadeus if ISXVG might be interfering in anyway....

Post Reply