Problem with Gravicannon

Since update to GD 2.1 I’ve got following error in Gravicannon:

/tmp/GDTemporaries/0x98de440events.cpp:51:28: error: use of undeclared identifier 'GDSparkles_tailObjects' for(unsigned int i = 0;i < GDSparkles_tailObjects.size();++i) ^ /tmp/GDTemporaries/0x98de440events.cpp:53:41: error: use of undeclared identifier 'GDSparkles_tailObjects' static_cast<ParticleEmitterObject*>(GDSparkles_tailObjects[i])->SetEmitterXDirection(GDpriv::MathematicalTools::cos(ToDouble(GDpriv::FunctionTools::GetSafelyStringFromVector(currentFunctionParameters, 0))*(3.1415926535897932384626433832795028841971693993751058209/180))); ^ /tmp/GDTemporaries/0x98de440events.cpp:57:28: error: use of undeclared identifier 'GDSparkles_tailObjects' for(unsigned int i = 0;i < GDSparkles_tailObjects.size();++i) ^ /tmp/GDTemporaries/0x98de440events.cpp:59:41: error: use of undeclared identifier 'GDSparkles_tailObjects' static_cast<ParticleEmitterObject*>(GDSparkles_tailObjects[i])->SetEmitterYDirection(GDpriv::MathematicalTools::sin(ToDouble(GDpriv::FunctionTools::GetSafelyStringFromVector(currentFunctionParameters, 0))*(3.1415926535897932384626433832795028841971693993751058209/180))); ^

The object’s name its supposedly referring to is Sparkles_tail. Code generation is probably wrong since these missing identifier errors happen.

You have to make some adaptation with functions events (modify the event, you will see that you have to define a group of object usable by the function).

Even if functions must be adapted in the last version, there should not be any code generation error : I’ll try to fix this bug and release a fixed version of the extension. You can send me your game file if you want.

Game Develop seems have problems at compilation when you create an object or use an object in a function (which is not allowed to be passed to the function).

4ian, I’ve send you PM with link to game.

Any fix? I can’t continue works on GC, y’know…

I don’t have access to my computer until sunday. I’ll try to release a patch for the function extension this.sunday.

A hotfix is available here : viewtopic.php?f=18&t=3354
Let me know if there is still a problem. I’ve tested the functions on a simple project to make sure that they are properly working : FunctionTest.zip (6.45 KB)

Fixed, thanks.