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

Failure to read the ChunkBoneList on the newest Star Citizen files #156

Open lonelyhawk opened 1 year ago

lonelyhawk commented 1 year ago

An attempt to convert the files like data\objects\spaceships\seats\anvl\carrack\anvl_carrack_command_station.cga results in the following exception:

Unhandled exception. System.ArgumentException: The output char buffer is too small to contain the decoded characters, encoding 'Unicode (UTF-8)' fallback 'System.Text.DecoderReplacementFallback'. (Parameter 'chars')
... << call stack here >>
   at System.IO.BinaryReader.PeekChar()
   at CgfConverter.CryEngineCore.ChunkBoneNameList_745.Read(BinaryReader b) in D:\...\CryEngineCore\Chunks\ChunkBoneNameList_745.cs:line 12

** Sample Model with the issue

LennartSolik commented 1 year ago

Bump. Cant extrackt Objects/Spaceships - Program crashes when extracting Anvil files

lonelyhawk commented 1 year ago

Bump. Cant extrackt Objects/Spaceships - Program crashes when extracting Anvil files

Can you provide a particular file you're having issues with? Anvil Carrack is the reason for the change and it's amazingly working now. Or do you mean you need a build?

Markemp commented 5 months ago

Just checked with the 3.21 SC files and the preliminary 1.6 version of the converter. Looks like its working, at least with that version.

image

I'll close this when the 1.6 release is out if there aren't any other issues.

Markemp commented 5 months ago

Oh. Looks a lot better when I turn on smooth shading. Wasn't that the default back in the day?

image

Baconator650 commented 5 months ago

Could you quickly check 3.22 .cga files, ie the the new C1 ship model. I don't know if I compiled the latest 2.0 repo correctly, but .cga models were throwing an error.

Markemp commented 3 months ago

Missed this comment when it was originally posted. Looks like the current 1.6 version can handle this though: image

Working on a draft 1.6 release and will have that posted soon.