Help - Search - Members - Calendar
Full Version: Dvd Remote Contol Fix
Scenyx Entertainment Community > Xbox1 Forums > Dashboard Forums > Official Team UIX Forums > User.Interface.X (UIX) Code
Digital_sin
i fixed the dvd remote control bug, replace your default.xip with the one you'll find here, detailed instructions inside [its simple]

uix patch

http://www.darwish.8k.com/xboxpatch/

DiGiTaL_SiN
jsrlepage
would ya mind posting the code to replace? i don'T wanna lose my fixes.
basil
Yes, please post the code. Some of us would like the not so simple instructions.
Osanya
the dl is actually the xip.. not a patch. So, you can search for the fix if you want smile.gif

btw, what problem does this fix?
basil
I assume it fixes the problem with the arrow buttons on the DVD remote not working. I know it's the xip. Searching through all the xaps to find the code he modified is a lot harder than asking him to simply post what code he changed, like everyone else does on this board. If it'll be easier for me to move all my modified code from my xip to this one then let me know. cool.gif
loggio
You're fix is good and all, but you've done something to the xap that this dash doesn't like, you've dissabled the file manager!. The remote works fine and all, but when using you're xip, i go to System and then File Manager, but you cannot enter the file manager. So you're bug fix actually created it's own bug in return. A FIX IS NEEDED!

Cheers
loggio.
Digital_sin
alright,

sorry about the file_manager thing, i'll get right on it, the same thing happened to the music tab but i noticed it before releasing this one

as for how did i do it........

to fix this problem you have to modify every xap file in defualt.xip so i cant explain them all one by one....... so here's the trick

for every

function OnLeftThumbMoveUp()
function OnLeftThumbMoveDown()
function OnLeftThumbMoveRight()
function OnLeftThumbMoveLeft()

inside any of the xaps, you have to COPY [not replace] it again but like this,

function OnMoveUp()
function OnMoveDown()
function OnMoveRight()
function OnMoveLeft()

for example, in skins.xap you'll find this somewhere near the end:-

CODE
 
   function OnLeftThumbMoveLeft()
       {
           if (nCurPlayerMenuItem == 0) { return; }
           else { nCurPlayerMenuItem = 0; }
           UpdateSkinMenu();
       }

       function OnLeftThumbMoveRight()
       {
           if (nCurPlayerMenuItem == 1) { return; }
           else { nCurPlayerMenuItem = 1; }
           UpdateSkinMenu();
       }

       function OnLeftThumbMoveUp()
       {
     if (skinSelect <= 0) { return; }
     PlaySoundMenuChange();
     skinSelect = skinSelect - 1;
     if (skinButton == 0) { skinScroll = skinScroll - 1; }
     else { skinButton = skinButton - 1; }
     theConfig.ChangeSkin( SkinMenuList[skinSelect] );
     UpdateSkinMenu();
       }

       function OnLeftThumbMoveDown()
       {
         if (skinSelect >= skinCount - 1) {  return; }
     PlaySoundMenuChange();
     skinSelect = skinSelect + 1;
     if (skinButton == 8) { skinScroll = skinScroll + 1; }
     else { skinButton = skinButton + 1; }
     theConfig.ChangeSkin( SkinMenuList[skinSelect] );
     UpdateSkinMenu();
       }



you should add the custom codes right before or after the original code so it will look like:-

CODE

       function OnMoveLeft()
       {
           if (nCurPlayerMenuItem == 0) { return; }
           else { nCurPlayerMenuItem = 0; }
           UpdateSkinMenu();
       }

       function OnMoveRight()
       {
           if (nCurPlayerMenuItem == 1) { return; }
           else { nCurPlayerMenuItem = 1; }
           UpdateSkinMenu();
       }

       function OnMoveUp()
       {
     if (skinSelect <= 0) { return; }
     PlaySoundMenuChange();
     skinSelect = skinSelect - 1;
     if (skinButton == 0) { skinScroll = skinScroll - 1; }
     else { skinButton = skinButton - 1; }
     theConfig.ChangeSkin( SkinMenuList[skinSelect] );
     UpdateSkinMenu();
       }

       function OnMoveDown()
       {
         if (skinSelect >= skinCount - 1) {  return; }
     PlaySoundMenuChange();
     skinSelect = skinSelect + 1;
     if (skinButton == 8) { skinScroll = skinScroll + 1; }
     else { skinButton = skinButton + 1; }
     theConfig.ChangeSkin( SkinMenuList[skinSelect] );
     UpdateSkinMenu();
       }

       function OnLeftThumbMoveLeft()
       {
           if (nCurPlayerMenuItem == 0) { return; }
           else { nCurPlayerMenuItem = 0; }
           UpdateSkinMenu();
       }

       function OnLeftThumbMoveRight()
       {
           if (nCurPlayerMenuItem == 1) { return; }
           else { nCurPlayerMenuItem = 1; }
           UpdateSkinMenu();
       }

       function OnLeftThumbMoveUp()
       {
     if (skinSelect <= 0) { return; }
     PlaySoundMenuChange();
     skinSelect = skinSelect - 1;
     if (skinButton == 0) { skinScroll = skinScroll - 1; }
     else { skinButton = skinButton - 1; }
     theConfig.ChangeSkin( SkinMenuList[skinSelect] );
     UpdateSkinMenu();
       }

       function OnLeftThumbMoveDown()
       {
         if (skinSelect >= skinCount - 1) {  return; }
     PlaySoundMenuChange();
     skinSelect = skinSelect + 1;
     if (skinButton == 8) { skinScroll = skinScroll + 1; }
     else { skinButton = skinButton + 1; }
     theConfig.ChangeSkin( SkinMenuList[skinSelect] );
     UpdateSkinMenu();
       }


