mwl4 / ConverterPIX

Conversion tool that is able to convert from the game binary formats (.pmx) to the middle formats (.pix) in Euro Truck Simulator 2 & American Truck Simulator.
https://truckersmp.com/
GNU Lesser General Public License v3.0
67 stars 28 forks source link

Errors when extracting tobj/dds files from hashfs v1 files. #53

Closed dariowouters closed 6 months ago

dariowouters commented 6 months ago

Hi,

Thanks for all the work getting it updated to support hashfs v2, it seems though that it broke extracting tobj/dds files from hashfs v1 files.

Output when extracting a tobj from 1.49 base.scs:

> ./converter_pix.exe -b ./base.scs -e ./out -t /vehicle/wheel/cartrans/cartrans.tobj

 ******************************************
 **        Converter PMX to PIX          **
 **       Copyright (C) 2017 mwl4        **
 ******************************************

<error> [dds] /vehicle/wheel/cartrans/cartrans.dds: File is corrupted
<error> [tobj] /vehicle/wheel/cartrans/cartrans.tobj: Unable to get basic information about DDS '/vehicle/wheel/cartrans/cartrans.dds'!
Unable to convert tobj to old formats: /vehicle/wheel/cartrans/cartrans.tobj

Same when trying to extract a model:

> ./converter_pix.exe -b ./base.scs -e ./out -m /vehicle/wheel/cartrans/cartrans

 ******************************************
 **        Converter PMX to PIX          **
 **       Copyright (C) 2017 mwl4        **
 ******************************************

<error> [dds] /vehicle/wheel/cartrans/cartrans.dds: File is corrupted
<error> [tobj] /vehicle/wheel/cartrans/cartrans.tobj: Unable to get basic information about DDS '/vehicle/wheel/cartrans/cartrans.dds'!
Unable to convert tobj to old formats: /vehicle/wheel/cartrans/cartrans.tobj
<warning> [tobj] /vehicle/wheel/cartrans/cartrans.tobj: Unable to load!
<warning> [material] /automat/d0/d07feb4c16dce97a.mat: Error in material!
<error> [dds] /vehicle/wheel/cartrans/cartrans.dds: File is corrupted
<error> [tobj] /vehicle/wheel/cartrans/cartrans.tobj: Unable to get basic information about DDS '/vehicle/wheel/cartrans/cartrans.dds'!
Unable to convert tobj to old formats: /vehicle/wheel/cartrans/cartrans.tobj
<warning> [tobj] /vehicle/wheel/cartrans/cartrans.tobj: Unable to load!
<warning> [material] /automat/ff/ff8ee3b98a0a545c.mat: Error in material!
<error> [dds] /material/environment/vehicle_reflection_s.dds: File is corrupted
<error> [tobj] /material/environment/vehicle_reflection.tobj: Unable to get basic information about DDS '/material/environment/vehicle_reflection_s.dds'!
Unable to convert tobj to old formats: /material/environment/vehicle_reflection.tobj
<warning> [tobj] /material/environment/vehicle_reflection.tobj: Unable to load!
<warning> [material] /automat/ff/ff8ee3b98a0a545c.mat: Error in material!
[model] cartrans: pim:yes pit:yes pis:no pic:no pip:no vertices:1622 indices:2182 materials:4
simon50keda commented 6 months ago

Looks like more people have problems trough ConverterPIXWrapper: https://github.com/simon50keda/ConverterPIXWrapper/issues/9#issuecomment-2071605604 So @mwl4 could you please take a look into it?

mwl4 commented 6 months ago

@simon50keda I am on it.

mwl4 commented 6 months ago

It should be fixed now. Update converter_pix binary. Reopen the issue if you still have problem with this.