xbox-scene.com - your xbox news information source
Quick Links: Main Forums | Xbox360 Forums | Xbox1 Forums | PS3 Forums
Xbox-Scene Forum Help  Search Xbox-Scene Forums   Xbox-Scene Forum Members   Xbox-Scene Calendar

Giganews Usenet Offers: +1150 days binary retention, 99%+ Completion, and Unlimited Speed/Access!

360 ODD Emulators: X360 Key $99 | Wasabi360 FAT $99 | Wasabi360 Slim $99
C4E's iXtreme Burner MAX Drive: LiteOn iHAS124 DROPPED TO JUST $17


Welcome Guest ( Log In | Register )

 Forum Rules Rules
 
Reply to this topicStart new topic
> Problems Using Dvdx Instead Of Default Dvd Player, Expert help needed I'm stumped
mancer_247
post May 18 2005, 12:18 AM
Post #1


X-S Enthusiast


Group: Members
Posts: 28
Joined: 7-May 05
Member No.: 219479



Let me first say that UIX is a great dash, but I can't stand the built in dongle-free DVD player so I set out to get DVDx to launch with a main menu tab and to not autolaunch the DVD if it's inserted when UIX starts.

I'm assuming you'll already have your 4th tab setup and ready to go.

I started off by making my 4th main menu tab a DVD drive launch button which is fairly straight forward, but I'll put the code snippet here anyways.

First search for this in your default.xap file
CODE
control DEF theMainMenuJoy Joystick


Under that heading locate:
CODE
           if(nCurMainMenuItem == 0)
           {
           }


This defines what the top/first tab on the main menu does when it's selected.
All you have to do is replace it with
CODE

           if(nCurMainMenuItem == 0)
           {
                theSettingsMenuIn.Play();
                AutoLaunch();
           }


Then of course you must go to Settings/Dash Configuration/Main Menu Tabs and rename the 1st tab to whatever you want. For example, I used "DVD Drive Launch". I also went and disabled the "Autolaunch Inserted Media" setting in the Settings/Dash Configuration/General Configuration by setting it to "False". Since I didn't need it anymore and I dislike pop-up windows, but that's totally optional.

Now that you have a drive launch tab you have to modify the autolaunch function.

Search for:
CODE
function AutoLaunch()


Locate:
CODE
else if (theDiscDrive.discType == "Video")     { ReStartDash(); }


Replace with and edit the path to DVDx if different:
CODE
else if (theDiscDrive.discType == "Video")   {
            theSettingsMenuIn.Play();
            theHardDrive.ExecuteFile("f:\\apps\\dvdx\\default.xbe");
          }


Your launch button should now start DVDx automatically.

Now on to the second part and where I'm having trouble. UIX would still launch the built in DVD player if a DVD was in the drive when UIX started so I had to do some more work.

First search for:
CODE
function MainInitPart3()


Locate:
CODE
   else if (theDiscDrive.discType == "Video")
   {
       EnableInput(true);
       //StartDVDPlayer();
 
 b_dvd = true;
 theLauncherLevel.GoTo();
   }


I replaced it with:
CODE
   else if (theDiscDrive.discType == "Video")
   {
       EnableInput(true);
       theMainMenu.GoTo();
 EnableAudio();
   }


Now UIX no longer autolaunches the DVD, but strangely there is no ambient audio (button sounds/strange background sounds) when UIX loads. Also, when you try to remove the DVD the Xbox reboots. If I start UIX without the DVD then put it in after it's started I can put it in and take it out with no reboot. So I'm stumped at the sound and reboot problem. I'm by no means an expert, and as you can see this is my first post so hopefully somebody has a solution because I'd really like to get this working.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
KyesaRRi
post May 18 2005, 02:27 AM
Post #2


X-S Freak
*****

Group: Members
Posts: 1576
Joined: 13-August 04
From: Australia
Member No.: 138265
Xbox Version: v1.0
360 version: v1 (xenon)



Well i'll look over it tonight, and if i find out why it is doing that then i will post back. Bet someone else will beat me to it, they allways do =P
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
clif
post May 18 2005, 05:31 AM
Post #3


X-S Member
*

Group: Members
Posts: 81
Joined: 8-July 04
Member No.: 129513



you might wanna try this, in your very last code
CODE

   else if (theDiscDrive.discType == "Video")
  {
      EnableInput(true);
      theMainMenu.GoTo();
EnableAudio();
  }


take out the enableaudio(); part. I dont know if that could be whats wrong its just an at glance at late at night when im really tired and have to get up early, so it could be way off or it could work just give it a shot and let me know what it dose.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
mancer_247
post May 19 2005, 02:07 AM
Post #4


X-S Enthusiast


Group: Members
Posts: 28
Joined: 7-May 05
Member No.: 219479



clif, thanks for the suggestion but still no ambient audio. Any other ideas would be great.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
mancer_247
post May 20 2005, 11:52 PM
Post #5


X-S Enthusiast


Group: Members
Posts: 28
Joined: 7-May 05
Member No.: 219479



Still no solution, but I did find out there is absolutely no audio. I ripped some tracks to the HD because I can't remove the DVD, and they wouldn't play. Not just no sound, but they wouldn't start playing at all. I thought that was strange, and that it might point to the problem. I can't figure it out so I'm hoping somebody has some ideas. Anything would be nice. Thanks
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
clif
post May 22 2005, 04:43 AM
Post #6


X-S Member
*

