Jump to content

Recommended Posts

Trying to play with the particle emitter. But it crashes every time! (The game disappears suddenly)

The log shows:

Assert failure 'mFreeIndex > 0' at c:\jenkins\workspace\jobs\DontStarve_Release_Make_Steam_Package\workspace\source\util/indexmanager.h(26): Trace follows...

5c83c96fa9560.gif

It usually crashed 10 minutes after the emitter started!

Am I emitting too many particles?

But I think, for other games, this amount is very normal.

Edited by dycdycdyc
Link to comment
https://forums.kleientertainment.com/forums/topic/103696-particle-emitter-crashed/
Share on other sites

Thanks for the reply.

I did set a max num (120), but it still crashed. For the particle effect in the gif, "AddParticleUV" is called 6 times per 0.033 second. And max lifetime of each particle is about 1 second.

The strange thing is that it never crashes immediately. Looks like the particles spawned are only hidden visually, but not removed correctly when they reach their lifetime.

 

23 hours ago, bizziboi said:

Unverified but I'd say you're indeed spawning too many particles. In your script somewhere it must say

emitter:SetMaxNumParticles( some number )

You could try upping that number.

 

 

 

 

On 2019/3/19 at 12:39 PM, bizziboi said:

I don't know, to be honest. If you attach your code I might be able to take a look, time permitting.

particle test.zip log.txt

Attached are my test mod and crash log.

The prefab in the GIF I showed you before is "dyc_p_flamethrower".

The mod also replaces the default campfirefire and torchfire with particle effects ("dyc_p_fire" and "dyc_p_fire_quick").

The quickest way to test it is to build 8 campfires and just wait. Game will crash in 2 minutes.

 

Edited by dycdycdyc

Finally! I figured out the problem my self! The function "EnvelopeManager.AddVector2Envelope" caused the crash. I added too many envelopes......:shock: 

Now the game no longer crashes. Thanks for helping anyway!

5c9266eae5960.jpg

5c926f488d7e0.gif

Really like particle fire fx! lol

Edited by dycdycdyc

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...