News

A trap of adding resources into cocos2dx-wp8 project

By lihex Posted 2012-11-06 09:04 Comments 104

If you download the previous version of cocos2dx-0.13.0-wp8-0.8.zip, you will find some test cases that has marked as pass but can not run properly on wp8 devices.
We sincerely regret this error, as it was caused by our sloppiness

I’ll explain why it is not running correctly on devices in debug mode.

In the project of the cocos2dx-wp8, game resources are placed in the Assets directory, this directory is also the root directory of the game resources:

If you want to create a sprite from a picture:

    CCSprite :: spriteWithFile ("Image / sprite.png");

It will read as:

    "App / Install / PATH / Assets / Image / sprite.png "

Not only we need to copy the game resources to the Assets directory, but also add each resource file to the VS project.
So how do we do it specifically?

For example to add sprite.png:

  1. Select Assets filter
  2. Right click > Add New Filter, named it Image # Select Image filter # Right click> Add Existing Item…
  3. Choose the \$YOUR_PROJECT/Assets/Image/sprite.png

This seems to work, but there are still problems:

The problem is, if we add a “sprite.plist” file, according to the above procedures, it is added to the project, but when you run the program, you will found that the program could not find “sprite.plist”!
Why is that? This problem has also plagued me for long time, fortunately, this has been resolved The reason is that only the file formats that Visual Studio can identify will be automatically packed into the app package, such as images: png, jpg. If you right-click to view the properties of these files, you will find the “Content field” is set as “Yes” and “Item Type” is set to properly type, such as “Image” in case of sprite.png
However VS does not recognize “plist”, so its Content is set to “No” and it’s “Item type” is set to “Does not participate in build”, which means plist files will not be packed into the application package.

The solution is very simple, that is to set the resource file Content field to “ Yes” , the Item type field to “Does not participate in build”.

The reason why it works in the Emulator but not on the physical devices is because Device Debugging configuration forgot to add those attributes to files.

The cocos2dx-0.13.0-wp8-0.8.zip was updated, Please download again with the same url.
Download Zipball: http://cocos2d-x.googlecode.com/files/cocos2dx-0.13.0-wp8-0.8.zip

