CCParticleSystemQuad not working in version 3.0 of cocos2d-x - cocos2d-x

I'm trying to port a game made using Cocos2d-X version 2, to the new version 3.0.
I found that CCParticleSystemQuad seems to be deprecated.
What can I use instead?
This is how I've been using it:
class ParticleCollision : public CCParticleSystemQuad
Thanks

The 'CC' prefix is deprecated for most classes. So CCParticleSystemQuad is now just ParticleSystemQuad, for example.
ParticleSystemQuad is not deprecated AFAIK. It's not in the deprecated list for the 3.1 rc0.

CCParticleSystemQuad was deprecated but v3.0, 3.1 implements a new Physics Engine
http://www.cocos2d-x.org/reference/native-cpp/V3.1rc0/db/dd9/classcocos2d_1_1_particle_system.html
It seems valid to me: http://www.cocos2d-x.org/reference/native-cpp/V3.1rc0/d5/d59/classcocos2d_1_1_particle_system_quad.html
The Release Notes mention it: https://github.com/cocos2d/cocos2d-x/blob/v3/docs/RELEASE_NOTES.md

It is not the 'CC' Prefix. Please note that, CCParticleSystemQuad is now changed to CCParticleSystem.
Please refer this for details: Cocos2D Forum CCParticleSystemQuad Missing?

Related

Configure custom parameter converter serenity jbehave does not work

I have updated my project's pom to use latest serenity and jbehave and since then using custom parameter converters are not working.
I have this (was enough with the old packages):
configuration.useParameterConverters(
new ParameterConverters().addConverters(
new NumberStringConverter(),
new ColorConverter(),
new BooleanConverter()
)
);
The code is failing since it cannot find the right converter.
It seems, that the custom converters are applied for the beforeSteps and for the afterSteps, but not for the "standard" steps.
jbehave: 4.5
serenity-jbehave: 1.46.0
Any idea, what am I missing?
I believe serenity-behave 1.46.0 is built against jbehave 4.4, not 4.5. There is a PR to upgrade to jbehave 4.5 (https://github.com/serenity-bdd/serenity-jbehave/pull/229) - maybe you could build the latest snapshot and see if that solves your problem (and if not, raise an issue against the PR).

Primefaces RequestContext under 7.0

My pre-7.0 Primefaces application has this code:
RequestContext.getCurrentInstance().execute("window.open('myUrl');");
I understand that RequestContext is no longer available in 7.0. What is the equivalent to perform the same action?
Beside other changes the RequestContext class has been deprecated in version 6.2 and removed in version 7.0 of Primefaces. It is replaced by calling PrimeFaces.current(). In your case, the code should be changed to:
PrimeFaces.current().executeScript("window.open('myUrl');");
Please keep looking into the migration guide (already linked by #Melloware in comment) when upgrading your Primefaces dependency.

Open external link in cocos2dx 3.0

I am using
Application::getInstance()->openURL("www.google.com");
But it gives error that there is no method"opnURL".
Can anybody please help?
I am using the latest cocos2d version. This method works fine for me:
CCApplication::getInstance()->openURL("http://www.google.com");
Edit:
CCApplication is deprecated, so use:
Application::getInstance()->openURL("http://www.google.com");
I can't find that method on the Application class:
http://www.cocos2d-x.org/reference/native-cpp/V3.2/db/de2/classcocos2d_1_1_application.html
But you could read this reference:
http://discuss.cocos2d-x.org/t/opening-urls-in-external-browser/2642
And implement in a native code.
I don't know how old of a version you were working with but in the latest stable version, 3.5, that method is implemented and should work as expected.

Cocos2d-x: deprecated class Object

I'm trying to learn from a sample source code (Since the framework is utterly undocumented) that was written for cocos2d-x 3.0alpha, the code is using the deprecated class "Object", I'm trying to port the code to version 3.0 but I'm not sure which class be used instead of Object.
Do you have any idea?
https://github.com/OiteBoys/Earlybird/blob/master/Earlybird/Classes/Number.h
Edit: pretty sure the class I need is Ref
Current issue I'm trying to solve is finding the equivalent of EGLView::getInstance()
Edit II: GLView::create("view"); seems to be it.
Yes, you need Ref. Here are the release notes for Version 3.0. It describes this here. This changes was done since C++ doesn't have and doesn't need a base object. Object was created for that reason originally but now deprecated.
https://github.com/cocos2d/cocos2d-x/blob/v3/docs/RELEASE_NOTES.md
For EGLView create a quick sample "Hello World" project using the cocos command-line tool and have a look at AppController.mm, RootViewController.mm and AppDelegate.cpp. These have changed a good deal for version 3.0+.
Edit: based upon your edit look at: bool AppDelegate::applicationDidFinishLaunching()
// initialize director
auto director = Director::getInstance();
auto glview = director->getOpenGLView();
if(!glview) {
glview = GLView::create("My Game");
director->setOpenGLView(glview);
}

MVC4, SimpleMembershipProvider, MySql and FluentNhibernate

I am trying to use SimpleMembership with MySql and I cant get it to work.
I downloaded the latest devart connector for MySql and followed the instructions on
http://www.devart.com/dotconnect/mysql/articles/extendedmembership-tutorial.html
The problem is that the WebSecurity class provided by devart, only has the InitializeDatabaseConnection method but it misses the rest of the methods WebMatrix.WebData has. (i.e UserExists(), CreateAccount(), etc )
Does anyone knows any implementation of WebSecurity alternative to WebMatrix.WebData?
We have implemented the InitializeDatabaseConnection method in the Devart.Common.Web.WebSecurity class because there was no way to override the corresponding method of the WebMatrix.WebData.WebSecurity class.
Other methods of the WebMatrix.WebData.WebSecurity class are supported in our implementation and can be used with Devart's SimpleMembership provider.