Author Topic: O_O Sorry this is the second post but...  (Read 2535 times)

Offline Spiritwolf223

  • Familiar Grounds Dweller
  • **
  • Posts: 50
  • Floof-O-Meter: 0
    • View Profile
O_O Sorry this is the second post but...
« on: January 06, 2014, 03:04:36 am »
I attempted to get a water mod in-game. But instead, I screwed up and now FH keeps crashing when I try opening it.

I just need the water material code... Thing.

Offline liontamer1

  • Dedicated Supporter
  • ***
  • Posts: 285
  • Floof-O-Meter: 13
  • I wish
    • View Profile
Re: O_O Sorry this is the second post but...
« Reply #1 on: January 06, 2014, 03:06:10 am »
Did you have to copy and replace anything? If so, which ones.
\
Take me, I am not afraid

Offline Vineyard

  • Curious Wanderer
  • *
  • Posts: 23
  • Floof-O-Meter: 0
  • Siny
    • View Profile
Re: O_O Sorry this is the second post but...
« Reply #2 on: January 06, 2014, 03:31:50 am »
oof I have no idea but i will search to find one

Shiny Evil Toy
BY: ~Vineyard

Offline LordSuragaha

  • The Karen Slayer
  • Immortal Legend
  • *****
  • Posts: 11,027
  • Country: 00
  • Floof-O-Meter: 1052
    • View Profile
Re: O_O Sorry this is the second post but...
« Reply #3 on: January 06, 2014, 06:20:24 am »
Is this what you're talking about?:

vertex_program WaterVP cg
{
   source water.cg
   entry_point water_VP
   profiles vs_1_1 arbvp1
}

fragment_program WaterFP cg
{
   source water.cg
   entry_point water_FP
   profiles ps_2_0 arbfp1
}

fragment_program UnderWaterFP cg
{
   source water.cg
   entry_point underwater_FP
   profiles ps_2_0 arbfp1
}

material WaterMat
{
   technique
   {
      pass
      {
         lighting off
         cull_hardware none
         cull_software none
         scene_blend alpha_blend
         depth_write off

         texture_unit
         {
            texture waterTex1.png
            scale 0.4 0.4
            scroll_anim -0.05 -0.05
         }
         texture_unit
         {
            texture waterTex2.png
            scale 0.5 0.5
            scroll_anim -0.08 0.1
         }
      }
   }
}
material OceanMat
{
   technique
   {
      pass
      {
         lighting off
         cull_hardware none
         cull_software none
         scene_blend alpha_blend
         depth_write off

         texture_unit
         {
            texture waterTex1.png
            scale 0.5 0.5
            scroll_anim -0.03 -0.05
            rotate 90
         }
         texture_unit
         {
            texture waterTex2.png
            scale 0.4 0.4
            scroll_anim -0.05 0.01
            rotate 90
         }
      }
   }
}
material WaterReflectMat
{
   technique
   {
      pass
      {
         //depth_write off
         scene_blend alpha_blend
         vertex_program_ref WaterVP
         {
            param_named_auto worldViewProjMatrix worldviewproj_matrix
            param_named_auto timeVal time 0.05
            param_named scroll float 2
            param_named scale float 1
            param_named noise float 1
         }
         fragment_program_ref WaterFP
         {
            param_named colourTint float3 0.25 0.27 0.28
            param_named noiseScale float 0.04
         }
         texture_unit
         {
            texture waves2.dds
            filtering linear linear none
         }
      }

   }
}
material UnderWaterMat
{
   technique
   {
      pass
      {
         cull_hardware none
         cull_software none
         vertex_program_ref WaterVP
         {
            param_named_auto worldViewProjMatrix worldviewproj_matrix
            param_named_auto timeVal time 0.05
            param_named scroll float 2
            param_named scale float 1
            param_named noise float 1
         }
         fragment_program_ref UnderWaterFP
         {
            param_named colourTint float3 0.95 0.97 0.98
            param_named noiseScale float 0.04
         }
         texture_unit
         {
            texture waves2.dds
            filtering linear linear none
         }
      }

   }
}



