Feral Heart

Help & Guidance => Game Help => Topic started by: ThePromise on May 31, 2019, 12:21:49 am

Title: Preset is a marshmallow, Halp!?
Post by: ThePromise on May 31, 2019, 12:21:49 am
Alright so basically, im trying to make a preset for which i will post as an adoptable on d.a, or perhaps make it free to use entirely.

Ive colored the head portion and have put it in the Preset 12 folder, the image file name is preset_12head.png and the body is preset_12body.png  but all i am seeing is a marshmallow, ive checked the code text file and nothing seems wrong..?

Its just showing as a 'marshmallow' in the preset maker. yknow, all white.
Title: Re: Preset is a marshmallow, Halp!?
Post by: AlphaEclipse on May 31, 2019, 12:27:49 am
Hello, ThePromise, would you mind opening the material file and sending its full contents so we can scan it over? Also, make sure the file types match, as by default the material file is 'coded' to recognize .jpg and not .png, but this can be changed.
Title: Re: Preset is a marshmallow, Halp!?
Post by: ThePromise on May 31, 2019, 12:30:25 am
yeah, heres the code.


material preset_12_bodyMatL
{
   technique
   {
      pass
      {
         texture_unit
         {
            texture preset_12bodyL.jpg
         }
      }
   }
}
material preset_12_bodyMatR
{
   technique
   {
      pass
      {
         texture_unit
         {
            texture preset_12bodyR.jpg
         }
      }
   }
}
material preset_12_headMatL
{
   technique
   {
      pass
      {
         texture_unit
         {
            texture preset_12headL.jpg
         }
      }
   }
}
material preset_12_headMatR
{
   technique
   {
      pass
      {
         texture_unit
         {
            texture preset_12headR.jpg
         }
      }
   }
}
material preset_12_eyeMatL
{
   technique
   {
      pass
      {
         cull_hardware none
         cull_software none
         texture_unit
         {
            texture preset_12eyeL.jpg
         }
      }
   }
}
material preset_12_eyeMatR
{
   technique
   {
      pass
      {
         cull_hardware none
         cull_software none
         texture_unit
         {
            texture preset_12eyeR.jpg
         }
      }
   }
}
material preset_12_tailMat
{
   technique
   {
      pass
      {
         texture_unit
         {
            texture preset_12tail.jpg
         }
      }
   }
}
material preset_12_maneMat
{
   technique
   {
      pass
      {
         lighting off
         cull_hardware none
         cull_software none
         scene_blend alpha_blend
         depth_write off
         texture_unit
         {
            texture preset_12mane.png
         }
      }
   }
}
material preset_12_equipMatL
{
   technique
   {
      pass
      {
         texture_unit
         {
            texture preset_12equip.jpg
         }
      }
   }
}
material preset_12_equipMatR
{
   technique
   {
      pass
      {
         texture_unit
         {
            texture preset_12equip.jpg
         }
      }
   }
}
Title: Re: Preset is a marshmallow, Halp!?
Post by: AlphaEclipse on May 31, 2019, 12:49:10 am
Quote
material preset_12_bodyMatL
{
   technique
   {
      pass
      {
         texture_unit
         {
            texture preset_12bodyL.jpg
         }
      }
   }
}
material preset_12_bodyMatR
{
   technique
   {
      pass
      {
         texture_unit
         {
            texture preset_12bodyR.jpg
         }
      }
   }
}
material preset_12_headMatL
{
   technique
   {
      pass
      {
         texture_unit
         {
            texture preset_12headL.jpg
         }
      }
   }
}
material preset_12_headMatR
{
   technique
   {
      pass
      {
         texture_unit
         {
            texture preset_12headR.jpg
         }
      }
   }
}
material preset_12_eyeMatL
{
   technique
   {
      pass
      {
         cull_hardware none
         cull_software none
         texture_unit
         {
            texture preset_12eyeL.jpg
         }
      }
   }
}
material preset_12_eyeMatR
{
   technique
   {
      pass
      {
         cull_hardware none
         cull_software none
         texture_unit
         {
            texture preset_12eyeR.jpg
         }
      }
   }
}
material preset_12_tailMat
{
   technique
   {
      pass
      {
         texture_unit
         {
            texture preset_12tail.jpg
         }
      }
   }
}
material preset_12_maneMat
{
   technique
   {
      pass
      {
         lighting off
         cull_hardware none
         cull_software none
         scene_blend alpha_blend
         depth_write off
         texture_unit
         {
            texture preset_12mane.png
         }
      }
   }
}
material preset_12_equipMatL
{
   technique
   {
      pass
      {
         texture_unit
         {
            texture preset_12equip.jpg
         }
      }
   }
}
material preset_12_equipMatR
{
   technique
   {
      pass
      {
         texture_unit
         {
            texture preset_12equip.jpg
         }
      }
   }
}

