Jump to content

[1.8.9] Game Crashes when trying to spawn custom particle


Recommended Posts

Posted

My game crashes when it tries to spawn my custom particle. From what I can tell of my crash reports, the crashing has got something to do with my rendering of my particle. What I am trying to render is lines like Flash's lightning trail.

 

Crash report:

 

  Reveal hidden contents

 

Class here.

width=620 height=260http://www.startrek.com/uploads/assets/articles/61c89a9d73c284bda486afaeaf01cdb27180359b.jpg[/img]

Till next time. Thank you for delivering funny scenes to Star Trek as Chekov :) . Will always remember you

Posted

Hi

 

That crash usually happens when you've tried to use WorldRenderer before .begin().

 

I'm not sure why that's happening in your case because I thought that EntityFX are always called with .begin() already set.

 

It might be because you are calling tes.draw(), which EntityFX normally don't do in their render.

 

-TGG

 

PS an example of a custom EntityFX renderer is here; it might help to understand what the parameters for renderParticle mean.

 

https://github.com/TheGreyGhost/MinecraftByExample/tree/1-8-9final

Look at the "FlameFX" class in mbe50 package

 

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.