libertyernie / brawltools

BrawlBox and BrawlLib
http://forums.kc-mm.com/index.php?topic=67847.0
143 stars 31 forks source link

Float conversion error in COLLADA file #238

Closed uyjulian closed 3 years ago

uyjulian commented 3 years ago

There is a float conversion error resulting in the incorrect output -...

E-mail me for a sample file.

uyjulian commented 3 years ago

This appears to be a wine-mono issue.

libertyernie commented 3 years ago

Out of curiosity, do you think there's anything that can be fixed in brawlbox so it works on mono on wine?

I know BrawlLib in general makes a lot of assumptions that the architecture is 32-bit (usually assuming that pointers can be converted to 32-bit integers)

uyjulian commented 3 years ago

Don't use (0.0).ToString(CultureInfo.InvariantCulture.NumberFormat) and instead use an alternative method for converting float/double into string.