Since you said the file names were just preset_12body.png and preset_12head.png, the issue probably lies in those R's and L's colored red in the quote above. To fix this, you can remove them yourself or use the following code:

Code: [Select]
material preset_12_bodyMatL
{
   technique
   {
      pass
      {
         texture_unit
         {
            texture preset_12body.jpg
         }
      }
   }
}
material preset_12_bodyMatR
{
   technique
   {
      pass
      {
         texture_unit
         {
            texture preset_12body.jpg
         }
      }
   }
}
material preset_12_headMatL
{
   technique
   {
      pass
      {
         texture_unit
         {
            texture preset_12head.jpg
         }
      }
   }
}
material preset_12_headMatR
{
   technique
   {
      pass
      {
         texture_unit
         {
            texture preset_12head.jpg
         }
      }
   }
}
material preset_12_eyeMatL
{
   technique
   {
      pass
      {
         cull_hardware none
         cull_software none
         texture_unit
         {
            texture preset_12eye.jpg
         }
      }
   }
}
material preset_12_eyeMatR
{
   technique
   {
      pass
      {
         cull_hardware none
         cull_software none
         texture_unit
         {
            texture preset_12eye.jpg
         }
      }
   }
}
material preset_12_tailMat
{
   technique
   {
      pass
      {
         texture_unit
         {
            texture preset_12tail.jpg
         }
      }
   }
}
material preset_12_maneMat
{
   technique
   {
      pass
      {
         lighting off
         cull_hardware none
         cull_software none
         scene_blend alpha_blend
         depth_write off
         texture_unit
         {
            texture preset_12mane.png
         }
      }
   }
}
material preset_12_equipMatL
{
   technique
   {
      pass
      {
         texture_unit
         {
            texture preset_12equip.jpg
         }
      }
   }
}
material preset_12_equipMatR
{
   technique
   {
      pass
      {
         texture_unit
         {
            texture preset_12equip.jpg
         }
      }
   }
}

If you know this is not the issue, I must ask, are any parts of the preset showing up, or is the entire thing white? That would be an entirely separate issue. If the above does not work, check your file extensions to make sure you were not saving as .png.
Title: Re: Preset is a marshmallow, Halp!?
Post by: Panzram on May 31, 2019, 12:57:56 am
To add onto Alpha's response, if you are saving your files as a .png, you need to change the file extensions in your material as well to match. So the code would be something like this:

Code: [Select]
material preset_12_bodyMatL
{
   technique
   {
      pass
      {
         texture_unit
         {
            texture preset_12body.png
         }
      }
   }
}
material preset_12_bodyMatR
{
   technique
   {
      pass
      {
         texture_unit
         {
            texture preset_12body.png
         }
      }
   }
}
material preset_12_headMatL
{
   technique
   {
      pass
      {
         texture_unit
         {
            texture preset_12head.png
         }
      }
   }
}
material preset_12_headMatR
{
   technique
   {
      pass
      {
         texture_unit
         {
            texture preset_12head.png
         }
      }
   }
}

Title: Re: Preset is a marshmallow, Halp!?
Post by: ThePromise on May 31, 2019, 01:03:00 am
i changed the file type to .jpg and i used the code alpha provided, but everything is still a marshmallow. no parts show. i've made presets before and they've never done this.
Title: Re: Preset is a marshmallow, Halp!?
Post by: AlphaEclipse on May 31, 2019, 01:12:51 am
This is completely optional and I totally understand if you would prefer not to do this considering it is an adoptable, but if you'd like, if you send me the entire folder with the files I can save everything and test it in my FH. If you go this route you can just upload the entire folder to Mediafire or upload the individual image files to Imgur so you can send me them privately through private message. I would delete all files after the issue was found and fixed.

Since you said you changed the files to .jpg, revert your changes and try Panzram's code---changing the image's file 'name' to .jpg at the end does not change the actual file extension.
Title: Re: Preset is a marshmallow, Halp!?
Post by: ThePromise on May 31, 2019, 02:01:33 am
the head and body now show, but eyes and tail do not.
Title: Re: Preset is a marshmallow, Halp!?
Post by: AlphaEclipse on May 31, 2019, 02:18:31 am
the head and body now show, but eyes and tail do not.

Oop, just change the file extensions to what the body and head are and it should be working with which ever one of our codes you are using! The names of the extensions in the file need to match the tail and eyes now.
Title: Re: Preset is a marshmallow, Halp!?
Post by: ThePromise on May 31, 2019, 02:36:55 am
I Was finally fixed it haha. thank you all for the help
Title: Re: Preset is a marshmallow, Halp!?
Post by: AlphaEclipse on May 31, 2019, 03:05:30 am
No worries, if you need anymore help feel free to ask!
Title: Re: Preset is a marshmallow, Halp!?
Post by: Panzram on May 31, 2019, 03:25:33 am
Locking this up since the issue has been resolved. Thank you, Alpha. <3