Markemp / Cryengine-Converter

A c# program to convert Crytek files to Collada (XML) format
https://www.heffaypresents.com/GitHub/
GNU General Public License v2.0
208 stars 53 forks source link

[ERROR] "Index was out of range" when attempting to convert a .chr file #118

Closed Clueless-Foolish-Surveyor closed 1 year ago

Clueless-Foolish-Surveyor commented 2 years ago

[Description] I was trying to convert two .chr files from Mechwarrior: Living Legends, a Crysis Wars mod, and the script kept throwing up the "Index was out of range" error on both files. Oddly enough, the script worked just fine on the .cga model in the same folder. I'm not sure if the error is occuring because the assets are custom mod assets or if I'm doing something wrong with these files.

I've attached the objects I'm trying to convert, here's the path for them: _...\Living Legends\Objects\objects_mwll\Vehicles\Innersphere\Tracked\ISRommel


[Screenshots] CryEngineConverter_IndexErrors_treadchr


[Attachments] IS_Rommel.zip

Markemp commented 2 years ago

I'll take a look at this file soon (in the middle of another project right now). .chr files are generally just armatures, so if you're just looking for the geometry it shouldn't be necessary. But if you're looking to rig the geometry to the armature, it can be handy (as opposed to making your own armature).

Clueless-Foolish-Surveyor commented 2 years ago

I'll take a look at this file soon (in the middle of another project right now). .chr files are generally just armatures, so if you're just looking for the geometry it shouldn't be necessary. But if you're looking to rig the geometry to the armature, it can be handy (as opposed to making your own armature).

I think in the case of Living Legends, its seems that the mod uses the .chr to store geometries for the moving bits - that is to say, the legs of the mechs and the treads of the vehicles; it sounds odd to me but I suppose that's how the game works. Nonetheless, thank you for responding and thank you for the very handy tool!

Markemp commented 1 year ago

I think this is fixed. It was an issue with all 0x744 versions of models due to the converter not supporting the chunk table. I'll be releasing v1.4.0 here very soon, so let me know if it is still having problems.

Markemp commented 1 year ago

Closing issue.