Can anim_mode=ce_value only display 2048 out of 9999 possible images?
Posted: Sat May 18, 2019 5:25 pm
Hi, RnD fan since 20 years here, who just recently discovered the wonders of CE:s and GE:s!
A CE value can be 0-9999. By setting anim_mode to ce_value you can specify a custom image for each value. I am setting up a spelling level set for the students at the school where I work, and to make the words a bit smaller I let each element encode two characters. So a double-letter-CE value can be 1-900 (30 different characters, 30*30=900). This works, and this way e.g. 5 CE:s placed side-by-side can form a 10-letter word. When picked, correct words turn into things like emeralds or shields, whereas incorrect words become monsters etc.
But now I want to add letters of different styles (color, font etc), and since I still have a lot of unused values I thought I could just use different number series for different alphabets (1-900 for plain white letters, 901-1800 for red letters etc). This also works to an extent, but the anim_mode feature seems to wrap at 2048, even if I specify more than 2048 frames in graphicsinfo.conf. So 2048 will display the same image as 0, 2049 same as 1, and so on. 0-2047 limits me to just 2 different styles, whereas 0-9999 would allow for 11 styles.
I’m guessing the code for this uses some kind of 11 or 12 bit variable for handling these anim_mode integers, since 11 bits would allow for 0-2047, and 12 bits from -2048 to 2047. Is that the case, or maybe I have just done some mistake in the config?
A CE value can be 0-9999. By setting anim_mode to ce_value you can specify a custom image for each value. I am setting up a spelling level set for the students at the school where I work, and to make the words a bit smaller I let each element encode two characters. So a double-letter-CE value can be 1-900 (30 different characters, 30*30=900). This works, and this way e.g. 5 CE:s placed side-by-side can form a 10-letter word. When picked, correct words turn into things like emeralds or shields, whereas incorrect words become monsters etc.
But now I want to add letters of different styles (color, font etc), and since I still have a lot of unused values I thought I could just use different number series for different alphabets (1-900 for plain white letters, 901-1800 for red letters etc). This also works to an extent, but the anim_mode feature seems to wrap at 2048, even if I specify more than 2048 frames in graphicsinfo.conf. So 2048 will display the same image as 0, 2049 same as 1, and so on. 0-2047 limits me to just 2 different styles, whereas 0-9999 would allow for 11 styles.
I’m guessing the code for this uses some kind of 11 or 12 bit variable for handling these anim_mode integers, since 11 bits would allow for 0-2047, and 12 bits from -2048 to 2047. Is that the case, or maybe I have just done some mistake in the config?