PDA

View Full Version : Random Play stops when it should keep going indefinitely


GordRocks
16th December 2005, 22:11
I'm using DVDLab Pro 1.55 and I've been trying to get a Random Play to work with 3 titles in each of 3 different VTSs. In the test I'm doing I'm using menus as titles and have a short audio on each one to verify that each is playing. I've given up using the Random Lists because they don't seem to like the menus I'm using instead of movies. For some reason the Random Play doesn't keep going for very long and does not shut down in any predictable fashion. Sometimes it will play 10 or 12 titles at random before quitting and other times it will only play 1 or 2. And it does not stop on the same selection each time. I can't understand why it doesn't just keep playing. Anyone have any luck setting up a Random Play that works? Here's what I've done and I'll try to be brief.

1.
In the opening VMG Menu Pre Commands I've place these commands
GPRM1 = 1
GPRM2 = 2
to make sure that any time the menu is called the registers are reset to be unequal.

2.
When the Random Play button is pressed it takes me to a VMG menu that selects (at random) one of three VTS menus. The 3 VTS menus have been set as AUDIO menus so that I can use the JumpSS command. The commands in the Random menu are:

GPRM1 = 7
GPRM2 = 7
GPRM11 = 3
GPRM12 = GPRM9
GPRM9 rnd 3
if (GPRM9 == GPRM12) LinkPGCN 2
GPRM12 = 1
if (GPRM9 == GPRM12) JumpSS VTSM (vts 1, tt 1, menu AUDIO)
GPRM12 = 2
if (GPRM9 == GPRM12) JumpSS VTSM (vts 2, tt 1, menu AUDIO)
GPRM12 = 3
if (GPRM9 == GPRM12) JumpSS VTSM (vts 3, tt 1, menu AUDIO)
GPRM12 = 4
LinkPGCN 2
Break

Here I've reset the GPRM1 & GPRM2 to be equal. When each title finishes playing the Post Command will check whether they are equal and if they are will return to the VMG Random menu to start the cycle again.

3.
In the 3 VTS menus I've placed these commands:

GPRM4 = 20
GPRM3 rnd 3
GPRM4 = 1
if (GPRM3 == GPRM4) LinkPGCN 4
GPRM4 = 2
if (GPRM3 == GPRM4) LinkPGCN 5
GPRM4 = 3
if (GPRM3 == GPRM4) LinkPGCN 6
Break

Each of the VTSs has three titles (they are all menus, no movies) and they all have the same PGC numbers.

When one of the titles is played at the end of the selection the Post Command is this:

if (GPRM1 == GPRM2) JumpSS VMGM (pgc 3)
This command takes it back to the original VMG Random menu and the cycle repeats.

In a case where (GPRM1 == GPRM2) is not true the menu will follow its end link back to the menu of that VTS. I've verified that the commands in the 3 VTS Random selection menus are identical and the same is true of the Post Commands at the end of the titles.

Can anyone tell me why it doesn't continue to play random selections?

Sorry for the length of the explanation.

.....Gord

GordRocks
17th December 2005, 00:31
I think I found the problem. I should not have used GPRM12 in the Pre Commands for the VMG Random Menu.
I changed the commands to this

GPRM1 = 7
GPRM2 = 7
GPRM9 rnd 3
GPRM8 = 1
if (GPRM9 == GPRM8) JumpSS VTSM (vts 1, tt 1, menu AUDIO)
GPRM8 = 2
if (GPRM9 == GPRM8) JumpSS VTSM (vts 2, tt 1, menu AUDIO)
GPRM8 = 3
if (GPRM9 == GPRM8) JumpSS VTSM (vts 3, tt 1, menu AUDIO)
LinkPGCN 2
Break

and now it's been running for quite awhile without quitting. I also removed the reference to GPRM11 (can't even remember my reasoning for putting it there). Anyway, so far it's working and I'm happy about that. :cool:

.....Gord