Gildor's Forums

Author Topic: UModel linux and Blade and Soul error  (Read 866 times)
Skyward
Newbie
*
Posts: 4


View Profile
UModel linux and Blade and Soul error
« on: May 12, 2019, 03:43 »

Hi!
I try to extract some textures from Blade and Soul game but get this error:

*** ERROR: Unable to read 1 bytes at pos=0x47929DC6
FFileReader::Serialize:File=00008603.upk <- FArchive::ByteOrderSerialize <- UObject::Serialize <- UTexture3::Serialize <- UTexture2D::Serialize <- LoadObject:Texture2D'00008603.Coin_Grade_2', pos=47929DC6, ver=573/1, game=bns <- UObject::EndLoad <- LoadWholePackage:00008603 <- ExportPackages <- Main:umodel_build=1003

umodel compiled on Ubuntu 18.04 from latest Git sources.

P.S. on Windows (with windows version umodel) all fine with it
Logged
Gildor
Administrator
Hero Member
*****
Posts: 7973



View Profile WWW
Re: UModel linux and Blade and Soul error
« Reply #1 on: May 12, 2019, 10:15 »

Hi
P.S. on Windows (with windows version umodel) all fine with it
Interesting problem.

Send me the file please (make sure to isolate it and test separately, to make sure that this one is enough to reproduce the problem).
I think that should be 00008603.upk.
Logged
Skyward
Newbie
*
Posts: 4


View Profile
Re: UModel linux and Blade and Soul error
« Reply #2 on: May 12, 2019, 14:41 »

It's now only with this file. At least with first 5 files:

$ ./umodel  -noanim -nomesh -nostat -game=bns -out="/home/nazarden/tmp/2_Umodel_all/UmodelExport" -export "/media/nazarden/Work/Games/Blade and Soul/contents/bns/CookedPC/00001029.upk"
Detected game root /media/nazarden/Work/Games/Blade and Soul/contents/bns/CookedPC
Found 39948 game files (0 skipped) at path "/media/nazarden/Work/Games/Blade and Soul/contents/bns/CookedPC"
Scanned game directory in 10.6 sec, 86274 allocs, 0.00 MBytes serialized in 0 calls.
Loading package: 00001029.upk Ver: 573/1 Engine: 4205 Names: 432 Exports: 388 Imports: 31 Game: 80001B
Loaded in 0.0 sec, 15 allocs, 0.04 MBytes serialized in 10 calls.
Memory: allocated 5039478 bytes in 40053 blocks
Loading Material3 Ice_ball_Absorb_Mat from package 00001029.upk
Full package loaded in 0.0 sec, 6 allocs, 0.00 MBytes serialized in 1 calls.
Exporting objects ...
Exporting Material3 Ice_ball_Absorb_Mat to /home/nazarden/tmp/2_Umodel_all/UmodelExport/00001029/Material3
Ignoring Material3'Ice_ball_Absorb_Mat' due to empty parameters
Memory: allocated 5064118 bytes in 40055 blocks


$ ./umodel  -noanim -nomesh -nostat -game=bns -out="/home/nazarden/tmp/2_Umodel_all/UmodelExport" -export "/media/nazarden/Work/Games/Blade and Soul/contents/bns/CookedPC/00001461.upk"
Detected game root /media/nazarden/Work/Games/Blade and Soul/contents/bns/CookedPC
Found 39948 game files (0 skipped) at path "/media/nazarden/Work/Games/Blade and Soul/contents/bns/CookedPC"
Scanned game directory in 11.1 sec, 86274 allocs, 0.00 MBytes serialized in 0 calls.
Loading package: 00001461.upk Ver: 573/1 Engine: 4205 Names: 410 Exports: 131 Imports: 33 Game: 80001B
Loaded in 0.0 sec, 15 allocs, 0.02 MBytes serialized in 6 calls.
Memory: allocated 5027046 bytes in 40053 blocks
Full package loaded in 0.0 sec, 1 allocs, 0.00 MBytes serialized in 0 calls.
Memory: allocated 5027046 bytes in 40053 blocks


