레이블이 cocos2d-x인 게시물을 표시합니다. 모든 게시물 표시
레이블이 cocos2d-x인 게시물을 표시합니다. 모든 게시물 표시

2016년 9월 24일 토요일

Cocos2d-x, Error : Assert failed: reference count should be greater than 0

Fatal signal 11 (SIGSEGV)
D/cocos2d-x debug info: Assert failed: reference count should be greater than 0
E/cocos2d-x assert:
/Users/pineoc/Desktop/Game/proj.android-studio/../cocos2d/cocos/./base/CCRef.cpp function:retain line:89

현재 진행 중인 프로젝트에서 이러한 에러가 나오고 있다.

해당 파일에 들어가서 내용을 보면
void Ref::retain()
{
    CCASSERT(_referenceCount > 0, "reference count should be greater than 0");
    ++_referenceCount;
}

레퍼런스 카운트에 대한 문제인 것 같은데, 이 문제는 처음보는 문제라
분석을 해봐야 겠다.

----------------

현재 주 테스트 기기는 Dell Venue 7 인데
갤럭시 계열 기기는에서는 문제 없이 잘 돌아가는데, 유독 Dell Venue에서만 문제가 발생.
메모리 또는 태블릿이라 문제가 있는 것인지 추측해봤지만
메모리쪽은 모바일폰이랑 태블릿이랑 같아서 문제가 되지 않는것 같다.
단순히 성능이나 안드로이드 OS쪽 문제도 아닌 것 같은데 조금 더 분석이 필요한 것 같다.

----------------

로직을 살펴봤는데 아무래도 JniHelper, JNI를 사용하는 함수에서 문제가 있는 것 같다.
NDK쪽을 활용하는 JniHelper 클래스도 확인해보고 Thread Safe문제도 있는지 확인해봤지만
그 쪽 문제는 아닌 것 같다.

----------------
해당 문제를 없애기 위해서 여러가지 다 해봤는데
AndroidManifest.xml 설정부터 내부 로직까지 수정해봤으나 오류는 계속되었다.
JniHelper를 이용해서 함수를 부르는데에 문제가 있는 것 같아서 NDK쪽 문제인가해서
계속 찾아보았는데

테스트 기기가 x86 프로세서...
지금까지 NDK 빌드를 armeabi 버전으로만 빌드한것이 문제.
그래서 Application.mk에
APP_ABI := armeabi x86으로 수정해주고
빌드를 진행, 실행해봤더니 문제해결.

코드에도 문제가 있었을 수 있지만,
핵심은 프로세서 종류문제였다.

해결방법은 간단하게

APP_ABI := armeabi x86
을 추가해주면 끝.

2016년 9월 8일 목요일

Cocos2d-x 3.13 버전 이슈



자주 코코스2dx 쪽 저장소를 들여다 보곤하는데
3.13 버전에서 문제가 몇 개 있나봅니다.

마일스톤이 하나 올라와 있네요.



3.13.1 버전의 마일스톤이 있습니다.
모두 해결이 된 상태라고 하는데 조만간 업데이트 해야겠군요.
무슨 문제가 있었는지 한 번 볼까요.



문제점을 나열해보자면
1. 3.13버전에서 디자인 resolution을 정해주지않으면 앱이 죽는다.
2. text color가 안먹힌다.
3. 안드로이드의 경우, 앱을 백그라운드에서 아이콘을 눌러서 다시 시작하면 죽는다.
4. 자바스크립트의 경우, jsval_to_std_string이라는 함수에 문제가 있었음.
5. 3.13 안드로이드 OpenSLES 에러, 배경음악 파일이 특정 경로에 있을때 재생하면 에러남.
6. 안드로이드 경우, AudioEngine::stop() 이 finished 콜백함수를 부르는데 문제

다 고쳐진 것 같습니다. 위의 마일스톤을 봤을때는요. ㅎㅎ

아직 다운로드 링크는 3.13.1로 안올라간거 같은데 조만간 올라오지 않을까 싶습니다.
즐거운 게임 개발되시길 바라요~

2016년 8월 30일 화요일

Cocos2d-x 3.13 version released!

