ooflet / Mi-Create

Unofficial watchface creator for Xiaomi wearables ~2021 and above
https://ooflet.github.io/docs
GNU General Public License v3.0
48 stars 4 forks source link

Error: Input string was not in a correct format. #24

Closed borjagns closed 3 months ago

borjagns commented 3 months ago

When trying to compile I get the following error:

error

"Loading D:\borjagns\Documents\EasyFace_Gen2_CompilerV46\nothing 2\nothing 2.fprj Error: Input string was not in a correct format. ============ Errors: 1 ============ Dial name: nothing test Dial type: Normal Dial operating environment requirements: Device Version ≥ 7.1.0 "

I attach the file in case someone manages to compile it. If you fix something in the file please I would like to know what went wrong

nothing-2.zip

ooflet commented 3 months ago

The widget "mes" is causing this error.

Specifically, on BitmapList or the list of images, the index of each image is not a fraction, rather a number representing the month. Instead of "BitmapList="(1/12):enero.png|(2/12):febrero.png|(3/12):marzo.png|(4/12):abril.png..." it should be "BitmapList="(0):enero.png|(1):febrero.png|(2):marzo.png|(3):abril.png...".

Attached is your project fixed up: nothing-2-fix.zip