Author Topic: Preset Importing?  (Read 3036 times)

Offline Morgra

  • I don't like sand...
  • Immortal Legend
  • *****
  • Posts: 5,718
  • Country: us
  • Floof-O-Meter: 347
  • Ever been killed by a spider? I was
    • DinksterDaily
    • View Profile
Re: Preset Importing?
« Reply #10 on: June 03, 2017, 08:45:19 pm »
Do you mind copying and pasting your preset's code (the contents of the .material file) here for us to look at?

If you haven't opened your .material file, right click it and select "Open With..." then select "Notepad". Whatever is in there, copy it all and paste it into forums using this
[code]paste entire code here[/code]

It's likely that it's an error in the code or that your file names aren't correct in each of the .material slots.
Profile pic by Edolicious

People don't think the universe be like it is, but it do.


Offline drowsycat

  • Curious Wanderer
  • *
  • Posts: 11
  • Country: us
  • Floof-O-Meter: 0
  • i am not very cool
    • paintedmagic
    • paintedmagic
    • sparks-cat
    • paintedmagic
    • drowsysparks
    • View Profile
Re: Preset Importing?
« Reply #11 on: June 03, 2017, 08:50:21 pm »
Do you mind copying and pasting your preset's code (the contents of the .material file) here for us to look at?

If you haven't opened your .material file, right click it and select "Open With..." then select "Notepad". Whatever is in there, copy it all and paste it into forums using this
[code]paste entire code here[/code]

It's likely that it's an error in the code or that your file names aren't correct in each of the .material slots.

Code: [Select]
material preset_3_bodyMatL
{
technique
{
pass
{
texture_unit
{
texture preset_3body.jpg
}
}
}
}
material preset_3_bodyMatR
{
technique
{
pass
{
texture_unit
{
texture preset_3body.jpg
}
}
}
}
material preset_3_headMatL
{
technique
{
pass
{
texture_unit
{
texture preset_3head.jpg
}
}
}
}
material preset_3_headMatR
{
technique
{
pass
{
texture_unit
{
texture preset_3head.jpg
}
}
}
}
material preset_3_eyeMatL
{
technique
{
pass
{
cull_hardware none
cull_software none
texture_unit
{
texture preset_3eye.jpg
}
}
}
}
material preset_3_eyeMatR
{
technique
{
pass
{
cull_hardware none
cull_software none
texture_unit
{
texture preset_3eye.jpg
}
}
}
}
material preset_3_tailMat
{
technique
{
pass
{
texture_unit
{
texture preset_3tail.jpg
}
}
}
}
material preset_3_maneMat
{
technique
{
pass
{
lighting off
cull_hardware none
cull_software none
scene_blend alpha_blend
depth_write off
texture_unit
{
texture preset_3mane.png
}
}
}
}

thats the contents of it ;;

Offline Morgra

  • I don't like sand...
  • Immortal Legend
  • *****
  • Posts: 5,718
  • Country: us
  • Floof-O-Meter: 347
  • Ever been killed by a spider? I was
    • DinksterDaily
    • View Profile
Re: Preset Importing?
« Reply #12 on: June 03, 2017, 09:21:18 pm »
Okay, nothing wrong with the coding itself. Have you made sure that the files that make up your preset (the body file, head file, eye file, mane file and tail file) all correspond with the names and filetypes within the material file?

You can change the section in your material file where it lists out "texture preset_3body.jpg" to match the file name and file type of what your body file is.

For example, you look in your folder and your body file texture file is called "
bodytexture" and the filetype of it is ".png"
You would then go in the .material file and under both the left and right sides of your body material sections, it would look like

This: texture bodytexture.png
Not this: texture preset_3body.jpg

And this is what it would look like in your code
Do not copy and paste this code as this only contains the body portions of the code to show you what the filename and type change would look like.
Code: [Select]
material preset_3_bodyMatL
{
 technique
 {
  pass
  {
   texture_unit
   {
    texture bodytexture.png
   }
  }
 }
}
material preset_3_bodyMatR
{
 technique
 {
  pass
  {
   texture_unit
   {
    texture bodytexture.png
   }
  }
 }
}

Once you are done making sure all of the files match up in the folder and in the material file, be sure to save your material file and test out your preset in Preset Maker.
« Last Edit: June 03, 2017, 09:24:49 pm by Morgra »
Profile pic by Edolicious

People don't think the universe be like it is, but it do.


Offline drowsycat

  • Curious Wanderer
  • *
  • Posts: 11
  • Country: us
  • Floof-O-Meter: 0
  • i am not very cool
    • paintedmagic
    • paintedmagic
    • sparks-cat
    • paintedmagic
    • drowsysparks
    • View Profile
Re: Preset Importing?
« Reply #13 on: June 03, 2017, 09:51:55 pm »
Okay, nothing wrong with the coding itself. Have you made sure that the files that make up your preset (the body file, head file, eye file, mane file and tail file) all correspond with the names and filetypes within the material file?

You can change the section in your material file where it lists out "texture preset_3body.jpg" to match the file name and file type of what your body file is.

For example, you look in your folder and your body file texture file is called "
bodytexture" and the filetype of it is ".png"
You would then go in the .material file and under both the left and right sides of your body material sections, it would look like

This: texture bodytexture.png
Not this: texture preset_3body.jpg

And this is what it would look like in your code
Do not copy and paste this code as this only contains the body portions of the code to show you what the filename and type change would look like.
Code: [Select]
material preset_3_bodyMatL
{
 technique
 {
  pass
  {
   texture_unit
   {
    texture bodytexture.png
   }
  }
 }
}
material preset_3_bodyMatR
{
 technique
 {
  pass
  {
   texture_unit
   {
    texture bodytexture.png
   }
  }
 }
}

Once you are done making sure all of the files match up in the folder and in the material file, be sure to save your material file and test out your preset in Preset Maker.

OH IT WORKED!!! THANK YOU!!!

Offline Morgra

  • I don't like sand...
  • Immortal Legend
  • *****
  • Posts: 5,718
  • Country: us
  • Floof-O-Meter: 347
  • Ever been killed by a spider? I was
    • DinksterDaily
    • View Profile
Re: Preset Importing?
« Reply #14 on: June 03, 2017, 09:57:30 pm »
Glad I could help! Feel free to post here if you have any more questions! ^^
Profile pic by Edolicious

People don't think the universe be like it is, but it do.


Offline drowsycat

  • Curious Wanderer
  • *
  • Posts: 11
  • Country: us
  • Floof-O-Meter: 0
  • i am not very cool
    • paintedmagic
    • paintedmagic
    • sparks-cat
    • paintedmagic
    • drowsysparks
    • View Profile
Re: Preset Importing?
« Reply #15 on: June 03, 2017, 10:16:44 pm »
Glad I could help! Feel free to post here if you have any more questions! ^^

Alrighty!!! Thank you so much <3