Subject: Problem with Emiters :S Tue Aug 17, 2010 1:09 pm
Hello! I'm trying to do that when a ball collides sparks fly ... The program crash when I created a system after another is erased .. The problem seems to always apply the settings the same issuer .. and then to copy (to create new systems of particles) is copied with the parameters changed .. Sry for my bad english :\
Messages : 539 Date d'inscription : 2009-07-14 Age : 41
Subject: Re: Problem with Emiters :S Tue Aug 17, 2010 2:31 pm
Hi,
I ll check that.
Which version of SPARK are you using ? Which compiler ? Which version of SFML ?
Thanks
CytraL
Messages : 8 Date d'inscription : 2010-08-17
Subject: Re: Problem with Emiters :S Tue Aug 17, 2010 2:40 pm
Oops Sry... hehehehe
Im using.. SPARK version 1_05_02 SFML version 1.5 Compiler: MinGW (Code::Blocks IDE)
THX!
Juff Developer
Messages : 539 Date d'inscription : 2009-07-14 Age : 41
Subject: Re: Problem with Emiters :S Tue Aug 17, 2010 3:34 pm
I dont see any errors in your code. Seems like you ve taken the code from the SFML demo of SPARK with no change.
Have you tried compiling the SFML demo against the same version of the SPARK libraries as the the one you used ? Have you tried compiling your code in debug mode to see where it crashes ?
To me it looks like a null pointer error. Have you checked that your systems are not null when updating or rendering them ? When are you calling the CParticleSystem destructor ?
CytraL
Messages : 8 Date d'inscription : 2010-08-17
Subject: Re: Problem with Emiters :S Tue Aug 17, 2010 3:56 pm
I don't even try to compile the demo .. I will now.
Im update and rendering with "CParticleSystem::tick()" (If i delete the line "destroyParticleSystem(*it);" the progam don't crash but not render systemParticle) The CParticleSystem destruct is called when the program is closing.
** The program crash when exec: "engine.screen.Display()"
CytraL
Messages : 8 Date d'inscription : 2010-08-17
Subject: Re: Problem with Emiters :S Tue Aug 17, 2010 4:10 pm
If i use "PARTICLE_SMOKE" the program not crash :S...
Messages : 539 Date d'inscription : 2009-07-14 Age : 41
Subject: Re: Problem with Emiters :S Tue Aug 17, 2010 4:14 pm
hmm...
Have you compiled the Spark SFML module and your game against the same version of the SFML ? In the 1.05.02, the sfml module is compiled with the SFML 1.6. If you're using the SFML 1.5 in your game, you need to compile the SPARK SFML dll with the 1.5 as well. Moreover when using SPARK dynamic libraries you need to set the macro SPK_IMPORT (even if with gcc it might not be important).
CytraL
Messages : 8 Date d'inscription : 2010-08-17
Subject: Re: Problem with Emiters :S Tue Aug 17, 2010 4:52 pm
WIIIIIIIIIII ^^
Thx!! xDDDD i compiled the SPARK DLL with SFML 1.5 and now works fine !!
Juff Developer
Messages : 539 Date d'inscription : 2009-07-14 Age : 41
Subject: Re: Problem with Emiters :S Tue Aug 17, 2010 5:01 pm
That s good to hear ! Bad linking errors are hard to track and often cause weird bugs... Anyway keep us informed with your project and dont hesitate to ask if you have further questions.
CytraL
Messages : 8 Date d'inscription : 2010-08-17
Subject: Re: Problem with Emiters :S Tue Aug 17, 2010 7:24 pm
Ok, thx for all Juff
P.D For Developers Team: Great work with Spark!! thx for make it free
CytraL
Messages : 8 Date d'inscription : 2010-08-17
Subject: Re: Problem with Emiters :S Wed Aug 18, 2010 5:07 pm
Preview Game with SPARK working...
Juff Developer
Messages : 539 Date d'inscription : 2009-07-14 Age : 41
Subject: Re: Problem with Emiters :S Mon Aug 30, 2010 2:03 pm