Log in

View Full Version : Menu Memory - Please Help.


Tariq
17th October 2004, 12:42
Hi Guys,

I am really stuck with my project and in need of your expert advice. I have created a project which has a Title menu containing 5 PGS and 4VTS. The Title menu has 5 buttons, when The user clicks button 2(Family Video) it is sent to a PGC which plays a short outro clip and then navigates to its VTS in this case VTS2(Family Video Menu).

Title Menu buttons are
Movie Menu
Chapter Menu
Family Video Menu
Extras Menu
Set Up Menu

VTS1= Movie Menu
VTS2= Family Video Menu
VTS3= Extras Menu
VTS4= Set Up Menu

The problem I am having is proabably really simple but I teaching myself as I go along and need help.

I am trying to make all buttons remember where they have came from and Highlight the right button. I know its in SPRM8 but at the moment mine is not working correctly at all.

e.g. If I press Chapter Menu, then press chapter 8, then press the menu on the remote control I would like to be taken back to the menu with the correct button highlighted. I have the Menu button going back to the correct menu but it does not highlight the last pressed button. Also at the moment when I press Chapter Menu from the Title Menu it highlights the 3rd button on the chapter menu and I don't know why that is as it should Highlight the 1st if its the 1st time you press it from the title menu.

I would also like it to work in the same way for all the menus e.g. If I press Family Video from the Title Menu, then on the Family Video I press the button menu on the motion menu I would like it to go back to the Title Menu with the Family Menu button highlighted. If I press play family video 2 from the Family menu I would like to be able to watch Family video 2 and if I then press the Menu on the remote control I would like to be taken back to the Family Menu with the Family Video 2 button highlighted. Please Please help as I really need to get this done and I have been up alllll night. I have supllied you guys with as much info as I can.



Title Menu
Contains pre commands;
1: Mov GPRM3, 0
2: Mov GPRM4, SPRM8
3.SetHL_BTTN=GPRM4
4:if (GPRM == 1024) LinkPGN MainTitlemenu-scn-pg, button=0


VTS1= Movie Menu
Contains Root Menu PGC with pre Commands;
1: if (GPRM3==1) LinkPGCN Chapter Menu 1
2: if (GPRM3==2) LinkPGCN Chapter Menu 2
3: if (GPRM3==3) LinkPGCN Chapter Menu 3
4: Mov GPRM5, 1024

Assets included in VTS1
1 Title: which contains a 1 hour movie with 20 chapter points.
4 Menus -
Menu 1 = Play Movie.
Menu 2 = Chapter 1-8
Pre Commands;
1:Mov GPRM3,1
2:Mov GPRM5, 1024)

Menu 2 = Chapters 9-14
Pre Commands;
1:Mov GPRM3,2
2:Mov GPRM5, 1024)

Menu 3 = Chapters 15-20
Pre Commands = 1:Mov GPRM3,3
2:Mov GPRM5, 1024


VTS2= Family Video Menu
Contains Root Menu PGC with pre Commands;
1: Mov GPRM1, SPRM8
3.SetHL_BTTN=GPRM1
4:if (GPRM2 == 1024) LinkPGN MainTitlemenu-scn-pg, button=0
Assets included in VTS2
4 Titles: which contains Pre command of 1:GPRM2, 1024 and a post command of CALLSS RSM=1, RootMenu

VTS3= Extras Menu
Contains no pre commands
Assets
Contain Root menu with no pre or post commands

VTS4= Set Up Menu
Contains no pre commands.
Assets
Contain Root menu with no pre of post commands.

cona812
17th October 2004, 14:54
A bit confusing your setup.

First (very important) is to deselect the "forced selected button"-option for all PGC's. The standard setting is "button one" all that means all your SetHL_BTN commands are completely useless.

I made many DVD's containing the "remember which menu and which button" feature. Usually I use one GPRM for every menu to remember the highlighted button (only possible if don't have a large number of menus) cause this makes the setup easier, you only need one precommand per PGC. If you have to many menus you have save all informations in one GPRM, thus you have to program a lot using XOR/BitwiseAND...; --> much more complicated.

I route all buttoncommands over postcommands, thus i can use complex code as "buttoncommands". Example:one menu (chaptermenu), containing three programs Pg_1 = chapter 1-4 Pg_2 = chapter 5-8 Pg_3 = chapter 9-12[/list=1]GPRM1 to remember the menu[list] value = 1 (Root) value = 2 (Audio) value = 31 (Chapter, Pg_1) value = 32 (Chapter, Pg_2) value = 33 (Chapter, Pg_3)GPRM2 to remember the highlighted button value = 1024 value = 2048 ...GPRM0 = selected button.
Precommands for the chaptermenu:[list=1] SetHL_BTN = GPRM2 if (GPRM1==32) LinkPGN Pg_2 if (GPRM1==33) LinkPGN Pg_3[/list=1]To loop the different programs you have to use cellcommands to the same cell.Buttons of Pg_1:[list=1] mov GPRM0, 11; LinkTailPGC, button=0 (chapter 1) mov GPRM0, 12; LinkTailPGC, button=0 (chapter 2) mov GPRM0, 13; LinkTailPGC, button=0 (chapter 3) mov GPRM0, 14; LinkTailPGC, button=0 (chapter 4) mov GPRM0, 15; LinkTailPGC, button=0 (Rootmenu) LinkNextPG, button = 0 (next program)[/list=1]Buttons of Pg_2:[list=1] mov GPRM0, 21; LinkTailPGC, button=0 (chapter 5) mov GPRM0, 22; LinkTailPGC, button=0 (chapter 6) mov GPRM0, 23; LinkTailPGC, button=0 (chapter 7) mov GPRM0, 24; LinkTailPGC, button=0 (chapter 8) mov GPRM0, 25; LinkTailPGC, button=0 (Rootmenu) LinkPrevPG, button=0 (previous program) LinkNextPG, button=6 (next program)[/list=1]Buttons of Pg_3:[list=1] mov GPRM0, 31; LinkTailPGC, button=0 (chapter 9) mov GPRM0, 32; LinkTailPGC, button=0 (chapter 10) mov GPRM0, 33; LinkTailPGC, button=0 (chapter 11) mov GPRM0, 34; LinkTailPGC, button=0 (chapter 12) mov GPRM0, 35; LinkTailPGC, button=0 (Rootmenu) LinkPrevPG, button=0 (previous program)[/list=1]Postcommands of the chaptermenu PGC:[list=1] mov GPRM2, SPRM8 if (GPRM0>30), Goto 16 if (GPRM0>20), Goto 10 mov GPRM1, 31 if (GPRM0==11), JumpVTS_PTT chapter_1@Title_x if (GPRM0==12), JumpVTS_PTT chapter_2@Title_x if (GPRM0==13), JumpVTS_PTT chapter_3@Title_x if (GPRM0==14), JumpVTS_PTT chapter_4@Title_x LinkPGCN Root, button = 0 mov GPRM1, 32 if (GPRM0==21), JumpVTS_PTT chapter_5@Title_x if (GPRM0==22), JumpVTS_PTT chapter_6@Title_x if (GPRM0==23), JumpVTS_PTT chapter_7@Title_x if (GPRM0==24), JumpVTS_PTT chapter_8@Title_x LinkPGCN Root, button = 0 mov GPRM1, 33 if (GPRM0==31), JumpVTS_PTT chapter_9@Title_x if (GPRM0==32), JumpVTS_PTT chapter_10@Title_x if (GPRM0==33), JumpVTS_PTT chapter_11@Title_x if (GPRM0==34), JumpVTS_PTT chapter_12@Title_x LinkPGCN Root, button = 0[/list=1]Regards Cona

Tariq
17th October 2004, 18:02
Hi,

Thank you for taking time out to help.
I am new to scripting and have to understand and incorporate the information you supplied into to my project with not so good results. I am sure its down to me so here is what I did and hopefully you can tell me where I am going wrong.

The first VTS1 = Movie menu has a language folder and that language folder has the following menus - Play Feature Menu this has two buttons one button which says play feautre and one button that says menu. This is the root menu.
The other three menus are chapter menus and are all within the same language folder. The First Chapter Menu has an Menu ID of PTT.The other two chapter Menus have no Menu IDS. So if the user from the Title menu presses Chapter Menu he is taken to a peice of video which is within the VideoManage language folder then the post command from that peice of video is 1:JumpSS Menu, Live: PTT Menu. So they are taken to the 1st chapter menu.

Now on that Chapter menu I have put the pre commands
1. SetHL_BTN = GPRM2
2. (GPRM1==32) LinkPGN Chapter Menu 1-8
3. if (GPRM1==33) LinkPGN Chapter Menu 0-14

and I have put the same post commands on this menu as you have supplied. But when I click on any button nothing happens the button just re highlights. Please help I am really confused and trying my guts out.
Thank you again.

cona812
17th October 2004, 19:00
The other two chapter Menus have no Menu IDSSounds like you made three different PGC's and you choose "LinkPGN..." which links to a program. My suggestion was to make one PGC (ID = PTT) with several programs for the different parts. To accomplish that creat ea PGC (PTT) and drop the first menupart (1-8) on it. To create a second program just drop the next part onto the same PGC. Do this with each part an my suggestion will work.

Cona

Tariq
17th October 2004, 20:23
Hi Cona,

Ok I have done as you said. I now have just one Menu PTT on that I have dropped on my three other chapter menus.

I have the following command list of the Chapter PTT
1. SetHL_BTN HL_BTNN=GPRM2
2. if (GPRM == 32)LinkpgnChapter1-8, button=0
2. if (GPRM == 33)LinkpgnChapter9-14, button=0

and on the buttons I have
1: {Mov GPRM0, 11 ; LinkPGCNChapter1-8,-pgc}
2: {Mov GPRM0, 12 ; LinkPGCNChapter1-8,-pgc}
3: {Mov GPRM0, 13 ; LinkPGCNChapter1-8,-pgc}
4: {Mov GPRM0, 14 ; LinkPGCNChapter1-8,-pgc}
5: {Mov GPRM0, 15 ; LinkPGCNChapter1-8,-pgc}
6: LinkPGN Chapter9-14-pg, button=0

and on the post command of my menu I have
1: Mov GPRM2, SPRM8
2: if (GPRM > 30 ) GoTo 16
3: if (GPRM > 20 ) GoTo 10
4: Mov GPRM1, 31
5: if (GPRM0 == sprm11)JumpVTS_PTTMainVideo1
6: if (GPRM0 == sprm12)JumpVTS_PTTMainVideo2
7: if (GPRM0 == sprm13)JumpVTS_PTTMainVideo3
8: if (GPRM0 == sprm14)JumpVTS_PTTMainVideo4
9: LinkPGCN Root, button = 0

If I press a button in the chapter menu I am taking back to the start of the Chapter menu again.
I know I have gone wrong somewhere but I cant seem to see. I will hopefully get there in the end. Please help.

