Author Topic: Mane Coding Meaning I can't Export Preset?  (Read 1694 times)

Offline Jacarius

  • Curious Wanderer
  • *
  • Posts: 15
  • Country: au
  • Floof-O-Meter: 1
    • JACARIUS
    • jacariusthehuman
    • View Profile
Mane Coding Meaning I can't Export Preset?
« on: February 08, 2014, 03:01:13 pm »
Hey, I made my OC a new preset! This one was a bit difficult for my because I had to find the coding to that I could have a different coloured head sides. Simple really. But then I made a mane and it came out odd because I hadn't coded it. I ignored that and tried to exprt anyway. But FH 'Failed to Export'.
SO I tried to fix the mane coding with bits I found on the net. All used before by other people and seem to be working. But When I put it in, it's not effecting the mane at all! Yes I re-start FH every time I edit the files or coding. But it's not helping me at all. Any ideas?
As a separate thing, I was wondering if the messed up mane would be the reason I can't export?

 Thanks!  ;D

Here is what my entire Preset_1 Coding looks like. Can you see any problems?
Code: [Select]
material preset_1_bodyMatL
{
technique
{
pass
{
texture_unit
{
texture preset_1body.jpg
}
}
}
}
material preset_1_bodyMatR
{
technique
{
pass
{
texture_unit
{
texture preset_1body.jpg
}
}
}
}
material preset_1_headMatL
{
technique
{
pass
{
texture_unit
{
texture cheadShade.jpg
}
texture_unit
{
texture preset_1Lhead.jpg
}
}
}
}
material preset_1_headMatR
{
technique
{
pass
{
texture_unit
{
texture cheadShade.jpg
}
texture_unit
{
texture preset_1Rhead.jpg
}
}
}
}
material preset_1_eyeMatL
{
technique
{
pass
{
cull_hardware none
cull_software none
texture_unit
{
texture preset_1eye.jpg
}
}
}
}
material preset_1_eyeMatR
{
technique
{
pass
{
cull_hardware none
cull_software none
texture_unit
{
texture preset_1eye.jpg
}
}
}
}
material preset_1_tailMat
{
technique
{
pass
{
texture_unit
{
texture preset_1tail.jpg
}
}
}
}
material preset_1_maneMat
{
        technique
        {
                pass
                {
                        cull_hardware none
                        cull_software none
                        alpha_rejection greater_equal 128
                        texture_unit
                        {
                                texture preset_1mane.png
                        }
                }
        }
}

AlphaEclipse

  • Guest
Re: Mane Coding Meaning I can't Export Preset?
« Reply #1 on: February 08, 2014, 03:07:56 pm »
I don't see any problem with the code its self, but make sure you save/export the mane as a .png file format! All of the files must match the the file's names in the .material. For example:

If it says texture preset_1body.jpg
You must save it as a .jpg.

If it says texture preset_1mane.png
You must save it as a .png.

Also, how is it not effecting the mane? When you're coloring the mane in, make sure you're locking the alpha channel, AKA locking transparency.

I'd look here

Click Me!





EDIT: I didn't even see the shading part in the .mat. o-o To add a shade to your preset, just follow this tutorial:

Click Me
A shade doesn't require any script because it just goes onto the actual preset_1body.jpg.

I'll probably edit this again to get a fixed version of your code.
« Last Edit: February 08, 2014, 03:16:48 pm by AlphaEclipse »

Offline Tanglemask

  • Finest Floof
  • ***
  • Posts: 717
  • Country: 00
  • Floof-O-Meter: 64
  • Inactive
    • View Profile
    • Tangled in Bowties
Re: Mane Coding Meaning I can't Export Preset?
« Reply #2 on: February 08, 2014, 03:08:16 pm »
Perhaps it as something to do with the cheadShade. All my preset codes do not have this. Where is that image located for you? It may have something to do with it. This could  be causing a problem and maybe not your mane, because that coding is fine. Also Alpha has a good point too

but make sure you save/export the mane as a .png file format! All of the files must match the the file's names in the .material.
 
« Last Edit: February 08, 2014, 03:11:06 pm by TangledBowties »

"I can't tell you the key to success but the key to failure is trying to please everyone" - Ed Sheeran

