View Full Version : Post Commands not working
Kaimaster
8th November 2004, 21:18
Hi Guys
I have the following:
1 menu with 6 buttons (All buttons sets GPRM(3) to other GPRM numbers as values can't be assingned to them when using Jumps etc. then Links the TailPGC)
Post commands looks like this:
[30 22 00 00 00 02 03 00] 1 if ( gprm(3) == gprm(0) ) then { (JumpTT) Jump to Title 2 }
[30 26 00 01 02 87 03 01] 2 if ( gprm(3) == gprm(1) ) then { (JumpSS) Jump to VTSM 2, Chapter menu (TTN 1) }
[30 26 00 01 02 84 03 02] 3 if ( gprm(3) == gprm(2) ) then { (JumpSS) Jump to VTSM 2, Sub-picture menu (TTN 1) }
[30 22 00 00 00 03 03 04] 4 if ( gprm(3) == gprm(4) ) then { (JumpTT) Jump to Title 3 }
[30 26 00 01 03 87 03 05] 5 if ( gprm(3) == gprm(5) ) then { (JumpSS) Jump to VTSM 3, Chapter menu (TTN 1) }
[30 26 00 01 03 84 03 06] 6 if ( gprm(3) == gprm(6) ) then { (JumpSS) Jump to VTSM 3, Sub-picture menu (TTN 1) }
Now the above doesn't work at all. The system keeps on playing the first command everytime and doesn't skip to the rest as it should. Any ideas?
Thanx
KM
2COOL
8th November 2004, 21:30
Temporary loss of insanity
jeanl
8th November 2004, 21:32
well, it looks like gprm(3) == gprm(0) no matter which button you push. Are you sure the other gprms have different values when you get to the menu (if they all contain 0 for example, you'll get the behavior you get).
You could check with IFOEdit's "Play DVD" function which also lets you check the values in the gprms...
As a side note, pgcedit will soon have a "trace" function which will let you inspect what's going on by "running" your DVD, pushing on the button, then single-stepping through the post-commands (while watching the gprms). This would give you your answer right away.
r0lZ is finishing the Trace function, I don't have a date though...
Jeanl
erdoke
8th November 2004, 22:05
Or maybe the movie was edited with some app, which copied the Post commands at the end of the Pre command section...:D
jeanl
8th November 2004, 22:07
Originally posted by erdoke
Or maybe the movie was edited with some app, which copied the Post commands at the end of the Pre command section...:D
now who on earth would ever want to do that??? :)
but seriously if that were the case, Kaimaster would never see his menu!
Jeanl
erdoke
8th November 2004, 22:30
Originally posted by jeanl
but seriously if that were the case, Kaimaster would never see his menu!
Yeah, of course.
I was wondering why not assign numeric values to GPRM3 when clicking on buttons and use != and Goto line xx settings in the Post command section instead of direct == and Jump/Link commands.
mpucoder
8th November 2004, 23:18
More than likely the GPRMs all have 0 in them, unless something was done to set them.
Most people check SPRM8 in the post commands to see which button was pressed. (it will be 1024*button number)
2COOL
8th November 2004, 23:30
Originally posted by Kaimaster
Hi Guys
I have the following:
1 menu with 6 buttons (All buttons sets GPRM(3) to other GPRM numbers as values can't be assingned to them when using Jumps etc. then Links the TailPGC)
Post commands looks like this:
[30 22 00 00 00 02 03 00] 1 if ( gprm(3) == gprm(0) ) then { (JumpTT) Jump to Title 2 }
[30 26 00 01 02 87 03 01] 2 if ( gprm(3) == gprm(1) ) then { (JumpSS) Jump to VTSM 2, Chapter menu (TTN 1) }
[30 26 00 01 02 84 03 02] 3 if ( gprm(3) == gprm(2) ) then { (JumpSS) Jump to VTSM 2, Sub-picture menu (TTN 1) }
[30 22 00 00 00 03 03 04] 4 if ( gprm(3) == gprm(4) ) then { (JumpTT) Jump to Title 3 }
[30 26 00 01 03 87 03 05] 5 if ( gprm(3) == gprm(5) ) then { (JumpSS) Jump to VTSM 3, Chapter menu (TTN 1) }
[30 26 00 01 03 84 03 06] 6 if ( gprm(3) == gprm(6) ) then { (JumpSS) Jump to VTSM 3, Sub-picture menu (TTN 1) }
Now the above doesn't work at all. The system keeps on playing the first command everytime and doesn't skip to the rest as it should. Any ideas?Why don't you use IfoEdit's GPRM monitoring feature to see what grpm 0 to 6 values are when you get to the menu in question?
Though compare commands are acceptable in buttons (though I haven't see one personally), I often wondered where the navigation will lead to after if the command was false?
jeanl
8th November 2004, 23:35
Originally posted by 2COOL
Though compare commands are acceptable in buttons (though I haven't see one personally), I often wondered where the navigation will lead to after if the command was false?
I don't think Kaimaster has compare commands in buttons (he said he had assignement + LinkTailPGC). But I too wonder what happens...
Also, what happens if your button command is simply a "set register" command (i.e. no link or anything else). How do you get out of the menu???
Jeanl
erdoke
8th November 2004, 23:39
Originally posted by jeanl
Also, what happens if your button command is simply a "set register" command (i.e. no link or anything else). How do you get out of the menu???
If you don't have link commands in the Cell or Post comand section, you're stuck. :)
jeanl
8th November 2004, 23:44
Originally posted by erdoke
If you don't have link commands in the Cell or Post comand section, you're stuck. :)
wait, I'm still puzzled:
- Suppose you have an infinite still cell with buttons, and no link command in the button (just an assign). What happens if you click on the button? Do you automatically get out to the post-command? Do you go to the next cell (if any)?
Is there an implicit behavior here?
Jeanl
blutach
8th November 2004, 23:51
It might be useful if you posted the exact menu button commands too.
r0lZ
9th November 2004, 02:39
Originally posted by 2COOL
Though compare commands are acceptable in buttons (though I haven't see one personally), I often wondered where the navigation will lead to after if the command was false? The cell command is executed (if any), and then the post commands. In the last ressort, the PGC pointed to by the NextPGCN link is called.
An infinite still time doesn't change anything to this behavior: the pause is terminated as soon as the user select a button.
jeanl
9th November 2004, 03:03
Thanks r0lZ!
That explains what I saw in some DVDs (absolutely no linktailpgc commands or anything like that!). I was wondering what was happening then?
Jeanl
2COOL
9th November 2004, 19:32
Continued on this thread (http://forum.doom9.org/showthread.php?s=&postid=567633#post567633).
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.