All I wanted was a simple particle effect, hopefully I won’t make a debugger’s hell out of this one!
Alright, so I had a go at this. My effect is being triggered - I know this because the sound effect is activated - but unfortunately my game crashes to desktop due to the cubemitter.
2015-Feb-18 20:10:57.220400 | client | 0 | renderer.renderer | failed to load render resource cubemitter:beam
2015-Feb-18 20:10:57.221400 | client | 0 | app | Assertion Failed: false(..\..\..\..\..\source\client\renderer\renderer.cpp:1593)
2015-Feb-18 20:10:57.643400 | server | 1 | simulation.remote_client | started buffering client updates. (seq:1204 ack:1194)
I’ve tried fixing it by removing the path from the effect.json and making an alias for the emitter in my manifest, just to be sure I was specifying the right path.
I have a feeling it might have something to do with the effect being used on a moving object, but I don’t see why it should be an issue.
At this point, I might try to make a static object that runs my effect, and if that fails, use an effect known to work (fire, or something) on the static object. In the meantime, does anybody have other ideas as to what could be causing this crash?
It doesn’t work on the static object either… Must be either the cubemitter itself or my effect code. I’ll play around with this tomorrow!
Alright so this was festering in my mind and I had to deal with it now!
The problem was related to my cubemitter path. For some reason, it takes cubemitters from the stonehearth/data/horde/particles/ folder instead of from mod/data/horde/particles/
"type" : "effect",
It works perfectly when I drop the effect into the ‘stonehearth’ /particle/ folder. Any ideas as to how I can force it to take the effect from my mod’s /particles/ directory? Am I doing something stupid?
(P.S. sorry if you’re getting annoying notifications from my edits!)