eliminate compressed saves
I disabled the option [for compressed saves] a while back.
But a reminder as to why this is a good thing
Tried to load a duf ... won't open go see log file.
"2025-01-12 23:19:13.890 [INFO] :: Json Parser (5720411,5): Unexpected character
2025-01-12 23:19:13.920 [WARNING] :: Error loading asset: E:/03e dazScenes/AP stoneStructures Work.duf
Operation failed"
Should be an easy fix ... there's the line number where the error is.
But this an old file one from before I turned off compression of saved files
And the zip is busted, which is probably why it won't complete loading
and since I can't unzip, I can't fix that line.
----
I'm cleaning folders when I went back to the folder the duf was in there was a folder named for the duf
so apparently the zip opener was informing me the zip was broken without mentioning it had unzipped it
---
So I spent some time but beyond my current paygrade.
[ 5567, -0.0524256, -1.5742261 ],
[ 5556, -0.97, [],
[ 543 -1.42, 0.0021 ],
[ 5556, - [ 5310, -0.04 [ 5744, -87533997, 0..0532 ],
,
[ 3657, -0.87721664, 0.539021 0.
3082 ],
[ 3606, -0.87706112, -1.383061, 0
32 ],
0.0.04 [ 5310, -0.04 36576 ], 08318, 0.21.057 ],
[ 5478, -0.04145212, ,
51, 0156 7 ],
006 [ 5424, -0.01560576, 0.0877824 0. 97536,.010553[ 5310, -0.04 195072, ,
51, 0.0147414 ],243 [ 5310, -0.04 15488, - -0.6100877 0. 16992,,
[ 5442, 0.000804672, ,
51, 0-1.340608 .08064 [ 5310, -0.04 343 -1.4960 51, 0.6394384, 0.52338[ 5310, -0.04 1 5744, ,
51, 0. 7 ],
[ 5310, -0.04 121664, -0.6017972 0.-1.5094 ],
[ 1431, -0.40477412, -.0877824 0..045072 ]1.2046 [ 5558, -0.04292352,
51, 0-1.597536, 16.05[ 5310, -0.04 1414 51, 0-0. 7 ],
-1.0.6[ 5310, -0.04 130497, 0.5749747 0.
6947 ],048 [ 3603, 0.040484192, -0.5732678 0.21392768 ,
[ 1495, -0..29614 51, 00.332208 ]197 [ 5558, -0.0424256, - -15735117 0. 978426 ],
4 [ 5310, -0.04 07296 ]-0.76833980.1 7661 ],877.01[ 5310, -0.04 1 7 ],46360 516480.1,
5597 ],262
[ 5310, -0.04 43892, -0.385511,0.19433281 280895 [ 5546, 0.00238912 ],.61033150.19012759 ],
[ 5555, -0.0200928 ]-1.469136, 0 -1],
892,,
.54 [ 5310, -0.04 7824 ],],
51,, 011253107 ] 0.0 [ 5310, -0.04 4237 ]],
.23119456, ],
892,, 895[ 5310, -0.04 4
892,],
Managed to move the error up 6 lines and it's now "(5720417,7): Syntax Error - expected ',' or ']"
but the layout is garbled through a large number of lines ... not that layout matters as long as the ',' or ']" are in the right place.
But I'm guessing it was the compression that did get messed up
I've opened and fixed other dufs that weren't compressed and it was usually just an extra space etc in one line not a massive realignment
But since I named it AP Stone Structures Work and had a space ship flying over the top and can probably figure out what was in it.
Comments
My first guess would be that you're using windows notepad, and have word wrap turned on and it's set too narrow for everything to display correctly as to why it's 'garbled'.
If that's the case, try turning word wrap off, and increase the width of the notepad, possibly going full screen.
I'd also recommend, switching to Notepad++(https://notepad-plus-plus.org/ ). I find it significantly better when working with studio files like this.
Looking at what you've posted, there's a typo in the second line, ( [ 5556, -0.97, [], )
Try deleting the left bracket from the end of that line. so it looks like this ( [556,-0.97,], )
Don't include the parenthesis, i'm just including those to separate it form the rest of the text.
Firstly, the safest way is to always uncompress DUF file with Batch Convert in DS. Then you should've posted a screenshot of Notepad++ with that Parser line...
the ones I pasted were from npII
and the [] is in line 5720380 which is way above the 5720411 so I never even noticed it.
usually when this happens there an obvious break in one line.
This time the jumbled lines start above and go up to about 579xxx and then goes back into normal notation
I did correct the [] to a ] and that moved error up to that line and then I fixed something in there and that moved an error toss in the next line
And considering there are 20k wonky lines ... and even if I fix the ,s and ]s the numbers are trashed I doubt any major return from that time
But thanks for the feedback..
Discovered notepad II years ago, I don't thing I'd bother trying even looking without it.
---
logfile
2025-01-13 20:47:46.832 E:/03e dazScenes/AP stoneStructures Work/AP stoneStructures Work7.duf (5720380,18): Unexpected character
2025-01-13 20:47:46.871 Error reading file, see log for more details. <this was with the [] ... fixed that it changed the error to the one below
2025-01-13 20:52:22.965 E:/03e dazScenes/AP stoneStructures Work/AP stoneStructures Work8.duf (5720381,13): Syntax Error - expected ',' or ']'
2025-01-13 20:52:22.979 Error reading file, see log for more details.
I think this DUF file is already badly damaged.... too many errors with corrupted coding.
Even if you syntactically fix one line, next wrong line will be reported because DS cannot show you the syntax errors once and for all...
The other couple I fixed only had obvious breaks in a line or two and restoring the data at least its format and they opened but those weren't compressed when saved.
So my though when I turned it off way back a few years was it's just another possible place to go wrong and this one may prove that.
Just saves some pose presents and noticed the default was compression turned it off in there, too.
And will try to remember to check all save type things.
You may turn off Compress File in default settings in F2 > Scene tab, now in DS 4.21+
That looks like morph deltas, badly mangled morph deltas.
I'm seeing missing and extra [] as well as ",", and missing and disjointed numbers, so trying to repair that is going to be a nightmare.
However if it's just one morph that is scrambled, then you "might" be able to salvage the file by deleting that entire morph from the file.
I agree. Usally compressed .duf files can be easy uncompressed with any zipping app.
There must be something wrong with the file already.
Yea, I thought the same...