Offline Jacarius

  • Curious Wanderer
  • *
  • Posts: 15
  • Country: au
  • Floof-O-Meter: 1
    • JACARIUS
    • jacariusthehuman
    • View Profile
Re: Mane Coding Meaning I can't Export Preset?
« Reply #3 on: February 08, 2014, 03:16:06 pm »
I don't see any problem with the code its self, but make sure you save/export the mane as a .png file format! All of the files must match the the file's names in the .material. For example:

If it says texture preset_1body.jpg
You must save it as a .jpg.

If it says texture preset_1mane.png
You must save it as a .png.

Also, how is it not effecting the mane? When you're coloring the mane in, make sure you're locking the alpha channel, AKA locking transparency.

I'd look here

Click Me!


Yep, all done. All the files match up with the .material. I've checked the alpha channel was locked on the mane. Thanks though!  ;)

AlphaEclipse

  • Guest
Re: Mane Coding Meaning I can't Export Preset?
« Reply #4 on: February 08, 2014, 03:22:50 pm »
Edited my first post, and here's a clean version of your code:

Code: [Select]
material preset_1_bodyMatL
{
technique
{
pass
{
texture_unit
{
texture preset_1body.jpg
}
}
}
}
material preset_1_bodyMatR
{
technique
{
pass
{
texture_unit
{
texture preset_1body.jpg
}
}
}
}
material preset_1_headMatL
{
technique
{
pass
{
texture_unit
{
texture preset_1head.jpg
}
}
}
}
material preset_1_headMatR
{
technique
{
pass
{
texture_unit
{
texture preset_1head.jpg
}
}
}
}
material preset_1_eyeMatL
{
technique
{
pass
{
cull_hardware none
cull_software none
texture_unit
{
texture preset_1eye.jpg
}
}
}
}
material preset_1_eyeMatR
{
technique
{
pass
{
cull_hardware none
cull_software none
texture_unit
{
texture preset_1eye.jpg
}
}
}
}
material preset_1_tailMat
{
technique
{
pass
{
texture_unit
{
texture preset_1tail.jpg
}
}
}
}
material preset_1_maneMat
{
technique
{
pass
{
cull_hardware none
cull_software none
alpha_rejection greater_equal 128
texture_unit
{
texture preset_1mane.png
}
}
}
}

Don't add any shading scripts, jut add the 'R' or 'L' for a asymmetrical preset- just like your last one. Also, make sure everything has the same format! .png or .jpg

If this doesn't work, either post here or PM me. ^^

Offline Jacarius

  • Curious Wanderer
  • *
  • Posts: 15
  • Country: au
  • Floof-O-Meter: 1
    • JACARIUS
    • jacariusthehuman
    • View Profile
Re: Mane Coding Meaning I can't Export Preset?
« Reply #5 on: February 08, 2014, 03:23:02 pm »
Perhaps it as something to do with the cheadShade. All my preset codes do not have this. Where is that image located for you? It may have something to do with it. This could  be causing a problem and maybe not your mane, because that coding is fine. Also Alpha has a good point too

but make sure you save/export the mane as a .png file format! All of the files must match the the file's names in the .material.
 

I put the cheadShade in Texture with the markings, icons exedra. And it seems to be working. Everything els on the preset works fine except the mane. Witch dosen't seem to have a shade or a proper structure. :-\

AlphaEclipse

  • Guest
Re: Mane Coding Meaning I can't Export Preset?
« Reply #6 on: February 08, 2014, 03:26:32 pm »
Perhaps it as something to do with the cheadShade. All my preset codes do not have this. Where is that image located for you? It may have something to do with it. This could  be causing a problem and maybe not your mane, because that coding is fine. Also Alpha has a good point too

but make sure you save/export the mane as a .png file format! All of the files must match the the file's names in the .material.
 



I put the cheadShade in Texture with the markings, icons exedra. And it seems to be working. Everything els on the preset works fine except the mane. Witch dosen't seem to have a shade or a proper structure. :-\

That's because presets aren't suppose to have a shading script- They just aren't.
Go to my first post- There is a tutorial on how to add shades onto presets. ^^

And, I'd use that script that I posted above.