$ ./umodel  -noanim -nomesh -nostat -game=bns -out="/home/nazarden/tmp/2_Umodel_all/UmodelExport" -export "/media/nazarden/Work/Games/Blade and Soul/contents/bns/CookedPC/00002171.upk"
Detected game root /media/nazarden/Work/Games/Blade and Soul/contents/bns/CookedPC
Found 39948 game files (0 skipped) at path "/media/nazarden/Work/Games/Blade and Soul/contents/bns/CookedPC"
Scanned game directory in 11.1 sec, 86274 allocs, 0.00 MBytes serialized in 0 calls.
Loading package: 00002171.upk Ver: 573/1 Engine: 4205 Names: 30 Exports: 3 Imports: 2 Game: 80001B
Loaded in 0.0 sec, 14 allocs, 0.00 MBytes serialized in 1 calls.
Memory: allocated 5000238 bytes in 40052 blocks
Loading Texture2D monaxe01_d from package 00002171.upk
Loading Texture2D monaxe01_n from package 00002171.upk
******** Loading object Texture2D'00002171.monaxe01_n' ********
*** ERROR: Unable to read 1 bytes at pos=0x5A70F1D0
FFileReader::Serialize:File=00002171.upk <- FArchive::ByteOrderSerialize <- UObject::Serialize <- UTexture3::Serialize <- UTexture2D::Serialize <- LoadObject:Texture2D'00002171.monaxe01_n', pos=5A70F1D0, ver=573/1, game=bns <- UObject::EndLoad <- LoadWholePackage:00002171 <- ExportPackages <- Main:umodel_build=1003


$ ./umodel  -noanim -nomesh -nostat -game=bns -out="/home/nazarden/tmp/2_Umodel_all/UmodelExport" -export "/media/nazarden/Work/Games/Blade and Soul/contents/bns/CookedPC/00002172.upk"
Detected game root /media/nazarden/Work/Games/Blade and Soul/contents/bns/CookedPC
Found 39948 game files (0 skipped) at path "/media/nazarden/Work/Games/Blade and Soul/contents/bns/CookedPC"
Scanned game directory in 11.1 sec, 86274 allocs, 0.00 MBytes serialized in 0 calls.
Loading package: 00002172.upk Ver: 573/1 Engine: 4205 Names: 71 Exports: 1 Imports: 15 Game: 80001B
Loaded in 0.0 sec, 14 allocs, 0.00 MBytes serialized in 1 calls.
Memory: allocated 5000990 bytes in 40052 blocks
Loading MaterialInstanceConstant col1 from package 00002172.upk
Loading package: 00002171.upk Ver: 573/1 Engine: 4205 Names: 30 Exports: 3 Imports: 2 Game: 80001B
Loading package: 00002620.upk Ver: 573/1 Engine: 4205 Names: 576 Exports: 7687 Imports: 96 Game: 80001B
Loading Texture2D monaxe01_n from package 00002171.upk
******** Loading object Texture2D'00002171.monaxe01_n' ********
*** ERROR: Unable to read 1 bytes at pos=0x5A70F1D0
FFileReader::Serialize:File=00002171.upk <- FArchive::ByteOrderSerialize <- UObject::Serialize <- UTexture3::Serialize <- UTexture2D::Serialize <- LoadObject:Texture2D'00002171.monaxe01_n', pos=5A70F1D0, ver=573/1, game=bns <- UObject::EndLoad <- LoadWholePackage:00002172 <- ExportPackages <- Main:umodel_build=1003


$ ./umodel  -noanim -nomesh -nostat -game=bns -out="/home/nazarden/tmp/2_Umodel_all/UmodelExport" -export "/media/nazarden/Work/Games/Blade and Soul/contents/bns/CookedPC/00002617.upk"
Detected game root /media/nazarden/Work/Games/Blade and Soul/contents/bns/CookedPC
Found 39948 game files (0 skipped) at path "/media/nazarden/Work/Games/Blade and Soul/contents/bns/CookedPC"
Scanned game directory in 11.1 sec, 86274 allocs, 0.00 MBytes serialized in 0 calls.
Loading package: 00002617.upk Ver: 573/1 Engine: 4205 Names: 34 Exports: 6 Imports: 4 Game: 80001B
Loaded in 0.0 sec, 14 allocs, 0.00 MBytes serialized in 1 calls.
Memory: allocated 5000494 bytes in 40052 blocks
Loading Texture2D JinF_001_col1_D from package 00002617.upk
******** Loading object Texture2D'00002617.JinF_001_col1_D' ********
*** ERROR: Error seeking to position 0xFFFFFFFF94CDD92F
FFileReader::Serialize:File=00002617.upk <- FArchive::ByteOrderSerialize <- UObject::Serialize <- UTexture3::Serialize <- UTexture2D::Serialize <- LoadObject:Texture2D'00002617.JinF_001_col1_D', pos=94CDD92F, ver=573/1, game=bns <- UObject::EndLoad <- LoadWholePackage:00002617 <- ExportPackages <- Main:umodel_build=1003
Logged
Skyward
Newbie
*
Posts: 4


View Profile
Re: UModel linux and Blade and Soul error
« Reply #3 on: May 12, 2019, 14:42 »

After this 5 command even /home/nazarden/tmp/2_Umodel_all/UmodelExport/ not created.

