PDA

View Full Version : SPRMs in Scenarist


Sequoyan
22nd May 2002, 04:54
Hello,

I'm trying to find a way to set SPRMs in scenarist. I need a pre command to set SPRM 8...

anyone know how to do this?

many thanks

- The Sequoyan

mpucoder
22nd May 2002, 05:39
SPRM 8 is HL_BTNN, and can be set 2 ways. The SetHL_BTNN (4600 or 5600), or as one of the fields (byte 6, bits 7-2) of any link command. This chart might help http://mpucoder.kewlhair.com/DVD/vmi.html

Sequoyan
22nd May 2002, 07:32
Thanks for the reply

I'm trying the SetHL_BTNN approach, here's the command I've made:

1: SetHL_BTNN HL_BTNN=GPRM7

now this is not achieving what I need it to. What I'm trying to do is use a gprm and SPRM7 to track what scene/chapter is playing and if a viewer hits the menu button it takes them to the scene menu with the current chapter/scene selected.

I have a pre command on the main PGC which sets GPRM7 equal to SPRM7

Now what happens is this: when you let it play into chapter two I see that the GPRM is changed to 2 and then if I hit the MENU button it takes me to the scene selection menu but button 1 is selected. (I have made sure there is no forced button).

However I've tried doing the SetHL_BTNN using immediate value of 2 and that works.

have any ideas why it's not working with gprm7 set as equal to sprm7?

(it seems to be putting in the number "2" rather than "2048" as it does when I use an immediate value of "2".

thanks for any help

- The Sequoyan

Sequoyan
22nd May 2002, 07:47
I think I have figured it out.

I've removed the pre command from the menu and I've moved the setHL_btnn command to be a cell command in the main PGC.

- The Sequoyan

Jestorius
22nd May 2002, 09:45
Can you show me where can I see these settings in Scenarist:

1: SetHL_BTNN HL_BTNN=GPRM7

I can only see this:
1: Mov GPRM7, SPRM7

Jestorius
22nd May 2002, 13:27
Ok, it is the Set Highlighted Button.

Sequoyan
22nd May 2002, 18:21
you got it

Jestorius
22nd May 2002, 19:32
No, no , I don't, because your solution doesn't work for me. Can you explain how did you fix it.

Jestorius
22nd May 2002, 23:08
I have VTS_1 with Language/Menu and Title_1/PGC/Program1-2-3 with Cell-1-2-3 (chapters).

I have 3 chapters and a menu with 3 buttons linked to chapterpoints.

So if I put:
1. Mov GPRM7, SPRM7
2. SetHL_BTNN HL_BTNN=GPRM7

in the pre-PGC than System Params windows shows changes for PTTN and Highlight Btn.

The problem is that the value of GPRM7 has to be multiplicated by 1024 to get the correct HL_BTNN value. Or how do you do that?

I'd like to highlight a button which is corresponding to the chapter I'm comming from.

I could put a :
1. Mov GPRM0, 2048 as a Cell Command for Chapter1 , 3072 for Chapter2 etc and Change the HL_BTNN in a Pre_MenuPGC but it turns off the seamless play.

Jestorius
23rd May 2002, 00:01
You don't have to , I have it . A only one CommandList in the Pre section of the Language/RootMenuPGC, it rocks.

1: mov GPRM0, SPRM7
2: if ( GPRM0 == 1 ) GoTo 5
3: if ( GPRM0 == 2 ) GoTo 7
4: if ( GPRM0 == 3 ) GoTo 9
5: SetHL_BTNN HL_BTNN=1
6: break
7: SetHL_BTNN HL_BTNN=2
8: break
9: SetHl_BTNN HL_BTNN=3

No more Not Seamlessly play.

Sequoyan
23rd May 2002, 02:32
I think I may have found an easier way, it's worth trying at least.

1) Put a PRE on the main menu: SetHL_BTNN to immediate 1
2) Put a PRE on the PGC with contains the movie: mov GPRM7, SPRM7
3) Put a CELL on each chapter: SetHL_BTNN=GPRM7

This makes the result a multiple of 1024. It works beautifully for me.

Hope this is clear. Ask for more explaination if you need it.

- The Sequoyan

Jestorius
23rd May 2002, 02:46
It isn't seamless play. There is a jump between chapters because it takes time to execute the command.

If you do it on my way, you use only 1 pre commandList in the pre section of your menu and it gonna be a seamless play.

Sequoyan
23rd May 2002, 05:25
sounds good, I'll try it.

thanks for the info

- The Sequoyan

Sequoyan
23rd May 2002, 05:33
your method works for three chapters, what if you have twenty? That would be a lot of commands to put in the pre of the menu.

you're right about the non-seamless play though. I am working on that.

It's very strange that if the setHL_BTNN=GPRM7 is in the cell it works (as a multiple of 1024) but if the command is in the PRE of the main movie PGC it does not make it a multiple of 1024. Strange.

There has to be a way to do this without cell commands and without making GPRMs for each button.

Any ideas?

- The Sequoyan

Jestorius
23rd May 2002, 07:49
Just continue with "GoTo X" and SetHL_BTNN".

mpucoder
23rd May 2002, 16:06
It is true that cell commands produce non-seamless playback.
The reason a pre command for the movie sets the value to 1 is that it is executed only once, at the beginning of the movie. Changing the value of the source register (gprm7 in your case) has no effect after that.
I wasn't sure if sprm7 would contain the ptt (chapter) of the interrupted video, but apparently it does. Why not use multiplication? The vm can do math.
Try (in the menu pre commands)
Set gprm0,1024
Set gprm0 * sprm7
SetHL_BTNN gprm0
I'm not sure of the exact syntax for scenarist, but this will eliminate the goto's

Sequoyan
23rd May 2002, 16:08
that's a great idea!

I'm going to try it right now.

- The Sequoyan

Sequoyan
23rd May 2002, 16:17
It worked!!

(with a slight alteration)

here's the command list for the PRE on the menu:

1: Mov GPRM0, 1024
2: Mov GPRM1, SPRM7
3: Mul GPRM1, GPRM0
4: SetHL_BTNN HL_BTNN=GPRM1


And there are NO cell commands so it is still seamless play!

Thanks MPUCODER for telling us how to do this.

- The Sequoyan

Jestorius
23rd May 2002, 17:01
Very nice, elegant solution. Thanks for all of you. I feel more educated today than I was yesterday.

Sequoyan
23rd May 2002, 18:46
Jestorius, many thanks to you too.

This thread has made me feel all warm and fuzzy about the community created by Doom9 forums :)

- The Sequoyan

Peacemaker2000
25th November 2002, 00:46
hmm, i wanna do nearly the same, but i can't get this SetHL_BTNN HL_BTNN command to work ... even if i set it to intermediate 6 it doesn't work (i have 10 buttons in this menu):
Info Pre-Command 1: SetHL_BTNN HL_BTNN=6
Info Cell(character_guide_01-t-scn-_1)
Info Cell still: Infinite.

there is no warning or something, but he still sets button #1 as the highlighted button :angry: ... i set GPRM0 from 1 to 8 in the pre command of the different characters:
Info Starting Simulation...
Info VMG-VTS(VTS_1)
Info Language-Title(Character Guide)
Info PGC(menü-t-pgc)
Info Program(menü-t-scn-pg)
Info Cell(menü-t-scn-cell)
Info Cell still: Infinite.
Info Button-Command 2 : { Mov GPRM0, 1 ; LinkPGCN character_guide_01-t-pgc }
Info PGC(character_guide_01-t-pgc)
Info Program(character_guide_01-t-scn-)
Info Pre-Command 1: Mul GPRM0, 1024
Info Pre-Command 2: SetHL_BTNN HL_BTNN=GPRM0
Info Cell(character_guide_01-t-scn-_1)
Info Cell still: Infinite.
Info Button-Command 6 : LinkPGCN briefs_dr-t-pgc
Info PGC(briefs_dr-t-pgc)
Info Program(briefs_dr-t-scn-pg)
Info Pre-Command 1: Mov GPRM0, 6
Info Cell(briefs_dr-t-scn-cell)
Info Cell still: Infinite.
Info Button-Command 1 : LinkPGCN character_guide_01-t-pgc
Info PGC(character_guide_01-t-pgc)
Info Program(character_guide_01-t-scn-)
Info Pre-Command 1: Mul GPRM0, 1024
Info Pre-Command 2: SetHL_BTNN HL_BTNN=GPRM0
Info Cell(character_guide_01-t-scn-_1)
Info Cell still: Infinite.

he always set button #1 as the highlighted button :angry: plz help me :scared:

statemind
18th November 2003, 19:56
Hey Sequoyan
please tell me how are you doing seamless play in Scenarist.
i have 12 chapters in movie.
thanks

burnttoast
21st November 2003, 03:06
In the simulation window in the subpicture and highlight/highlight tab you might have to set the forced select button to nonexistant.