View Full Version : Chapter Commands Generator
wencaS
17th November 2008, 19:54
This program generates the commands necessary to highlight the correct chapter button on the correct DVD menu page. Use PgcEdit to paste the commands set.
http://www.wencas.cz/components/com_joomgallery/img_thumbnails/chcg_1/chcg_english_3/chaptercommands_20100829_1853472344.jpg (http://www.wencas.cz/component/joomgallery/chaptercommands/chaptercommands-en)
This app is running under AutoHotKey version 1.0.47.0
The supported versions are Windows NT / 2000 / XP / 2003 and beyond.
I tested this only on Windows XP Pro SP2.
Add
check for SPRM 4. (Title number in volume)
support for multistory
manually specify order of buttons
remove
pre and post commands for main movie title. (they are not needed when is added check for SPRM 4 )
Fix
small bug when saved sbk files
small optimized for speed start
I'm sorry please my very bad English.
Download from homepage ChapterCommandsGenerator (http://www.wencas.cz/chapter-commands-generator)
blutach
17th November 2008, 22:30
Thanks for this very handy little app wencaS!
Regards
Meez
17th November 2008, 22:45
yes! thanks for a great app.!
one thing i noticed is that when i resize the window, the "Generate" button on the bottom is not shown. it shows up when the window is maximized. i know you can use the File menu to generate the commands, but i think it would be safe to maybe add a scroll bar on the right side of the window if it is resized?
wencaS
18th November 2008, 16:29
@blutach
I forgot! Many many thanks to all what assist in development. :)
@Meez
Or you can use shortcut CTRL+G.
Thanks for you suggestion, but this will be not easy in AutoHotkey, however I try it.
wencaS
24th November 2008, 20:12
@Meez
I trying add scroll bar, but this is very not good. Sorry. I fix problem with sometimes wasn't displayed button "Generate!" alternative method.
Download ChapterCommandsGenerator v 0.7 in my first post.
Changes:
Fix
when generated commands set for several PGCs (so far all right), now uncheck one PGC, after generated included fake PGC (therefore also GoTo line is fail).
the "Generate" button sometimes wasn't displayed
Add
your setup (LinkPGN 2 or LinkCN 2; Buttons per page; First button number) accepted also for all disabled option
if "Remember session?" enabled change saved as default.
r0lZ
25th November 2008, 01:01
Thanks wencaS!
Meez
25th November 2008, 05:01
thanks!!
but now i can't resize the window at all? i guess there wasn't a way to add scroll bars. either way, i can live without it. :)
wencaS
26th November 2008, 17:45
You really need resizable window?
Meez
27th November 2008, 00:13
i have a 1024x768 screen and it doesn't fit on the screen. the 'generate' button is blocked by the toolbar.
wencaS
27th November 2008, 06:32
My is 1680x1050.
OK, here is resizable version 0.7 with scrooll bar. ChapterCommandsGenerator v 0.7 (resizable + scroll bar) (from version 0.7 in every version)
Meez
28th November 2008, 04:48
it works great! thanks!
wencaS
6th December 2008, 20:18
@Meez
Thanks for the thanks!
Here is final ChapterCommandsGenerator v 0.8 (http://www.wencas.cz/chapter-commands-generator) (homepage).
Changes:
If option "Save window position" enabled, saved also high size and width size window. (added for small monitor ... "scrollable window")
Chapters per button selections.
If DVD opened in PgcEdit, default save path for sbk file is path to parent DVD folder.
Thanks to blutach for the suggestion "Chapters per button".
Meez
8th December 2008, 06:24
ok, i have a little problem. let's say i have a multi-page chapter menu. each page has 6 chapter buttons. they also have buttons to go to the next/prev page as well as buttons to go to the first and last page. now, this menu has 2 pages. when i select a chapter button on the second page, then press the root menu button, it goes to the second page and highlights the chapter button fine. now when i press the 'go to first page' button, it just stays on the second page and highlights the same chapter button.
i think i figured out why it does this. the 'go to first page' button links to the first page of the chapter menu, but the pre commands read the gprm(7) chapter and proceed to go to the correct page and highlight button. so it just loops to the second page whenever i select the 'go to first page' menu button.
is there someway to fix this?
blutach
8th December 2008, 08:39
now when i press the 'go to first page' button, it just stays on the second page and highlights the same chapter button.
If all in one PGC, change the commands to Link PGN 1, HL Button 6, instead of Link PGCN X (Link PGCN starts the PGC again at the precommands, Link PGN just jumps to a program without reading through the commands and jumping to the current chapter).
If the chapter menu is in several PGCs, then use a new dummy PGC for your chapter commands and direct the button for the scene selection on the main menu to that new dummy PGC. That way, the precommands are not executed, since the only time that new PGC is read is from the scene selection button on the main menu.
Regards
wencaS
9th January 2009, 11:30
Big thanks blutach for your answer here, and for your big help at development. :thanks:
Before using this version, please read the small help for more information ("Help" -> "Quick help" or shortcut "F1").
Changes from v0.8 to v0.9:
Add: "Option" -> "Default save path for SBK files", shortcut Ctrl+O.
Add: option "For new dummy PGC". (You must create a new dummy PGC to hold the generated commands (PGC --> New Dummy PGC). You must then use PgcEdit's menu editor to point the scene selection menu button to this new dummy PGC via a Link PGCN xxx command.)
Add: "Option" -> "Auto copy to clipboard". This possibility automatically will make copy to the clipboard generated commands set, in the event of several PGCs and unchecked option "For new dummy PGC", only commands for the first PGC.
Add: Default button number if Title wasn't played till now. If unchecked will be generated commands for highlight button for first chapter. This option will be saved when Remember sesion enabled.
Add: Test if the title is playing by using the RSM flag. If not exist RSM flag in your DVD, you have to first create it.
Selection which stop away use are disabled.
For Multistory selection - selected title number is red at following opening window for multistory titles selection.
For open SBK files in PgcEdit's scratchbook, needed PgcEdit v. 9.0 or higher.
Small cosmetic changes. And fixed several small bugs.
Download from homepage ChapterCommandsGenerator v 0.9 (http://www.wencas.cz/chapter-commands-generator)
blutach
9th January 2009, 13:42
Thanks heaps for the update wencaS and your huge effort in development!
Regards
wencaS
19th August 2009, 07:45
@blutach
Thanks for the thanks and thanks for the new idea.
New version 1.0 available.
Download from homepage: ChapterCommandsGenerator v 1.0 (http://www.wencas.cz/chapter-commands-generator)
What's new:
Support for indirect set the highlighted button number via GPRM.
Use this if your PGC with chapter menu included command (in this example gprm(5) for highlighted button number)
[46 00 00 00 00 05 00 00] (SetHL_BTN) Set Highlighted Button =(mov) gprm(5)
Generate :
[61 00 00 05 00 03 00 00] Set gprm(5) =(mov) gprm(3)
instead of:
[75 00 00 03 04 00 00 00] Set gprm(3) *=(mul) 1024
[46 00 00 00 00 03 00 00] (SetHL_BTN) Set Highlighted Button =(mov) gprm(3)
Support for more values for RSM flag. Only for one PGC mode, and for more PGC mode -> only for new dummy PGC. Value for RSM to occur type only digits separated with semicolon ";"! For example: "2;10" (without quotes).
In more PGC mode without dummy will apply only first value before ";".
User can disable splash screen on startup.
Wombler
19th August 2009, 08:56
Great job wencaS and thanks for the update. :cool:
Wombler
wencaS
19th August 2009, 09:15
http://www.wencas.cz/forum/images/smiles/bryle2.gif
blutach
19th August 2009, 10:21
Thanks again wencaS. I usually hate splash screens but this one is very cool and takes no time at all. :)
Regards
Alex_ander
20th August 2009, 08:23
Thanks for your tool (didn't try it yet). How does the generated code behave in case one calls Top menu from playback (or from chapter page previously called from playback)? Will it provide default chapter button highlighting if one goes then from top to chapter page? I'm asking just because I have that problem (not resetting to defaults) in TAW4, which also generates such codes using chapter SPRM. Or can it be simply edited to restore defaults on going to top menu?
blutach
20th August 2009, 08:34
It depends if the top menu resets the title that is playing. If the top menu is simply a redirection to the main menu, then the chapter commands will work. If it basically resets the DVD, then you are out of luck.
Regards
Alex_ander
20th August 2009, 09:30
I meant I'd like to reset chapter button highlighting to default (e.g. to chapter #1 button) if top (title selection) menu is called (assuming there's no exit DVD or 'going to first play' command):
a) from playback
b) from chapter menu after chapter playback,
and (preferably) keep proper title # button highlighted in top menu + (maybe) keep resume ability. Is it possible with the tool?
BTW, is there any VM command for resetting title (or chapter, or killing 'resume') other than Exit?
blutach
20th August 2009, 09:58
This program doesn't do that, no.
In order to reset the chapter number, you can do what lots of commercial DVDs do in the post commands of the title (but do it in your top menu instead). Set a register (e.g. gprm(3)=100) and re-enter the title. In the first few precommands, test for gprm(3)=100 and if so, branch to the main menu; otherwise, play the title. This way, the last title played will be the main title and it will be chapter 1 since it never got to play.
Now, you can't have it both ways - keeping the RSM point and resetting to chapter 1. It's one or the other, as only a single resume point is ever set.
Regards
Alex_ander
21st August 2009, 13:05
Thank you. One more playback situation: going to VTS chapter menu after a title finishes playing.
In TAW4 (in case of 'return to chapter menu' option for titles) I have the last chapter' button highlighted (same as if the menu were called from the last chapter) while it would be more natural to have highlighting for chapter one in the end. I guess it is possible to set a GPRM in post-commands and on checking its state, bypass the part of menu pre-command list which analyses chapter SPRM, then reset the used GPRM and force default highlighting (for chapter 1 in that menu). Will the proggy do it internally?
blutach
21st August 2009, 15:34
This is quite common. Make sure the resume flag is turned off after playback of the title (or again, go through another "dummy" title before returning to the main menu - this will ensure that the chapter is reset to 1).
Regards
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.