Feral Heart

Help & Guidance => Game Help => Topic started by: zakari101 on October 18, 2011, 01:06:32 am

Title: Resolved
Post by: zakari101 on October 18, 2011, 01:06:32 am
 solved by Thierry
Title: Re: Material not working????
Post by: Thierry on October 18, 2011, 04:58:52 pm
Forget all you have learned about changing materials. The material name isn't the file name.

open the .material script with notepad, or any other text editor.
in the .material script you will find something like this:


material yourmaterialname
{
   technique
   {
      pass
      {
         cull_hardware none
         cull_software none
         texture_unit
         {
            texture yourimage.png
         }
      }
   }
}


at object maker, select your loaded mesh and type the material name remarked in red. uppercase/lowercase sensitive.

The same is true for .particle scripts, but the diference is the particle name is followed by the word particle_system[color], and they need to be loaded at Effect Maker -> particles, not at object maker.
Title: Re: Material not working????
Post by: zakari101 on October 18, 2011, 08:49:13 pm
ok i kinda understood but were do i find the material script
Title: Re: Material not working????
Post by: Thierry on October 18, 2011, 09:21:37 pm
when i'm talking about a material script file, i'm talking about all files with name ending in .material

(http://www.fileden.com/files/2011/3/22/3100980/tunnels_material_zakari.PNG)
That's a material script, open it with notepad and you will find the code i told you.
Title: Re: Material not working????
Post by: zakari101 on October 18, 2011, 11:26:30 pm
there is nothing marked in red though.....
Title: Re: Material not working????
Post by: Thierry on October 18, 2011, 11:57:19 pm
zakari, i put it myself in red to be more clear where is the material name.
It doesn't mean you will find a red text.

Sorry for that facepaw, you was right.
Title: Re: Material not working????
Post by: zakari101 on October 18, 2011, 11:58:52 pm
ok i did what u said and i still got a fail.....

EDIT: i click the edit button and it says materialname.whaterever can not be found. i put the material in the right folder, in regualer objects AND in the materials folder...
Title: Re: Material not working????
Post by: Thierry on October 19, 2011, 12:01:20 am
that seem to be a double problem, i will try right now with tunnel hammy meshes.
maybe you have reason (sorry)
Title: Re: Material not working????
Post by: zakari101 on October 19, 2011, 12:03:30 am
btw i think glave made the tunnels
Title: Re: Material not working????
Post by: Thierry on October 19, 2011, 12:12:41 am
They are Hammy meshes
And BIG sorry, you are right, the texture material is missing!

but you can put this material instead:
rockMat
(is the defeult Fh rock material)
Title: Re: Material not working????
Post by: zakari101 on October 19, 2011, 12:29:48 am
NVM IT WORKED FOR ONCE!!!

EDIT: if your the one that nuzzled me then i nuzzeled u back if u wernet then idc u helped me ;D
Title: Re: Material not working????
Post by: Thierry on October 19, 2011, 12:38:13 am
nvm, I'm glad it worked.

file not found? what?. i'm getting lost trying to help you.
did you put all hammy files at FeralHeart\media\objects\my_objects right?

don't put rockMat at mesh box, put it at material box like this:
(http://fotos.subefotos.com/59a1fde04ebb377a1cf092d86fea8ea9o.jpg)

Title: Re: Material not working????
Post by: zakari101 on October 19, 2011, 12:39:12 am
nvm it worked and thx if u gave me a nuzzle
Title: Re: Material not working????
Post by: Thierry on October 19, 2011, 12:40:50 am
you are welcome ;)