Log in

View Full Version : PGC commands


peppi_le_piou
1st April 2010, 22:39
Happy Easter to all.

These commands are from the original navigation. I am wondering that wouldn't the Post commands be redundant because the Pre commands will take it to either an RSM or VMGM8.

VTSM 4 , LU 1 (en) , 9 (dummy) - Chapters: n/a, Programs: 0, Cells: 0
********** pre commands:
1 Set gprm(6) =(mov) 0
2 Set gprm(10) =(mov) 0
3 if ( gprm(15) == 1 ) then { RSM }
4 Set gprm(15) =(mov) 299
5 (JumpSS) Jump to VMGM PGC 8
********** post commands:
1 Set gprm(6) =(mov) 0
2 Set gprm(10) =(mov) 0
3 if ( gprm(15) == 1 ) then { RSM }
4 Set gprm(15) =(mov) 1
5 (JumpVTS_TT) Jump to TTN 1 in this VTS
********** cell commands:

The jump to this dummy pgc is a link from the selection of the Play button (there is no Link TailPGC anywhere).

So why are they there?

blutach
2nd April 2010, 01:57
Yes - you can delete the post commands (note, do not do this on a title PGC).

It looks like playback was killed on this PGC (and amended slightly), possibly during authoring.

Regards

peppi_le_piou
2nd April 2010, 03:15
Thanks Les, what about this one in a Menu, the Post commands also appear to have no call up. I see it a lot and just wondered if they have some function that I wasn't aware of.

VTSM 1 , LU 1 (en) , 6 (0:32) 13b. - Chapters: n/a, Programs: 1, Cells: 1
********** pre commands:
1 (SetHL_BTN) Set Highlighted Button =(mov) 1024 (button 1)
2 if ( gprm(15) != 1 ) then { Set gprm(15) =(mov) 0 }
3 Set gprm(0) =(mov) 0
4 Set gprm(1) =(mov) 0
5 Set gprm(2) =(mov) 0
********** post commands:
1 Set gprm(1) =(mov) 111
2 Set gprm(2) =(mov) sprm(8:Highlighted button number)
3 LinkPGCN PGC 7
********** cell commands:
********** menu buttons commands:
VOB ID 4, Cell ID 1 (First NAV pack LBA=3109)
2 Groups, Select button=1, Action button=0, 5 numerically selectable buttons.
1: (JumpVTS_PTT) Jump to TTN 1, Chapter 1
2: (JumpVTS_PTT) Jump to TTN 1, Chapter 2
3: (JumpVTS_PTT) Jump to TTN 1, Chapter 3
4: (JumpVTS_PTT) Jump to TTN 1, Chapter 4
5: Set gprm(1) =(mov) 5 ; LinkPGCN PGC 7
6: LinkPGCN PGC 11
7: Set gprm(1) =(mov) 5 ; LinkPGCN PGC 8
8: Set gprm(1) =(mov) 5 ; LinkPGCN PGC 9
9: Set gprm(1) =(mov) 5 ; LinkPGCN PGC 10
10: Set gprm(1) =(mov) 4 ; LinkPGCN PGC 10 *** Autoaction
11: Set gprm(1) =(mov) 3 ; LinkPGCN PGC 8 *** Autoaction
12: Set gprm(1) =(mov) 2 ; LinkPGCN PGC 10 *** Autoaction
13: Set gprm(1) =(mov) 1 ; LinkPGCN PGC 8 *** Autoaction

blutach
2nd April 2010, 05:22
Once the video in that one finishes, the post commands will execute and take you to PGC 7 (where gprm(1) is probably tested and the highlight button is set using gprm(2)). Try in in a trace (click on skip when the menu is displayed and check the trace log).

Regards

peppi_le_piou
2nd April 2010, 06:10
As you can see from the Menus Buttons the buttons 1-4 jump straight to the respective Title chapters and buttons 5-13 link directly to PGC's. therefore there is no instance to get into the Post Commands (as I see it).

I tried as you suggested and skip the button selection at this menu and the log shows that it does then step into the Post Commands. But if I was watching the real dvd then the user doesn't have an option to "skip" and therefore it waits forever until a button is selected and then goes to its destination, bypassing the Post Commands. So, are the Post commands redundant in actual fact?

blutach
2nd April 2010, 08:56
Skip means wait till the PGC has finisished. For example, just sit there and watch the DVD without pressing a button before the 32 seconds are up. If you removed the post commands in this case, in the absense of cell still time =255 (infinite), your DVD would come to a dead stop.

Regards

r0lZ
2nd April 2010, 09:32
Blu is right.

When the Skip button is enabled in PgcEdit's menu viewer, that means that the current cell has no infinite still time, and therefore that it can (but doesn't necessarily has to) be played until it finishes.

The Skip button is only there for your convenience. Since in PgcEdit, an animated menu cell is always shown as a still in the viewer, you can skip the menu viewer to watch the video of that cell in the preview, and examine what happens if you do not select any button during the cell's playback.

Usually, a menu without infinite cell still time has a cell command that jumps back to the beginning of the current cell or PGC. That creates a loop that can be broken only by activating a menu button. But sometimes (notably when there is an intro to the menu the first time it is called), the cell or post commands jump to another PGC, where the real loop occurs. This might be the case of your menu, peppi_le_piou. To have a chance to examine the second PGC, and for example to verify that the loop works as expected, the Skip button is necessary.

Note also that the post commands can be executed even in a menu with infinite still time and buttons with no LinkTailPGC commands, if the menu has a NextPGCN link pointing to itself. In that case, the user can press the Next Chapter button to jump to the post commands.

peppi_le_piou
2nd April 2010, 09:57
Thanks guys, this has a motion intro into the menu and incl the buttons display it lasts for 32sec before showing a Still button menu in the next PGC. I wasn't aware of this fact when using PgcEdit and I thought that it was simply a Still button menu.