On Windows this 5 command extract:
/media/nazarden/Work/3_Umodel$ find UmodelExport
UmodelExport
UmodelExport/00002171
UmodelExport/00002171/Texture2D
UmodelExport/00002171/Texture2D/monaxe01_d.tga
UmodelExport/00002171/Texture2D/monaxe01_n.tga
UmodelExport/00002171/Texture2D/monaxe01_s.tga
UmodelExport/00002172
UmodelExport/00002172/MaterialInstanceConstant
UmodelExport/00002172/MaterialInstanceConstant/col1.mat
UmodelExport/00002172/MaterialInstanceConstant/col1.props.txt
UmodelExport/00002617
UmodelExport/00002617/Texture2D
UmodelExport/00002617/Texture2D/JinF_001_col1_D.tga
UmodelExport/00002617/Texture2D/JinF_001_col1_N.tga
UmodelExport/00002620
UmodelExport/00002620/Material3
UmodelExport/00002620/Material3/Basic.mat
UmodelExport/00002620/Material3/Basic.props.txt
UmodelExport/00002620/Texture2D
UmodelExport/00002620/Texture2D/check.tga
UmodelExport/00002620/Texture2D/check_n.tga
UmodelExport/00012963
UmodelExport/00012963/Texture2D
UmodelExport/00012963/Texture2D/Gradient_Line_003.tga
UmodelExport/00012963/Texture2D/Gradient_Wipe_BurnOut_Mask.tga
UmodelExport/00012963/Texture2D/Gradient_Wipe_BurnOut_Mask_TEST.tga
UmodelExport/00012963/Texture2D/Smoke_Pattern_001.tga





If I remove -noanim -nomesh -nostat with first file (linux):
$ ./umodel -game=bns -out="/home/nazarden/tmp/2_Umodel_all/UmodelExport" -export "/media/nazarden/Work/Games/Blade and Soul/contents/bns/CookedPC/00001029.upk"
Detected game root /media/nazarden/Work/Games/Blade and Soul/contents/bns/CookedPC
Found 39948 game files (0 skipped) at path "/media/nazarden/Work/Games/Blade and Soul/contents/bns/CookedPC"
Scanned game directory in 11.3 sec, 86274 allocs, 0.00 MBytes serialized in 0 calls.
Loading package: 00001029.upk Ver: 573/1 Engine: 4205 Names: 432 Exports: 388 Imports: 31 Game: 80001B
Loaded in 0.0 sec, 15 allocs, 0.04 MBytes serialized in 10 calls.
Memory: allocated 5039478 bytes in 40053 blocks
Loading Material3 Ice_ball_Absorb_Mat from package 00001029.upk
Loading StaticMesh3 AncientMechaKing-DecalLaser03 from package 00001029.upk
Loading package: 00012892.upk Ver: 573/1 Engine: 4205 Names: 1118 Exports: 6459 Imports: 380 Game: 80001B
Loading StaticMesh3 AncientMechaKing_Decal_Laser01 from package 00001029.upk
Loading StaticMesh3 AncientMechaKing_DecalLaser03 from package 00001029.upk
Loading StaticMesh3 AncientMechaKing_WingBreath_decal from package 00001029.upk
Loading StaticMesh3 AncientMechaMonk_PlaneBlock from package 00001029.upk
Loading StaticMesh3 AncientMechaScorpion_clawTailAttack_01 from package 00001029.upk
Loading StaticMesh3 AncientMechaScorpion_clawTailAttack_02 from package 00001029.upk
Loading StaticMesh3 AncientMechaScorpion_DecalMesh_60 from package 00001029.upk
******** Loading object StaticMesh3'00001029.AncientMechaScorpion_DecalMesh_60' ********
*** ERROR: Error seeking to position 0xFFFFFFFFDF4305FF
FFileReader::Serialize:File=00001029.upk <- FArchive::ByteOrderSerialize <- UObject::Serialize <- UStaticMesh3::Serialize <- LoadObject:StaticMesh3'00001029.AncientMechaScorpion_DecalMesh_60', pos=DF4305FF, ver=573/1, game=bns <- UObject::EndLoad <- LoadWholePackage:00001029 <- ExportPackages <- Main:umodel_build=1003


Maybe -game=bns not working on linux?

P.S. fiest 5 files + 00008603.upk:
https://drive.google.com/file/d/1rn3Dn98oddevsqoqP5zRHkh1y8IMvAPP/view?usp=sharing
Logged
Gildor
Administrator
Hero Member
*****
Posts: 7973



View Profile WWW
Re: UModel linux and Blade and Soul error
« Reply #4 on: May 12, 2019, 16:46 »

Fixed, thank you for detailed report.
https://github.com/gildor2/UModel/commit/620152e3d3a8f7fb45c2fab722a7df0ef8bf76b7
Logged
Skyward
Newbie
*
Posts: 4


View Profile
Re: UModel linux and Blade and Soul error
« Reply #5 on: May 12, 2019, 17:43 »

Looks working now. Thanks!
Logged
Jump to:  

Powered by SMF | SMF © 2006-2009, Simple Machines LLC
Leviathan design by Bloc | XHTML | CSS