Jump to content

Recommended Posts

Posted

Hi.

 

Suddenly my custom particles stopped rendering the texture, I dont know what changed that could do this.

Now it only shows the purple/black texture.

 

I debugged it and came to the conclusion that my texture is not loaded.

 

Image of debugger:

 

  Reveal hidden contents

 

 

i've tried changing

public ResourceLocation texture = new ResourceLocation(ModNames.MOD_NAME, "particles/"+ ModNames.PARTICLE_CONSUME);

 

to

 

public ResourceLocation texture = new ResourceLocation("ancienttech", "particles/sacrificealtar");

and

public ResourceLocation texture = new ResourceLocation("ancienttech", "particles/sacrificealtar.png");

and

public ResourceLocation texture = new ResourceLocation("ancienttech", "textures/particles/sacrificealtar");

and
public ResourceLocation texture = new ResourceLocation("ancienttech", "textures/particles/sacrificealtar.png");

 

 

my particle class (yeah its still messy im in the works to clean up my code):

 

  Reveal hidden contents

 

 

Particle in clientproxy:

 

  Reveal hidden contents

 

 

Code in my tilentity to spawn particles:

 

  Reveal hidden contents

 

 

asset path (image)

 

  Reveal hidden contents

 

 

There are no missing texture errors in console, no errors at all.

 

I really could use a second pair of eyes, the code was working before and the particles were  rendering just fine.

Not all things in the world are red, there are round objects too!

Posted

I got it working again.

 

It was my EventManager that was'nt loading.

So this was never triggered.

 

@SideOnly(Side.CLIENT)
@SubscribeEvent
public void onTextureStitch(TextureStitchEvent event){
	ResourceLocation sacrificealtarParticleRL = new ResourceLocation("ancienttech","particles/" + ModNames.PARTICLE_CONSUME);
	event.getMap().registerSprite(sacrificealtarParticleRL);
}

Not all things in the world are red, there are round objects too!

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.