IronHunter Posted February 5, 2021 Share Posted February 5, 2021 (edited) Assert failure 'mTexture != INVALID_RESOURCE_HANDLE' at ..\source\game\render\VFXEffectEmitter.cpp(586): Trace follows... Getting this error when trying to make a unique particle texture, this texture is power of 2 and converts properly from the .png to .tex but when I try to call it for the particle emitter it crashes the client. Edit: Solution: softresolvefilepath() for the texture path in effect:SetRenderResources Edited February 6, 2021 by IronHunter Solved 1 1 Link to comment Share on other sites More sharing options...
Hornete Posted February 5, 2021 Share Posted February 5, 2021 14 minutes ago, IronHunter said: Assert failure 'mTexture != INVALID_RESOURCE_HANDLE' at ..\source\game\render\VFXEffectEmitter.cpp(586): Trace follows... Getting this error when trying to make a unique particle texture, this texture is power of 2 and converts properly from the .png to .tex but when I try to call it for the particle emitter it crashes the client. How are you calling it? Can you share the specific line of code? Link to comment Share on other sites More sharing options...
IronHunter Posted February 5, 2021 Author Share Posted February 5, 2021 (edited) 36 minutes ago, Hornete said: How are you calling it? Can you share the specific line of code? I can share the files, I have done some tests and it seems the error happens even if I extract a vanilla texture and recompile it. Edit: This works completely fine with vanilla textures its just when I attempt to use a modded texture it doesn't work. To test this you'll need to spawn dirt_linedrawer prefab The specific line of code that its called is lines 241, which is then referenced by line 244 in assets and line 273 in effect:SetRenderResources which I am assuming is where the problem is. As it seems to be a c side error. @CarlZalph says the error:That error means that the texture handle is invalid. rn_particle_linedrawer.lua mcdirt.tex Edited February 5, 2021 by IronHunter 1 Link to comment 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