Author Topic: A preset won't export  (Read 1075 times)

Offline FlyingGrass

  • ~🛠 The avant-garde doctor of mechanical beings. 🔧 🔬
  • Elder Grey Pelt
  • ****
  • Posts: 2,516
  • Country: 00
  • Floof-O-Meter: 121
  • Avatar=Me|Signature=Me
    • FlyingGrass
    • channel/UCA7RfqQ1KLl4s8JhxIXNs_Q
    • View Profile
    • Mechanicafeles Discord link
A preset won't export
« on: October 26, 2019, 10:54:18 am »
I can't seem to find the solution through a forum search. One of my presets ceased being able to export, whatever slot it's in, but the other presets are fine.

Here are the parts of the code that underwent change before the problem started, it's very complicated code though, I've stuffed nearly every preset trick I've learned of into the code. The entire code would take a year to look at.
Code: (Preset code) [Select]
material preset_1_bodyMatL
{
        technique
                {
                pass
                {
                         ambient 0.5 0.5 0.5 1.0
                         diffuse 1.0 1.0 1.0 1.0
                         scene_blend alpha_blend
                         alpha_rejection greater_equal 128
                         texture_unit
                         {
                               env_map spherical
                               texture ---------
                               tex_address_mode mirror
   }
  }
                pass
                {
                         ambient 0.5 0.5 0.5 1.0
                         diffuse 1.0 1.0 1.0 1.0
                         scene_blend alpha_blend
                         alpha_rejection greater_equal 200
                         shading gouraud
                         texture_unit
                         {
                                 texture ---------
                                 tex_address_mode wrap
                         }

                }
  pass
  {
   ambient 0.5 0.5 0.5 1.0
   specular 1.0 1.0 1.0 100
   scene_blend alpha_blend
   alpha_rejection greater_equal 200
   texture_unit
   {
    texture ---------
   }
  }
  pass
  {
   specular 1.0 1.0 1.0 128
   emissive 1.0 1.0 1.0 1.0
   scene_blend alpha_blend
   alpha_rejection greater_equal 128
   texture_unit
   {
    anim_texture ---------
    tex_address_mode wrap
    filtering trilinear
    rotate_anim 0.00
    color_op alpha_blend
       }
     }
 pass
 {
 scene_blend alpha_blend
 alpha_rejection greater 200
 texture_unit
 {
 texture Mask.png
 }
 texture_unit
 {
 texture Mask.png     
 colour_op alpha_blend
 }
 texture_unit
 {
 texture ---------
 colour_op_ex blend_current_alpha src_texture src_current
 tex_address_mode wrap
 filtering trilinear
 scroll_anim 0.0 -1.0
   }
  }
  pass
  {
   ambient 0.5 0.5 0.5 1.0
   scene_blend alpha_blend
   alpha_rejection greater_equal 200
   texture_unit
   {
    texture ---------
   }
  }
  pass
  {
   ambient 0.7 0.7 0.7 1.0
   scene_blend alpha_blend
   alpha_rejection greater_equal 150
   texture_unit
   {
    anim_texture ---------
   }
  }
 }
}
material preset_1_bodyMatR
{
        technique
        {
                pass
                {
                         ambient 0.5 0.5 0.5 1.0
                         diffuse 1.0 1.0 1.0 1.0
                         scene_blend alpha_blend
                         alpha_rejection greater_equal 128
                         texture_unit
                         {
                               env_map spherical
                               texture ---------
                               tex_address_mode mirror
   }
  }
        pass
        {
                         ambient 0.5 0.5 0.5 1.0
                         diffuse 1.0 1.0 1.0 1.0
                         scene_blend alpha_blend
                         alpha_rejection greater_equal 200
                         shading gouraud
                         texture_unit
                         {
                                 texture ---------
                                 tex_address_mode wrap
                         }

                }
  pass
  {
   ambient 0.5 0.5 0.5 1.0
   specular 1.0 1.0 1.0 100
   scene_blend alpha_blend
   alpha_rejection greater_equal 200
   texture_unit
   {
    texture ---------
   }
  }
  pass
  {
   specular 1.0 1.0 1.0 128
   emissive 1.0 1.0 1.0 1.0
   scene_blend alpha_blend
   alpha_rejection greater_equal 128
   texture_unit
   {
    anim_texture ---------
    tex_address_mode wrap
    filtering trilinear
    rotate_anim 0.00
    color_op alpha_blend
       }
     }
 pass
 {
 scene_blend alpha_blend
 alpha_rejection greater 200
 texture_unit
 {
 texture Mask.png
 }
 texture_unit
 {
 texture Mask.png         
 colour_op alpha_blend
 }
 texture_unit
 {
 texture ---------
 colour_op_ex blend_current_alpha src_texture src_current
 tex_address_mode wrap
 filtering trilinear
 scroll_anim 0.0 -1.0
   }
  }
  pass
  {
   ambient 0.5 0.5 0.5 1.0
   scene_blend alpha_blend
   alpha_rejection greater_equal 200
   texture_unit
   {
    texture ---------
   }
  }
pass
{
                        ambient 1 1 1 1

alpha_rejection greater_equal 128
texture_unit
{
texture ---------
}
}
pass
{
                        ambient 1 1 1 1
scene_blend add
alpha_rejection greater_equal 128
texture_unit
{
texture ---------
}
texture_unit
{
texture ---------
scroll_anim 0.15 0.0
}

}
pass
{
alpha_rejection greater_equal 128
specular 0.9 0.9 0.9 1 128
texture_unit
{
texture ---------
}
lighting on
texture_unit
{
env_map spherical
texture ---------
}
}
 }
}
material preset_1_headMatL
{
        technique
        {
                pass
                {

                         ambient 0.5 0.5 0.5 1.0
                         diffuse 1.0 1.0 1.0 1.0
                         specular 0.010000 0.010000 0.010000 1.000000
                         texture_unit
                         {
                                 texture ---------
                                 tex_address_mode wrap
                                 scroll_anim 0.0 0.2
                         }
}
pass
{
                         ambient 0.5 0.5 0.5 1.0
                         diffuse 1.0 1.0 1.0 1.0
                         scene_blend alpha_blend
                         alpha_rejection greater_equal 200
                         shading gouraud
                         texture_unit
                         {
                                 texture ---------
                                 tex_address_mode wrap
                         }

                }
  pass
  {
   ambient 0.5 0.5 0.5 1.0
   specular 1.0 1.0 1.0 100
                         diffuse 1.0 1.0 1.0 1.0
   scene_blend alpha_blend
   alpha_rejection greater_equal 200
   texture_unit
   {
    texture ---------
   }
  }
  pass
  {
   specular 1.0 1.0 1.0 128
   emissive 1.0 1.0 1.0 1.0
   scene_blend alpha_blend
   alpha_rejection greater_equal 200
   texture_unit
   {
    anim_texture ---------
    tex_address_mode wrap
    filtering trilinear
    rotate_anim 0.00
    color_op alpha_blend
  }
 }
  pass
  {
   scene_blend alpha_blend
   alpha_rejection greater 128
   texture_unit
   {
    texture Mask.png
   }
   texture_unit
   {
    texture Mask.png           
    colour_op alpha_blend
   }
             scene_blend add
   texture_unit
   {
    env_map spherical
    texture ---------
    colour_op_ex blend_current_alpha src_texture src_current
    tex_address_mode wrap
    filtering trilinear
   }
  }
 }
}
material preset_1_headMatR
{
        technique
        {
                pass
                {
                         ambient 0.5 0.5 0.5 1.0
                         specular 0.010000 0.010000 0.010000 1.000000
                         texture_unit
                         {
                                 texture ---------
                                 tex_address_mode wrap
                                 scroll_anim 0.0 0.2
                         }
}
pass
{
                         ambient 0.5 0.5 0.5 1.0
                         diffuse 1.0 1.0 1.0 1.0
                         scene_blend alpha_blend
                         alpha_rejection greater_equal 200
                         shading gouraud
                         texture_unit
                         {
                                 texture ---------
                                 tex_address_mode wrap
                         }

                }
pass
{
                         ambient 0.5 0.5 0.5 1.0
                         specular 0.100 0.100 0.100 4
                         diffuse 1.0 1.0 1.0 1.0
                         scene_blend alpha_blend
                         alpha_rejection greater_equal 200
                         shading gouraud
                         texture_unit
                         {
                                 anim_texture ---------
                                 tex_address_mode wrap
                                 rotate_anim 0.00
                         }

                }
  pass
  {
   ambient 0.5 0.5 0.5 1.0
   specular 1.0 1.0 1.0 100
   scene_blend alpha_blend
   alpha_rejection greater_equal 200
   texture_unit
   {
    texture ---------
   }
  }
  pass
  {
   specular 1.0 1.0 1.0 128
   emissive 1.0 1.0 1.0 1.0
   scene_blend alpha_blend
   alpha_rejection greater_equal 200
   texture_unit
   {
    anim_texture ---------
    tex_address_mode wrap
    filtering trilinear
    rotate_anim 0.00
    color_op alpha_blend
  }
 }
  pass
  {
   scene_blend alpha_blend
   alpha_rejection greater 128
   texture_unit
   {
    texture AMaskImage.png
   }
   texture_unit
   {
    texture AMaskImage.png             
    colour_op alpha_blend
   }
             scene_blend add
   texture_unit
   {
    env_map spherical
    texture ---------
    colour_op_ex blend_current_alpha src_texture src_current
    tex_address_mode wrap
    filtering trilinear
   }
  }
 }
}

