View Full Version : 4 digit pin access - need help with GPRMs
jfcarbel
12th March 2002, 09:49
Has anyone tried using the advanced features of Maestro like using scripts to process and store data in General Registers/Parms?
I want to create a DVD that will not start playing until you enter a 4 digit pin. My idea is to display a numeric keyboard menu on startup asking the user for a code. Has anyone tried doing this?
I just started with Maestro and could use some guidance on how to write and use command sequences using GPRMs.
Derrow
12th March 2002, 12:06
One small hint if you're interested in GPRMs:
My IfoEdit's integrated DVD-Player displays you the values of each GPRM Register, while playing the DVD/Movie.
This might help you debugging/creating your Project.
Jestorius
12th March 2002, 14:33
I don't know if there is any nummeric input possibilities in Maestro but with tricks and mix you can make it.
My solution is based on invisible non routable menu buttons over a background picture or video.
As you know a button has a number. The first button you draw get nr.1, the second nr. 2 etc. If you press the 1 on your nummericpad the first button is selected. You can't have more than 25 buttons on one menu.
Let say the pincode is 2234. You need to make 4 menues with the same background and with the same amount of buttons.
Your projects FirstPlay is a Command Sequence with a last command line "Jump to MainMenu".
The first script:
MOV GPRM0, SPRM8
DIV GPRM0, 1024
MOV GPRM1, GPRM0
Jump to MainMenu, if GPRM1=2
On the MainMenu there is a few invisible buttons. You can make a CmdSeq and if the selection is correct than you can jump to MainMenu2 which is looking the same like MainMenu. In this way the user doesn't notice the Jump.
You make the same logical CmdSeq for all the Menues. On the last Menu you make a last CmdSeq line like this:
Jump to Movie, if GPRM4=4
-------------------------------------
How does it sounds?
Jestorius
12th March 2002, 14:42
I acctually never tested FirstPlay with Command Sequence but if it doesn't work than the Firstplay gonna be the FirstPlay and a MainMenu connection is the Command Sequence.
jfcarbel
12th March 2002, 17:24
Found this link on another forum last night:
Creator/Fusion Tutorial - Add a Passcode to a DVD (http://cs.sonic.com/FOWebDoc/P17/Documents/SecretCode.pdf)
Looks like this solution basically has 4 keypad menus and when the correct button is pressed on KeypadMenu1 then a GPRM is set 1. Then at the end you check all four GPRMs to see if they all are 1's.
A few questions:
1) Where in DVD Maestro do I create these command sequences? Are these just text script files I import into Maestro (*.nct)?
2) Is the scripting language standard across all tools (i.e DIV, MOV)?
Thanks All.
easy2Bcheesy
12th March 2002, 17:39
1) Er, on the left of screen you have a list of movies, menus and... command sequences!
2) Aren't DIV and MOV file compression formats? Nothing to do with DVD, as far as I know. The scripting language has similarities between Scenarist and Maestro, but Maestro is far more user friendly. I used to program 6502 machine code many years ago on the Commodore 64 and the Maestro command sequences are quite similar to this.
Jestorius
12th March 2002, 17:51
So, I just made a dummy project and my teori is working, needs some adjustment but is working. I can't see the jumping from 1 menu to 2. menu.
Thanks for the Sonic tutorial. I didn't read it but as I know the only use of the Command Sequence is to wach the action in SPRM , store the value in GPRM, make some compering and desision and jumping to something. I don't think it is possible to record something more than once from the same menu. That's why you need 4 menues. If it is the same menu with a different name you never notice the menu changing.
The Command Sequence can be saved and imported in the editor.
Jestorius
12th March 2002, 18:54
The Sonic has the simuler solution to my. I have to read the tutorial again. I don't know anything abouth Fusion or Creator.
Jestorius
13th March 2002, 14:29
jfcarbel
The 4 digit pin is ready.
It works as it has to.
jfcarbel
13th March 2002, 18:33
Jestorius
can you email me the nct files? Or post here the commands.
thanks.
Jestorius
13th March 2002, 19:26
The solution is:
Let say the pincode is 2234
Make 4 menues with the nummeric pad on it. On the top of the first menu you can use the same text like: Type your first ....
On the second menu: Type your second ... etc.
You have 10 buttons on each menu page. You gonna need 5 Command Sequences. You need 5 free GPRM's to work with.
Place this one in the FirstPlay
1. Command Sequence
MOV GPRM0,0
MOV GPRM1,0
MOV GPRM2,0
MOV GPRM3,0
MOV GPRM4,0
JUMP TO MENU1
---------------------
Link it to all the buttons on the 1. Menu
2. Command Sequence
MOV GP0, SPRM8
DIV GP0, 1024
MOV GP1, GP0
JUMP TO MENU2
--------------------
to all the buttons on the 2. menu
3. Command Sequence
MOV GP0, SPRM8
DIV GP0, 1024
MOV GP2, GP0
JUMP TO MENU3
---------------------
on 3. menu
4. Command Sequence
MOV GP0, SPRM8
DIV GP0, 1024
MOV GP3, GP0
JUMP TO MENU4
-------------------
on 4. menu
5. Command Sequence
MOV GP0, SPRM8
DIV GP0, 1024
MOV GP4, GP0
GOTO LINE 6 IF GP1=2
JUMP TO "TRY AGAIN"
GOTO LINE 8 IF GP2=2
JUMP TO "TRY AGAIN"
GOTO LINE 10 IF GP3=3
JUPM TO "TRY AGAIN"
JUMP TO MOVIE IF GP4=4
JUMP TO "TRY AGAIN"
---------------
You have to make a "try again" menu. If the numbers aren't correct than it jumps to the "try again" menu if they are correct it jumps to the Movie.
----------------
Jestorius
13th March 2002, 19:31
On the "try again" menu there is a button to Start it is linked to the 1.Command Sequence, it gonna clean up the GPRM's
Jestorius
13th March 2002, 19:33
jfcarbel
Do you have more tutorial stuff?? PDF's?
jfcarbel
13th March 2002, 20:39
Jestorius
Thanks for all your help, now I have an exact idea on how to approach this project. By any chance, do you already have a keypad bitmap already done? If so can you email it to me.
Did some fooling around with the Command Sequence dialogs in Maestro and it seems pretty easy. I am going to give this project a try tonite from start to finish.
Sorry - that was the only docs/guides I know of. I do have the Maestro *.HLP file if you need that.
BTW - noticed your other thread about people posting their command sequences. Great idea and I hope I can contribute some soon. My next fun project is to create an interactive trivia quiz for a Seinfeld DVD that I am working on.
Jestorius
13th March 2002, 20:45
Sorry, I don't have a keypad, but use a picture of any phone keypad.
I have manual to Maestro , thanks.
I just like to read abouth other softwares I never gonna have!!!!
numlock
10th September 2007, 22:46
This link doesn't work anymore.
http://cs.sonic.com/FOWebDoc/P17/Documents/SecretCode.pdf
Is there an alternative dl site ?
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.