Comments

  • jonsd3

    Nice posts,…I feel really happy to have seen your webpage and look forward to so many more entertaining times reading here
    porno izle

    2014-01-15 07:07
  • jonsd3

    Pretty good post. I just stumbled upon your blog and wanted to say that I have really enjoyed reading your blog posts. Any way I’ll be subscribing to your feed and I hope you post again soon.
    sex game

    2014-01-15 09:25
  • Muneer_ahmed

    Your article is very interesting, make persistent efforts, I believe there will be more and more people are concerned about your article! claw foot tub

    2014-10-16 17:52
  • Muneer_ahmed

    I have read your excellent post. This is a great job. I have enjoyed reading your post first time. I want to say thanks for this post. Thank you... logistika

    2014-10-19 10:57
  • sukh

    Contamos com o melhor pessoal com os melhores equipamentos do mercado para acabar de vez com o entupimento na sua casa."desentupidora zona oeste":http://www.mcdesentupidora.com.br/localizacao/desentupidora-zona-oeste

    2014-10-20 11:20
  • Muneer_ahmed

    I thought it was going to be some boring old post, but it really compensated for my time. I will post a link to this page on my blog. I am sure my visitors will locate that extremely useful. https://www.change.org/p/stephen-brook-5-essential-modeling-must-haves

    2015-01-09 14:15
  • saleemkhan

    I will return to peruse some more. Pleasant post.thank you for taking the time to distribute this data exceptionally valuable! l

    bubblegum castinghttp://caps.fool.com/Blogs/which-modeling-path-is-right/1022182

    2015-01-12 20:05
  • andrewdavid

    Great read. I was anticipating this kind of article from you and you've delivered that. You've not disappointed me. I am really glad! See your WhatsApp contacts activity and read their messages! http://whatsapphackspy.com/

    2015-01-22 16:10
  • andrewdavid

    Wonderful stuff once again. It's a real honor to read posts on your blog. You are so good of a writer. I just wish you will continue this flawless work of yours! Get Boom Beach Hack - Diamonds Generator software

    2015-01-26 14:43
  • johnwick

    I completely agree with you, Juan, this really is a fantastic album. One of the years best, without a doubt. Honda Civic Type R 2015

    2015-01-29 08:46
  • cocoa

    great, i was able accomplish the tutorial written here <a href="http://www.phonelookupmate.com">reverse phone lookup</a>

    2015-02-05 16:40
  • cocoa

    great, i was able accomplish the tutorial written here [http://www.phonelookupmate.com reverse phone lookup]

    2015-02-05 16:47
  • andrewdavid

    Extremely decent work, sir. I must say congrats on finishing a world class article and consummating it to its greatest. Keep the work going on, sir! Clash of Clans Cheats Tool Download Here

    2015-02-06 17:29
  • andrewdavid

    This is a totally dazzling article.. The measure of fun I had while perusing this was simply excessively damn much. I am infatuated with this article and I trust that I will like a greater amount of your articles that you will submit later on. heroes of the storm hack

    2015-02-07 17:29
  • andrewdavid

    Mate, you are the best living author, that I've found the opportunity to know, living at this moment! The majority of your articles are five star and you simply need to keep this work of yours going ahead in the same way..cheers! Hack boyfriend cheating Facebook password: Facebook Hacker Download - Hacking Software

    2015-02-07 17:55
  • andrewdavid

    Magnificent article by you, mate. Excellent, top class work this is. I am really excited by this article of yours. I hope you keep it up! Best Paid Survey Sites

    2015-02-15 17:48
  • Muneer_ahmed

    So finally and somehow I got this information, Thanks for such an awesome piece of work here :) Top mac and pc computer repair services north palm beach

    2015-02-15 20:16
  • andrewdavid

    This blog post brings all the goodness in one. This is real classic work from the author. I am extremely jolly right now after reading this. I hope you continue this. Mexican tiles

    2015-02-23 17:10
  • andrewdavid

    This article is great! There is not one single thing that I might want to change here. You've earned my admiration today and I don't believe that you can show improvement over this article. Inspiring work! frameless shower doors miami

    2015-02-24 14:14
  • andrewdavid

    Excellent blog posting has been done here today by you, mate. I find the contents of this blog post really interesting and it certainly would a huge favor for me if you would give more content points about this topic. Cheers. west palm beach roofing

    2015-02-24 14:42
  • andrewdavid

    I am greatly excited today to be perusing this sublime article. This data is truly useful for me. I have at last completed my undertaking on this theme. Thanks much for providing for me this data! Sharp Edge Tester

    2015-02-24 14:54
  • andrewdavid

    Home improvement project or major home construction is actually costly also long process. Make sure you select a general contractor in Miami that truly have the skills, can tune into your needs, customize, plan, and implement your remodeling project based on your own budget and special requirements. general contractor miami

    2015-02-24 18:44
  • andrewdavid

    If you are looking for original imported products with quality and low price, you can count on All Import USA. We are an American company specializing in export and import of US products to Brazil. site de produtos importados

    2015-02-24 19:08
  • andrewdavid

    EB-5 / investor visa is the best option for foreigners who can afford that allow them (and your spouse + family members under 21 years old) obtain permanent resident visa faster than other other visas . visto eb5

    2015-02-24 19:21
  • andrewdavid

    Such a delightful article this is. This information really is awesome and I am understanding it without any difficulty. Much a debt of gratitude is in order regarding giving this article to us today. houston patio covers

    2015-02-25 06:15
  • andrewdavid

    Bella Tours & Travel, Inc. has been South Florida premier travel agency since 1996. We are licensed and bonded by the State of Florida, accredited by the Airline Reporting Corporation (ARC). Additionally, we are members registered with local Chambers of Commerce, also with Israel Tourism Ministry. flight to brazil

    2015-02-25 06:43
  • andrewdavid

    Amazing theory here! You truly do have an energy for composing, mate and you demonstrate it to us. It's a joy to peruse your articles. I trust you will keep it going on. pool service pompano beach

    2015-02-25 16:53
  • andrewdavid

    A much needed article this was for me. Truly, you've provided me the thing today which I needed the most for my day today. It had been a very bad day for me today. But, you've made it good. Thanks! managed services jacksonville

    2015-02-28 17:30
  • andrewdavid

    What a fantastic article you've got here. It's got all the things I wanted in my dream article. You've made my dream come true and for that, you have my ultimate respect. Keep it up! PS4 hacks online network jailbreak tool here: http://ps4jbreak.com/download

    2015-02-28 17:50
  • Muneer_ahmed

    You know your projects stand out of the herd. There is something special about them. It seems to me all of them are really brilliant! imbracaminte bebelusi

    2015-03-01 17:39
  • Muneer_ahmed

    This is a real gem of an article from you. I am so enlightened today after gathering the righteous information from this article. Thank you for publishing this! find facebook password start here Facebook Password Hack

    2015-03-05 19:00
  • MariaFe_09

    Couldn't be written any better. Reading this post reminds me of my old room mate! He always kept talking about this. I will forward this article to him. Pretty sure he will have a good read. Thanks for sharing!
    <a href="http://americaphonelookup.com">americaphonelookup</a></p> </div>

    2015-03-10 05:43
  • MariaFe_09

    I am often to blogging and i really appreciate your content. The article has really peaks my interest. I am going to bookmark your site and keep checking for new information.
    http://americaphonelookup.com

    2015-03-10 05:44
  • andrewdavid

    Zofran Lawsuit being filed for women who used Zofran during pregnancy and their child was born with birth defects. Call us now and file a lawsuit. Zofra

    2015-03-13 05:18
  • andrewdavid

    MrWelderReviews.com is a website dedicated to help you choose the Best Welding Equipment that fit not only your needs but your budget. plasma cutter

    2015-03-14 09:35
  • andrewdavid

    What a great post this is to read! This is really top notch work from you once again. You are the greatest writer of whom I've read endless posts. I hope you keep this up! Monster Legends best Gems adder application Monster Legends Hack

    2015-03-15 17:49
  • andrewdavid

    This is magical stuff from you, mate. Truly, I have never been witness to such tremendous writing in my whole life. Today, I can say that I've read all kinds of articles. Dog behavior problems

    2015-03-16 15:12
  • andrewdavid

    This is classic. I feel like the old days are back. Ah! What good times those were. I just hope that you continue to produce such classics. PS3 emulator for computer get right now: PS3 Emulator for PC

    2015-03-17 15:45
  • andrewdavid

    This is marvelous! The skills shown here are just top notch and I would like to read more articles like this very soon. I hope you deliver! forskolin

    2015-03-18 11:02
  • andrewdavid

    I have expected top notch work from you, always and you have not disappointed me at all. You are my favorite writer and I can safely say that you are the best writer ever! garcinia cambogia where to buy

    2015-03-18 11:21
  • nomanyk

    Good post. I was checking consistently this blog and I am impressed. Quite useful information specially the final component. Get More Info

    2015-03-21 07:01
  • nomanyk

    You are allowed to post names, but not links, unless they are approved and on topic. click to read more

    2015-03-21 07:11
  • nomanyk

    Advantageously, typically the submit is really the very best about this laudable theme. To be sure with all your a conclusion and will thirstily await the following revisions.

    Clicking Here

    2015-03-21 07:55
  • nomanyk

    I am really enjoying reading your well written Information.

    More Info

    2015-03-21 08:12
  • nomanyk

    Definitely a great post. Hats off to you! The information that you have provided is very helpful. sicklighting

    2015-03-21 08:29
  • nomanyk

    I must say, I thought this was a pretty interesting read when it comes to this topic. Liked the material. . animal wall art decals

    2015-03-21 08:44
  • nomanyk

    I'm very inspired by him-it was my father who taught us that an immigrant must work twice as hard as anybody else, that he must never give up. penis pumps

    2015-03-21 08:53
  • andrewdavid

    This is just magnificent work from your side, mate. This really is top-notch work from you. I've never seen such a magnificently composed post in all my life. It fills me with pleasure, reading this. headphones

    2015-03-24 07:12
  • blogcommenting21

    This is also a very good post which I really enjoyed reading. Thank you very much for this informative post. www.audiogon.com

    2015-03-25 07:11
  • blogcommenting21

    First You got a great blog .I will be interested in more similar topics. i see you got really very useful topics , i will be always checking your blog thanks. click here to know more

    2015-03-25 07:18
  • blogcommenting21

    This is cool post and i enjoy to read this post. your blog is fantastic and you have good staff in your blog. nice sharing keep it up. custom prom gowns

    2015-03-25 07:31
  • blogcommenting21

    A good blog always comes-up with new and exciting information and while reading I have feel that this blog is really have all those quality that qualify a blog to be a one. best proxy

    2015-03-25 07:36
  • blogcommenting21

    This is also a very good post which I really enjoyed reading. Thank you very much for this informative post. lacrosse recruiting

    2015-03-25 07:41
  • blogcommenting21

    Great info! I recently came across your blog and have been reading along. norges fjellrikeste øy

    2015-03-25 07:45
  • blogcommenting21

    Just pure brilliance from you here. I have never expected something less than this from you and you have not disappointed me at all. I suppose you will keep the quality work going on. More information

    2015-03-25 07:47
  • blogcommenting21

    Really your post is really very good and I appreciate it. It’s hard to sort the good from the bad sometimes, You write very well which is amazing. I really impressed by your post. LedConceptsLighting

    2015-03-25 07:52
  • blogcommenting21

    Great post full of useful tips! My site is fairly new and I am also having a hard time getting my readers to leave comments. get more information

    2015-03-25 07:58
  • blogcommenting21

    The information that really helps others is the appreciable and this is one of that. http://www.zenseo.com.au/avoid-google-panda-penguin-penalties/

    2015-03-25 08:04
  • blogcommenting21

    I wanted to post a comment to let you know that you did an appreciable job and Good work. loading pods

    2015-03-25 08:07
  • blogcommenting21

    Fantastic stuff and look like good effort in it so keep it up and thank for sharing. followfy

    2015-03-25 08:11
  • blogcommenting21

    Brilliant and great website is this. Thank you for sharing this information with us. DripFollowers

    2015-03-25 08:15
  • blogcommenting21

    Brilliant and great website is this. Thank you for sharing this information with us. next door hookups

    2015-03-25 08:20
  • blogcommenting21

    Excellent write-up. My personal idea to attain perfectness in this particular industry is usually due to this article. Walking dead season 5

    2015-03-25 08:23
  • blogcommenting21

    I am really enjoying reading your well written Information. I think you spend numerous effort and time updating your blog. weblink

    2015-03-25 08:28
  • blogcommenting21

    What a fantastic article you've got here. It's got all the things I wanted in my dream article. You've made my dream come true and for that, you have my ultimate respect. zamjenska tinta za hp

    2015-03-25 10:29
  • andrewdavid

    Excellent bit of information you've compiled here. I think this is just the thing that I was looking for. Thanks a lot for giving this info. Cheers, mate. sell og gamertags

    2015-03-29 12:54
  • blogcommenting21

    You will find a lot of approaches after visiting your post. I was exactly searching for. Thanks for such post and please keep it up. soundcloud plays buy soundcloud reposts

    2015-03-29 13:08
  • andrewdavid

    Whenever using a SEO company, it's not necessary to guess the results or even worse wait for them. Using different techniques and web analytics, your SEO company can predict the results in your case. In this way, you won't be required to invest to a project not understanding the outcome which enable it to therefore choose the most cost effective choice. seo services company

    2015-03-31 09:59
  • blogcommenting21

    Brilliant and great website is this. Thank you for sharing this information with us. how to get more followers on vine how to get more likes on vine

    2015-04-01 10:59
  • blogcommenting21

    Excellent bit of information you've compiled here. I think this is just the thing that I was looking for. Thanks a lot for giving this info. Cheers, mate. get vine followers buy vine revines cheap

    2015-04-04 13:01
  • andrewdavid

    This is sublime! One of the most wonderful works I've ever seen in my life. I am extremely pleased with this. Thank you very much for doing this. Cheers! Becoming Successful

    2015-04-11 05:17
  • andrewdavid

    This is super stuff from you. Oh, I am so excited now after reading this. You've listened to my demands and given me this remarkable article. Thanks a lot! wholesale jeans

    2015-04-13 10:11
  • blogcommenting21

    Definitely a great post. Hats off to you! The information that you have provided is very helpful. buy views on youtube get subscribers on youtube

    2015-04-13 11:50
  • andrewdavid

    Wow! This is fantastic work from you, mate. You've just shown once again here why you are one of the best in the business right now. I really am pleased by your work. Best software to hack snapchat go here Snapchat Hack - Spy App

    2015-04-14 16:51
  • Alberta

    Good blog post. I want to thank you for interesting and helpful information and I like your point of view. Thank you! vrijgezellenfeest twente

    2015-04-16 17:59
  • blogcommenting21

    You have done a great job. I will definitely dig it and personally recommend to my friends. I am confident they will be benefited from this site. Sol Acres

    2015-04-19 09:15
  • blogcommenting21

    You have done a great job. I will definitely dig it and personally recommend to my friends. I am confident they will be benefited from this site. pou cheats hill climb racing hack apk

    2015-04-19 10:40
  • AsharSeo

    Thanks for sharing this. There are many events which are celebrated all over the world. we have a website about mothers day event so have a look at it.

    ketchupthemes website

    http://ketchupthemes.net/

    2015-04-20 07:01
  • nomanyk

    Very good post .Thank you and good luck on informing people more about it… back roads driving in France

    2015-04-21 07:14
  • nomanyk

    I am really thank ful to you for this amazing article you've posted. It really helped me in my school work. Thanks a lot sir. miracle phytoceramides review

    2015-04-21 07:37
  • nomanyk

    I read a article under the same title some time ago, but this articles quality is much, much better. How you do this.. Read More Here

    2015-04-21 07:50
  • nomanyk

    Your blog provided us with valuable information to work with. Each & every tips of your post are awesome. Thanks a lot for sharing. Keep blogging, look at this web-site

    2015-04-21 08:08
  • nomanyk

    Thanks For sharing this Superb article.I use this Article to show my assignment in college.it is useful For me Great Work. Industrial Supply

    2015-04-21 08:16
  • nomanyk

    I want you to thank for your time of this wonderful read!!! I definately enjoy every little bit of it and I have you bookmarked to check out new stuff of your blog a must read blog!!!! penis pumps

    2015-04-21 09:58
  • nomanyk

    your blog post with additional insight? It should be really useful for all of us.
    Sick Lighting Halos

    2015-04-21 10:02
  • blogcommenting21

    The content of this article is just wonderful. I really liked the way all the information have been summarized. Thanks a lot for this. hungry shark evolution hack apk real racing 3 mod apk

    2015-04-23 09:17
  • sk8557729

    Thanks for post this helpful post - Please visit for More information about -
    Packers and Movers Hyderabad
    Packers and Movers Pune
    Packers and Movers Mumbai
    Packers and Movers Chennai

    2015-04-23 09:45
  • sk8557729

    This article is really fantastic and thanks for sharing the valuable post.
    Packers and Movers Delhi
    Packers and Movers Bangalore
    Packers and Movers Gurgaon

    2015-04-23 09:46
  • AsharSeo

    There are many wearisome tasks involved in the strategy of residential new house purchase or even home switching..

    http://my.metaforiki-etaireia-athina.gr/

    http://my.mpomponieres-prosklitiria-gamou.gr/

    2015-04-23 10:59
  • AsharSeo

    I was very pleased to find this site.I wanted to thank you for this great read!! I definitely enjoying every little bit of it and I have you bookmarked to check out new stuff you post.

    alcohol rehab
    http://www.findingsobriety.com

    2015-04-23 12:41
  • andrewdavid

    What a fine blog post this is. Truly, one of the more fine blog posts of this decade. You've done some great work here and I would really want to see more of this type of work from you. Cheers! http://katharinchen.soup.io/

    2015-04-26 08:00
  • andrewdavid

    You've always done your work, my friend and you've done some really good work. It's been an absolute honor to read your articles and I just wish it never stops! http://diebestekuh.weebly.com/

    2015-04-26 08:26
  • andrewdavid

    Excellent thesis you've put up here. I am in agreement with you 100% over this valid point. I want to learn furthermore about your view on this topic. Please, do it. schorwalder

    2015-04-26 09:15

Sign up for our newsletter to keep up with the latest developments, releases and updates for Cocos2d-x.