Problem loading csd file created with Cocos Studio

Hi, I’m using the latest version of cocos2d-x. I created a project using cocos console: cocos new Project -l js

I was trying to load a .csd file created with Cocos Studio: ccs.load(“res/LoginScreen.csd”);

But I get an error stating that loader can’t load [‘csd’] and I also get a message saying that “res/LoginScreen.csd” does not exist. I also added cocostudio to the modules in the .json file.

I added it to the resource array in resource.js: LoginScreen_csd : “res/LoginScreen.csd”

it must be json for cocos2d-js not csd

ccs.load("res/LoginScreen.json");

1 Like