I can reproduce this on my end and have provided more info to the engineering team.
Can you tell me what Windows version you are using?
Also, the engineering team ask me if you were out of disk space. I assume you are not, but can you confirm?
It will be available on January 27th.
I just realized that the machine I used for testing was actually running the most recent Insider build of Windows 10 (1102) rather than the last stable release. On my other machine, which has a stable Windows 10 installed, everything works fine. So perhaps this is a temporary Windows bug that will be fixed in a later build.
Interesting, thanks.
I got an error running âcocos newâŚâ
File â/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/locale.pyâ, line 475, in _parse_localename
raise ValueError, âunknown locale: %sâ % localename
ValueError: unknown locale: utf-8
Fixed with:
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
source ~/.bash_profile
Yes, that is the fix.
Hi I started a new project cocos2d-js yesterday with Cocos all-in-one, everything goes fine, but when I tried to compile for web platform the console result is the following:
ANT_ROOT not defined. Please define it in your environment.
I looked at the Applications->Cocos and tried to find the .bash_profile to set the ant_root, but I couldnât get to the file. Can someone help me please
This is minor, but I see that Cocos on OSX uses one of those password boxes (for login) that wonât allow you to paste text into it. Thatâs kind of annoying since I use a password generator for all of my login info, typing dozens of random characters blindly into a password field is an exercise in frustration. Is the extra security on that field really necessary?
I somehow managed to build my old project with cocos2d-x 3.10. Here is a strange issue:
Old project (3.8) Application.mk
APP_STL := gnustl_static
APP_CPPFLAGS := -frtti -DCC_ENABLE_CHIPMUNK_INTEGRATION=1 -std=c++11 -fsigned-char
APP_LDFLAGS := -latomic
APP_ABI := armeabi armeabi-v7a
APP_CPPFLAGS += -DCOCOS2D_DEBUG=1
APP_OPTIM := debug
APP_CPPFLAGS += -DNDEBUG
APP_OPTIM := release
APP_PLATFORM := android-15
3.10 Application.mk
APP_STL := gnustl_static
APP_CPPFLAGS := -frtti -DCC_ENABLE_CHIPMUNK_INTEGRATION=1 -std=c++11 -fsigned-char
APP_LDFLAGS := -latomic
APP_ABI := armeabi armeabi-v7a
ifeq ($(NDK_DEBUG),1)
APP_CPPFLAGS += -DCOCOS2D_DEBUG=1
APP_OPTIM := debug
else
APP_CPPFLAGS += -DNDEBUG
APP_OPTIM := release
endif
APP_PLATFORM := android-15
With the new one, rapidjson IsString() function fails. When i change it to the old one, it works.
What I think is happening is that the Cocos tool doesnât respect if you have ANT_ROOT or an Android environment already defined.
Look at what is in Cocos -> Preferences -> Platform.
There is also a one-click configure option that you can try
Congratulations!! Thanks for the great work. I am looking into the Jquery for some of the text input etc. I hope cocos2d-x can support more on application type of features, like text input, media auto/video recording, etc.
Question to @slackmoehrle
Is cocos team working on new platforms like tvOS, androidTV, watchOS, android wear? Only for tvOS thereâs an unofficial solution.
Also, whatâs even more important, what about android studio support. I mean real support. With gradle, debugging etc. On precompiled libs Many people asks for that.
We are talking about tvOS support. Other platforms donât even use OpenGL (like WatchOS) so we canât support this right now.
We support Android Studio now, but I think we donât do everything with gradle and debugging perfectly at this point. I really donât know what aspects of Android Studio support we are currently lacking.
Thank you. That worked \m/
Great news! Thanks for all the awesome work on this. I already moved my project to 3.10 and works like a charm.
@slackmoehrle Do you know if this is the proper place to post Cocos Studio bugs/requests ? It doesnât seem to have much activity.
I donât know about WatchOS, but Iâm pretty sure both Android TV and Android Wear do support OpenGL. On LG G Watch I was able to run my cocos2d-x game from eclipse. It worked, but ofc it needs some enchantments for smaller screen and somehow be packaged within smartphone app (because you canât install apps directly at user conditions). I was even able to run game made in Flash (air sdk)
Iâm sure itâs similar for Android TV.
As for android studio Iâve just created 2 test projects:
-
NewCocosProjectPrecompiled
-
NewCocosProjectSourceCode
-
yells âOnly a cocos source code project can be opened in Android Studioâ. Why canât precompiled project work in Android studio?
-
Project opens, but I only âNothing to showâ in Project panel, I canât run app (run is grayed out).
Anyway SourceCode is no-go for me. It compiles too long and takes too much space.
Thank you for this new release!
Just a quick question, what is the right way to update an existing project?
In the past Iâve done this:
- Extract the new cocos zip, running setup.py
- Create a new project for my App
- Copy my Classes and Resources, platform related files in this new App.
- Compare the old and the branch dir to see if I have forgotten something.
Is there a more automatic way to upgrade?
It is not the proper place and we really donât have a place. You can use the Cocos app to provide feedback. You can always send to me and I can communicate it as well.
It depends, are you using the pre-built libraries? If so, it becomes really easy.
The Cocos app will have upgrade functionality built into it soon.
Are you using the source right now in your project?