Group: Members
Posts: 81
Joined: 8-July 04
Member No.: 129513



You should start over or go back to your backups (if you made some, would of been helpfull) Redo your code and see if it dose the same thing, Maby you accidently got rid of somethen you wernt suposed to.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
mancer_247
post May 30 2005, 02:34 AM
Post #7


X-S Enthusiast


Group: Members
Posts: 28
Joined: 7-May 05
Member No.: 219479



Sorry it took so long to get back to you, but I've been out of town for the last week. I've tried going back to the original default.xap file and only adding the code that I need but it still won't work. Has anybody tried it, and if so, does it work for you? As usual, if anybody has any ideas please feel free to voice them. Thanks
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
KyesaRRi
post May 30 2005, 02:57 AM
Post #8


X-S Freak
*****

Group: Members
Posts: 1576
Joined: 13-August 04
From: Australia
Member No.: 138265
Xbox Version: v1.0
360 version: v1 (xenon)



I dont have the code in front of me atm, but you could just link the question for when it asks you if you want to watch the move to dvdX. If i get any time on the PC tonight then i can check if this will work, but dont be counting on it
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
mancer_247
post May 30 2005, 03:42 AM
Post #9


X-S Enthusiast


Group: Members
Posts: 28
Joined: 7-May 05
Member No.: 219479



KyesaRRi, I've already done that and it works fine. If you'll read the end of my original post my problem is with no ambient audio and a reboot issue when a DVD is in the drive when UIX starts. Thanks for responding though maybe you'll have some ideas on my specific problem. Thanks
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
KyesaRRi
post May 30 2005, 06:11 AM
Post #10


X-S Freak
*****

Group: Members
Posts: 1576
Joined: 13-August 04
From: Australia
Member No.: 138265
Xbox Version: v1.0
360 version: v1 (xenon)



shit, lol

my bad, i had read the post 3 or 4 times, but i somehow forgot what was posted

Look over the code in a few hours [1 or 2]
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
mancer_247
post Jun 5 2005, 04:11 AM
Post #11


X-S Enthusiast


Group: Members
Posts: 28
Joined: 7-May 05
Member No.: 219479



Since I couldn't figure out the sound and reboot issue I decided to just autolaunch DVDx by replacing my old code

CODE

  else if (theDiscDrive.discType == "Video")
 {
     EnableInput(true);
     theMainMenu.GoTo();
     EnableAudio();
 }


with this new snippet
CODE

   else if (theDiscDrive.discType == "Video")
  {
      theSettingsMenuIn.Play();
      theHardDrive.ExecuteFile("f:\\apps\\dvdx\\default.xbe");
  }


When a DVD is in the drive when UIX starts it now autostarts DVDx. Not exactly what I wanted but it works for now I guess.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
seppesbox
post Jun 18 2005, 11:08 AM
Post #12


X-S Enthusiast


Group: Members
Posts: 4
Joined: 23-November 04
Member No.: 169887



I made a configurable dvd player setup with the help of this thread (you can configure it through the general settings tab)

in default.xip-default.xap

first search
CODE

else if (theDiscDrive.discType == "Video")     { ReStartDash(); }


and replace with
CODE

else if (theDiscDrive.discType == "Video")   { StartDVD(); }


then search
CODE

   else if (theDiscDrive.discType == "Video")
   {
       EnableInput(true);
       //StartDVDPlayer();
 
 b_dvd = true;
 theLauncherLevel.GoTo();
   }


and replace with
CODE

   else if (theDiscDrive.discType == "Video")
   {
       InitDVD();
   }


and append at the end
CODE

function StartDVD() {
var IniFile = new Settings;
IniFile.SetIniSection( "DVD" );
var b_default = IniFile.GetIniValue( "default" );
var dvdPath = IniFile.GetIniValue( "custom" );
IniFile.CloseIniFile();
if (b_default == "true")
   {
 ReStartDash();
}
else
   {
 theSettingsMenuIn.Play();
       theHardDrive.ExecuteFile(dvdPath);
}
}

function InitDVD() {
var IniFile = new Settings;
IniFile.SetIniSection( "DVD" );
var b_default = IniFile.GetIniValue( "default" );
var dvdPath = IniFile.GetIniValue( "custom" );
IniFile.CloseIniFile();

if (b_default == "true")
{
 EnableInput(true);
       //StartDVDPlayer();
 
 b_dvd = true;
 theLauncherLevel.GoTo();
}
else
{
 theSettingsMenuIn.Play();
       theHardDrive.ExecuteFile(dvdPath);
}
}


close and save default.xap

in the default.xip-config.xap

search
CODE

search function BuildMainList()


and add just before
CODE

ClearText();
UpdateText();


this code
CODE

configList[i] = "Default UIX DVD-Player:";
configValues[i] = "c-DVD-default";
configSelect[i] = "ToggleTF()";
i = i + 1;
configList[i] = "Player Path:";
configValues[i] = "c-DVD-custom";
configSelect[i] = "ConfigKeyB()";
i = i + 1;


close and save config.xap
add the modified config.xap and default.xap to default.xip

in the ini file add
CODE

[DVD]
default=false
custom=e:\apps\dvdx2\default.xbe


This was my first attempt at coding something, hope you like it. smile.gif
User is offlineProfile CardPM
Go to the top of the page
+Quote Post





Reply to this topicStart new topic

 

Lo-Fi Version Time is now: 21st May 2013 - 06:44 PM