MaxxWyndham / ToxicRagers

A library for the manipulation of various game files
8 stars 5 forks source link

When reading a TWT: "The output char buffer is too small to contain the decoded characters" #7

Closed LiamDobbelaere closed 2 years ago

LiamDobbelaere commented 2 years ago

When trying to read a Carmageddon 2 TWT, namely DATA\INTRFACE\CarImage\buggyCI.TWT Eagle worked fine so I think it's only with specific TWT files.

The output char buffer is too small to contain the decoded characters, encoding 'Unicode (UTF-8)' fallback 'System.Text.DecoderReplacementFallback'. (Parameter 'chars')'
LiamDobbelaere commented 2 years ago

Sorry, probably has to do with it not being compatible with .NET 6 -> was hard to see as it half-worked. I realized it when the loading of the TWT itself failed, but not from my c2toolkit which uses the same library but on a lower .NET version.