Page 1 of 2

Re: Secret problem in episode

PostPosted: 22 Dec 2016, 13:00
by Officer-Michael John
I have used, but failed. The problem is that when I use it takes you to the next level.

Re: Secret problem in episode

PostPosted: 22 Dec 2016, 13:54
by linuxwolf
Why does it happen? Please run through the logic and explain it.

Re: Secret problem in episode

PostPosted: 22 Dec 2016, 15:35
by Officer-Michael John
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.

Re: Secret problem in episode

PostPosted: 22 Dec 2016, 22:42
by linuxwolf
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.

Re: Secret problem in episode

PostPosted: 23 Dec 2016, 18:49
by Officer-Michael John
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.

Re: Secret problem in episode

PostPosted: 24 Dec 2016, 01:56
by linuxwolf
I will not code anything specific to your mod.

Re: Secret problem in episode

PostPosted: 24 Dec 2016, 16:18
by Officer-Michael John
I send my more secrets levels in episodes code?

Re: Secret problem in episode

PostPosted: 26 Dec 2016, 08:56
by Officer-Michael John
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.

Re: Secret problem in episode

PostPosted: 26 Dec 2016, 16:05
by linuxwolf
I'm glad you fixed the problem.

Re: Secret problem in episode

PostPosted: 26 Dec 2016, 18:38
by Officer-Michael John
Thank you, so that helped.