PDA

View Full Version : Having the Menu Button Point to a Menu during Chapter Play


Pentajet
25th March 2007, 19:04
Here is what I want to do:

Play a long movie (2:33) and while the movie plays if the user presses the "MENU" button it points to the root menu normally but if the user presses this button while the last chapter is playing the user will be taken to a different menu.

What I have done so far is this: when the last chapter plays GPRM6 is set to 1. Instead of pointing to the root menu when the menu button is pressed dusing the whole movie it points to a VM Command script. If GPRM6 is not 1 the script takes the user to the root menu otherwise it takes him to the secret menu. The problem is that with this method if the user presses search during the last chapter play to jump to some other part of the movie GPRM6 will still be 1 and if the user then pushes the menu button he is taken to the special menu if 'though this should only happen while the last chapter is playing.

Any help?

Zeul
25th March 2007, 21:09
The easiest way to solve this would be to add a cell command to the PGC. Set the final cell to link to cell command#1. Have this cell command Set GPRM=1.

Now what should happen, is when the last cell is exited the cell command is run (it resets the GPRM).

Pentajet
26th March 2007, 00:10
Thanks for your reply but isn't that exactly the procedure that I followed beforehand as I said in my first post (and which doesn't work) or did I miss something?

mp3dom
26th March 2007, 00:32
In the Root Menu you can add a pre-command that put in a GPRM the value of SPRM7 (which contain the PTT number). You know which is the latest chapter so you can then point to the new menu.
Let's say the latest chapter is the 15th chapter... in the Root Menu in its Pre-Command add:

MOV GPRM7, SPRM7
If (GPRM7==15) LinkPGCN hiddenmenu

So, you're basically safe if you press MENU from other chapters since the syntax will return a value different from 15.

Pentajet
26th March 2007, 11:25
Great!!! That is what I was looking for. Didn't know that SPRM7 is used for that. I will try it immediately.

EDIT: Tested it and works flawlessly! Thanks so much! Headache gone.

dgoodbourn
26th March 2007, 17:30
Tested it and works flawlessly!

I wouldn't say that it'd work flawlessly. There are a small number of players in existence that don't set SPRM7 at all and thus it is always a value of 0 (or 1, I can't remember!). but it is such a small percentage of players, that you can almost get away with it.

Cheers,
D.