• View unanswered postsView active topics

  • OMJ's code helping

    Discuss Wolf3D and Wolf3D modding/ports

    Postby Officer-Michael John 26 Dec 2016, 19:39

    There is some code that I could not even not at all well to add. E.G:Parallax Sky.
    Officer-Michael John
    User avatar

     
    Posts: 161
    Location: Hungary

        

    Postby linuxwolf 27 Dec 2016, 02:39

    Enable it in version.h.
    linuxwolf
    User avatar

     
    Posts: 5082
    Location: Australia

        

    Postby Officer-Michael John 27 Dec 2016, 14:03

    I enabled. I don't know,that how to I can adding other parallax sky on level?
    Officer-Michael John
    User avatar

     
    Posts: 161
    Location: Hungary

        

    Postby linuxwolf 27 Dec 2016, 14:57

    I can't remember but I think one of the corner tiles controls which page(s) are used for parallax sky.
    linuxwolf
    User avatar

     
    Posts: 5082
    Location: Australia

        

    Postby Officer-Michael John 27 Dec 2016, 17:27

    I tryed so adding:

    Code: Select all
    // The lower left tile of every map determines the start texture of the parallax sky.
    static int GetParallaxStartTexture()
    {
        int startTex = ffDataBottomLeft;
        assert(startTex >= 0 && startTex < 139);
        return startTex;
    }

    #else

    static int GetParallaxStartTexture()
    {
        int startTex;
        switch(gamestate.episode * 10 + mapon)
        {
            case  0: startTex = 139; break;
            default: startTex =  0; break;
        }
        assert(startTex >= 0 && startTex < 139);
        return startTex;
    }

    #endif
    Officer-Michael John
    User avatar

     
    Posts: 161
    Location: Hungary

        

    Postby Officer-Michael John 28 Dec 2016, 15:40

    There is an annoying problem. I like adding a custom palette,but I don't know adding because where once the error occurred (WDC). Where's the other error (NUMCHUNKS). How can this be corrected? :(
    Officer-Michael John
    User avatar

     
    Posts: 161
    Location: Hungary

        

    Postby Tricob1974 28 Dec 2016, 20:22

    OMJ, the Parallax Sky is turned on using something in the maps, not something in the source code. As for the palette problem, please start a different thread for that. Don't bounce from one topic to another in the same thread. It's confusing.
    Tricob1974

     
    Posts: 1384
    Location: Huntsville, Alabama

        

    Postby Officer-Michael John 28 Dec 2016, 20:58

    Okay. I write an other topics.
    Officer-Michael John
    User avatar

     
    Posts: 161
    Location: Hungary

        


    Return to General Wolf3D/modding Discussion and tutorials


    Who is online

    Users browsing this forum: No registered users and 1 guest