Feral Heart

Help & Guidance => Game Help => Topic started by: yourlocalcrow on February 17, 2017, 12:11:39 am

Title: Marshmallow Tail: RESOLVED PLEASE LOCK
Post by: yourlocalcrow on February 17, 2017, 12:11:39 am
Hey guys! So, I've got a small issue with a scrolling tail. I have absolutely no clue what's wrong. I've copied the code from the body, which wasn't a marshmallow, and spell-checked.

The code for the tail is as follows:
Code: [Select]
material preset_12_tailMat
{
 technique
 {
  pass
  {
   texture_unit
   {
    texture scroll.png
    scroll_anim 0.1 0.1
   }
  }
  pass
  {
   scene_blend alpha_blend
   texture_unit
   {
    texture 12tail.png
   }
  }
 }
}
Compared to the code on a working body part:
Code: [Select]
material preset_12_bodyMatL
{
 technique
 {
  pass
  {
   texture_unit
   {
    texture scroll.png
    scroll_anim 0.1 0.1
   }
  }
  pass
  {
   scene_blend alpha_blend
   texture_unit
   {
    texture 12body.png
   }
  }
 }
}

If anyone more skilled in preset codes can tell me the issue, I'd appreciate it greatly! ^^

I have already spell-checked and used a code that was working on other body parts. I am being completely honest when I say that I don't know what is wrong in the code. I know it's probably something stupid that I just can't see, but I've done everything I know to do when I'm getting a marshmallow instead of my texture.
Title: Re: Marshmallow Tail: Please Check Code!
Post by: Morgra on February 17, 2017, 12:20:30 am
I don't see anything wrong with the coding here. Double check your actual tail texture file and make sure that it is the same name and file type.
Title: Re: Marshmallow Tail: Please Check Code!
Post by: yourlocalcrow on February 17, 2017, 01:04:54 am
I must've checked about twenty times by now, even renamed it. Still marshmallow. It isn't the scroll, as the scroll works on all the other places. I've tried changing the code back to a normal, effect-less code, and it's still a marshmallow. I've honestly got no clue what's wrong.
Title: Re: Marshmallow Tail: Please Check Code!
Post by: Morgra on February 17, 2017, 01:07:39 am
I must've checked about twenty times by now, even renamed it. Still marshmallow. It isn't the scroll, as the scroll works on all the other places. I've tried changing the code back to a normal, effect-less code, and it's still a marshmallow. I've honestly got no clue what's wrong.

Try changing the file type of the tail texture to jpg and seeing if that texture works. Then you know it has something to do with the png. Or, better idea, you could always try placing a "dummy" file in place of the tail texture that has the same name just to act as a "reset" and seeing if you can see that tail texture. Same name, same file format just a different file. Be sure to back up the current tail file somewhere though ^^
Title: Re: Marshmallow Tail: Please Check Code!
Post by: Bloo. on February 17, 2017, 01:09:06 am
Restating what Morgra said, make sure the file type is what you typed in your code. Say your tail is a png file, in the code your tail texture name should end in .png. Make sure it's either .png or .jpg and see if it matches your code.

EDIT: Morgra got there before me haha
Title: Re: Marshmallow Tail: Please Check Code!
Post by: yourlocalcrow on February 17, 2017, 09:12:49 pm
I tried the dummy file, and that didn't load either. I'm going to try using a different material file, and see if it loads then.

Edit: The new material code, where the code looks like this:
Code: [Select]
{
technique
{
pass
{
texture_unit
{
texture scroll.png
scroll_anim 0.1 0.1
}
texture_unit
{
texture 12tail.png
colour_op alpha_blend
}
texture_unit
{
texture 12tail.png
colour_op_ex blend_current_alpha src_texture src_current
tex_address_mode wrap
filtering trilinear
}
}
}
}

Seems to be working. I've still got no idea why the previous code didn't work.
Title: Re: Marshmallow Tail: RESOLVED PLEASE LOCK
Post by: Kynvuu on February 17, 2017, 09:55:01 pm
Locking this now. Glad that everything worked out c: