Feral Heart

Help & Guidance => Game Help => Topic started by: epithelia on May 20, 2018, 06:26:10 pm

Title: PRESET PROBLEM
Post by: epithelia on May 20, 2018, 06:26:10 pm
I can't see on FH's Preset Creator some folders,for example,I can't see the folder 8.What happens?
Title: Re: PRESET PROBLEM
Post by: Lucius on May 20, 2018, 06:28:40 pm
That usually happens when you delete the .material file from the corresponding folder. Does each folder have the proper material files for it inside, and do the material files have the right coding?
Title: Re: PRESET PROBLEM
Post by: epithelia on May 20, 2018, 06:35:21 pm
For example,it needs to be: preset_8head   right?
Title: Re: PRESET PROBLEM
Post by: Lucius on May 20, 2018, 06:42:08 pm
Your preset 8 folder should have a material file called "preset_8.material". That's all that's needed for the preset number 8 to show up in the list in-game.

The default material file looks like this inside:
Code: [Select]
material preset_8_bodyMatL
{
technique
{
pass
{
texture_unit
{
texture preset_8body.jpg
}
}
}
}
material preset_8_bodyMatR
{
technique
{
pass
{
texture_unit
{
texture preset_8body.jpg
}
}
}
}
material preset_8_headMatL
{
technique
{
pass
{
texture_unit
{
texture preset_8head.jpg
}
}
}
}
material preset_8_headMatR
{
technique
{
pass
{
texture_unit
{
texture preset_8head.jpg
}
}
}
}
material preset_8_eyeMatL
{
technique
{
pass
{
cull_hardware none
cull_software none
texture_unit
{
texture preset_8eye.jpg
}
}
}
}
material preset_8_eyeMatR
{
technique
{
pass
{
cull_hardware none
cull_software none
texture_unit
{
texture preset_8eye.jpg
}
}
}
}
material preset_8_tailMat
{
technique
{
pass
{
texture_unit
{
texture preset_8tail.jpg
}
}
}
}
material preset_8_maneMat
{
technique
{
pass
{
lighting off
cull_hardware none
cull_software none
scene_blend alpha_blend
depth_write off
texture_unit
{
texture preset_8mane.png
}
}
}
}

If you have texture files, then your preset will show up textured, but the material file is what's necessary to be able to select the preset in the first place. This example was for the preset number 8. If you're missing other numbers, then check the corresponding folders and material files.
Title: Re: PRESET PROBLEM
Post by: epithelia on May 20, 2018, 06:49:52 pm
Like this?

Code: [Select]
[quote]material preset_8_bodyMatL
{
technique
{
pass
{
                    diffuse 1.000000 1.000000 1.000000 1.000000
                      cull_hardware none
                      cull_software none
                        scene_blend alpha_blend
              alpha_rejection greater_equal 128
ambient 0.7 0.7 0.7 0.7
texture_unit
{
texture Preset_body_left.PNG
         }
      }
   }
}
material preset_8_bodyMatR
{
technique
{
pass
{
                    diffuse 1.000000 1.000000 1.000000 1.000000
                      cull_hardware none
                      cull_software none
                        scene_blend alpha_blend
              alpha_rejection greater_equal 128
ambient 0.7 0.7 0.7 0.7
texture_unit
{
texture Preset_8body.PNG
         }
      }
   }
}
material preset_8_headMatL
{
technique
{
pass
{
                    diffuse 1.000000 1.000000 1.000000 1.000000
                    cull_hardware none
                     cull_software none
                     scene_blend alpha_blend
             alpha_rejection greater_equal 128
ambient 0.7 0.7 0.7 0.7
texture_unit
{
texture Preset_8head_left.PNG
         }
      }
   }
}
material preset_8_headMatR
{
technique
{
pass
{
                    diffuse 1.000000 1.000000 1.000000 1.000000
                    cull_hardware none
                     cull_software none
                     scene_blend alpha_blend
             alpha_rejection greater_equal 128
ambient 0.7 0.7 0.7 0.7
texture_unit
{
texture Preset_8head.PNG
         }
      }
   }
}
material preset_8_eyeMatL
{
technique
{
pass
{
                    diffuse 1.000000 1.000000 1.000000 1.000000
                    cull_hardware none
                     cull_software none
                     scene_blend alpha_blend
             alpha_rejection greater_equal 128
ambient 0.7 0.7 0.7 0.7
texture_unit
{
texture preset_8eye.PNG
         }
      }
   }
}
material preset_8_eyeMatR
{
technique
{
pass
{
                    diffuse 1.000000 1.000000 1.000000 1.000000
                      cull_hardware none
                      cull_software none
                        scene_blend alpha_blend
              alpha_rejection greater_equal 128
ambient 0.7 0.7 0.7 0.7
texture_unit
{
texture Preset_8eye.PNG
         }
      }
   }
}
material preset_8_tailMat
{
technique
{
pass
{
                    diffuse 1.000000 1.000000 1.000000 1.000000
                    cull_hardware none
                     cull_software none
                     scene_blend alpha_blend
             alpha_rejection greater_equal 128
ambient 0.7 0.7 0.7 0.7
texture_unit
{
texture Preset_8tail.PNG
         }
      }
   }
}
material preset_8_maneMat
{
technique
{
pass
{
diffuse 1.000000 1.000000 1.000000 1.000000
                      cull_hardware none
                      cull_software none
                        scene_blend alpha_blend
              alpha_rejection greater_equal 128
ambient 0.7 0.7 0.7 0.7
          texture_unit
{
texture preset_8mane.png
         }
      }

   }
}[/quote]
Title: Re: PRESET PROBLEM
Post by: Lucius on May 20, 2018, 06:53:48 pm
Yes, that looks fine. All the body part definitions are there, so it should work.

Is that the preset number that's not showing up on the list?
Title: Re: PRESET PROBLEM
Post by: epithelia on May 20, 2018, 06:56:18 pm
Ya...
Title: Re: PRESET PROBLEM
Post by: Lucius on May 20, 2018, 07:03:50 pm
That is bizarre, because I put your code into my material file and the preset showed up on the list. It was obviously all white, but it was there.

If you right click on your material file and open up "Properties", do you see this:

Type of file:MATERIAL File (.material)
Title: Re: PRESET PROBLEM
Post by: epithelia on May 20, 2018, 07:07:51 pm
Yes.
Title: Re: PRESET PROBLEM
Post by: Lucius on May 20, 2018, 07:23:57 pm
Right. I'm not sure why that's happening then.

I have one last suggestion, though I really doubt that this is what's causing the problem. You can try to go to your main FeralHeart folder and open up the "resources.cfg" file in notepad (if you're going to edit it, back it up first). Make sure that you have these lines located somewhere under the [General] section.
Code: [Select]
FileSystem=my_presets/preset_1
FileSystem=my_presets/preset_2
FileSystem=my_presets/preset_3
FileSystem=my_presets/preset_4
FileSystem=my_presets/preset_5
FileSystem=my_presets/preset_6
FileSystem=my_presets/preset_7
FileSystem=my_presets/preset_8
FileSystem=my_presets/preset_9
FileSystem=my_presets/preset_10
FileSystem=my_presets/preset_11
FileSystem=my_presets/preset_12

If you do, then I really have no clue why this is happening to you.

The only other solutions I can think of is to either move the preset to another folder or have someone else export it for you. If you don't want to move it, I would be willing to export your preset for you, though you'd have to send me the files. Or you can have a friend do it.

I'm sorry that I can't be of more help. Maybe someone else has some ideas.
Title: Re: PRESET PROBLEM
Post by: FlyingGrass on May 20, 2018, 07:29:48 pm
Does the preset's material file have capitals in the name? Because the game doesn't see the file if it has capital letters in it.

And is the preset's material file named: preset_8
Title: Re: PRESET PROBLEM
Post by: epithelia on May 20, 2018, 07:34:18 pm
Sadly,it didn't function.Thank you for all your help.Maybe someone knows how to solve this...
Title: Re: PRESET PROBLEM
Post by: epithelia on May 20, 2018, 07:37:21 pm
Ah,didn't noticed you FlyingGrass..
No,it hasn't
Title: Re: PRESET PROBLEM
Post by: epithelia on May 24, 2018, 02:07:51 pm
Still need help
Title: Re: PRESET PROBLEM
Post by: spicy on May 24, 2018, 04:37:56 pm
First off, are you sure your my_presets folder looks like this?
(https://i.imgur.com/9v9OEXQ.png)

If so, I suggest possibly changing the notepad file which holds the coding back to the original default setting. There could be something that is off with the coding in that particular material file.
Title: Re: PRESET PROBLEM
Post by: FlyingGrass on May 25, 2018, 08:49:29 am
I just had this problem happen to me a minute ago as of posting this, I forgot a bracket in the code when I added a new layer. But I'm too tired at the moment to search the code for problems in the brackets.