Feral Heart
Help & Guidance => Game Help => Topic started by: Elohi Adanvdo 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
-
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?
-
I think I see something wrong..
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.
-
You also have line breaks in between the last brackets and the new material lines.
This can sometimes mess things up.
-
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
-
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