| Author |
Message |
julius Senior Member

Joined: 18 Feb 2005 Posts: 247
|
Posted: Sun Jan 20, 2008 5:27 pm Post subject: Need help with badly authored menu |
|
|
Hi
I have small problems with the audio menu on this one. Might be due to some copy protection. I tried using the debugging tool, but I was not able to hit a satisfactory result.
The problem is the audio menu, where it seems stuck. Actually there are 3 problems.
1. Hitting enter botton leading to the enable "english" language does not make it hightlight the "play movie" botton afterwards.
2. Hitting the play movie botton does not play movie, it simpy returns to audio selection menu.
3. Hitting the main menu botton does not hit the main menu. It simpy returns to audio selection menu.
Fils for inspection can be found here:
**** LINK REMOVED ****
Anyone able to help me out here, I'm sure its just a small error.
Thanx in advance
/Eriksen76
Last edited by julius on Tue Jan 22, 2008 9:07 pm; edited 1 time in total |
|
| Back to top |
|
 |
toaddub Forum Admin

Joined: 12 Sep 2004 Posts: 1995
|
Posted: Mon Jan 21, 2008 7:07 am Post subject: |
|
|
When buttons are deleted, be prepared to fix the navigation as well. Otherwise, you'll get unexpected results as described. So if you're not sure what to do, it is best to just hide the buttons so navigation will stay intact.
Notice that the button command is LinkTailPGC, so you know that the key is in the post commands section. Since there were 6 buttons in the Audio menu and 3 language buttons are deleted, the Play Movie button originally was button 5 now becomes button 2, and Main Menu button originally was button 6 now becomes button 3. In the post commands section, notice that R[0] contains the highlighted button (line 2) and the conditional statement (if R[0] != x) goto line y) checks which button was selected. The Link PGC z will branch to the PGC z for the selected button.
So let's solve problem #1. You hit English button 1, so it branches to PGC54 where the audio stream is set to 0, then branch to PGC63 where R[5]=5 which contains the highlighted button number 5. Well, since the Play Movie button was button 5 and now becomes button 2, then change R[5]=2 and this will fix the problem. How do I know R[5] is the one to fix? Look at the Pre Commands section of PGC8, lines 5 and 12 - self explanatory.
As for problem #2, in the Post Commands section, copy line 21 (Link PGC 61) and paste over line 9. Basically, copy Link PGC # for button 5 and replace over button 2's Link PGC.
Problem #3 is similar to problem #2. I leave this one for you to fix.
Now for the clean up, now that there are only 3 buttons left but there are 6 conditional statements, so let's delete the ones relating to buttons 4-6. Before doing this, change line 12 "if (...) goto line 16" to "if (...) goto line 28". Now delete lines 15-27. And you're set! |
|
| Back to top |
|
 |
julius Senior Member

Joined: 18 Feb 2005 Posts: 247
|
Posted: Mon Jan 21, 2008 9:30 am Post subject: |
|
|
Thanx for the help.
Under step 3, I think it was button command "Link PGC27" you were
looking for
At least it worked out for me
/Eriksen76 |
|
| Back to top |
|
 |
CDR-Zone.COM Advertisement Bot
 
|
Posted: Post subject: Advertisement: |
|
|
|
|
|
| Back to top |
|
 |
|
Powered by phpBB © 2001, 2005 phpBB Group
|