Welcome to Dawn of Eternity

In order to download and play the game you need to sign up for an account and activate it, it's free. Once you have an active account you will be able to see the download page at the top of the forum.

Sign Up

"the reconnect script again?"

Discussion in 'Help & Documentation' started by Festral, Mar 25, 2017.

  1. Festral

    Festral Member

    Joined:
    Apr 30, 2016
    Messages:
    36
    Likes Received:
    16
    Gender:
    Female
    In-Game Name:
    Festral
    I want to create a preset and merge the two scripts. Often there is a problem with this and I can't compile the script. I need to merge the script of "animation frames" and "transparency". And can you please explain how to integrate any other scripts? ^-^`


    material festral_test
    {
    technique
    {
    pass
    {
    ambient 0 0 0
    diffuse 0 0 0
    specular 0 0 0 1
    emissive 1 1 1 1

    texture_unit
    {
    anim_texture festral_test.png festral_test1.png festral_test2.png festral_test3.png 0.3
    }
    }
    pass
    {
    scene_blend alpha_blend
    texture_unit
    {
    texture festral_test.png
    }
    }
    }
    }




    material festral_test
    {
    receive_shadows on
    technique
    {
    pass
    {
    ambient 0.7 0.7 0.7 1
    alpha_rejection greater_equal 128
    diffuse 0.5 0.5 0.5 1
    alpha_rejection greater_equal 128
    specular 0.01 0.01 0.01 1
    alpha_rejection greater_equal 128
    emissive 0.1 0.1 0.1 1
    alpha_rejection greater_equal 128?

    texture_unit
    {
    texture festral_test.png
    }
    }
    }
     
    • Informative Informative x 1
  2. Hiyorests

    Hiyorests Administrator
    Staff Member Developer

    Joined:
    Nov 1, 2014
    Messages:
    76
    Likes Received:
    13
    Gender:
    Female
    In-Game Name:
    Hiyorests
    The process of script integration isn't always easy, and with the engine we use, it does not always work. The best thing you can do is look at the differences between the two scripts. If you look, the animation code is under the first
    texture_unit
    {
    line. If you then look at the transparency code (normally indicated by alpha_rejection line) then it's under the first pass above texture_unit, where the ambient is.
    If you combine the two, you get something like this:

    Code:
    material festral_test
    {
    receive_shadows on
    technique
    {
    pass
    {
    ambient 0.7 0.7 0.7 1
    alpha_rejection greater_equal 128
    diffuse 0.5 0.5 0.5 1
    alpha_rejection greater_equal 128
    specular 0.01 0.01 0.01 1
    alpha_rejection greater_equal 128
    emissive 0.1 0.1 0.1 1
    alpha_rejection greater_equal 128?
    
    texture_unit
    {
    anim_texture festral_test.png festral_test1.png festral_test2.png festral_test3.png 0.3
    }
    }
    pass
    {
    scene_blend alpha_blend
    texture_unit
    {
    texture festral_test.png
    }
    }
    }
    }

    I don't know if this works, but it shows the basic compilation of codes, which might help you. Always check the two codes individually to ensure that they work before compiling, as well.
     
  3. Festral

    Festral Member

    Joined:
    Apr 30, 2016
    Messages:
    36
    Likes Received:
    16
    Gender:
    Female
    In-Game Name:
    Festral
    Yes, it works. But I noticed that in places such as: head, eyes, language-they do not appear or have no animation. I don't know what it is connected..
     

Share This Page