View Full Version : need help : scenarist - RETURN to the LAST menu
kofyapani
18th July 2005, 01:51
:confused: is anyone have the scenarist code that make me return to the last menu when I press the "menu" button and not to the main menu.
I understand that i have to use the GPRM
thanks for help.
Zeul
18th July 2005, 23:41
You're problem stems from this. Pressing the Menu / Audio / Sub / Angle / Ptt buttons take you to defined menus. When you create your scenario PGC1 maybe created as your Root Menu, PGC2 as your Audio Menu etc... If nothing is specified, then the PGC becomes an Entry PGC. Pressing the Menu button will jump to whatever PGC was labelled as Root Menu. This is why pressing the Angle / Audio button often has no effect on the remote. No PGC was defined as an Angle or Audio menu.
The only way around it possibly, would be to use a single GPRM value. In each PGC that displays a menu screen, set a specific GPRM to a different value. eg
PGC1 the very last post command -> Set GPRM1 == 1,
PGC2 the very last post command -> Set GPRM1 == 2 etc etc.
Then in the Root Menu under pre commands do a conditional jump ->
If (GPRM1==1) then LinkPGC1
If (GPRM1==2) then LinkPGC2 and so on
by setting the GPRM1 as the last post command, GPRM1 is only set as the PGC finishes - so the Previous called menu would be the correct GPRM value, and the conditional pre command in the RootMenu would search out the last called Menu.
I would also set in your first play PGC a precommand Set GPRM1==0 (this just makes sure this variable won't cause a conditional argument to fire before the main menu is displayed)
The GPRM value can be assigned to either another GPRM value, a SPRM value or an integer value (do this by setting your GPRM value to Intermediate in the Simulation window) The value can be anything from 0 -> 65535
NB I haven't tried this, but the theory is sound.
Corion
19th July 2005, 16:42
You're almost there but not quite. To build upon Zeul's idea...I would set the GPRM in the precommand section of the PGC housing your movie, instead of as a postcommand (so that the process works when the user presses the menu button during the PGC, not just when the PGC has finished playing). There's nothing wrong with the conditional precommands in the route menu but I would set GPRM1 = 0 in the precommand of the "target" menu (this is essential if you have a button linking from your target menu back to the route menu).
Corion
20th July 2005, 10:15
Actually I made a bit of an assumption when I wrote the post above which was that your project was structured in such a way that the title PGC (housing the movie) from which you are jumping from, is only accessable from your target menu, that you're trying to get back to (I hope that last sentence makes sense).
If not and it's more of a feature film layout with more than one menu able to access your title PGC I would do the following:
Instead of setting the GPRM in the pre-command section of said title PGC, I would set the button command in your target menu (which was taking you directly to your movie/title PGC) to link to a dummy PGC (containing no video) in, lets say your language folder. In the pre-command section of this dummy PGC enter the following:
MOV GPRM1, 1
Jump TT (to which ever title houses your movie)
Go with Zeul's conditional commands in the route menu and reset GPRM1 to 0 in the pre-command of your target menu and it should work fine.
Of course there's other ways to do this but this way is the easiest one for me to explain!
kofyapani
20th July 2005, 13:51
:thanks: Thank's its realy works great
but i have another problem now
how do I higlight the last button on the last menu that we just return to it?
it's always highlight the first button
crusty1
21st July 2005, 00:00
Go into your track editor select which ever menu you are using go to preview Subpicture and Highlight select highlight and then make sure the forced selected button is switched to zero. Then back to your scenario, after your conditional command assign a gprm ..say GPRM2 to SPRM8 then another command SET HIGHLIGHT BUTTON to GPRM2 and all should work.
kofyapani
24th July 2005, 14:09
thanks it's work great :-)
kai0n7
9th May 2006, 16:07
I am trying to do something similar, and am having alot of trouble trying to get it to work right using Sonic Scenarist.
I have 2 menu PGC's under an English language folder in VTS_1, a main menu and a chapter menu.
The movie itself is under Title_1 in VTS_1.
I have the Root menu, which for me is the main menu, set to play first.
When pressing the "menu" button on the remote while the movie is playing, I would like it to jump back to the last menu viewed.
I understand the concept here, setting the GPRM value, then doing a conditional jump... but it just doesn't seem to be working. As I understand it from what I've read here, I should set the GPRM value as the last post command of the menu PGC's. So in my case, the main menu would be "Set GPRM1 == 1", and the chapter menu would be "Set GPRM1 == 2".
However, when I set the conditional jumps in the pre-commands of the root menu, which in my case is the main menu, it just goes into some kind of loop and nothing displays.
Could someone explain to me what I'm doing wrong here? I assume I am setting the conditional jumps in the wrong place, but I have no idea.
Any help would be appreciated.
Kai
crusty1
10th May 2006, 06:31
If I were you I would break it down into TITLE menu for your first play and as your ROOT menu as your chapter menu. If that does not suit you you can set up the root menu PRE COMMAND with say GPRM1 and your chapter menu PRE COMMAND as GPRM2 and set a dummy jump out of your VTS to either GPRM you wish.
kai0n7
10th May 2006, 12:50
If I were you I would break it down into TITLE menu for your first play and as your ROOT menu as your chapter menu. If that does not suit you you can set up the root menu PRE COMMAND with say GPRM1 and your chapter menu PRE COMMAND as GPRM2 and set a dummy jump out of your VTS to either GPRM you wish.
I don't see anything in the program which would allow me to set any kind of jump out of the VTS folder.
If not and it's more of a feature film layout with more than one menu able to access your title PGC I would do the following:
Instead of setting the GPRM in the pre-command section of said title PGC, I would set the button command in your target menu (which was taking you directly to your movie/title PGC) to link to a dummy PGC (containing no video) in, lets say your language folder. In the pre-command section of this dummy PGC enter the following:
MOV GPRM1, 1
Jump TT (to which ever title houses your movie)
Go with Zeul's conditional commands in the route menu and reset GPRM1 to 0 in the pre-command of your target menu and it should work fine.
Of course there's other ways to do this but this way is the easiest one for me to explain.
This seems to be along the lines of what I am trying to do, but I am confused as to what he is referring to when he talks about the "target menu" and "route menu".
Kai
PhillipWyllie
24th May 2006, 01:57
Remember you can jump the the VGM title menu from anywhere. I'd make the Title menu a dummy menu( right click on the language folder and select add PGC).
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.