I was trying to reimport the csb file of FishJoy2 from cpp-tests in my project to test how it can work in vs 2013.
I code this in MainMenuScene.cpp:
_filePath = “LoadScene/FishJoy2.csb”; //default is json
rootNode = SceneReader::getInstance()->createNodeWithSceneFile(_filePath);
ActionManagerEx::getInstance()->playActionByName(“LoadScene/startMenu/startMenu_1.csb”, “Animation1”);
addChild(rootNode);
I added variable in my library MainMenuScene.h:
protected:
cocos2d::Node* rootNode;
std::string _filePath;
I added the resources by creating each folder one by one and I kept them all in folder
LoadScene/
When I debugged in VS2013, it shows error that there is no such file in that folder.
I added library:
include “cocostudio\CocoStudio.h”
include “ui/CocosGUI.h”
include “extensions/cocos-ext.h”
This is the error:
cocos2d: fullPathForFilename: No file found at LoadScene/FishJoy2.csb. Possible missing file.
cocos2d: fullPathForFilename: No file found at LoadScene/FishJoy2.csb. Possible missing file.
Get data from file(LoadScene/FishJoy2.csb) failed!
Assert failed: Argument must be non-nil
This is the screen shot of my resources I create in vs2013
I tested by adding title720p.png in that folder and succeeded in loading it.