Feral Heart

Help & Guidance => Game Help => Topic started by: darkmoonboi on December 23, 2016, 06:00:22 pm

Title: I cant change the texture of this mesh! (SOLVED)
Post by: darkmoonboi on December 23, 2016, 06:00:22 pm
Hello!

I'm having problem with changing an texture from a floor (From a house) named ''rezpawood''.  (The walls/roof have other textures that I can change.)

This is how I did.

I changed the texture in my paint program to another wood texture, then saved it with same file name.

This is what happen.

The texture wouldn't change, only keep the old one.

How I tried to fix it.

I deleted the whole pack, then added it back again and pasted my retextured version. Didn't work
I checked my whole computer for a same named texture file and deleted all of them that I found, then pasted my retextured version. Didn't work.


So I really need help with this!
I've had this pack for as long as I can remember and I could change it earlier! Now it wont work.

The name of the downloaded folder is - WombatBuildings-1.zip
The name of the objected - GLBuildings.object
The name of the Note(matrial) - Humanbuilds.material
The name of the texture - rezpawood.png

And heres the code -

material rezpawood
{
   technique
   {
      pass
      {
         cull_hardware none
         cull_software none

         alpha_rejection greater_equal 128

         texture_unit
         {
            texture rezpawood.png
         }
      }
   }
}


Its like its forced to keep the old texture. I can change the other texture parts of the house. But not this one. xD

Thanks alot if you can help <3 !
Title: Re: I cant change the texture of this mesh!
Post by: yourlocalcrow on December 23, 2016, 06:35:35 pm
First off, make sure that you close FH entirely after making a change to any material files, so that the game can reload all the materials and therefor have your new texture. If the material files was put into the my_objects folder, make sure that that's where you put the new texture. I'd also make sure that if you simply replaced the old texture, that you didn't make any spelling errors, or that if you changed the file type that you changed it in the material file.

tldr; Spell check, make sure you restarted FH, and everything's in the same place.
Title: Re: I cant change the texture of this mesh!
Post by: darkmoonboi on December 23, 2016, 08:56:35 pm
Spell check I did. I always restart FH when changing something. I put it right in my_obejects where it was put in the begining.

It wont change and I even tried to edit some codes, but then it turned white.

It's  weird.
Title: Re: I cant change the texture of this mesh!
Post by: Kastilla on December 23, 2016, 10:01:06 pm
Hmm, from what I can see is that your code is messed up. The scripts are out of order.

Quote
material rezpawood
{
   technique
   {
      pass
      {
         cull_hardware none
         cull_software none

         alpha_rejection greater_equal 128

         texture_unit
         {
            texture rezpawood.png
         }

What is in yellow is supposed to be on top/over the texture itself, not the texture_unit.

So, this is what it should be.
Code: [Select]
material rezpawood
{
   technique
   {
      pass
      {
         texture_unit
         {
         cull_hardware none
         cull_software none
         alpha_rejection greater_equal 128
            texture rezpawood.png
         }
      }
   }
}

Hopefully that should fix it. If not, say so and I or someone can fix it.
Title: Re: I cant change the texture of this mesh!
Post by: darkmoonboi on December 24, 2016, 12:02:29 am
I wish I could say it worked. But the code didn't, its just the same texture as before
Its wierd because I already retextured it... how can it have the original texture when I changed it. o_O
Title: Re: I cant change the texture of this mesh!
Post by: yourlocalcrow on December 24, 2016, 12:16:12 am
I wish I could say it worked. But the code didn't, its just the same texture as before
Its wierd because I already retextured it... how can it have the original texture when I changed it. o_O
If you have two textures with the same name and file type, FH can do that.
Title: Re: I cant change the texture of this mesh!
Post by: darkmoonboi on December 24, 2016, 02:08:00 am
I wish I could say it worked. But the code didn't, its just the same texture as before
Its wierd because I already retextured it... how can it have the original texture when I changed it. o_O
If you have two textures with the same name and file type, FH can do that.


That's the thing. I only have 1 texture with that name...
If I remember right I already changed it a while back ago, then it was back to normal one day when I checked the texture in my map and it had the old texture..
Title: Re: I cant change the texture of this mesh!
Post by: VortexAlive on December 24, 2016, 06:54:05 am
Have you tried copying rezpawood.png, renaming it and then changing it in the material file?


I changed the texture in my paint program to another wood texture, then saved it with same file name.
The texture wouldn't change, only keep the old one.

material rezpawood <-- Make a copy of this file, rename the file itself and this name.
{
   technique
   {
      pass
      {
         cull_hardware none
         cull_software none

         alpha_rejection greater_equal 128

         texture_unit
         {
            texture rezpawood.png <-- Create a whole new texture, then change the new files texture reference to the name of the new texture.png
         }
      }
   }
}

^^ Try this out. =o
Title: Re: I cant change the texture of this mesh!
Post by: darkmoonboi on December 24, 2016, 11:32:55 am
YES it worked!!!

I named the file to another name then went to object maker in game and changed the material where it said ''Basewhite'' to my new name and it worked! :D

Thanks alot from everyone! :3

Happy holidays~
Title: Re: I cant change the texture of this mesh! (SOLVED)
Post by: Warriorstrike on December 24, 2016, 04:34:38 pm
I will go ahead and lock this up for you, as the issue has been resolved. Good luck, and Merry Christmas! c: