Unity3D Facebook SDK for iOS Integration 5. 친구에게 자랑하기

이미지
 2013년 11월에 했던것을 잊어먹고 있다가 이제야 정리하네요. 유니티3D iOS 페이스북 친구 목록 얻기 및 친구에게 초대 요청하기 를 정리했었습니다. 이번에는 친구에게 자랑하기를 정리해봅니다.  먼저 iOS 플러그인 소스입니다. // iOSFacebookPlugin.h - ( void ) requestBrag:(NSString*)strTitle              caption:(NSString*)strCaption          description:(NSString*)strDescription              picture:(NSString*)strPicture; // iOSFacebookPlugin.mm extern "C" { ...     void iOSRequestBrag( const char * pszTitle, const char * pszCaption, const char * pszDescription, const char * pszPicture)     {         NSString* strTitle = [NSString stringWithUTF8String:pszTitle];         NSString* strCaption = [NSString stringWithUTF8String:pszCaption];         NSString* strDescription = [NSString stringWithUTF8String:pszDescription];         NSString* strP...

Unity3D Error while importing package: Couldn't decompress package

Error while importing package: Couldn't decompress package  유니티3D에 Custom Package를 임포트하는데 위와 같은 에러가 발생했습니다. 패키지가 들어있는 폴더가 한글이 포함되어 있어서 생겼던 이슈였습니다. 한글이 아닌 다른 폴더에 옮기고 다시 임포트 해주면 됩니다. 역시 개발과 관련된 것은 영문이 기본이죠.

Trello 리서치

이미지
 일정관리용 웹서비스인 트렐로(Trello) 를 리서치 해봤습니다. 직접 사용해보진 않고 리서치를 통해 얻은 정보를 정리해본 것입니다.  사실 트렐로가 무엇인지? 무엇을 할 수 있는지는 아래 영상을 보면 도움이 됩니다.  영상을 보시면 아시겠지만 기존에 화이트보드에 포스트잇을 붙여가면서 했던 일정과 업무분담과 같은 이슈 관리를 온라인 서비스로 옮겨 놓은 협업 도구가 트렐로라고 보면 맞겠네요. 장, 단점을 간단히 정리해보면, 장점 PC와 각종 모바일 디바이스 지원. 구글 계정과의 연동으로 가입 및 로그인이 쉽다. UI가 쉽고 직관적이다. 그래서 개발자가 아닌 분들과의 협업도 가능하다. 개발(프로그램, 디자인, 아트) 관련 뿐 아니라 일상생활이나 기타 다른 직종에서도 사용가능한 범용성 무료 단점 범용성 때문에 오히려 보드와 리스트 또는 스토리 카드추가, 라벨 지정등에 대한 초반이나 지속적인 고민이 필요. 프로젝트가 커지거나 여러 프로젝트를 진행 시 누적되는 리스트와 카드 관리에 대한 이슈.  단점이라고 적은것은 굳이 단점이라기 보다는 활용할 수 있는 방법이 여러가지인 범용적 특성 때문에 생기는 어쩔수 없는 이슈정도로 보면 될 듯합니다.  참고할만한 포스트 Trello로 효율적으로 협업하기 트렐로를 소개합니다 Trello를 사용하자 단순하면서도 효과적인 협업도구 Trello를 소개합니다 트렐로 초보를 위한 따라하기 샘플

Unity3D A prefab somehow lost its way out of its asset file.

이미지
A prefab somehow lost its way out of its asset file. Ignoring it. Save your scene and next time you launch the editor it will be gone.  유니티3D에서 위와 같은 이슈가 발생했습니다. 무시하고 신 저장한 후 다시 에디터를 실행하면 된다는 것 같은데, 아마 다음에는 아래와 같은 이슈가 발생한 듯합니다. Component MonoBehaviour could not be loaded when loading game object. Cleaning up!  Console에서 에러를 클릭하면 문제가 발생하고 있는 것을 Project창에서 보여줍니다. 전 아래 그림과 같이 PlayerShot이라는 프리팹안에 MoveScript 컴포넌트가 인스펙터에서 다른 컴포넌트처럼 붙어 있지 않고 좀 다른 모양새로 붙어있더군요. 링크가 깨진 듯 합니다.  Remove Component해준 후 다시 Add Component 해주니 이상이 없네요.

Cocos2d-x Plugin-X The Google Play services resources were not found. Check your project configuration to ensure that the resources are included.

