dycdycdyc Posted March 9, 2019 Share Posted March 9, 2019 (edited) 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... 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 March 18, 2019 by dycdycdyc Link to comment https://forums.kleientertainment.com/forums/topic/103696-particle-emitter-crashed/ Share on other sites More sharing options...
dycdycdyc Posted March 18, 2019 Author Share Posted March 18, 2019 No one knows?... Link to comment https://forums.kleientertainment.com/forums/topic/103696-particle-emitter-crashed/#findComment-1166549 Share on other sites More sharing options...
Developer bizziboi Posted March 18, 2019 Developer Share Posted March 18, 2019 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. Link to comment https://forums.kleientertainment.com/forums/topic/103696-particle-emitter-crashed/#findComment-1166554 Share on other sites More sharing options...
dycdycdyc Posted March 19, 2019 Author Share Posted March 19, 2019 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. Link to comment https://forums.kleientertainment.com/forums/topic/103696-particle-emitter-crashed/#findComment-1166931 Share on other sites More sharing options...
Developer bizziboi Posted March 19, 2019 Developer Share Posted March 19, 2019 I don't know, to be honest. If you attach your code I might be able to take a look, time permitting. Link to comment https://forums.kleientertainment.com/forums/topic/103696-particle-emitter-crashed/#findComment-1166933 Share on other sites More sharing options...
dycdycdyc Posted March 19, 2019 Author Share Posted March 19, 2019 (edited) 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 March 20, 2019 by dycdycdyc Link to comment https://forums.kleientertainment.com/forums/topic/103696-particle-emitter-crashed/#findComment-1167003 Share on other sites More sharing options...
dycdycdyc Posted March 20, 2019 Author Share Posted March 20, 2019 (edited) Finally! I figured out the problem my self! The function "EnvelopeManager.AddVector2Envelope" caused the crash. I added too many envelopes...... Now the game no longer crashes. Thanks for helping anyway! Really like particle fire fx! lol Edited March 20, 2019 by dycdycdyc Link to comment https://forums.kleientertainment.com/forums/topic/103696-particle-emitter-crashed/#findComment-1167427 Share on other sites More sharing options...
DragonMage156 Posted April 1, 2019 Share Posted April 1, 2019 Whoa! Is this a mod?! Link to comment https://forums.kleientertainment.com/forums/topic/103696-particle-emitter-crashed/#findComment-1172669 Share on other sites More sharing options...
dycdycdyc Posted April 1, 2019 Author Share Posted April 1, 2019 yes, but unfinished Link to comment https://forums.kleientertainment.com/forums/topic/103696-particle-emitter-crashed/#findComment-1172767 Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now