@@ -169,6 +169,7 @@ public static void ToUop(string inFile, string inFileIdx, string outFile, FileTy
169169 tableEntries [ tableIdx ] . Offset = writer . BaseStream . Position ;
170170 tableEntries [ tableIdx ] . DecompressedSize = data . Length ;
171171 tableEntries [ tableIdx ] . CompressionFlag = ( short ) compressionFlag ;
172+
172173 // hash 906142efe9fdb38a, which is file 0009834.tga (and no others, as 7.0.59.5) use a different name format (7 digits instead of 8);
173174 // if in newer versions more of these files will have adopted that format, someone should update this list of exceptions
174175 // (even if this seems so much like a typo from someone from the UO development team :P)
@@ -181,10 +182,8 @@ public static void ToUop(string inFile, string inFileIdx, string outFile, FileTy
181182 tableEntries [ tableIdx ] . Identifier = HashLittle2 ( string . Format ( hashFormat [ 0 ] , idxEntries [ j ] . Id ) ) ;
182183 }
183184
184-
185185 if ( type == FileType . GumpartLegacyMul )
186186 {
187-
188187 byte [ ] gumpArtData = new byte [ data . Length + 8 ] ;
189188 using ( MemoryStream ms = new MemoryStream ( gumpArtData ) )
190189 using ( BinaryWriter gumpArtWriter = new BinaryWriter ( ms ) )
@@ -234,6 +233,7 @@ public static void ToUop(string inFile, string inFileIdx, string outFile, FileTy
234233 }
235234 else
236235 {
236+ tableEntries [ tableIdx ] . Size = data . Length ;
237237 tableEntries [ tableIdx ] . Hash = HashAdler32 ( data ) ;
238238 writer . Write ( data ) ;
239239 }
@@ -519,7 +519,7 @@ private static void CheckAndFixMapFiles(string outFile, FileType type, int typeI
519519
520520 if ( expectedSize == 0 )
521521 {
522- // do nothing. Map file is wrong or it's some weird size we don't know about
522+ // do nothing. Map file is wrong, or it's some weird size we don't know about
523523 return ;
524524 }
525525
0 commit comments