http://blog.cocos2d-x.org/2016/08/cocos2d-x-v3-13-released/

코코스 엔진이 3.13 버전이 릴리즈 되었네요 ㅎㅎ
블로그글을 한번 보겠습니다.
  • added VR plugins for Gear, Deepoon, Google Cardboard and Oculus.
  • support ETC1 alpha channel
  • fix AudioEngine performance for Android 4.2+
  • improve canvas renderer performance with dirty region
  • add Andorid arm-64 support switch to use gcc 4.9
  • upgrade CURL to 7.50.0
  • upgrade Spine to 3.4
  • upgrade GLFW to 3.2
자세한 사항은 위에 릴리즈 노트를 보시면 되겠습니다.

일단 하이라이트 변경점만 보면,
음... 저번에 3.12 버전에서 VR을 지원한다고 하더니
이번에는 VR 플러그인을 좀 더 보충한 느낌입니다.
ETC1 알파 채널은 뭔지 찾아봤는데,
"
ETC1픽셀당 알파없이 4bits로 24bits 원본 대비 1/6의 압축률이며, 대부분의 경우 원본과 차이를 못 느낄 정도로 품질이 좋지만, 알파채널을 지원하지 않는다는 큰 단점이 있다. iOS에서는 지원하지 않으며, 안드로이드 2.2(프로요) 이상의 안드로이드 디바이스는 모두 필수적으로 지원한다. 
이런 포맷을 알파 채널을 지원하게끔 개발했다는 것 같습니다.

#안드로이드 4.2 버전 이상에서 오디오 엔진의 성능 향상.
이 부분은 CPU Usage에 있어서 큰 향상이 있었네요

 

하지만 Preload 해야 성능 향상에 효과가 있을거라고 하네요.
"Should preload first, or there is not performance improved for first time playing of the audio."

#Dirty Region in Canvas renderer
Dirty Region algorithm을 통해서 렌더링을 할 때 캔버스의 모든 부분을
리프레시하지 않고 인접한 부분, 특정 부분만 리프레시하게 향상되었다고 합니다.

#Android arm-64 support
android 빌드할 때 arm 64를 지원한다고 하네요.
arm 64 3rd 라이브러리를 제공하는데, 이 말은 곧 arm 64를 지원한다는 뜻이라고합니다.
cocos run -p android --app-abi arm64-v8a
이렇게 빌드 할  수 있다고 합니다.

#gcc 4.9 on Android
이건 버전 3.12에서 이슈가 생겨서 안드로이드 컴파일러 gcc로 다시 바꿨다고 합니다.
(clang+gnustl_static을 사용하는 중에 문제가 생겼다고 합니다. clang을 사용하는 중에 문제가 생겼던듯하네요.)

#CURL 7.50.0으로 업그레이드
CURL의 그 전 버전에서 버그가 있었습니다.
a bug about connect to IPV4 numerical IP address in NAT64 environment )
수정된 버전이 업그레이드 되었습니다.

그 외에 Spine, GLFW가 업그레이드 되었네요.

더 많은 릴리즈 노트 내용을 보시려면
https://github.com/cocos2d/cocos2d-x/blob/v3/CHANGELOG
체인지 로그를 확인해보시는 것도 좋아요 ㅎㅎ

그럼 즐거운 개발되시길 바랍니다

2016년 8월 11일 목요일

Cocos2d-x 3.12 MacOS 설치 후 실행 오류

Cocos2d-x 를 다음프로젝트에 사용하게 되어서 업데이트를 하려했으나
에러를 만나고 말았습니다.
이 에러는 cocos 명령어를 사용하고자 하면 나타났습니다.

➜  cocos2d-x-3.12 cocos
Traceback (most recent call last):
  File "/Users/pineoc/Desktop/cocos2d-x-3.12/tools/cocos2d-console/bin/cocos.py", line 22, in <module>
    import cocos_project
  File "/Users/pineoc/Desktop/cocos2d-x-3.12/tools/cocos2d-console/bin/cocos_project.py", line 4, in <module>
    import cocos
  File "/Users/pineoc/Desktop/cocos2d-x-3.12/tools/cocos2d-console/bin/cocos.py", line 936, in <module>
    language, encoding = locale.getlocale()
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/locale.py", line 562, in getlocale
    return _parse_localename(localename)
  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