Everything shows up correctly in Preset Maker, and every image name is spelled right. There are 47 image files in the preset, two of which are newly added 100KB 1024x1024 files, it worked fine before adding the two files.

UPDATE: It's still refusing to export. I removed those two files that I had added, and it still isn't working. I apologise that the code is a lot to look through, to shorten it here I deleted the image names and got rid of parts that weren't changed prior to the problem's beginning. I didn't see any spelling errors in the image names. As of today, there are 45 images in this preset's folder, all of which had existed(Albeit in a different look) back when this preset would successfully export, and are inside this preset's folder.
When the preset is moved to another slot(Preset_3), the Export button doesn't do anything at all, not even give any message.

Screenshot: https://gyazo.com/75492655ca514864ea528e7705778767
« Last Edit: April 14, 2020, 12:29:49 am by FlyingGrass »

My presets.

Good things take time, so I'll take an eternity and create something so good that the human brain can't handle the sheer goodness of it.

Offline FlyingGrass

  • ~🛠 The avant-garde doctor of mechanical beings. 🔧 🔬
  • Elder Grey Pelt
  • ****
  • Posts: 2,516
  • Country: 00
  • Floof-O-Meter: 121
  • Avatar=Me|Signature=Me
    • FlyingGrass
    • channel/UCA7RfqQ1KLl4s8JhxIXNs_Q
    • View Profile
    • Mechanicafeles Discord link
