Author Topic: I cant change the texture of this mesh! (SOLVED)  (Read 3076 times)

Offline darkmoonboi

  • Forum Newcomer
  • *
  • Posts: 5
  • Country: 00
  • Floof-O-Meter: 0
    • View Profile
I cant change the texture of this mesh! (SOLVED)
« 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 !
« Last Edit: December 24, 2016, 11:33:39 am by dark moon13 »

Offline yourlocalcrow

  • Dedicated Supporter
  • ***
  • Posts: 412
  • Country: us
  • Floof-O-Meter: 43
  • they/them
    • View Profile
    • my deviantArt
Re: I cant change the texture of this mesh!
« Reply #1 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.

Offline darkmoonboi

  • Forum Newcomer
  • *
  • Posts: 5
  • Country: 00
  • Floof-O-Meter: 0
    • View Profile
Re: I cant change the texture of this mesh!
« Reply #2 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.

Offline Kastilla

  • my mind is a sieve for inspiration.
  • Community Champion
  • ****
  • Posts: 2,382
  • Country: 00
  • Floof-O-Meter: 71
  • [ ] make time go faster
    • View Profile
Re: I cant change the texture of this mesh!
« Reply #3 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.
« Last Edit: December 23, 2016, 10:03:08 pm by Kastilla »
stinky dog coming through, don't mind me!

Offline darkmoonboi

  • Forum Newcomer
  • *
  • Posts: 5
  • Country: 00
  • Floof-O-Meter: 0
    • View Profile
Re: I cant change the texture of this mesh!
« Reply #4 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

Offline yourlocalcrow

  • Dedicated Supporter
  • ***
  • Posts: 412
  • Country: us
  • Floof-O-Meter: 43
  • they/them
    • View Profile
    • my deviantArt
Re: I cant change the texture of this mesh!
« Reply #5 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.

Offline darkmoonboi

  • Forum Newcomer
  • *
  • Posts: 5
  • Country: 00
  • Floof-O-Meter: 0
    • View Profile
Re: I cant change the texture of this mesh!
« Reply #6 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..

Offline VortexAlive

  • Eevee Knight
  • Honored Hero
  • *****
  • Posts: 5,080
  • Country: us
  • Floof-O-Meter: 180
  • A wild floof has appeared!
    • VortexAlive
    • VortexAlive
    • VortexAlive
    • View Profile
    • VortexAlive is Rawrsome
Re: I cant change the texture of this mesh!
« Reply #7 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
For the sake of my own health and interests, I've left FH and I won't be looking back.

Offline darkmoonboi

  • Forum Newcomer
  • *
  • Posts: 5
  • Country: 00
  • Floof-O-Meter: 0
    • View Profile
Re: I cant change the texture of this mesh!
« Reply #8 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~

Offline Warriorstrike

  • . "The truth is often what we make of it; you heard what you wanted to hear, believed what you wanted to believe."
  • Ancient Silver Mane
  • *****
  • Posts: 4,221
  • Country: us
  • Floof-O-Meter: 346
  • . Remember… the Force will be with you. Always.
    • warriorstrike
    • warriorstrike
    • View Profile
    • My Tumblr
Re: I cant change the texture of this mesh! (SOLVED)
« Reply #9 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:

If you define yourself by the power to take life, the desire to dominate, to possess… then you have nothing.