에러를 요약하자면,
ValueError: unknown locale: UTF-8

UTF-8이라는 locale이 없다는 것인데,
저는 일단 컴퓨터의 환경설정이 지금 설치하고자 하는 버전과 잘 맞는지
확인해보았습니다.

Build Requirements

v3.12


  • Mac OS X 10.7+, Xcode 7+
  • Ubuntu 14.04+, gcc, CMake 2.6+
  • Windows 7+, VS 2013 or VS 2015
  • Python 2.7.5
  • NDK r10c+ is required to build Android games
  • Clang for developing Android games
  • Windows Phone/Store 8.1, VS 2013 Update 4+ or VS 2015
  • Windows Phone/Store 10.0, VS 2015
음.. 다 충족합니다.
뭐가 문제일까 하고 구글에게 물어봅니다.

위의 링크인 이슈 논의를 봤는데
아래와 같이 설정해주면 에러없이 잘 동작한다고 해서 해봤습니다.

$export LC_ALL=en_US.UTF-8
$export LANG=en_US.UTF-8

설정을 한 후에 실행해보았습니다.
$cocos


잘 되네요 ㅎㅎㅎ
에러의 원인은 예상하기로는
MAC + python 문제인 것으로 보입니다.

이참에 파이썬도 업데이트 해야겠습니다.

즐거운 코딩하시길 바라요 ㅎㅎ

2016년 8월 10일 수요일

Cocos Creator v1.2 released!


http://blog.cocos2d-x.org/2016/08/cocos-creator-v1-2-released/

코코스 크리에이터 1.2 버전이 릴리즈 되었네요.
릴리즈 내용은 아래와 같습니다.

1.2 Main Features
  • 1. Build to Lua Engine
  • 2. WebGL auto batching and culling
  • 3. Canvas rendering with dirty region optimization
  • 4. Graphics drawing system
  • 5. Refactored Properties panel supporting customized elements
  • 6. Modular JavaScript Engine
  • 7. AnySDK support
1. 루아 엔진으로 빌드 가능
두 달전에 루아 개발팀하고 만들었다고하는데 이제 루아로도 빌드가 가능해졌다고하네요.
2, 3 을 통해서 웹앱 게임 엔진 성능을 높힘.
배치파일을 통해서 최적화하고 (오토 컬링도 포함), 캔버스 렌더링을 최적화 했다고 하네요.
5배 이상 성능이 좋아졌습니다.

 

4. 그래픽 드로잉 시스템
SVG와 같은 벡터 그래픽 데이터, 이미지를 이용해서 개발할 수 있습니다.

5. 프로퍼티 패널 개선
6. 자바스크립트 엔진을 모듈화
자바스크립트 엔진 모듈화를 통해서 게임에 필요한 모듈만 넣어서 빌드,
게임 엔진 크기를 줄일 수 있게 되었습니다.
7. AnySDK 지원

2016년 8월 4일 목요일

Cocos2d-x v3.12 released!

Cocos2d-x 3.12 버전이 릴리즈 되었네요.
다음 링크는 깃헙에 있는 변경사항 링크입니다.
https://github.com/cocos2d/cocos2d-x/blob/v3/CHANGELOG

업데이트 사항은 다음과 같습니다.

[HIGHLIGHT]     add VR support
[HIGHLIGHT]     add Tizen support
[HIGHLIGHT]     fix Android performance issue
[HIGHLIGHT]     Web engine performance improved in WebGL mode
[HIGHLIGHT]     support obb extension on Android

[NEW]           Core: add `utils::findChild()`
[NEW]           Core: add CSV format support to tile maps
[NEW]           Core: add `FileUtils::getContents()`
[NEW]           Core: cocos2d::Value supports unsigned
[NEW]           Particle: add feature to pause/resume particle emitter
[NEW]           Platform: support Windows 10 UWP x64
[NEW]           UI: add clamp and shrunk feature for system fonts, currently only support iOS, Android and Mac
[NEW]           UI: make ListView select item programmatically
[NEW]           UI: add `EditBox::InputFlag::LOWERCASE_ALL_CHARACTERS` to lowercase characters
[NEW]           UI: add `setBounce()` to WebView
[NEW]           Web: refactor TMXLayer renderers
[NEW]           Web: can force orientation in mobile browser
[NEW]           Web: support high resolution TTF Label on retina display

[REFINE]        Android: use clang instead of gcc to compile codes
[REFINE]        Android: hide virtual button by default
[REFINE]        Android: set music volume control as default
[REFINE]        Android: usage clang insteand of gcc to compile codes
[REFINE]        Audio: catch `IllegalStateException` exception to avoid crash when playing background music with SimpleAudioEngine on Android
[REFINE]        Core: fix many warnings
[REFINE]        Core: move StringUtils functions from deprecated header file to ccUTF8.h
[REFINE]        Core: FontFNT will ignore chars that exceeds 65535 and print a warning information
[REFINE]        Core: `Node::ignoreAnchorPointForPosition()` is deprecated and add `Node::setIgnoreAnchorPointForPosition()`
[REFINE]        Core: allow inherit from platform FileUitils
[REFINE]        Core: add optional alpha parameter to Color4B and Color4F
[REFINE]        Core: Follow action can accept horizontal and vertical offset
[REFINE]        Core: TMXXMLParse parse `id` element
[REFINE]        Lua: rename all member functions named `end()` to `endLua()`
[REFINE]        JSB: make selectedSprite opitional in MenuItemSprite
[REFINE]        JSB: return null if read failed in `js_cocos2dx_CCFileUtils_getDataFromFile()`
[REFINE]        Template: iOS tempalte is refined to make cocos2d-x game scene work better with other UIView
[REFINE]        Template: remove `build_native.sh`
[REFINE]        Template: ARC support on iOS and Mac OS
[REFINE]        UI: TTF and BMFont label wrap mode will automanytically changed to char wrap mode when label's width is less than word's boundary
[REFINE]        UI: UIWidget adds missing properties for clone
[REFINE]        UI: UIScrollBar caches the texture created with base64 encoded images
[REFINE]        UI: EditBox now prints lowercase letters by default
[REFINE]        UI: enable WebView's local storage on Android
[REFINE]        UI: improve EditBox implementation on WinRT
[REFINE]        UI: make PageView indicator more tunable
[REFINE]        UI: make PageView page turning event time tweak configurable
[REFINE]        UI: RichText is improved: add effect of outline, shadow and glow; catch the event of open url; ability to extend tags; add anchor of image tag
[REFINE]        3D: skeleton animation is more efficient when two animations switch frequently
[REFINE]        3rd party: update webp to 0.5.0
[REFINE]        Web: improve basic types to reduce memory usage
[REFINE]        Web: Show line number in console statements
[REFINE]        Web: Cache base64 image of PageViewIndicator and ScrollViewBar
[REFINE]        Web: Pass error in cc.AsyncPool in onEnd callback
[REFINE]        Web: Separate ccui.ListView event callback from ccui.ScrollView for its own events

