Pedro Kayatt Animation Issue with Other Locales
Posts 70
Location Brazil
Added by Pedro Kayatt about 1 year ago

I will begin to test in other devices, but for now the animations made in zwoptex (as in th Grossini plist) are not working properly (it seems that the anchor point of them just change its positions).

In the emulator everything works fine, but when deployed to the device we can notice this error.

On the other hand the Animation test (SpriteAnimationSplit) works fine!

I tried to reproduce the SpriteAnimationSplit, but instead of taking splits of the same texture I tried to use several textures, and I am not sure why but I could not see any animation playing. I will try to post that code here, but I decided to change to the zwoptex file (seems to have better performance and lesse memory).

http://www.youtube.com/watch?v=TOjdavg0VO8

[EDIT] It is not a problem of the Nokia 710, but in fact which any device with a locale different from En. (It was in PT-BR here).

Co-Founder and CEO @ http://www.nakedmonkey.mobi

Our Games: Harlem Shake [ iOS | Android ] / jump Monkey [ WP7 | Android | iOS ]
Our Apps: Series Notifier [ WP7 ]

Pedro Kayatt Fix Locales
Posts 70
Location Brazil
Added by Pedro Kayatt about 1 year ago

To fix that problem I changed again the Engine it self. Just add these lines in the CCSAXParser.cs

Method

public bool parse(string pszFile)

      // C#
      // Put the following code before InitializeComponent()
      // Sets the culture to French (France)
      Thread.CurrentThread.CurrentCulture = new CultureInfo("en-US");
      // Sets the UI culture to French (France)
      Thread.CurrentThread.CurrentUICulture = new CultureInfo("en-US");

Co-Founder and CEO @ http://www.nakedmonkey.mobi

Our Games: Harlem Shake [ iOS | Android ] / jump Monkey [ WP7 | Android | iOS ]
Our Apps: Series Notifier [ WP7 ]

Evgeniy Rojkov RE: Animation Issue with Other Locales
Posts 37
Added by Evgeniy Rojkov about 1 year ago

its bad practice to change CurrentCulture
use CultureInfo.InvariantCulture

Pedro Kayatt RE: Animation Issue with Other Locales
Posts 70
Location Brazil
Added by Pedro Kayatt about 1 year ago

Hi Evgeniy,

Thanks for your suggestion, but just setting this I can assure that the file will not read a "," as a "."?

I will probably try it later, I just can assure that this way is working!

Co-Founder and CEO @ http://www.nakedmonkey.mobi

Our Games: Harlem Shake [ iOS | Android ] / jump Monkey [ WP7 | Android | iOS ]
Our Apps: Series Notifier [ WP7 ]

Evgeniy Rojkov RE: Animation Issue with Other Locales
Posts 37
Added by Evgeniy Rojkov about 1 year ago

im from russia. and our locale setting also use comma instead dot.
im already posted here thread about locale bug. http://www.cocos2d-x.org/boards/17/topics/10172
it was ignored. i made handmade fix in local git branch.
dunno how to ask admins fix this problem.

Pedro Kayatt RE: Animation Issue with Other Locales
Posts 70
Location Brazil
Added by Pedro Kayatt about 1 year ago

Indeed,

We (Brazilians and Russians) have a lot of thing in common than we realize!

Same here, doing some local git fixes for some stuff (as the labels with wrong color). Good to know that more plp are with the mind into this engine!

It would be great if guys like you (who know what are doing) could contribute with fix for this openSource project!

Thx for your help!

Co-Founder and CEO @ http://www.nakedmonkey.mobi

Our Games: Harlem Shake [ iOS | Android ] / jump Monkey [ WP7 | Android | iOS ]
Our Apps: Series Notifier [ WP7 ]


(1-5/5)