Author Topic: Marshmallow Tail: RESOLVED PLEASE LOCK  (Read 964 times)

Offline yourlocalcrow

  • Dedicated Supporter
  • ***
  • Posts: 412
  • Country: us
  • Floof-O-Meter: 43
  • they/them
    • View Profile
    • my deviantArt
Marshmallow Tail: RESOLVED PLEASE LOCK
« 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.
« Last Edit: February 17, 2017, 09:24:35 pm by narwalpanda54321 »

Offline Morgra

  • I don't like sand...
  • Immortal Legend
  • *****
  • Posts: 5,718
  • Country: us
  • Floof-O-Meter: 347
  • Ever been killed by a spider? I was
    • DinksterDaily
    • View Profile
Re: Marshmallow Tail: Please Check Code!
« Reply #1 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.
Profile pic by Edolicious

People don't think the universe be like it is, but it do.


Offline yourlocalcrow

  • Dedicated Supporter
  • ***
  • Posts: 412
  • Country: us
  • Floof-O-Meter: 43
  • they/them
    • View Profile
    • my deviantArt
Re: Marshmallow Tail: Please Check Code!
« Reply #2 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.

Offline Morgra

  • I don't like sand...
  • Immortal Legend
  • *****
  • Posts: 5,718
  • Country: us
  • Floof-O-Meter: 347
  • Ever been killed by a spider? I was
    • DinksterDaily
    • View Profile
Re: Marshmallow Tail: Please Check Code!
« Reply #3 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 ^^
Profile pic by Edolicious

People don't think the universe be like it is, but it do.


Offline Bloo.

  • Space-Child ✌
  • Moderator
  • Elder Grey Pelt
  • *****
  • Posts: 2,657
  • Country: us
  • Floof-O-Meter: 191
  • nyoom
    • Bloopaloozer
    • Bloopalooza FH
    • aLittleProzium
    • Bloopalooza
    • View Profile
    • DeviantArt
Re: Marshmallow Tail: Please Check Code!
« Reply #4 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


You are amazing <3

Offline yourlocalcrow

  • Dedicated Supporter
  • ***
  • Posts: 412
  • Country: us
  • Floof-O-Meter: 43
  • they/them
    • View Profile
    • my deviantArt
Re: Marshmallow Tail: Please Check Code!
« Reply #5 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.
« Last Edit: February 17, 2017, 09:20:08 pm by narwalpanda54321 »

Offline Kynvuu

  • #Grimstagram
  • Elder Grey Pelt
  • ****
  • Posts: 2,538
  • Country: us
  • Floof-O-Meter: 212
  • I'm not saying that it was aliens but...
    • View Profile
Re: Marshmallow Tail: RESOLVED PLEASE LOCK
« Reply #6 on: February 17, 2017, 09:55:01 pm »
Locking this now. Glad that everything worked out c:
On a temporary leave. Please contact other members of staff if you need assistance.