[FIX]           Android: fix compiling error if using NDK r11+
[FIX]           Android: package name is `libcocos2dx` instead of application name if building with Android Studio
[FIX]           Audio: AudioEngine can not work if the file path contains not ascii code on iOS
[FIX]           Audio: SimpleAudioEngine::playEffect() doesn't work correctly on Linux
[FIX]           AssetsManager: can not work
[FIX]           AssetsManagerEx: use manifestUrl from remote version
[FIX]           Core: `FileUtils::writeValueMap()` will crash on iOS if it contains `Value::Type::None` type element
[FIX]           Core: `ClippgNode::setStencil()` may cause assert error if it is invoked before
[FIX]           Core: `TextureCache::addImageAsync()` doesn't set pixel format corretly
[FIX]           Core: `GL::SetBlending()` doesn't set dst correctly
[FIX]           Core: vertex z can not work correctly if window size changed on desktop platforms
[FIX]           Core: use `std::isnan()` instead of `isnan()` to fix compiling errors on some Linux platforms
[FIX]           Core: crash on windows when using PolygonInfo
[FIX]           Core: fix `libpng error: CgBI: unhandled critical chunk` error with Xcode 7.3
[FIX]           Core: EXC_BAD_ACCESS random crash caused by reallocation of shared indices memory
[FIX]           Core: memory leak of `utils::captureScreen()` on iOS and Mac OS
[FIX]           Core: assert error if remove an event listener twice at the same time
[FIX]           Core: FileUtils::getValueMapFromFile() returns wrong value if it is a number with scientific notation on Android
[FIX]           Core: UIGrayScale shader is not reloaded when reloading shaders
[FIX]           Core: `SpriteFrame::clone()` doesn't clone polygonInfo
[FIX]           Core: `FileUtils::createDirectory()` fails on Mac OS with sandbox
[FIX]           Core: `cocos2d::Value` operator overloading of comparison `==` returns wrong value in case Type::VECTOR 
[FIX]           Core: wrong content size if minisize
[FIX]           Core: can not have a class named `Game` on Windows
[FIX]           Core: crash if load bad image on Windows
[FIX]           Core: custom shader uniforms and attributes do not have effect in DrawNode
[FIX]           Core: blend mode doesn't work with animated sprite
[FIX]           Core: `FileUtils::removeDirectory()` can not work correctly when the path is not end of `/` on iOS and Mac
[FIX]           JSB: fix some bugs related with JSB debegger
[FIX]           JSB: scheduler callback target lost
[FIX]           JSB: missing scroll widgets constants
[FIX]           JSB: if obj is undefined or null then attempt to access obj.__nativeObj leads to incorrect behavior
[FIX]           JSB: use `require()` to require the same script twice may crash
[FIX]           Lua: lua function is not invoked when error happens in websocket
[FIX]           Network: HttpClient Content-type limitation on iOS
[FIX]           Network: downloader crash when storage path contains spaces
[FIX]           Network: SocketIO crash on reconnect
[FIX]           Physics: PhysicsBody damping doesn't wrok
[FIX]           UI: EditBox may cause `java.lang.IndexOutOfBoundsException` exception on Android
[FIX]           UI: TextFieldTTF doesn't show password correctly
[FIX]           UI: RichText crash on Windows
[FIX]           UI: EditBox can not use custom font on Android
[FIX]           UI: can not use TTF font on Android
[FIX]           RenderTexture: `setOpacity()` has not effect
[FIX]           3D: `Sprite3D::createNode()` may not work correctly with particular model data
[FIX]           Web: `getParentToNodeTransform` doesn't return result
[FIX]           Web: remote image without extension in url can't be loaded as image
[FIX]           Web: nested clipping nodes rendering issue in WebGL render mode
[FIX]           Web: IMEDispatcher can't work in mobile Chrome


영어로 되어있긴하지만 주요 업데이트 내용은 다음과 같습니다.
1. VR 지원
2. 타이젠 지원
3. 안드로이드 성능 이슈 해결
4. 웹 엔진 성능 WebGL mode로 향상
5. obb extension 안드로이드 지원

그 외 새로 추가된 메서드, 이슈 해결 관련 목록이네요
천천히 읽어보고 추가할 내용있으면 추가해서 다시 작성해보겠습니다.

즐거운 개발 되시길 바랍니다.

2016년 6월 23일 목요일

Cocos2d-x 3.12 is Comming!

https://madmimi.com/s/65cae7#

Cocos2d-x v3.12 coming soon!

Cocos2d-x v3.12 is coming out at the end of June. This release focuses on:
▪ Android performance fixes (You can already get these by pulling from our GitHub repo!)
▪ the web engine is receiving a big performance upgrade. The WebGL and Canvas renderers have been completely refactored from the ground up. This means improved rendering and a reduced memory footprint.
▪ experimental VR support! Initial support for Google CardboardGearDeepoon and Oculus. Read about how VR was implemented on our forums.
▪ and more bugs fixes


And Cocos2d-x 3.11.1 version released on May
Cocos2d-x v3.11.1 is out. This release is a bug fix release:
▪ support ipv6-only networks
▪ fixes for generating the pre-built libraries.

http://discuss.cocos2d-x.org/t/cocos2d-x-v3-11-released/29253


2016년 5월 13일 금요일

Cocos2d-x 3.11 released!

I received mail from cocos2d-x,

Cocos2d-x 3.11 released,

check this release.

▪ upgrade Chipmunk to v7.0.1.
▪ use new memory model in JSB, don't have to invoke retain/release in JavaScript. It is disabled by default.
▪ support the Tizen platform.
▪ upgrade Curl to v7.48.
▪ upgrade OpenSSL to 1.0.2g.
▪ can now use VSCode and new Firefox to debug Cocos2d-x JSB programs.

before this version 3.11
we have some problem on OpenSSL, 
like this : http://pineoc.blogspot.kr/2016/04/google-play-warning-you-are-using.html

Update and recompile the app,
This warning will be disappear. i guess.
This post is about OpenSSL update : http://blog.cocos2d-x.org/2016/04/openssl-update/

another release note here
http://discuss.cocos2d-x.org/t/cocos2d-x-v3-11-released/29253

Thanks

2016년 4월 21일 목요일

Cocos2d-x android:label setting fail error



*ENV
- Windows 8.1
- Cocos2d-x 3.9
- Android studio 2.0

*Problem
Merging manifest with lower [proj.android-studio:libcocos2dx:unspecified] AndroidManifest.xml:2:1-16:12
Merging uses-sdk with lower [proj.android-studio:libcocos2dx:unspecified] AndroidManifest.xml:7:5-9:41
Merging application with lower [proj.android-studio:libcocos2dx:unspecified] AndroidManifest.xml:11:5-14:19
Merging result:ERROR
myapp\proj.android-studio\app\AndroidManifest.xml:11:9-41 Error:
        Attribute application@label value=(@string/app_name) from AndroidManifest.xml:11:9-41
        is also present at [proj.android-studio:libcocos2dx:unspecified] AndroidManifest.xml:13:9-36 value=(libcocos2dx).
        Suggestion: add 'tools:replace="android:label"' to element at AndroidManifest.xml:8:5-28:19 to override.

I try it Suggestion.

Add code tools:replace="android:label" to element
Like this.


Do Build and success.
PS. It should add xmlns="https://schemas.android.com/tools".


Save your day!

Cocos2d-x back button twice click exit


I want to use back button function on Cocos2d-x application
(In all View)

So, I use onBackPressed(), onKeyDown(), onKeyUp() functions but
not working.

But dispatchKeyEvent() function worked.

code is here





Save Your day!
Happy Coding!

2016년 4월 18일 월요일

libpng error: CgBI: unhandled critical chunk

* Environment
Cocos2d-x 3.10 + Xcode 7.3

* Error
"libpng error: CgBI: unhandled critical chunk"


* Solution
Build Settings -> Compress PNG files - Packaging -> Remove Text Metadata From PNG
set "Yes" to "No" (default is "Yes")

I hope you can save time.

Cocos2d-x The operation couldn't be completed Error - Solved


Problem post: http://pineoc.blogspot.kr/2016/04/cocos2d-x-operation-couldnt-be.html


This problem caused by resources folder.

like this screenshot.


In this situation,
I add Resources folder to my project.
"create folder references"



How to Fix

Do not add Resources folder using "Create folder references".
Add Resources folder using "Create groups" and add folders in Resources.

Like this image



My directory tree



This is my solution of this error.

I hope you will save time

2016년 4월 15일 금요일

cocos2d-x The operation couldn't be completed Error

Cocos2d-x "The operation couldn't be completed" Error occurred on iOS porting


*My develop Environment

OS: Mac
Xcode : 7.3 version
Cocos2d-x : 3.10


*Problem

Error occurred picture.



The operation couldn't be completed (LaunchServicesError error 0.)

In my situation,
Error occurred that Resources file directory added using "Create folder references".

If add Resource directory using "Create groups",
Error occurred "Possible missing file."

*Try

- Try1
1. Xcode project, Product -> Clean
2. Simulator, Simulator-> Reset content and settings
3. Run
->Not Work.

