Back Forum Reply New

SPRMs in Scenarist

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

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 DVD/vmi.html

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 quot;2quot; rather than quot;2048quot; as it does when I use an immediate value of quot;2quot;.

thanks for any help

- The Sequoyan

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

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

Ok, it is the Set Highlighted Button.

you got it

No, no , I don't, because your solution doesn't work for me. Can you explain how did you fix it.

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.

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.

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

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.

sounds good, I'll try it.

thanks for the info

- The Sequoyan

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

Just continue with quot;GoTo Xquot; and SetHL_BTNNquot;.

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

that's a great idea!

I'm going to try it right now.

- The Sequoyan

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=GPRM1And there are NO cell commands so it is still seamless play!

Thanks MPUCODER for telling us how to do this.

- The Sequoyan

Very nice, elegant solution. Thanks for all of you. I feel more educated today than I was yesterday.

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
¥
Back Forum Reply New