If the crashing doesn't stop considering backing up your presets, maps, and screenshots and uninstalling the game. Then go back and delete the Feral Heart folder before reinstalling. In the future before you install mods try to back up your original files before you set the mod in that way if you don't like the mod you can easily replace your default files back without screwing up your game or having to reinstall etc. ;)
« Last Edit: January 06, 2014, 06:23:03 am by LordSuragaha »

Offline Spiritwolf223

  • Familiar Grounds Dweller
  • **
  • Posts: 50
  • Floof-O-Meter: 0
    • View Profile
Re: O_O Sorry this is the second post but...
« Reply #4 on: January 06, 2014, 11:48:22 am »
Is this what you're talking about?:

vertex_program WaterVP cg
{
   source water.cg
   entry_point water_VP
   profiles vs_1_1 arbvp1
}

fragment_program WaterFP cg
{
   source water.cg
   entry_point water_FP
   profiles ps_2_0 arbfp1
}

fragment_program UnderWaterFP cg
{
   source water.cg
   entry_point underwater_FP
   profiles ps_2_0 arbfp1
}

material WaterMat
{
   technique
   {
      pass
      {
         lighting off
         cull_hardware none
         cull_software none
         scene_blend alpha_blend
         depth_write off

         texture_unit
         {
            texture waterTex1.png
            scale 0.4 0.4
            scroll_anim -0.05 -0.05
         }
         texture_unit
         {
            texture waterTex2.png
            scale 0.5 0.5
            scroll_anim -0.08 0.1
         }
      }
   }
}
material OceanMat
{
   technique
   {
      pass
      {
         lighting off
         cull_hardware none
         cull_software none
         scene_blend alpha_blend
         depth_write off

         texture_unit
         {
            texture waterTex1.png
            scale 0.5 0.5
            scroll_anim -0.03 -0.05
            rotate 90
         }
         texture_unit
         {
            texture waterTex2.png
            scale 0.4 0.4
            scroll_anim -0.05 0.01
            rotate 90
         }
      }
   }
}
material WaterReflectMat
{
   technique
   {
      pass
      {
         //depth_write off
         scene_blend alpha_blend
         vertex_program_ref WaterVP
         {
            param_named_auto worldViewProjMatrix worldviewproj_matrix
            param_named_auto timeVal time 0.05
            param_named scroll float 2
            param_named scale float 1
            param_named noise float 1
         }
         fragment_program_ref WaterFP
         {
            param_named colourTint float3 0.25 0.27 0.28
            param_named noiseScale float 0.04
         }
         texture_unit
         {
            texture waves2.dds
            filtering linear linear none
         }
      }

   }
}
material UnderWaterMat
{
   technique
   {
      pass
      {
         cull_hardware none
         cull_software none
         vertex_program_ref WaterVP
         {
            param_named_auto worldViewProjMatrix worldviewproj_matrix
            param_named_auto timeVal time 0.05
            param_named scroll float 2
            param_named scale float 1
            param_named noise float 1
         }
         fragment_program_ref UnderWaterFP
         {
            param_named colourTint float3 0.95 0.97 0.98
            param_named noiseScale float 0.04
         }
         texture_unit
         {
            texture waves2.dds
            filtering linear linear none
         }
      }

   }
}



If the crashing doesn't stop considering backing up your presets, maps, and screenshots and uninstalling the game. Then go back and delete the Feral Heart folder before reinstalling. In the future before you install mods try to back up your original files before you set the mod in that way if you don't like the mod you can easily replace your default files back without screwing up your game or having to reinstall etc. ;)
Thank you so much! ^_^

Offline LordSuragaha

  • The Karen Slayer
  • Immortal Legend
  • *****
  • Posts: 11,027
  • Country: 00
  • Floof-O-Meter: 1052
    • View Profile
Re: O_O Sorry this is the second post but...
« Reply #5 on: January 06, 2014, 01:23:20 pm »
You're welcome :)