3,857 questions
0 votes
0 answers
44 views
Cocos creator: Failed to preload 'bundle-a', Please load bundle 'bundle-b' first bug
Suppose that I have these two bundles with the specified priorities: bundle-a -> Bundle priority: 1 bundle-b -> Bundle priority: 2 And bundle-b is dependent on bundle-a. So it means that I ...
0 votes
1 answer
22 views
How to prevent events from propagating from the ccui layer to the cc layer in Cocos 3.10?
Currently, I'm learning Cocos in Javascript, I built a map layer extended cc.Layer, and a hub layer extended ccui.Layout. However, I got problem that interactions in the Hub, such as Click, also ...
0 votes
0 answers
39 views
Cocos 2d-x Mobile Application Automation
I have a cocos 2d-x mobile application . I am unable to automate using appium .I also used perfecto automation tool but it also not able to automate the application too. Is there any tool that can ...
0 votes
1 answer
258 views
Cocos2d-x project crashes only on android 14 (SDK 34)
I'm working on a project developed with Cocos2d-x. Using org.cocos2dx.lib, I have successfully ported it to Android in Android Studio. However, I'm encountering a crash issue that only occurs on ...
1 vote
0 answers
84 views
Can not load an image on Cocos
I want to create a sprite with my personal image. But when I load the project, I have this error: OpenGL error 0x0501 in C:\Users\PC\Desktop\Quiz\cocos2d\cocos\renderer\backend\opengl\TextureGL.cpp ...
0 votes
1 answer
103 views
i have integrated firebase crashlytics in my ios project it providing me Objc crashes but i want Cpp crash to catch
I am working on a Cocos2d-x C++ project and I want to integrate Firebase Crashlytics. I have added Crashlytics as the documentation suggests, and I am receiving Objective-C crashes, but I want to ...
0 votes
1 answer
132 views
SocketIO failed to handshake, dont know why
I'm trying to connect a socket in Cocos2dx with a server in Nodejs but it does not work as expected. Here is my code: In HelloWorldScene.h class HelloWorld : public cocos2d::Layer, public SocketIO::...
0 votes
1 answer
131 views
How to make Keyboard button to continuously call callback function when hold-pressed Cocos2d-x
I would like to ask how to make a particular sprite to move when the keyboard button is pressed? I have this following code: keyBoardListener->onKeyPressed = [](EventKeyboard::KeyCode keyCode, ...
0 votes
1 answer
112 views
How to Check for Constant KeyPress in Cocos2d-X? (C++)
I have been trying to code/develop a function in cocosd2x-x that does a specified action (in my case move the player sprite) , while a key is being pressed; Since Cocos2d-x does not have a specific ...
0 votes
1 answer
138 views
Cocos2dx OpenGl Shader two textures problem
My fragment shader for a mobile game in cocos2dx works on iOS, but does not work as expected on Android and I'm out of ideas. The idea: u_texture is the input texture of a sprite whose appearance I ...
-1 votes
1 answer
160 views
Cocos2dx Crash - Version 3.17.2
how to solve these cocos2dx game crashes? following is the backtrace: Fatal Exception: java.lang.AbstractMethodError: abstract method “void android.content.pm.PackageManager$OnChecksumsReadyListener....
0 votes
0 answers
366 views
Android Game Crash On Unity Ads
Exception java.lang.NullPointerException: Attempt to invoke virtual method 'com.unity3d.services.core.configuration.IExperiments com.unity3d.services.core.configuration.Configuration.getExperiments()' ...
0 votes
1 answer
331 views
Issue with compiling a cocos2d-x 3.17.2 JS/web project
Cross-posting from https://discuss.cocos2d-x.org/t/issue-with-compiling-a-project/57198 I am having an issue trying to compile a new cocos2dx JS project. I have a fresh Ubuntu 18.04 box setup with ...
-1 votes
3 answers
140 views
Using Json.cpp in Cocos2dx v4
https://github.com/cocos2d/cocos2d-x/blob/v4/cocos/editor-support/spine/Json.cpp I need help loading a .txt and pulling out some text using cocos for an old App. Can anyone work up a simple example? ...
0 votes
1 answer
442 views
Cocos 2dx 4.x. Enable C++17 in Android Studio
I am trying to learn Cocos 2dx game engine. I generated a simple project with this command: cocos new -l cpp -p com.testgame1 -d path_to_dir testgame1 Next, I try to build an android project. ...