Load Json file on Android/Windows with Cocos2d-x

General discussion about the R.U.B.E editor
danspe
Posts: 6
Joined: Thu Nov 27, 2014 8:40 am

Load Json file on Android/Windows with Cocos2d-x

Post by danspe »

hello everyone, I'm new to this forum. I wish some of one explain to me or show me some tutorials on how to load the json file of rube Android on windows operating system. I'm going crazy! thanks :evil:
iforce2d
Site Admin
Posts: 861
Joined: Sat Dec 22, 2012 7:20 pm

Re: Load Json file on Android/Windows with Cocos2d-x

Post by iforce2d »

I think you will have to explain the problem you are having first.

I have not used cocos2d-x on Windows, but the method should not be any different than for other operating systems. Perhaps it is a problem with path separators? Eg. windows uses \ while all other operating systems use /
danspe
Posts: 6
Joined: Thu Nov 27, 2014 8:40 am

Re: Load Json file on Android/Windows with Cocos2d-x

Post by danspe »

Thanks for the reply, but I also tried this solution. The project is compiled with microsoft visual studio express and this is the error: "Error 2 error LNK2019: reference to external symbol" public: __thiscall b2dJson :: b2dJson (bool) "(?? 0b2dJson@@QAE @ _N @ Z) not solved in the function ... "
iforce2d
Site Admin
Posts: 861
Joined: Sat Dec 22, 2012 7:20 pm

Re: Load Json file on Android/Windows with Cocos2d-x

Post by iforce2d »

It sounds like you have not added the file b2dJson.cpp to your project.
danspe
Posts: 6
Joined: Thu Nov 27, 2014 8:40 am

Re: Load Json file on Android/Windows with Cocos2d-x

Post by danspe »

Also this was done. There is a tutorial of rube editor to use with microsoft visual express? otherwise I will be forced to attach a cpp file instead of a json file, although it does not seem the best way
iforce2d
Site Admin
Posts: 861
Joined: Sat Dec 22, 2012 7:20 pm

Re: Load Json file on Android/Windows with Cocos2d-x

Post by iforce2d »

danspe wrote:Also this was done.
I don't think so... that error is saying it was not done:
http://msdn.microsoft.com/en-us/library/799kze2z.aspx

At this point, I don't think it's a RUBE or cocos2d-x issue, but a problem with project configuration. Unfortunately I don't have any experience to help with MSVS....
danspe
Posts: 6
Joined: Thu Nov 27, 2014 8:40 am

Re: Load Json file on Android/Windows with Cocos2d-x

Post by danspe »

do you have experience with eclipse?
iforce2d
Site Admin
Posts: 861
Joined: Sat Dec 22, 2012 7:20 pm

Re: Load Json file on Android/Windows with Cocos2d-x

Post by iforce2d »

No, only an hour or two :)
danspe
Posts: 6
Joined: Thu Nov 27, 2014 8:40 am

Re: Load Json file on Android/Windows with Cocos2d-x

Post by danspe »

I have bought Rube pro, but are of the opinion that it is not optimized for Windows systems. I found nothing in the network. I program for Android but I'm having great difficulty :evil:
iforce2d
Site Admin
Posts: 861
Joined: Sat Dec 22, 2012 7:20 pm

Re: Load Json file on Android/Windows with Cocos2d-x

Post by iforce2d »

Could you be more specific about the problem? Originally you were talking about a linker error... did you solve that error?
It seemed that you were having trouble with MSVS, but then you bring up Eclipse... is it relevant somehow?
Post Reply