View Full Version : Return to correct chapter menu....how?
matrix
2nd May 2004, 03:24
Hi everybody.
I'm trying to find out how to return during playback to the correct chapter menu, like in the original dvds.
I'm using scenarist, and I did a lot of movies with it. But this had allways been a concern. I did't care that much before, but now, I guess I expect more form my dvds.
Most questions I had, I could find the answer by searching the forum. I did a lot of reading, in the forum and in the manual, I red everything I could find about GPRM and SPRM, but this things confuse me very much.
I found some threads about this too, like this (http://forum.doom9.org/showthread.php?s=&threadid=68259&highlight=loop+menu) one, but as I said, I didn't understend much.
So I would very much appreciate if anybody has the patience and will to explain to me how I could do this?
In case anybody wants to help, this is how my scenario looks now:
I have my main menu (title menu) in a language folder in video manager, then in vts1, tile 1 an empty pgc with a post command to the title menu, in another language folder in same vts I have my chapter menus. There are 20 all together, (still menus all) 5 groups of 4 in 4 pgcs. They are the auto action type, so when I highlite a button, goes to the corresponding chapter menu. All 5 in each group are identical, exept the picture of the chap.
Then in title 2 I have the audio menu, and the movie in title 3 (20 chapters, 2 audiotracks).
So this is my problem. I hope somebody can help me solve it.
I'd really appreciate any help on this.
Thanks in advance.
Dimmer
2nd May 2004, 07:45
Your way of authoring seems a bit unusual. Why did you put audio menu as a title, and what is title 1 for? By the way, you can't have an empty PGC in title domain, probably you have a short blank clip there. And the most important thing, do you have a root menu in VTS 1 and what happens when you press Menu button? Also, is the first PGC of the chapter menu marked PTT, or Root, or No Menu?
Even though the thread you referred to deals with kind of messed up scenario, it mentions the main thing you need to know: chapter number (PTT) is stored in SPRM7. Actually, you can see it in Scenarist simulation window in any mode except Design Mode.
I would suggest putting all the chapter menu pages as cells in the same PGC in the language folder, and mark it either Root or PTT, depending on the desired navigation structure once you figured it out. My guess would be that you need to use Root menu as chapter menu, and at the end of the movie put a jump to the Title menu, which is your main menu. Then in Pre commands of that PGC put something like this:
1: Mov GPRM0,SPRM7 //this is Set GPRM command
2: if (GPRM0 == 1) LinkCN Chapter_page_1, button=1 //this is Jump to cell command
3: if (GPRM0 == 2) LinkCN Chapter_page_1, button=2
...
6: if (GPRM0 == 5) LinkCN Chapter_page_2, button=1
...
And so on for every chapter, specifying in each command proper page (cell) of the chapter menu and the button to be highlighted.
Again, how you're going to get to this PGC depends on your navigation structure. You can post the screenshot of your scenario if you still can't figure this out.
matrix
2nd May 2004, 14:03
Thank you for your help Dimmer.
The way it is right now, I don't have a root menu, nothing happens when I press the menu button. The first pgc of the chapter menu is marked as PTT, and that is because of that post I linked you to.
That pgc in title 1, I ment dummy not empty. The audio menu, I had it before in the same language folder with the chapters, hopping that I will see it in PowerDVD as a audio menu, but for some reason it wasn't present, so I changed it.
I know this is messed up right now, It's from a script I had before.
I will follow your sugestions and see what happens. I'll let you know.
Thanks again.
matrix
2nd May 2004, 18:06
OK, I got it to work, following your suggestions. There's one little flaw. When I'm on the last chapter, and press menu, it takes me back to the first page. All the others work correct.
This is how the pre command looks like
1: Mov GPRM0, SPRM7
2: if ( GPRM == 1 ) LinkCN chap2-t-scn-cell, button=5
3: if ( GPRM == 2 ) LinkCN chap2-t-scn-cell, button=6
4: if ( GPRM == 3 ) LinkCN chap3-t-scn-cell, button=7
5: if ( GPRM == 4 ) LinkCN chap4-t-scn-cell, button=8
6: if ( GPRM == 5 ) LinkCN chap5-t-scn-cell, button=9
7: if ( GPRM == 6 ) LinkCN chap6-t-scn-cell, button=5
8: if ( GPRM == 7 ) LinkCN chap7-t-scn-cell, button=6
9: if ( GPRM == 8 ) LinkCN chap8-t-scn-cell, button=7
10: if ( GPRM == 9 ) LinkCN chap9-t-scn-cell, button=8
11: if ( GPRM == 10 ) LinkCN chap10-t-scn-cell, button=9
12: if ( GPRM == 11 ) LinkCN chap11-t-scn-cell, button=5
13: if ( GPRM == 12 ) LinkCN chap12-t-scn-cell, button=6
14: if ( GPRM == 13 ) LinkCN chap13-t-scn-cell, button=7
15: if ( GPRM == 14 ) LinkCN chap14-t-scn-cell, button=8
16: if ( GPRM == 15 ) LinkCN chap15-t-scn-cell, button=9
17: if ( GPRM == 16 ) LinkCN chap16-t-scn-cell, button=5
18: if ( GPRM == 17 ) LinkCN chap17-t-scn-cell, button=6
19: if ( GPRM == 18 ) LinkCN chap18-t-scn-cell, button=7
20: if ( GPRM == 19 ) LinkCN chap19-t-scn-cell, button=8
21: if ( GPRM == 20 ) LinkCN chap20-t-scn-cell, button=9
As you can see, the first and second refer to the same chapter. It's the only way I got it to work.
It may have something to do with the fact that the movie has actually 21 chapters, but I didn't include the very beginning of the movie in the caapter menu.
On my chapter menu the first one is chap2-t-scn-cell, and last is chap21-t-scn-cell. But if I put them in the correct order, it allways takes me back to the next page.
What do you think? How should I proceed?
Dimmer
2nd May 2004, 18:27
Of course, if you have 21 chapters, then you need to add one more line with LinkCN chap21-t-scn-cell. Otherwise, when you press Menu button during the last chapter, none of the conditional links work, and it simply goes to the first cell in the PGC.
On my chapter menu the first one is chap2-t-scn-cell, and last is chap21-t-scn-cell. But if I put them in the correct order, it allways takes me back to the next page.Sorry, didn't get what you mean by that. When exactly does it take you to the next page?
matrix
2nd May 2004, 19:45
OK. Thanks. It works now.
What I ment by taking me to the next page is; if I watch chapter eg. 6, when I press menu it goes to the page where is chapter 7. That is chap7-scn-cell.
You know what I mean?
Enyway, it works perfect now. It even show the audio menu in PDVD along with title and root.
I don't know why it didn't show me like that the first time, even though I had it in the same language folder with the chapter menu. Mabe I've forgotten to mark it as audio menu.?
But as I said, it works as it should now.
Thank you very much.
BTW You said chapter number (PTT) is stored in SPRM7. Actually, you can see it in Scenarist simulation window in any mode except Design Mode. .
Where can you see that? You mean in System Params PTTN (7) ? or where?
Dimmer
3rd May 2004, 06:23
Great you figured it all out.
Originally posted by matrix
Where can you see that? You mean in System Params PTTN (7) ? or where? Yes, that's exactly it.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.