- Try2
1. Check log "~/Library/Logs/CoreSimulator/CoreSimulator.log"
2. Can find this text


Apr 15 14:21:14  CoreSimulatorService[954] <Error>: Could not register service com.apple.coreservices.lsuseractivity.simulatorsupport: Failed to lookup com.apple.coreservices.lsuseractivity.simulatorsupport: 0x44e

Apr 15 15:15:30  com.apple.dt.Xcode[2667] <Error>: Error Domain=LaunchServicesError Code=0 "(null)" UserInfo={Error=MissingBundleIdentifier, ErrorDescription=Bundle at path /Users/moon1000_mac_mini/Library/Developer/CoreSimulator/Devices$


Apr 15 15:27:01  com.apple.dt.Xcode[2667] <Error>: Error Domain=LaunchServicesError Code=0 "(null)" UserInfo={Error=MissingBundleIdentifier, ErrorDescription=Bundle at path /Users/moon1000_mac_mini/Library/Developer/CoreSimulator/Devices$

I think error key code is, MissingBundleIdentifier
Also

"Failed to lookup com.apple.coreservices.lsuseractivity.simulatorsupport"

can be key code.
google it, result of first doc.
http://stackoverflow.com/questions/26396166/unable-to-run-app-in-simulator
Resources directory rename to "app_data"

3.Run
->Not work.(no error, but can not find image datas at running app)

- Try3
1. Xcode, Simulator, computer reboot
2. run
->Not work.(no error, but can not find image datas)

I will try next time...

I hope you can save time using this try.
(It can help to your project because some situations can be helped)


Solved Link: http://pineoc.blogspot.kr/2016/04/cocos2d-x-operation-couldnt-be_18.html


2016년 4월 1일 금요일

Google Play warning: You are using a vulnerable version of OpenSSL

Google Play warning: You are using a vulnerable version of OpenSSL

I received mail to google.
contents is this.

Hello Google Play Developer,
Your app(s) listed at the end of this email utilize a version of OpenSSL that contains one or more security vulnerabilities. If you have more than 20 affected apps in your account, please check theDeveloper Console for a full list.
Please migrate your app(s) to OpenSSL 1.02f/1.01r or higher as soon as possible and increment the version number of the upgraded APK. Beginning July 11, 2016, Google Play will block publishing of any new apps or updates that use older versions of OpenSSL. If you’re using a 3rd party library that bundles OpenSSL, you’ll need to upgrade it to a version that bundles OpenSSL 1.02f/1.01r or higher.
The vulnerabilities were addressed in OpenSSL 1.02f/1.01r. The latest versions of OpenSSL can be downloaded here. To confirm your OpenSSL version, you can do a grep search for ($ unzip -p YourApp.apk | strings | grep "OpenSSL").
To confirm you’ve upgraded correctly, submit the updated version to the Developer Console and check back after five hours. If the app hasn’t been correctly upgraded, we will display a warning.
The vulnerabilities include "logjam" and CVE-2015-3194. The Logjam attack allows a man-in-the-middle attacker to downgrade vulnerable TLS connections to 512-bit export-grade cryptography. This allows the attacker to read and modify any data passed over the connection. Details about other vulnerabilities are available here. For other technical questions, you can post to Stack Overflow and use the tags “android-security” and “OpenSSL.”
While these specific issues may not affect every app that uses OpenSSL, it’s best to stay up to date on all security patches. Apps with vulnerabilities that expose users to risk of compromise may be considered in violation of our Malicious Behavior policy and section 4.4 of the Developer Distribution Agreement.
Apps must also comply with the Developer Distribution Agreement and Developer Program Policies. If you feel we have sent this warning in error, contact our policy support team through theGoogle Play Developer Help Center.
Regards,
The Google Play Team
©2016 Google Inc. 1600 Amphitheatre Parkway, Mountain View, CA 94043 

Email like this and my app is implemented using cocos2d-x engine.

The app cocos2d-x version 3.8
I Think this issue not critical, but we should fix it. 

2016년 3월 21일 월요일

cocos2d-x 3.x android-studio project run error

Cocos2d-x 3.x android-studio project run error

I have some error on cocos2d-x build on android-studio.
Error is

java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/.../base.apk"],
nativeLibraryDirectories=[/data/app/.../lib/arm, /vendor/lib, /system/lib]]] couldn't find "libcocos2dcpp.so"
  at java.lang.Runtime.loadLibrary(Runtime.java:367)
  at java.lang.System.loadLibrary(System.java:1076)

