View Full Version : Heres one for you ifoedit masters? ...
RaistlinMajere
30th April 2004, 03:08
Here is the scenario. I have been messing around with ifoedit and have learnt how to alter menu navigation and such but have been wishing to add a menu timeout feature to turn the dvd session of after a period of inactivity.
I know where the root menu is located and how to add precommands. Is there a way I can get say for example GPreg<15> to count down from 300 seconds and when it gets to 0 execute the "exit" command
I tried entering these to VTSM_PGCI_UT -> LU_1 (ROOT) as pre commands
1.Pre Command Set GPreg<15> mov (set-val)<10>
2.Pre Command (SetNVTMR) Set MVTMR = (set-val 310, pgcn 1
3.Pre Command If GPreg<15> == Spreg<navigation timer (NVTMR) in sec.> then Exit
I assumed this would set Gpreg<15> to 10 and start the count down from 310. When the countdown reached 10 then it would equal GPreg<15> and run the Exit command. Unfortunately I can't start the DVD due to a navigation error. The root menu is also the title menu I think, and it is a looping video & soundtrack. The reason I want to do this is because if I fall asleep while watching it the dvd is left spinning all night long and probably the next day if I forget its still running. Hope you can help
thanks
T
Dimmer
30th April 2004, 10:32
Welcome to the forum.
Originally posted by RaistlinMajere
1.Pre Command Set GPreg<15> mov (set-val)<10>
2.Pre Command (SetNVTMR) Set MVTMR = (set-val 310, pgcn 1
3.Pre Command If GPreg<15> == Spreg<navigation timer (NVTMR) in sec.> then ExitThis isn't going to work for two reasons. First, command #2 sets the timer to 310, so it won't be equal to 10 in the command #3. Next, SetNVTMR starts the timer and continues playing the DVD as if nothing happened until it reaches zero, so there is a very little chance that some command comparing the timer to 10 will be executed at that precise moment.
Instead, I suggest this. Find some "junk" PGC in the same menu domain, i.e. PGC that's never being used (prehaps, some logo or warning screen). If you re-authoring the DVD yourself, then add one. Use that PGC number in the SetNVTMR command, and put Exit as the only Pre command of that PGC. Important: if you have a looping menu, ensure that the Pre commands do not get executed during each loop, so the timer won't restart each time. This means looping must be done by a command that links to the first cell or program (LinkCN, LinkTopPG, LinkTopCell), but not to the same PGC (LinkPGCN, LinkTopPGC).
RaistlinMajere
30th April 2004, 12:13
Hi, thanks for the nice welcome :O)
Hmm maybe this is going to be much more difficult than I thought.
I disabled the excessively long copyright warning and manufacturer logo so they are used but they are in VTS_01_0,ifo. The menus and such are in VTS_02_0,ifo. There is a seperate logo that plays at the end of the main feature that is title 7 on VTS_02 which seemed ideal to start the counter.
I checked how the root menu works and it seems to loop but the commands aren't repeated I put in a add 1 command to a GPreg that is unused and it stayed the same unless i exited to the film and went back where it increased as expected.
The problem is I don't seem to have or are not fully understanding the PGU-Menu's. There are 19 and they all seem to have some pre commands in.
I tried "Number of menu's for this LU (VTSM_PGCI_SRP) to 20 but saw no indication weither this would have any effect. Is there a way in ifoedit to create a blank menu entry?
I also tried using the
SetGPRMMD counter GPRM15,1
command first in the root menu and then in the end logo i mentioned but GPreg<15> just goes to one and stay at one. I was using ifoedit to monitor the GPreg values. I just can't seem to get a counting GPreg value. If it were looping the mun as in going back to the start each time I could just use the add command to a GPreg but its doesn't. Is there a website where they have guides on how to impliment stuff like this with ifoedit or maybe a program where you can edit these things in like a preview mode?
thanks
T
violao
30th April 2004, 13:29
You might rearrange your menu loop such that it goes through post command section for every loop and put your decreasing counter there. Then you can inspect it and if it reached some value -> exit.
Dimmer
30th April 2004, 13:48
@RaistlinMajere:
Sorry, I think I misguided you. The counter appears to work only in title domain. It looks like both SetGPRMMD and SetNVTMR timers are paused when in menu domain.
It seems your best bet would be what violao suggested: put a counter either in Pre or Post commands, ensure that it gets incremented every loop, and quit after a certain number of loops.
In any case, you can't add a new PGC in IfoEdit.
Here's a good site with description of DVD command set and lots of related stuff:
http://www.dvd-replica.com/DVD/vmcmdset.php
RaistlinMajere
30th April 2004, 15:19
With your help I have muddled through and learnt alot. Was more simple then I realised. I hadn't the right menu loop to start with lol so that weren't helping. But i found two GPreg's that weren't been used anywhere
i put Set GPreg<12> mov (set-val)<20> in the first play PGC to set the number of loops i want it to terminate after to 20 (each loop is 30 seconds so worked out to be 10 minutes nicely)
Then there were two looping menus with slightly different graphics if subtitles were enabled or disabled. So i entered these commands in both.
I used a post command of Set Gpreg<15> add (set-val)<1> to start the loop count and I set a pre command of If GPreg<15> == GPreg<12> then Exit to exit when the counter reached the value I set earlier.
then just as a final touch when the feature has finished it plays a small animated logo for 5 seconds so I put in a post command of GPreg<15> mov <set-val)<0> to reset the counter to 0. Tested it and it all works flawlessly. Awesome and easy enough to repeat for any dvd I want with a looping title menu.
:)Thanks guys for your help:), I never knew how truely great ifoedit was, until two days ago when I found out you can put in any command using the hex values I never knew it could do a fraction of the stuff it can. Oh for anyone interested I found a great site where I got a lot of the dvd commands from http://www.dvd-replica.com/DVD/index.php
edit - just realised I repeated your link lol
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.