11-15-2020, 09:18 AM
I've already figured out and stepped around the problem and it is extremely niche and doesn't really need fixing, but since I spent a few hours pulling my hair out, figured I would post here maybe give you wings devs a chuckle..
I've been exporting models with vertex colours for some time in Collada format. Today, I imported a palette from a 2D pixel art app, I had to do the conversion manually in a spreadsheet, dividing byte values by 255, adding commas etc. it loads up fine in wings, everything is working great, until it comes time to export.
Exporter crashes with the message "bad args" in the log. After a lot of trial and error, the short version is: the collada exporter has a string parser the casts "0" or "1" to ints instead of floats, and the next part of the exporter chokes on those ints, and while I *had* done search and replace from " 0," to " 0.0," etc in the palette file, I must have been distracted in the middle of that task and skipped the replace on " 1}" > "1.0}" That left about 20 time bombs in the palette that only go off when saving a file, sometimes, and me testing things like maximum number of colours, maximum palette index etc. Fun times.
I've been exporting models with vertex colours for some time in Collada format. Today, I imported a palette from a 2D pixel art app, I had to do the conversion manually in a spreadsheet, dividing byte values by 255, adding commas etc. it loads up fine in wings, everything is working great, until it comes time to export.
Exporter crashes with the message "bad args" in the log. After a lot of trial and error, the short version is: the collada exporter has a string parser the casts "0" or "1" to ints instead of floats, and the next part of the exporter chokes on those ints, and while I *had* done search and replace from " 0," to " 0.0," etc in the palette file, I must have been distracted in the middle of that task and skipped the replace on " 1}" > "1.0}" That left about 20 time bombs in the palette that only go off when saving a file, sometimes, and me testing things like maximum number of colours, maximum palette index etc. Fun times.