I find this solution.

$cocos compile -p android --android-studio

and run from android-studio,
running success without error!

2016년 3월 11일 금요일

Cocos2d-x Cocos Creater



GitHub cocos creater group : https://github.com/cocos-creator

Example of BlackJack game.
(Explained Chinese)

I will make test project later and show it.

PS. I can't follow example project. ;-( 


2016년 3월 2일 수요일

Cocos Creator in Beta


Cocos Creator is Cocos Studio next version i guess.

cocos download page : http://cocos2d-x.org/download

Mac version download : http://cdn.cocos2d-x.org/CocosCreator_v0.7.1_mac_en.zip

Windows version download : http://cdn.cocos2d-x.org/CocosCreator_v0.7.1_win_en.zip


UI screen


After Login



New Project!


create project Hello World!


click the play button, result




2016년 1월 5일 화요일

Cocos2d-x 3.9 version Release note



  1. 3D Module:
    • Added 3D MotionStreak to support streak effect.
    • Refined Sprite3D to support material system.
  2. 2D Module:
    • Added frame callback function and animation callback function.
    • Added script component system.
    • Reconstruction of 2D physics with Component.
    • Improved EditBox implementation on iOS and Win32 platform.
    • Removed dependence of libcurl on AssetsManagerAssetsManagerEx and Downloader (iOS & Android).
    • Improved particle performance.
  3. Others:
    • Supported Action inheritance, update function overwriting in JSB.
    • Improved ScrollView performance in Web engine.
    • Improved Scale9Sprite performance in Web engine.
    • Decoupled Sprite'setTexture() and updateColor() in Web engine.
    • Added support for debugging and release on real devices with Xcode7 and iOS9.

(KR)
번역해보자면,
1. 3D 모듈
- MotionStreak이 streak 효과를 지원한다.
- Material system을 지원하기위해 Sprite3D를 개선함.
     texture mapping의 진화된 버전이라고 볼 수 있는데 실제 물체처럼 보여질 수 있는 
     시스템을 말한다.
2. 2D 모듈
- frame 콜백 함수와 animation 콜백 함수 추가
- 스크립트 컴포넌트 시스템 추가
- 2D physics 컴포넌트를 재 구조화
- EditBox 구현을 iOS와 win32 플랫폼에서 향상됨
- libcurl 종속성 제거됨. (AssetsManager, AssetsManagerEx, Downloader에서)
- particle 성능 향상
3. 그 외
- Action 상속 지원, JSB에 함수가 업데이트됨.
- ScrollView가 웹 엔진에서 성능 향상
- Scale9Sprite가 웹 엔진에서 성능 향상
- 웹 엔진에서 Sprite의 setTexture()와 updateColor()가 나눠짐
- Xcode7과 iOS9에서 실제 디바이스에서 디버깅, 릴리즈를 지원함.

번역이 조금 다를 수 있는데 큰 의미에서 봐주세요 ㅎㅎ
곧 3.10 버전이 올라올텐데 올라오면 번역하겠습니다.




Cocos2d-x Roadmap


Link : https://trello.com/b/Np6obnuE/cocos2d-x-roadmap

This link Trello board.

- Core
- Rendering
- Audio
- Tools
- UI
- VR
- 3D
etc

In this time, Cocos2d-x 3.10 version, 3.11 version goes on.


Recently, Cocos2d-x focus on 3D. (I think)
As you can see this roadmap and recent news.

Cocos2d-x will be used to make 3D games.

JIRA Plugin - ScriptRunner 소개 #2

관련 글 소개 #1:  https://pineoc.blogspot.com/2019/03/scriptrunner-1.html ScriptRunner 소개 #2 지난 글에서는 Behaviours를 보았고 다음 내용인 콘솔, 리스너 등을 ...