which means, for example if you found OnLeftThumbMoveDown() anywhere on a xap, add above or under it a function OnMoveDown(), and so on for left, right and up... they're quite alot, so i would advise you to see which xap files you have modded and do them your self and replace every other xap with my xaps........

i hope you got what i mean.

DiGiTaL_SiN
Digital_sin
alright i fixed the filemanager

download it again and you're ready to go

thanks loggio for bringing my attention to that bug.
basil
Thanks a bunch for the explanation Digital_sin! The remote not working properly was the only reason this wasn't yet my default dash, and now it is! tongue.gif
jsrlepage
remote not working properly as in what?

my bug is when i plug the remote while playing a dvd and THEN unplug it, it'll stop and ask me to replug the remote.
Digital_sin
The Bug is:-

you cant use the dvd dongle to browse through your UIX dash, the only thing the dvd dongle does in the dash is go forware or back.
jsrlepage
nice one, i'm gonna apply this right NOW
basil
Digital_sin: what code did you change to fix the filemanager?
Digital_sin
thanks guys, i'm glad it worked for you all,

basil: i didn't use a code or anything, the first release was patched with a faulty file_manager.xap, that's all [i started working on this patch when i was supposed to be sleeping, so when i was done i couldn't see 2 inches ahead, i'm just glad you guys didn't get a tetris game instead of a patch tongue.gif ]

DiGiTaL_SiN
posure
i did this all manually before i saw this topic..just a note..go through every xap file in default.xip EXCEPT dvd.xap and copy those functions..dvd.xap already has functions allocated to the remote..most xap's only have a couple instances but settings.xap has a TON

also..if you wanna use the keyboard, make sure you edit default.xap in jkeyboard.xip and keyboard.xip (not sure the jkeyboard one makes a difference but i did it anyways)
evil_ted
If you add this function to the default.xip/default.xap.... look for
control DEF theMainMenuJoy Joystick
you will be able to change the background audio from the DVD remote control. The play button is a little weird.. It will actually fastforward the song (as well as play (from stopped), and resume (from pause)..


function OnSkipForward() { MusicPlayerFastForward(); }
function OnSkipBack() { MusicPlayerRewind(); }
function OnPlay() { MusicPlayerPlay(); }
function OnForward() { MusicPlayerVolumeUp(); }
function OnReverse() { MusicPlayerVolumeDown(); }
function OnPause() { theMusicPlayer.Pause(); }
function OnStop() { theMusicPlayer.Stop(); }


I used the xip thats available for download, have had no dramas with it. I will have a look into mapping the functions globally, instead of altering each xap for the area that you are in.
Digital_sin
MusicPlayerRewind() doesnt work [ you cant rewind songs] unless you add this code to default.xip/default.xap too

CODE
function MusicPlayerRewind()
{
var totaltracks = theMusicCollection.GetSoundtrackSongCount(currentAlbum) - 1;
if(currentTrack == totaltracks)
{
 currentTrack = 0;
 MusicPlayerPlay();
}
else
{
 currentTrack = currentTrack - 1;
 MusicPlayerPlay();
}
}



you can add this right above "//new addition: AudioClip playbackModes"

it would be nice to have the dvd dongle contol the music playlist anywhere in the dash not just in main menu..... but i think i'll just wait for the new version and see what comes next......

cheers

DiGiTaL_SiN

EvilTeddyBear
cant download UIXdvddonglepatch.zip

is there an alternative dl?
Digital_sin
well, there are no alternative download sources yet, i checked on it and the download works well, try using a proxy or something,

Proxy List

i'm sure this will do it, and if it doesn't post your email and i'll send it to ya....

cheers,

DiGiTaL_SiN
evil_ted
To make the DVD remote functions Global loof for


CODE

//Start and Back buttons are no longer bound to be the same as A and B buttons
//putting these functions here saves alot of pasting to make them all global
function OnBackDown()  { MusicPlayerVolumeUp();   } //back and start buttons
function OnStartDown()  { MusicPlayerVolumeDown(); } //repeat when held down
function OnBlackDown()  { theDiscDrive.OpenTray(); }
function OnWhiteDown()  { theDiscDrive.CloseTray();}


and paste the remote functions under this so it looks like

//Start and Back buttons are no longer bound to be the same as A and B buttons
//putting these functions here saves alot of pasting to make them all global
function OnBackDown() { MusicPlayerVolumeUp(); } //back and start buttons
function OnStartDown() { MusicPlayerVolumeDown(); } //repeat when held down
function OnBlackDown() { theDiscDrive.OpenTray(); }
function OnWhiteDown() { theDiscDrive.CloseTray();}
function OnSkipForward() { MusicPlayerFastForward(); }
function OnSkipBack() { MusicPlayerRewind(); }
function OnPlay() { MusicPlayerPlay(); }
function OnForward() { MusicPlayerVolumeUp(); }
function OnReverse() { MusicPlayerVolumeDown(); }
function OnPause() { theMusicPlayer.Pause(); }
function OnStop() { theMusicPlayer.Stop(); }

you can then remove the remote functions from "control DEF theMainMenuJoy Joystick"
Digital_sin
thanks evil_ted, it worked like a charm........

i heared that there's a new version comming real soon,i hope we dont have to do this all over again....


Cheers,
DiGiTaL_SiN
evil_ted
Yeah!! But I am sure we will have to do it again!!!! I cant wait till they release something with a media player, tis the 'only' thing this dash lacks.
Digital_sin
well, as for me i'm not so intrested in xbox media players, never used one, not even XBMC......... i keep my clips on my pc, and i'm happy with it..... it also has TV Out [who doesn't these days]......


that's why it would be a real shame if they assigned the 4th button to Xbmc, i know i can change it and all, but.....

what i need from UIX is, to fix all the current bugs, and leave nothing out, i mean nothing! and make the modds more user friendly... i dont have to go edit my xips and xaps everytime i want to show/hide my clock/dna, and some of the feature requests on the forum look cool, maybe add some of those, and fix this weird reboot thing that the dash keeps doing on no notice, i cant even tell when exactly it reboots, but i think its when you use the music player, ftp some data, leave it idle for a few minutes, then try to access something on the dash....

cheers,
DiGiTaL_SiN
Digital_sin
for people who cant download from the previous link, here's a new download source

UIX DVD Dongle Patch
Digital_sin
bump bump


so much for a new UIX version soon mad.gif
fixxxer575
QUOTE(evil_ted @ Jan 8 2005, 08:44 AM)
To make the DVD remote functions Global loof for
CODE

//Start and Back buttons are no longer bound to be the same as A and B buttons
//putting these functions here saves alot of pasting to make them all global
function OnBackDown()  { MusicPlayerVolumeUp();   } //back and start buttons
function OnStartDown()  { MusicPlayerVolumeDown(); } //repeat when held down
function OnBlackDown()  { theDiscDrive.OpenTray(); }
function OnWhiteDown()  { theDiscDrive.CloseTray();}


and paste the remote functions under this so it looks like

//Start and Back buttons are no longer bound to be the same as A and B buttons
//putting these functions here saves alot of pasting to make them all global
function OnBackDown()  { MusicPlayerVolumeUp();  } //back and start buttons
function OnStartDown()  { MusicPlayerVolumeDown(); } //repeat when held down
function OnBlackDown()  { theDiscDrive.OpenTray(); }
function OnWhiteDown()  { theDiscDrive.CloseTray();}
function OnSkipForward() { MusicPlayerFastForward(); }
function OnSkipBack() { MusicPlayerRewind(); }
function OnPlay() { MusicPlayerPlay(); }
function OnForward() { MusicPlayerVolumeUp(); }
function OnReverse() { MusicPlayerVolumeDown(); }
function OnPause() { theMusicPlayer.Pause(); }
function OnStop() { theMusicPlayer.Stop(); }

you can then remove the remote functions from "control DEF theMainMenuJoy Joystick"
*


where do you put this code? In default.xip/default.xap?
If so where inside default.xap?
Thanks
Teldin
Bump. (just saw this) would have helped yesterday smile.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2013 Invision Power Services, Inc.