Re: A preset won't export
« Reply #1 on: April 14, 2020, 12:39:25 am »
Updated, and screenshot added. Some other details: I'm using the latest version of FH. My username is remembered and spelled correctly. Rendering Subsystem has been changed, but no result.
« Last Edit: April 14, 2020, 12:44:05 am by FlyingGrass »

My presets.

Good things take time, so I'll take an eternity and create something so good that the human brain can't handle the sheer goodness of it.

Offline D-ead7Dog

  • AFK NPC
  • Pack & Pride Representative
  • ****
  • Posts: 1,450
  • Country: us
  • Floof-O-Meter: 97
  • BUMPY SNOW
    • D-ead7Dog
    • d-ead7dog
    • View Profile
Re: A preset won't export
« Reply #2 on: April 14, 2020, 01:51:21 am »
Quote
3) Messed up Preset Exporter
So, you are probably lookin' here because issue #1's solution did not work. Well, I'm here to tell you why that reason is.

You have a problem with your exporter. This was proven whenever I managed to export and see someones preset just fine, while when they exported it, no one else could see it.

So far there is not a known fix to the exporter; I'm told that reinstalling does not help.

But what you can do is, send a trusted friend all of your textures and your .material for your preset, and have them go to their log-in, type your username in, then go to the preset maker and export it. This will export it with your username. Now, they will send you the file, and then other people will be able to see it.

The ONLY reason no one else would be able to see it even after this process, is because they have a shot exporter too.

Quote
I had the same thing happen to me a while ago, this was fixed when I got ride of multiple parts that I had in my folder at the same time. Try to take unneeded files out of the preset so it won't cause much confusion. Check the names on your file and make sure it matches up with the coding names in your notepad. Then restart Feral Heart and go back to your preset tool and it should work from there.
« Last Edit: April 14, 2020, 01:53:10 am by D-ead7Dog »

Artwork (c) Lynxbrush & CosmicFatality

Originally registered January 15, 2011

Offline FlyingGrass

  • ~🛠 The avant-garde doctor of mechanical beings. 🔧 🔬
  • Elder Grey Pelt
  • ****
  • Posts: 2,516
  • Country: 00
  • Floof-O-Meter: 121
  • Avatar=Me|Signature=Me
    • FlyingGrass
    • channel/UCA7RfqQ1KLl4s8JhxIXNs_Q
    • View Profile
    • Mechanicafeles Discord link
Re: A preset won't export
« Reply #3 on: April 14, 2020, 04:48:32 am »
Thank you! While there weren't duplicate preset components inside the preset's folder, the preset seems to have mixed up its images with one of the many backups that I had made and not renamed. I've now renamed every image so that it stops swapping files around with the backups outside the folder, and it's begun exporting! In the future I'll stop leaving the backups with the same names as the originals. This may be locked.
« Last Edit: April 14, 2020, 04:52:33 am by FlyingGrass »

My presets.

Good things take time, so I'll take an eternity and create something so good that the human brain can't handle the sheer goodness of it.

Offline Ame88

  • ❄✧❄✧❄✧❄✧❄✧❄✧❄✧❄ Winter is a .' - ` , ' - . ` timeless ' , ` - '. ` , - ' . season. - ', - ` , ' - . ` , Everything ' , ` - . ' , ` . freezes. `_,_'_-_._`_,_-
  • Admin
  • Elder Grey Pelt
  • *******
  • Posts: 3,139
  • Country: us
  • Floof-O-Meter: 216
  • Yeah I believe in Bigfoot. Nessi and Kovu too!
    • Ame88thewolf
    • View Profile
Re: A preset won't export
« Reply #4 on: April 14, 2020, 02:28:48 pm »
Glad you got it figured out! I'll be locking this now~

Profile picture by Telluric
Thank you ;u;
Bio | My Creations
Renegade Row | FeralHeart Resort