cona812
17th October 2004, 20:54
Ok got it ;)and on the buttons I have
1: {Mov GPRM0, 11 ; LinkPGCNChapter1-8,-pgc}
2: {Mov GPRM0, 12 ; LinkPGCNChapter1-8,-pgc}
3: {Mov GPRM0, 13 ; LinkPGCNChapter1-8,-pgc}
4: {Mov GPRM0, 14 ; LinkPGCNChapter1-8,-pgc}
5: {Mov GPRM0, 15 ; LinkPGCNChapter1-8,-pgc}
6: LinkPGN Chapter9-14-pg, button=0
The bold underlined is the mistake. You link back to the PGC and not to the postcommands. The buttoncommands must be ..., LinkTailPGC, button=0. Choose "Set to GPRM", check the "Link" option, choose "Jump by Subinstruction" here, next you have to choose "Postcommands of current PGC" and the buttonhighlight to "0".6: LinkPGN Chapter9-14-pg, button=0To link to the next/previous cell you have to use the "Jump by Subinstruction" too.5: if (GPRM0 == sprm11)JumpVTS_PTTMainVideo1
6: if (GPRM0 == sprm12)JumpVTS_PTTMainVideo2
7: if (GPRM0 == sprm13)JumpVTS_PTTMainVideo3
8: if (GPRM0 == sprm14)JumpVTS_PTTMainVideo4
9: LinkPGCN Root, button = 0Why do you compare to SPRM_x? You have to compare the value of the register, choose immediate and type in the value you want to compare with. The result should look exactly like I've posted befor.

Tariq
17th October 2004, 21:39
Hi C,

Can you please tell me how to put the commands below in the post command of the Chapter Menu PTT.

if (GPRM0==11), JumpVTS_PTT chapter_1@Title_x
if (GPRM0==12), JumpVTS_PTT chapter_2@Title_x
if (GPRM0==13), JumpVTS_PTT chapter_3@Title_x
if (GPRM0==14), JumpVTS_PTT chapter_4@Title_x

I press Jump to PartOFTitle in VTS
then I press compare and all I can select is GPRM or SPRM I cant select immediate to put values in. Immediate is greyed out and only GPRM and SPRM are available.


Help

cona812
17th October 2004, 22:43
Are your menu inside VMG? You can only select compare to an immediate value inside VTSM_DOM. Relocate the menus to the languagefolder of your VTS containing the title and you are able to compare to immediat values. I would always keep menus and videos together in one VTS. For special features in different titlesets you can navigate over VMG dummies.

Tariq
17th October 2004, 22:59
Hi, bit confused here;
Are your menu inside VMG?

I right clicked the blank workspace and created a new VTS then a new english language folder, I then placed the Main video menu(root) and the the chapter menu(PTT) in there. I then dragged and drop the two remaning menus chapter 9-14 and 15-20 over the PTT menu as you explained, which in turn created two more programs.
I then right clicked on to the Language folder and pressed add title and in that title I placed my 1 hour movie with the chapter points.

Have I done something wrong here?

cona812
17th October 2004, 23:41
No.
[list=1] I use VTS_1 for my main movie and all menus. VTS_1 contains Title_1 and one languagefolder. All menus are inside the languagefolder of VTS_1. VTS_2 contains Title_2, Title_3 (intro-movies) and one languagefolder (dummies for navigation). VTS_3 contains Title_4, Title_5, Title_6, Title_7 (bonus features) and one languagefolder (dummies for navigation). To navigate between the different VTS i have one languagefolder inside the videomanager (several dummies for navigation).[/list=1]The languagefolders of 1, 2 and 3 are all VTSM_DOM (VTS-menu-domain) here you can use the "immediate-option" to compare registervalues. 4 are menus in VMGM_DOM (videomanager-menu-domain) here you can't use this.I then right clicked on to the Language folder and pressed add titlehere is your mistake. In Scenario Editor you can see a folder for each Titleset. Under this folder you have languagefolders (in your case one) and Title folders. Your Title must be direct under the VTS folder, not inside a languagefolder.

Languagefolders = menus and dummies (for navigation) --> no titles
Titlefolders = movies

http://dvd.sourceforge.net/dvdinfo/vmi-jmp.html

Tariq
18th October 2004, 03:26
Hi, I think this is gettin way above my head, I have renamed all my VTS how do I know which is the 1st? Also I am unsure about how to programme dummy chains I am sure it is something that I can learn. All the menus that activate videos should work as follows;

