Log in

View Full Version : Add RCE protection


SurfDrifter
3rd June 2003, 15:23
How can I add RCE protection in a DVD with DVDMaestro?
Should I just read SPRM20 and compare it to the region that i want or is it a procedure that is applied during duplication?

auenf
6th June 2003, 14:51
RCE discs check if the player is set to play regions other than what the player is set to, and if it does, it redirects to the error page.

yes you do this thru SPRM20

Enf...

SurfDrifter
7th June 2003, 13:29
Thanks for the answer!

I guess that the Command sequence would be sth like this...

1 MOV GP0 , SPRM20
2 Jump To MAIN MENU[#1] if (GP0 = ???)
3 Jump To WRONG REGION[#1]

???= The value of the desired region...

I cannot find somewhere the values of each region...
In dvd demystified says sth about bit sets of 0000001 for region 1, 00000010 for region 2, etc... So i guess a region 2,4 disc should have 00001010 value...
BUT how i change these values to a dec or hex value as to enter it at line 2?

SurfDrifter
7th June 2003, 19:11
I ran numerous test and finally i found the codes for SPRM20

So, i created a dvd that when it is inserted in a dvd player, it can tell which region is this dvd and also check if it is region free...

So by creating a script like this in maestro you'll have the previous effect

1 MOV GP0 , SPRM20
2 Jump To Region 1[#1] if (GP0 = $1)
3 Jump To Region 2[#1] if (GP0 = $2)
4 Jump To Region 3[#1] if (GP0 = $4)
5 Jump To Region 4[#1] if (GP0 = $8)
6 Jump To Region 5[#1] if (GP0 = $10)
7 Jump To Region 6[#1] if (GP0 = $20)
8 Jump To Region 7[#1] if (GP0 = $40)
9 Jump To Region 8[#1] if (GP0 = $80)
10 Jump To Region Free[#1] if (GP0 = $3F)
11 Jump To Region Free[#1] if (GP0 = $BF)
12 Jump To Region Free[#1] if (GP0 = $FF)

I created 3 different situations of region free...

Line 10 refers to a dvd set to regions 1,2,3,4,5,6
Line 11 refers to a dvd set to regions 1,2,3,4,5,6,8
Line 12 refers to a dvd set to regions 1,2,3,4,5,6,7,8

So the way i did this is by converting binary system to hex...
So in hexadecimal system the region values that a dvd player would give are the above in the script.
In decimal these are:
Region 1: 1
Region 2: 2
Region 3: 4
Region 4: 8
Region 5: 16
Region 6: 32
Region 7: 64
Region 8: 128
Region Free:255 (all regions)

In maestro simulation you can put (in decimal only) the region you want for the simulation...
So you enter the region you want and press First Play, so as to start from the beginning, since Maestro's default is region 1

auenf
9th June 2003, 12:36
Originally posted by SurfDrifter
In maestro simulation you can put (in decimal only) the region you want for the simulation...
So you enter the region you want and press First Play, so as to start from the beginning, since Maestro's default is region 1

actually theres a checkbox at the bottom of the realtime previewer that lets you view/set everything in hex ;)

the reason why the values for each reason are in incremental base 2 is cause you can add a couple of the regions together, as 2 and 4 are most commonly done for PAL discs for europe and australia.

if a player is set to r2/4 only your script isnt going to do anything ;), instead of using conditional == to check each region, start from the top down (ie at 6) and then if its == $80, then the player is set for r6 only, if its > $80, then player is set for r6 + others.

iirc, RCE discs are only for R1 atm, which means all they have to do is check if the sprm is >= 2, depending on what you exactly want to do is going to determine how complex the script is going to be.

Enf...

SurfDrifter
10th June 2003, 11:35
Originally posted by auenf
actually theres a checkbox at the bottom of the realtime previewer that lets you view/set everything in hex ;)

I know this, but try typing for example FF in a box...You can't. It only accepts numbers. At least for me with build 2915a...

the reason why the values for each reason are in incremental base 2 is cause you can add a couple of the regions together, as 2 and 4 are most commonly done for PAL discs for europe and australia.

I understand this for discs, but do you know a dvd player that it is set to two different regions? At least not me...

if a player is set to r2/4 only your script isnt going to do anything ;), instead of using conditional == to check each region, start from the top down (ie at 6) and then if its == $80, then the player is set for r6 only, if its > $80, then player is set for r6 + others.

This is the most helpful advise! I would be much simpler to have a < or > command rather that = for each value!!! Great

Thanks again

auenf
13th June 2003, 15:48
ill have to check my files, but im vaguely recall downloading an rce example script from somewhere for some authoring program, not sure where or when i downloaded it, or what the filename is either ;)

another tip is to grab a disc with RCE on it, and open the ifo in ifoedit and try to find the pre-script with the RCE code in there ;)

http://forum.doom9.org/showthread.php?s=&threadid=27709&highlight=RCE

that seems to be the closest we've got to it before, and maybe easy2bcheesy would be able to help or guide as well ;)

Enf...