• View unanswered postsView active topics

  • Secret problem in episode

    Discuss Wolf3D and Wolf3D modding/ports

    Postby Officer-Michael John 22 Dec 2016, 14:00

    I have used, but failed. The problem is that when I use it takes you to the next level.
    Officer-Michael John
    User avatar

     
    Posts: 146
    Location: Hungary

        

    Postby linuxwolf 22 Dec 2016, 14:54

    Why does it happen? Please run through the logic and explain it.
    linuxwolf
    User avatar

     
    Posts: 5045
    Location: Australia

        

    Postby Officer-Michael John 22 Dec 2016, 16:35

    There is 1st secret level leader level. E.G:Episode 3 Level 7. If I use the secret elevator takes you longer than normal elevator.
    Officer-Michael John
    User avatar

     
    Posts: 146
    Location: Hungary

        

    Postby linuxwolf 22 Dec 2016, 23:42

    Your code looks wrong.

    Tell me all secret level numbers.

    Tell me all normal level numbers.

    Tell me which normal levels go to which secret levels.

    Thank you.
    linuxwolf
    User avatar

     
    Posts: 5045
    Location: Australia

        

    Postby Officer-Michael John 23 Dec 2016, 19:49

    1.,10,11,21,22,32,33,43,44,54,55,65,66 secret levels.
    2.,1-9,12-20,23-31,34-42,45-53,56-64 all normal levels + boss levels.
    3.,1,12,20,29,31,36,42,49,53,58,64 normal levels to secrets levels.
    Officer-Michael John
    User avatar

     
    Posts: 146
    Location: Hungary

        

    Postby linuxwolf 24 Dec 2016, 02:56

    I will not code anything specific to your mod.
    linuxwolf
    User avatar

     
    Posts: 5045
    Location: Australia

        

    Postby Officer-Michael John 24 Dec 2016, 17:18

    I send my more secrets levels in episodes code?
    Officer-Michael John
    User avatar

     
    Posts: 146
    Location: Hungary

        

    Postby Officer-Michael John 26 Dec 2016, 09:56

    Interestingly yours did not work, and with it so :oops: Only 1st secret work now:

    Code: Select all
                    //
                    // COMING BACK FROM SECRET LEVEL
                    //
                    if (gamestate.mapon == 9)
                        gamestate.mapon = ElevatorBackTo[gamestate.episode];    // back from secret
                    else
                        //
                        // GOING TO SECRET LEVEL
                        //
                        if (playstate == ex_secretlevel)
                            gamestate.mapon = 9;
                           
                    //
                    // COMING BACK FROM SECRET LEVEL 2
                    //
                    if (gamestate.mapon == 10)
                        gamestate.mapon = ElevatorBackTo2[gamestate.episode];    // back from secret 2
                    else
                        //
                        // GOING TO SECRET LEVEL 2
                        //
                        if (playstate == ex_secretlevel)
                            gamestate.mapon == 10;   


    Work with new code.
    Officer-Michael John
    User avatar

     
    Posts: 146
    Location: Hungary

        

    Postby linuxwolf 26 Dec 2016, 17:05

    I'm glad you fixed the problem.
    linuxwolf
    User avatar

     
    Posts: 5045
    Location: Australia

        

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

    Thank you, so that helped.
    Officer-Michael John
    User avatar

     
    Posts: 146
    Location: Hungary

        

    Previous

    Return to General Wolf3D/modding Discussion and tutorials


    Who is online

    Users browsing this forum: No registered users and 1 guest