(TITLE MENU) Main Menu (This is the Title Menu and contains the buttons below, if the user presses Title Menu at any time they are taken here.

(MY MENU1) Movie Menu - This has 3 Buttons
1: Play 1 HOUR Movie
2: Play special clip
3: Menu.

If any buttons are pressed they are taken to the correct video if the user at any time presses Menu on the remote they are taken back back with the last button pressed highlighted.

(MY MENU2) Chapter Menu - This has 9 Buttons
1: 1-8 buttons Chapter 1-8 i.e chapter 1 2 3 4 5 6 7 8
2: Menu.
(MY MENU3) Chapter Menu
1: 9-15 buttons Chapter 9-15 i.e chapter 9 10 11 12 13 14 15
2: Menu.
(MY MENU4) Chapter Menu
1: 9-15 buttons Chapter 16-20 i.e chapter 17 18 19 20
2: Menu.

These all have the buttons to play chapters from the 1 HOUR movie and all have menu buttons to which return to the Title Menu.

If any buttons are pressed they are taken to the correct video if the user at any time presses Menu on the remote they are taken back back with the last button pressed highlighted.


(MENU 5) Family Video Menu - This is A menu with 7 buttons

1: Play All button
2: Play video 1
3: Play video 2
4: Play video 3
5: Play video 4
6: Play video 5
7: Main Menu

Play ALL plays all 5 Videos, the other 5 buttons play there respective videos, if a video is chosen while the video is being played if the user presses Menu on the remote they are taken back to the Family Video Menu with the last button highlighted.

(MENU 6) Family Video Menu 6 - This is A menu with 4 buttons
1: Play video 1
2: Play video 2
3: Play video 3
4: Main Menu
If a video is chosen while the video is being played if the user presses Menu on the remote they are taken back to the Family Video Menu with the last button highlighted.


(MENU 7)My DVD SET UP - 5 buttons

1) 5.1 SOUND
2) PCM
3) AC3
4) SubTitles ON / OFF
5) Menu

All I want here is after they click a sound channel it changes and the menu button gets highlighted ready to navigate back to the Main Menu.

Now this to me has become really confusing and I want to start with your help please so I know which menu is best place where and how it should all come together. Thank you with this one hopefully I can start fresh with your expertise and do it the right way this time.

If it is Possible can you please send me a scenarist3.00 file from which I can look and see how it should be done?

apo11o
10th November 2004, 04:31
Originally posted by cona812
The languagefolders of 1, 2 and 3 are all VTSM_DOM (VTS-menu-domain) here you can use the "immediate-option" to compare registervalues.


Hi Cona,

I'm sorry, but I just can't get this to work. I'm nearly there with this feature, everything else is programmed as you state in your first post on this thread. The only thing I can't do is get "immediate-option" to compare the register values. It is greyed out. Just for curiousity, I tried to place this chapter menu in every other possible combination. You are right in that this PTT menuID will only work under the language folder of a VTS.

Here at the centre of the project, you can clearly see the VTS named "IR", its language folder, and the chapters menu underneath (although you can't see, its menuID is PTT). The chapters are part of the title folder named "MainMovie" to the right of the project.

http://www.geocities.com/saxoforte2001/IR_project.gif


If select the chapters PGC and open the simulation window, post commands look like this, just to illustrate my problem:

http://www.geocities.com/saxoforte2001/bad_vts.jpg

Clearly, it is greyed out!
What could I be doing wrong?!

Cheers,

Chris.

cona812
10th November 2004, 22:40
Originally posted by cona812
The command JumpVTS_PTT can't be used together with comparisons to immediate values, so I made a mistake befor :eek:. JumpVTS_PTT can only be used with comparisons to other GPRMs or SPRMs. Did not know up to present.

Keep on learning for whole life :) @http://forum.doom9.org/showthread.php?s=&threadid=84145

Sorry my mistake,
Cona