HomeHome  CalendarCalendar  FAQFAQ  SearchSearch  MemberlistMemberlist  UsergroupsUsergroups  RegisterRegister  Log inLog in  

Share | 
 

 Problem with Emiters :S

View previous topic View next topic Go down 
AuthorMessage
CytraL



Messages : 8
Date d'inscription : 2010-08-17

PostSubject: 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 :\

Class CParticle:
- HPP File
- CPP File

Create new System with:
Code:
 createParticleSystem(<POS> , PARTICLE_SPARK);




Download TEST [Windows x86]: http://filebeam.com/f9b3895455afd2bc9b955806ebf616f8
Back to top Go down
View user profile
Juff
Developer


Messages : 539
Date d'inscription : 2009-07-14
Age : 34

PostSubject: 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
Back to top Go down
View user profile http://spark.developpez.com
CytraL



Messages : 8
Date d'inscription : 2010-08-17

PostSubject: 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!
Back to top Go down
View user profile
Juff
Developer


Messages : 539
Date d'inscription : 2009-07-14
Age : 34

PostSubject: 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 ?
Back to top Go down
View user profile http://spark.developpez.com
CytraL



Messages : 8
Date d'inscription : 2010-08-17

PostSubject: 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()"
Back to top Go down
View user profile
CytraL



Messages : 8
Date d'inscription : 2010-08-17

PostSubject: Re: Problem with Emiters :S   Tue Aug 17, 2010 4:10 pm

If i use "PARTICLE_SMOKE" the program not crash :S...
Code:
createParticleSystem(<POS> , PARTICLE_SMOKE);


Download TEST 'PARTICE_SMOKE' [Win x86]: http://filebeam.com/e50c194c1131e0ca509152081071ff22
Back to top Go down
View user profile
Juff
Developer


Messages : 539
Date d'inscription : 2009-07-14
Age : 34

PostSubject: 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).
Back to top Go down
View user profile http://spark.developpez.com
CytraL



Messages : 8
Date d'inscription : 2010-08-17

PostSubject: 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 Very Happy!!
Back to top Go down
View user profile
Juff
Developer


Messages : 539
Date d'inscription : 2009-07-14
Age : 34

PostSubject: 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.
Back to top Go down
View user profile http://spark.developpez.com
CytraL



Messages : 8
Date d'inscription : 2010-08-17

PostSubject: Re: Problem with Emiters :S   Tue Aug 17, 2010 7:24 pm

Ok, thx for all Juff Wink


P.D For Developers Team: Great work with Spark!! thx for make it free Smile
Back to top Go down
View user profile
CytraL



Messages : 8
Date d'inscription : 2010-08-17

PostSubject: Re: Problem with Emiters :S   Wed Aug 18, 2010 5:07 pm

Preview Game with SPARK working... Smile

Back to top Go down
View user profile
Juff
Developer


Messages : 539
Date d'inscription : 2009-07-14
Age : 34

PostSubject: Re: Problem with Emiters :S   Mon Aug 30, 2010 2:03 pm

Very nice ! Good luck with your project
Back to top Go down
View user profile http://spark.developpez.com
Sponsored content




PostSubject: Re: Problem with Emiters :S   Today at 9:29 am

Back to top Go down
 
Problem with Emiters :S
View previous topic View next topic Back to top 
Page 1 of 1
 Similar topics
-
» Problem with Selenium RC, can't find objects in Junit.
» Problem with Selenium Webdriver
» Profile Customization Problem
» [ANSWERED] Winreducer Install problem
» Selenium RC & Dojo controls.

Permissions in this forum:You cannot reply to topics in this forum
 :: English Forum :: Questions (en)-
Jump to: