swoolcock / diddy

An Open Source Framework that includes a set of extra functions and APIs for the Monkey language.
MIT License
21 stars 4 forks source link

DiddyData Android error #34

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Open the DiddyData example
2. Compile & run for android 
3. -

What is the expected output? What do you see instead?
Gives the following error:
Monkey Runtime Error: Invalid int: ""

/../framework.monkey<527>
/../framework.monkey<638>
...

What version of the product are you using? On what operating system?
Android 4.0, Monkey 64b, Diddy r495

Please provide any additional information below.
Looks like an Android type casting thing...
Occurs when non existing XML attr gets cast to Int.

Original issue reported on code.google.com by jesse.ei...@gmail.com on 15 Sep 2012 at 3:11

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Ok this turns out to be the same as this problem:
http://monkeycoder.co.nz/Community/posts.php?topic=2009

Not sure how to fix this in a nice way.. maybe use the integer cast method from 
that thread?
For now just setting maskRed, maskGreen & maskBlue properties for each image 
works

Original comment by jesse.ei...@gmail.com on 16 Sep 2012 at 11:52

GoogleCodeExporter commented 9 years ago
Added defaults for XML attributes in DiddyData.  Changeset 0c9fea8dab02.

Original comment by samah...@gmail.com on 20 Mar 2014 at 11:01