squattingmonk / nasher

A build tool for Neverwinter Nights projects
MIT License
43 stars 17 forks source link

When Float is without decimals, it generates a conversion error. #78

Closed julien-lecomte closed 3 years ago

julien-lecomte commented 3 years ago

When filtering json through "jq", integer floats (0.0, 1.0, ...) are converted to integers without decimals (0, 1, ...)

This blocks the packing of the module with an error as Error: Could not convert src/ux/areas.tpl/area_technical.git.json to area_technical.git: {"type":"float","value":0}

This error could be ignorable by being tolerant and treating int as float: 0 as 0.0, etc...

squattingmonk commented 3 years ago

I agree this should be changed. However, the actual conversion is done by neverwinter.nim, so this issue needs to be opened there.