이미지
mHelper.beginUserInitiatedSignIn();  위와같이 구글 플레이 로그인 처리 중 아래와 같은 이슈가 발생했습니다. 아직 Cocos2d-x의 Plugin-X에 적응하는 과정이고 구글 플레이 게임 서비스도 처음 연동하다보니 이슈가 많네요. 01-03 15:56:27.979: W/dalvikvm(18477): VFY: unable to resolve static field 139 (common_google_play_services_unknown_issue) in Lcom/google/android/gms/R$string; 01-03 15:56:27.979: D/dalvikvm(18477): VFY: replacing opcode 0x60 at 0x003f 01-03 15:56:27.979: W/dalvikvm(18477): VFY: unable to resolve static field 139 (common_google_play_services_unknown_issue) in Lcom/google/android/gms/R$string; 01-03 15:56:27.984: D/dalvikvm(18477): VFY: replacing opcode 0x60 at 0x004c 01-03 15:56:27.984: W/dalvikvm(18477): VFY: unable to resolve static field 134 (common_google_play_services_install_title) in Lcom/google/android/gms/R$string; 01-03 15:56:27.984: D/dalvikvm(18477): VFY: replacing opcode 0x60 at 0x0057 01-03 15:56:27.984: W/dalvikvm(18477): VFY: unable to resolve static field 130 (common_google_play_services_enable_title) in Lcom/go...

Cocos2d-x Plugin-X Google Play Game Services VFY: unable to resolve static field 2322 (gamehelper_unknown_error) in Lcom/google/example/games/basegameutils/R$string

이미지
mHelper = new GameHelper(activity); mHelper.enableDebugLog(bDebug, "GPGSWrapper"); mHelper.setup(listener, requestedClients, mAdditionalScopes);  Cocos2d-x-3,0alpha1에 구글 플레이 게임서비스 연동 플러그인 작업중 런타임중 위와 같이 GameHelper 초기화만 하는 과정에서 아래와 같은 이슈가 발생 했습니다. 01-03 15:28:39.779: D/PluginFactory(16362): Java class name of plugin GameServiceUser is : org/cocos2dx/plugin/GameServiceUser 01-03 15:28:39.779: I/PluginWrapper(16362): class name : ----org/cocos2dx/plugin/GameServiceUser---- 01-03 15:28:39.779: D/PluginFactory(16362): The type of plugin GameServiceUser is : 5 01-03 15:28:39.779: D/GameServiceUser(16362): configDeveloperInfo {test=nothing} 01-03 15:28:39.789: W/dalvikvm(16362): VFY: unable to resolve static field 2322 (gamehelper_unknown_error) in Lcom/google/example/games/basegameutils/R$string; 01-03 15:28:39.789: D/dalvikvm(16362): VFY: replacing opcode 0x60 at 0x0042 01-03 15:28:39.789: W/dalvikvm(16362): VFY: unable to resolve static field 2319 (gamehelper_app_mis...

Cocos2d-x Plugin-X Google Play Game Services Publish 빌드중 에러

이미지
 Cocos2d-x 플러그인 시스템에 구글 플레이 게임 서비스 플러그인을 publish 빌드 중 아래와 같은 에러가 발생했습니다.  android-support-v4.jar 파일의 Jar mismatch! Fix your dependencies 에러는 이미  페이스북 SDK를 유니티3D에 연동할 때도 같은 에러가 발생 했던 에러라 익숙하긴 합니다. 아래와 같이 publish하는 ant 빌드 이전에 이클립스에서도 에러가 발생중이긴 했습니다. 하지만 Cocos2d-x 플러그인은 최종적으로 이클립스 빌드가 아닌 ant로 빌드를 하기 때문에 무시했었죠. 이하 내용을 처리하면 자동으로 해결될 에러입니다. BUILD FAILED d:\android\adt-bundle-windows-x86_64-20131030\sdk\tools\ant\build.xml:471: Inval id file: D:\Android\android-samples-master\libraries\BaseGameUtils\build.xml  이 에러는 이 구글 플레이 서비스 SDK에 포함 된 BaseGameUtils 라이브러리와 관련된 에러입니다. 플러그인에서 사용하는 서브 jar 라이브러리라 굳이 build.xml이 필요 없는데 빌드시 이걸 찾더군요. 일단 아래 그림과 같이 작업중인 LibPluginGPGSTest 라는 플러그인 프로젝트에서 BaseGameUtils 프로젝트를 Library에 추가시킨 상태였는데 이것을 Remove 시킨 후 다시 Publish.sh 를 실행하면 잘 되긴 합니다.  Ant에서 빌드시에는 잘 되지만 수시로 이클립스에서 코드 작업을 해야할텐데 아래와 같은 에러가 발생해서 보기 좋지 않을 수 있죠. Description Resource Path Location Type GameHelper cannot be resolved to a type GPGSWrapper.java /...