Wiki Improvements and Suggestions

http://www.cocos2d-x.org/wiki/How_to_use_CCHttpClient

cocos2d::network::HttpClient::getInstance()->send(request);
wont work:

  • undefined reference to ‘cocos2d::network::HttpClient::getInstance()’
    • undefined reference to
      ‘cocos2d::network::HttpClient::send(cocos2d::network::HttpRequest*)’

also I must use

#include "network/HttpClient.h"
using namespace cocos2d::network;

to make some error messages go away.

I know you’re probably already on it, but for Plugin-X I think the code snippet

jint JNI_OnLoad
{
 JniHelper::setJavaVM;
 PluginJniHelper::setJavaVM; // for plugins
 return JNI_VERSION_1_4;
}

should be

jint JNI_OnLoad(JavaVM *vm, void *reserved)
{
    JniHelper::setJavaVM(vm);
    PluginJniHelper::setJavaVM(vm); // for plugins
    return JNI_VERSION_1_4;
}

I think you are correct. I’ll pass it along, just in case. Thanks!

It needs to be clear on every Wiki which versino it applies to
I notice that
http://www.cocos2d-x.org/wiki/How_to_create_a_multi-platform_project_in_one_command_line
is outdated (I presume for V2.x) but also some of the text is crossed out - very confusing especially as this is one of the first pages a new user may come across.

If possible I would adopt a similar process to microsoft, where the documentation shows which version it applies to, but also allows the user to drop down a list of other version to see the appropriate page for that version

SUGGESTION ON IMPROVEMENT OF API

Please integrate the description of the physics classes, member functions etc in the api documentation by the final release of the cocos2d-x 3.2.

REQUEST TO -

@walzer @slackmoehrle

@pabitrapadhy Can you tell me which classes you are seeing no description for? I just looked at PhysicsBody, PhysicsWorld, PhysicsContact, PhysicsShape and so far all of those are documented.

.cc @walzer

http://www.cocos2d-x.org/wiki/Node
is still TBD

I’ll put this in the queue.

no i was talking about the description of the methods in the physics engine classes…
but i find it to be fixed by now.

but last time i saw… it wasn’t there… so i posted in a hurry…

thanks @slackmoehrle for responding to my post… :smile:

Is it possible to add some dropdown items to the forum reply ??

like cocos2d-x version.
platform
IDE

most of the problems in the forums are clueless which delays the help delivered to them
however we cannot make people to adopt this habbit any soon.
why not have this in the forum as an added functionality.

Sounds fair… ??

How you remove that error of undefined reference…??

Unfortunately I have not managed to do it. I still get error and can not use it.

can anyone tell me how to show sprite using URL?

I’d like to understand the use case for showing Sprites from a URL? Can anyone explain why?

  1. what if you lost control of the domain the images were being served from and it was hijacked to be a porn site? The new operators could look at the logs, see your app requesting images and put pornographic images in place and serve them back to you…

  2. Do owners of the phones really want their phone going out to a URL without their knowledge?

  3. if it is for updating your app, you should just download the images and update locally on the device.

In: http://www.cocos2d-x.org/docs/tutorial/framework/html5/parkour-game-with-javascript-v3.0/chapter7/en

should be:

map_png: "res/map.png",
map00_tmx: "res/map00.tmx",
map01_tmx: "res/map01.tmx"

instead of:

map_png: "map.png",
map00_tmx: "map00.tmx",
map01_tmx: "map01.tmx"

In: http://www.cocos2d-x.org/docs/tutorial/framework/html5/parkour-game-with-javascript-v3.0/chapter9/en

should be:

 this._super(cc.color(0, 0, 0, 180));

instead of:

 this._super(cc.c4b(0, 0, 0, 180));

and should be:

cc.Sprite.create(res.restart_n_png),
cc.Sprite.create(res.restart_s_png),

instead of:

cc.Sprite.create(s_restart_n),
cc.Sprite.create(s_restart_s),

Can u add Wiki for cocos2d-x-2.2.5 version?
I meant how-to-setup guides and create new project in it.
Or should we convert project to C/C++ Nature in Eclipse?
Please guide us.

I don’t think we will be adding anything for 2.2.5.

Look in tools for creating a new project.

ok, no problem.

What I’m really missing in wiki is to compare Cocos2d-x with Cocos2d-js. I can’t believe that js covers all the functionalities introduced in Cocos2d-x. I know there is a switch in cocos2d-x api for js to know what methods are covered in js but it’s not simple for person who programms in one of this frameworks and want to know which one should use for project if c++ and no browser support is no problem. It can be very usefull for beginners especially just to know that f.e. js has simplier api and browser support but there is no functionality x, y, z from cocos2d-x version.