Author Topic: [FIXED] Preset 1 not registering on Preset Maker...  (Read 1012 times)

Elohi Adanvdo

  • Guest
[FIXED] Preset 1 not registering on Preset Maker...
« on: April 26, 2013, 10:56:07 pm »
I was messing around with it a lot today and made my preset, then I moved on to make another one, and replaced my preset's images with the newer ones and edited the material file codes. Went in game to check it out in the Preset Maker, and found out that the Preset 1 option wasn't registering with all the other presets. I tried to replace the new images with my old preset images, but to no avail. Did I delete an important code or something?

Code:
material preset_1_bodyMatL
{
   technique
   {
      pass
      {
         ambient 0.5 0.5 0.5
         texture_unit
      pass
      {
         emissive 2.0 2.0 2.0
         scene_blend alpha_blend
         texture_unit
         {
            texture preset_1bodyGlow.png
         }
      }
   }
}


material preset_1_bodyMatR
{
   technique
   {
      pass
      {
         ambient 0.5 0.5 0.5
         texture_unit
      pass
      {
         emissive 2.0 2.0 2.0
         scene_blend alpha_blend
         texture_unit
         {
            texture preset_1bodyGlow.png
         }
      }
   }
}


material preset_1_headMatL
{
   technique
   {
      pass
      {
         ambient 0.5 0.5 0.5
         texture_unit
         }
      }
   }
}


material preset_1_headMatR
{
   technique
   {
      pass
      {
         ambient 0.5 0.5 0.5
         texture_unit
         {
            texture preset_1head.png
         }
      }
   }
}

material preset_1_eyeMatL
{
   technique
   {
      pass
      {
         cull_hardware none
         cull_software none
         ambient 0.5 0.5 0.5
         texture_unit
         {
            texture preset_1eye.png
         }
      }
      pass
      {
         emissive 2.0 2.0 2.0
         scene_blend alpha_blend
         texture_unit
         {
            texture preset_1eyeGlow.png
         }
      }
   }
}

material preset_1_eyeMatR
{
   technique
   {
      pass
      {
         cull_hardware none
         cull_software none
         ambient 0.5 0.5 0.5
         texture_unit
         {
            texture preset_1eye.png
         }
      }
      pass
      {
         emissive 2.0 2.0 2.0
         scene_blend alpha_blend
         texture_unit
         {
            texture preset_1eyeGlow.png
         }
      }
   }
}

material preset_1_tailMat
{
   technique
   {
      pass
      {
         texture_unit
         {
            texture preset_1tail.png
         }
      }
   }
}

material preset_1_maneMat
{
   technique
   {
      pass
      {
         lighting off
         cull_hardware none
         cull_software none
         scene_blend alpha_blend
         depth_write off
         texture_unit
         {
            texture preset_1mane.png
         }
      }
   }
}

material preset_1_equipMatL
{
   technique
   {
      pass
      {
         texture_unit
         {
            texture preset_1equipInvisible.png
         }
      }
   }
}
material preset_1_equipMatR
{
   technique
   {
      pass
      {
         texture_unit
         {
            texture preset_1equipInvisible.png
         }
      }
   }
}


And yes, the wings work FINE. XD
« Last Edit: April 27, 2013, 03:30:25 pm by Elohi Adanvdo »

Offline WhiteLightHeart

  • iTrumpet~<3
  • Elder Grey Pelt
  • ****
  • Posts: 2,845
  • Country: us
  • Floof-O-Meter: 230
  • Seems legit
    • WhiteLightHeart
    • View Profile
Re: Preset 1 not registering on Preset Maker...
« Reply #1 on: April 26, 2013, 11:12:38 pm »
Hmm... As far as I can tell, the coding looks to be in order, although I'm only slightly functional with coding.

However, if your preset worked before you replaced the images, did you make sure that all of the images are .png, like the coding in this thread?
|| ~Avatar by Kikiorylandia, Sig commissioned by Wolf_Memories~ ||
|| Thank you. <3 ||

Offline Feareh

  • The Jaguar Artist
  • Ancient Silver Mane
  • *****
  • Posts: 4,026
  • Country: us
  • Floof-O-Meter: 195
  • Where is the Walrus Species?
    • View Profile
Re: Preset 1 not registering on Preset Maker...
« Reply #2 on: April 26, 2013, 11:20:11 pm »
I think I see something wrong..
Quote
material preset_1_headMatL
{
   technique
   {
      pass
      {
         ambient 0.5 0.5 0.5
         texture_unit
         }
      }
   }
}
This coding where the head function is suppose to be doesnt have a supportive file to display.
There should be a png or a jpg in there somewhere.
I should be like texture_preset1head.png.

Without a file for the coding to use, the whole coding will crash and nothing will show. If not that then all you will see is all white.
I Stalk from time to time...I have moved on to other things but do miss this place. Good times
Add me on discord:
Bakujio 🐺#7358

Offline Ruby1234

  • Mean Tutorial Queen
  • Elder Grey Pelt
  • ****
  • Posts: 2,794
  • Country: us
  • Floof-O-Meter: 297
  • aka Phloxenfree.
    • View Profile
Re: Preset 1 not registering on Preset Maker...
« Reply #3 on: April 27, 2013, 12:52:47 am »
You also have line breaks in between the last brackets and the new material lines.
This can sometimes mess things up.

Elohi Adanvdo

  • Guest
Re: Preset 1 not registering on Preset Maker...
« Reply #4 on: April 27, 2013, 03:19:06 pm »
Aaaaah, thankees guys. I'll try to fix a few things up and see if it works. I'll update after I try the suggestions. :3

Elohi Adanvdo

  • Guest
Re: Preset 1 not registering on Preset Maker...
« Reply #5 on: April 27, 2013, 03:29:48 pm »
WHOOP WHOOP

It turns out that when I edited the script I was also missing a few of these ( { / } ), and that was the main problem.

Thankees for your help, I probably wouldn't of have thoroughly checked my coding and would've skipped it all together. :3