Help - Search - Members - Calendar
Full Version: Info Panel
Scenyx Entertainment Community > Xbox1 Forums > Dashboard Forums > Official Team UIX Forums > User.Interface.X (UIX) Code
Pages: 1, 2, 3, 4
slick50zd
here is my wip
user posted image
it looks kinda dumb only showing fan speed
the codes about 60% done
and you will be able to configure what info you want displayed via the in dash config
LyfsUXKuNT
hey nice one slick! looks great!
slick50zd
thx LyfsUXKuNT
i'm having a couple bugs with the ini configuration part so i think i will post what i have later(im at school) without the ini, that will come later

heres what the presets are(if anyone cares biggrin.gif )
-fan speed
-AV pack type
-CPU temp
-Free space on F + G(for those who use the g drive)
-Ip Adress

oh ya i forgot to metion, credit to clif and dazza and who ever else worked on the original song title etc. stuff as that is what my code is based off of
LyfsUXKuNT
i'm looking forward to it! a few questions though:

will the cpu temp preset include hdd temp and mobo temp?

and also can you configure hard drive space to include E:\?
clif
thanks slick50zd,
QUOTE
i'm looking forward to it! a few questions though:

will the cpu temp preset include hdd temp and mobo temp?

and also can you configure hard drive space to include E:\?


if its not relesed with that i can make it changable in the config, if thats ok with slick50zd smile.gif
slick50zd
actually clif ive had this code 90% done for a couple of days now but ive been stuck on one thing with the ini setup. I cant get the reading of the ini to work mad.gif maybe u can help me out this is what i have for the display function,
CODE

function ChangeDisplay()
{
   var sTopText = "";
   var sBotText = "";
   var sMainText = "";
   sTopText = "Info";
   sBotText = "Panel";
   var IniFile = new Settings;
   IniFile.SetIniSection("Info Panel");
   for(var i = 1; i < 6; i = i + 1)
   {
       var Info = new Array(5);
       var in = "info" + i;
       Info[i] = IniFile.GetIniValue(in);
       if(Info[i] == "fanspeed") { sMainText = "hello"; } <- this line is the problem.
   }
   IniFile.CloseIniFile();
   var c = theMainMenu.children[0].children[0];
   c.theClock_text.children[0].children[0].geometry.text = sMainText;
   c.Clock_panel_header_text.text = sTopText;
   c.Clock_panel_support_03_text.text = sBotText;
}


the rest works just fine until i add the "If(info[i]....." line no matter what the contents of the if then statement(the above was just a test) it always causes a "dirty disc error" its been driving me crazy maybe you or someone else could help me, like i said everything else is done except for that one part. and yes if i can get this to work there will be tons of options for the display

and here is a updated screen
user posted image
-any help is GREATLY appreciated
thesbk
Dammed ! great job man !
Goggens
looks just greate.

Would be nice with the complete code and where to put it.

Thanks.
slick50zd
well here it is -well without ini config sad.gif but with the help of dazza it should be coming soon

u know allready what it looks like so heres the code
first open default.xip/default.xap and find this
CODE

DEF theLauncherLevel Level
{
   function OnArrival()
   {
       DisableAmbientAudio();
       BlockMemoryUnitEnumeration();
       ClosePopup();
       g_bAboutToReboot = true;
       if(theConfig.GetVideoMode() == 2) { theXboxLogo16x9Background.isBound = true; }
       else { theXboxLogo4x3Background.isBound = true; }
   }

   behavior
   {
       sleep 1.1;
       ChangeDisplay();
       if(g_bAboutToReboot)
       {
  if( b_restart == true ) { theConfig.ReStartDash(); }
  else if( b_dvd == true ) { StartDVDPlayer(); }
  else { theDiscDrive.LaunchDisc(); }
       }
   }

   function OnActivate()
   {
       DisableAmbientAudio();
       BlockMemoryUnitEnumeration();
       ClosePopup();
       //EnableInput(false);
       if(theConfig.GetVideoMode() == 2) { theXboxLogo16x9Background.isBound = true; }
       else { theXboxLogo4x3Background.isBound = true; }
   }
}

and insert this after it
CODE

behavior
{
  sleep 1;
  ChangeDisplay();
}

and now insert this at the end of default.xap
CODE

function ChangeDisplay()
{

var sTopText = "";
var sBotText = "";
var sMainText = "";
sTopText = "Info";
sBotText = "Panel";
var nIntTemp = theConfig.GetCPUTemp();
var CputempF = Math.round(nIntTemp * 9/5 + 32);
var TotalFree = theHardDrive.GetFreeSpace("E:\\") + theHardDrive.GetFreeSpace("F:\\") + theHardDrive.GetFreeSpace("G:\\");

       sMainText = "Fan Speed = " + theConfig.GetFanSpeed()*2 + "%\r";
       sMainText = sMainText + "AV Pack Type = " + theConfig.GetAVPackType() + "\r";
       sMainText = sMainText + "CPU Temp = " + CputempF + "F\r";
       sMainText = sMainText + "Total Free Space = " + TotalFree + "MB\r";
       sMainText = sMainText + "IP Adress = " + theXboxNetwork.GetXboxIP();
   
var c = theMainMenu.children[0].children[0];
c.theClock_text.children[0].children[0].geometry.text = sMainText;
c.Clock_panel_header_text.text = sTopText;
c.Clock_panel_support_03_text.text = sBotText;
}

now close that and open main_menu.xip/default.xap
and insert this at the end
CODE

DEF theMainMenuClock Transform
{
children
[
DEF Clock_panel_backing Transform
{
children
[
Shape
{
appearance Appearance
{
material MaxMaterial
{
name "PanelBacking_01"
}
texture ImageTexture
{
url "clock_bgpanel.tga"
alpha true
}
}
geometry DEF Clock_panel_backing-FACES Mesh { url "Clock_panel_backing-FACES.xm" }
}
]
rotation -0.577400 -0.577400 0.577400 -4.189000
scale 0.290400 0.290400 0.290400
scaleOrientation 0.000000 -0.813400 -0.581800 -0.339400
translation 2.992000 -2.790000 1.642000
}
DEF Clock_panel_header Transform
{
children
[
Shape
{
appearance Appearance
{
material MaxMaterial
{
name "FlatSurfaces"
}
}
geometry DEF Clock_panel_header-FACES Mesh { url "Clock_panel_header-FACES.xm" }
}
]
rotation -1.000000 0.000000 0.000000 -1.571000
scale 0.290400 0.290400 0.290400
translation 0.882600 -0.187000 1.655000
}
DEF Clock_panel_header_text Transform
{
children
[
Shape
{
appearance Appearance
{
material MaxMaterial
{
name "NavType"
}
}
geometry DEF Clock_panel_header_text Text { font "Body" text "XBOX" }

}
]
rotation 0.000000 0.000000 0.000000 0.000000
scale 0.490400 0.250400 0.490400
translation -0.960000 -0.167000 1.600000
}
DEF Clock_panel_support_01 Transform
{
children
[
Shape
{
appearance Appearance
{
material MaxMaterial
{
name "FlatSurfaces"
}
}
geometry DEF Clock_panel_support_01-FACES Mesh { url "Clock_panel_support_01-FACES.xm" }
}
]
rotation 0.577400 0.577400 0.577400 -4.189000
scale 0.290400 0.290400 0.290400
scaleOrientation 0.001685 0.000000 -1.000000 -0.031540
translation -1.057000 -2.067000 1.657000
}
DEF Clock_panel_support_02 Transform
{
children
[
Shape
{
appearance Appearance
{
material MaxMaterial
{
name "FlatSurfaces"
}
}
geometry DEF Clock_panel_support_02-FACES Mesh { url "Clock_panel_support_02-FACES.xm" }
}
]
rotation 1.000000 0.000000 0.000000 -1.571000
scale 0.290400 0.290400 0.290400
translation -0.506800 -0.529800 1.654000
}
DEF Clock_panel_support_03 Transform
{
children
[
Shape
{
appearance Appearance
{
material MaxMaterial
{
name "GamePod"
//name "FlatSurfaces"
}
}
geometry DEF Clock_panel_support_03-FACES Mesh { url "Clock_panel_support_03-FACES.xm" }
}
]
rotation 0.577400 0.577400 0.577400 -4.189000
scale 0.290400 0.290400 0.290400
scaleOrientation 0.001685 0.000000 -1.000000 -0.031540
translation -1.519000 -1.669000 1.657000
}
DEF Clock_panel_support_03_text Transform
{
children
[
Shape
{
appearance Appearance
{
material MaxMaterial
{
name "NavType"
}
}
geometry DEF Clock_panel_support_03_text Text { font "Body" text "NAME" }

}
]
rotation 0.000000 0.000000 0.000000 0.000000
scale 0.490400 0.250400 0.490400
translation 2.779000 -1.947000 1.657000
}
DEF theClock_text Transform
{
 children
 [
   Transform
   {
     rotation 1 0 0 -1.571
     scale 0.5 0.3 0.5
     translation 0 0 0
     children
     [
       Shape
       {
         appearance Appearance
         {
           material MaxMaterial
           {
             name "NavType"
           }
         }
         geometry Text { font "body" justify "right" translate false text "slick50zd" }
       }
     ]
   }
 ]
 rotation -90.000000 0.002966 0.000000 -1.551000
 scale .700000 .700000 .700000
 translation -0.860000 -0.56 1.654000
}

]
rotation 0 0 0.1 0.02
scale 70.000000 100.000000 40.000000
translation -325.1900002 -140.261000 -210.399994
}

thats it biggrin.gif
here are the presets:

fanspeed
av type
cpu temp(in FarenHeight)
total free space(E+F+G(g not tested as i have one big F drive so someone should test it))
and ip adress

note for those new to this: this does not contain the clock, skin, or four main menu tabs as seen in the second screenshot, you can find those around here

hope u all enjoy and if there are any bugs please post and i will fix as soon as possible
slick50zd
well with the help of dazza the ini config is complete i just need to add in a few more options so it should be up tomorrow so heres one more screen
user posted image

biggrin.gif
LyfsUXKuNT
omg! you are teh pWNz0rZ!!!! i can't wait to add this in!
LyfsUXKuNT
ahhhhhhhhhhhhh i did something wrong?!?!?!?!!

i only boot up to my background image, no dash. good thing i have a dual boot smile.gif . is there anything i could've done wrong?

before i added your code, i already had code for the clock display in the bottom left hand side of my dash. so i deleted that code in order to add in your code. hmmm...maybe that's the problem. weird though, you said at the end of your post that your code didn't include the clock, but the clock code is in there you posted?

thanks for the help
Goggens
I have the same problem.

When i boot i get background, and the box freezes.

Anybody knows what the problem is?


Thanks.
slick50zd
QUOTE(Goggens @ Jan 31 2005, 09:07 AM)
I have the same problem.

When i boot i get background, and the box freezes.

Anybody knows what the problem is?
Thanks.
*


ill have to check it out when i get home my first guess is that i didnt completely remove the clocks code which caused the error, so im going to follow my own instructions and see what happens im sorry for the problems
billybobxxx
hi slick50zd,

when will you post the rest of the code to change the display information from the config menu?

thanks

slick50zd
well here it is, and tested biggrin.gif
it was tested with virgin xips and the fixed .xbe and works if that matters
it now contains the clock

note: if youve allready used the old one just replace it with this

well here we go
open default.xip/default.xap and find this
CODE

function OnActivate()
   {
       DisableAmbientAudio();
       BlockMemoryUnitEnumeration();
       ClosePopup();
       //EnableInput(false);
       if(theConfig.GetVideoMode() == 2) { theXboxLogo16x9Background.isBound = true; }
       else { theXboxLogo4x3Background.isBound = true; }
   }
}

and place this right after it
CODE

behavior
{
  sleep 1;
  ChangeDisplay();
}

now find place this function at the end
CODE

function ChangeDisplay()
{
var sTopText = "";
var sBotText = "";
var sMainText = "";

sTopText = "Info";
sBotText = "Panel";

var nIntTemp = theConfig.GetCPUTemp();
var CputempF = Math.round(nIntTemp * 9/5 + 32);
var TotalFree = theHardDrive.GetFreeSpace("E:\\") + theHardDrive.GetFreeSpace("F:\\") +  theHardDrive.GetFreeSpace("G:\\");

//
// New Code for Config
//

var IniFile = new Settings;
IniFile.SetIniSection( "Info Panel" );
var infoline = "";

for (var i = 1; i < 6; i = i + 1)
{
    infoline = "info" + i;
     var a = IniFile.GetIniValue( infoline );

    if (a == "fanspeed")
    {
     sMainText = sMainText + "Fan Speed = " + theConfig.GetFanSpeed()*2 + "%\r";
    }
    else if (a == "avtype")
    {
     sMainText = sMainText + "AV Pack Type = " + theConfig.GetAVPackType() + "\r";
    }
    else if (a == "cputemp")
    {
     sMainText = sMainText + "CPU Temp = " + CputempF + "F\r";
    }
    else if (a == "freespacee")
    {
     sMainText = sMainText + "Free Space E = " + theHardDrive.GetFreeSpace("E:\\") + "MB\r";
    }
    else if (a == "freespacef")
    {
     sMainText = sMainText + "Free Space F = " + theHardDrive.GetFreeSpace("F:\\") + "MB\r";
    }
    else if (a == "freespaceg")
    {
        sMainText = sMainText + "Free Space G = " + theHardDrive.GetFreeSpace("G:\\") + "MB\r";
    }
    else if (a == "freespace")
    {
     sMainText = sMainText + "Total Free Space = " + TotalFree + "MB\r";
    }
    else if (a == "ipaddress")
    {
            sMainText = sMainText + "IP Adress = " + theXboxNetwork.GetXboxIP() + "\r";
    }
 }    
IniFile.CloseIniFile();

//
// New Code for Config
//

var c = theMainMenu.children[0].children[0];
c.theClock_text.children[0].children[0].geometry.text = sMainText;
c.Clock_panel_header_text.text = sTopText;
c.Clock_panel_support_03_text.text = sBotText;
}

now close that and open default.xip/config.xap and find this
CODE

i = i + 1;
   configList[i] = "Menus Use Names From xbe:";
configValues[i] = "c-Naming Method-use xbe names";
configSelect[i] = "ToggleUseXBENames()";
i = i + 1;
   configList[i] = "AutoLaunch Inserted Media:";
configValues[i] = "c-AutoLaunch Media-Launch On Insert";
configSelect[i] = "ToggleAutoLaunchMedia()";
i = i + 1;
configList[i] = "Background Music Start on Boot:";
configValues[i] = "c-Music On Boot-enabled"; //section-value
configSelect[i] = "ToggleTF()";
i = i + 1;
configList[i] = "Music Initial Volume:";
configValues[i] = "c-Music On Boot-volume";
configSelect[i] = "ConfigKeyB()";
 i = i + 1;

and insert this right after it
CODE

 configList[i] = "Info Panel-Info 1 Displays:";
configValues[i] = "c-Info Panel-info1";
configSelect[i] = "ToggleInfoType()";
i = i + 1;
 configList[i] = "Info Panel-Info 2 Displays:";
configValues[i] = "c-Info Panel-info2";
configSelect[i] = "ToggleInfoType()";
i = i + 1;
 configList[i] = "Info Panel-Info 3 Displays:";
configValues[i] = "c-Info Panel-info3";
configSelect[i] = "ToggleInfoType()";
i = i + 1;
 configList[i] = "Info Panel-Info 4 Displays:";
configValues[i] = "c-Info Panel-info4";
configSelect[i] = "ToggleInfoType()";
i = i + 1;
 configList[i] = "Info Panel-Info 5 Displays:";
configValues[i] = "c-Info Panel-info5";
configSelect[i] = "ToggleInfoType()";
i = i + 1;

now find this
CODE

function ConfigKeyB()
{
var c = theConfigPanel.children[0].children[0];
var a = c.theLeftSlots.children[LV2Item].children[0].geometry.text; //title
var b = c.theRightSlots.children[LV2Item].children[0].geometry.text; //edit
ShowKeyboard(a, b, "theConfigInline.children[0].RefreshMenu(strKeyboardEdit)", "");
}

and insert this after it
CODE

function ToggleInfoType()
{  
 var c = theConfigPanel.children[0].children[0];
var b = c.theRightSlots.children[LV2Item].children[0].geometry.text;
if(b.toLowerCase() == "fanspeed") { RefreshMenu("avtype"); }
else if(b.toLowerCase() == "avtype") { RefreshMenu("cputemp"); }
 else if(b.toLowerCase() == "cputemp") { RefreshMenu("freespace"); }
 else if(b.toLowerCase() == "freespace") { RefreshMenu("freespacee"); }
 else if(b.toLowerCase() == "freespacee") { RefreshMenu("freespacef"); }
 else if(b.toLowerCase() == "freespacef") { RefreshMenu("freespaceg"); }
 else if(b.toLowerCase() == "freespaceg") { RefreshMenu("ipaddress"); }
 else if(b.toLowerCase() == "ipaddress") { RefreshMenu("fanspeed"); }
 else { RefreshMenu("fanspeed"); }
}

now close that and open main_menu.xip/default.xap and insert this at the bottom
CODE

DEF theMainMenuClock Transform
{
children
[
DEF Clock_panel_backing Transform
{
children
[
Shape
{
appearance Appearance
{
material MaxMaterial
{
name "PanelBacking_01"
}
texture ImageTexture
{
url "clock_bgpanel.tga"
alpha true
}
}
geometry DEF Clock_panel_backing-FACES Mesh { url "Clock_panel_backing-FACES.xm" }
}
]
rotation -0.577400 -0.577400 0.577400 -4.189000
scale 0.290400 0.290400 0.290400
scaleOrientation 0.000000 -0.813400 -0.581800 -0.339400
translation 2.992000 -2.790000 1.642000
}
DEF Clock_panel_header Transform
{
children
[
Shape
{
appearance Appearance
{
material MaxMaterial
{
name "FlatSurfaces"
}
}
geometry DEF Clock_panel_header-FACES Mesh { url "Clock_panel_header-FACES.xm" }
}
]
rotation -1.000000 0.000000 0.000000 -1.571000
scale 0.290400 0.290400 0.290400
translation 0.882600 -0.187000 1.655000
}
DEF Clock_panel_header_text Transform
{
children
[
Shape
{
appearance Appearance
{
material MaxMaterial
{
name "NavType"
}
}
geometry DEF Clock_panel_header_text Text { font "Body" text "DATE" }

}
]
rotation 0.000000 0.000000 0.000000 0.000000
scale 0.490400 0.490400 0.490400
translation -0.960000 -0.167000 1.600000
}
DEF Clock_panel_support_01 Transform
{
children
[
Shape
{
appearance Appearance
{
material MaxMaterial
{
name "FlatSurfaces"
}
}
geometry DEF Clock_panel_support_01-FACES Mesh { url "Clock_panel_support_01-FACES.xm" }
}
]
rotation 0.577400 0.577400 0.577400 -4.189000
scale 0.290400 0.290400 0.290400
scaleOrientation 0.001685 0.000000 -1.000000 -0.031540
translation -1.057000 -2.067000 1.657000
}
DEF Clock_panel_support_02 Transform
{
children
[
Shape
{
appearance Appearance
{
material MaxMaterial
{
name "FlatSurfaces"
}
}
geometry DEF Clock_panel_support_02-FACES Mesh { url "Clock_panel_support_02-FACES.xm" }
}
]
rotation 1.000000 0.000000 0.000000 -1.571000
scale 0.290400 0.290400 0.290400
translation -0.506800 -0.529800 1.654000
}
DEF Clock_panel_support_03 Transform
{
children
[
Shape
{
appearance Appearance
{
material MaxMaterial
{
name "GamePod"
//name "FlatSurfaces"
}
}
geometry DEF Clock_panel_support_03-FACES Mesh { url "Clock_panel_support_03-FACES.xm" }
}
]
rotation 0.577400 0.577400 0.577400 -4.189000
scale 0.290400 0.290400 0.290400
scaleOrientation 0.001685 0.000000 -1.000000 -0.031540
translation -1.519000 -1.669000 1.657000
}
DEF Clock_panel_support_03_text Transform
{
children
[
Shape
{
appearance Appearance
{
material MaxMaterial
{
name "NavType"
}
}
geometry DEF Clock_panel_support_03_text Text { font "Body" text "TIME" }

}
]
rotation 0.000000 0.000000 0.000000 0.000000
scale 0.490400 0.490400 0.490400
translation 2.779000 -1.947000 1.657000
}
DEF theClock_text Transform
{
children
[
Transform
{
rotation 1 0 0 -1.571
scale 0.55 1.1 0.9
translation 0 0 0
children
[
Shape
{
appearance Appearance
{

material MaxMaterial
{
name "NavType"
}
}
geometry Text { font "body" justify "middle" translate false text "<clock>" }
}
]
}
]
rotation -90.000000 0.002966 0.000000 -1.551000
scale 1.000000 1.000000 1.000000
translation 1.500000 -1.239800 1.654000
}



]
rotation 0 0 -1000.1 0.02
scale 40.000000 40.000000 40.000000
translation 170.1900002 -250.261000 -210.399994
}








DEF theMainMenuClock Transform
{
children
[
DEF Clock_panel_backing Transform
{
children
[
Shape
{
appearance Appearance
{
material MaxMaterial
{
name "PanelBacking_01"
}
texture ImageTexture
{
url "clock_bgpanel.tga"
alpha true
}
}
geometry DEF Clock_panel_backing-FACES Mesh { url "Clock_panel_backing-FACES.xm" }
}
]
rotation -0.577400 -0.577400 0.577400 -4.189000
scale 0.290400 0.290400 0.290400
scaleOrientation 0.000000 -0.813400 -0.581800 -0.339400
translation 2.992000 -2.790000 1.642000
}
DEF Clock_panel_header Transform
{
children
[
Shape
{
appearance Appearance
{
material MaxMaterial
{
name "FlatSurfaces"
}
}
geometry DEF Clock_panel_header-FACES Mesh { url "Clock_panel_header-FACES.xm" }
}
]
rotation -1.000000 0.000000 0.000000 -1.571000
scale 0.290400 0.290400 0.290400
translation 0.882600 -0.187000 1.655000
}
DEF Clock_panel_header_text Transform
{
children
[
Shape
{
appearance Appearance
{
material MaxMaterial
{
name "NavType"
}
}
geometry DEF Clock_panel_header_text Text { font "Body" text "XBOX" }

}
]
rotation 0.000000 0.000000 0.000000 0.000000
scale 0.490400 0.250400 0.490400
translation -0.960000 -0.167000 1.600000
}
DEF Clock_panel_support_01 Transform
{
children
[
Shape
{
appearance Appearance
{
material MaxMaterial
{
name "FlatSurfaces"
}
}
geometry DEF Clock_panel_support_01-FACES Mesh { url "Clock_panel_support_01-FACES.xm" }
}
]
rotation 0.577400 0.577400 0.577400 -4.189000
scale 0.290400 0.290400 0.290400
scaleOrientation 0.001685 0.000000 -1.000000 -0.031540
translation -1.057000 -2.067000 1.657000
}
DEF Clock_panel_support_02 Transform
{
children
[
Shape
{
appearance Appearance
{
material MaxMaterial
{
name "FlatSurfaces"
}
}
geometry DEF Clock_panel_support_02-FACES Mesh { url "Clock_panel_support_02-FACES.xm" }
}
]
rotation 1.000000 0.000000 0.000000 -1.571000
scale 0.290400 0.290400 0.290400
translation -0.506800 -0.529800 1.654000
}
DEF Clock_panel_support_03 Transform
{
children
[
Shape
{
appearance Appearance
{
material MaxMaterial
{
name "GamePod"
//name "FlatSurfaces"
}
}
geometry DEF Clock_panel_support_03-FACES Mesh { url "Clock_panel_support_03-FACES.xm" }
}
]
rotation 0.577400 0.577400 0.577400 -4.189000
scale 0.290400 0.290400 0.290400
scaleOrientation 0.001685 0.000000 -1.000000 -0.031540
translation -1.519000 -1.669000 1.657000
}
DEF Clock_panel_support_03_text Transform
{
children
[
Shape
{
appearance Appearance
{
material MaxMaterial
{
name "NavType"
}
}
geometry DEF Clock_panel_support_03_text Text { font "Body" text "NAME" }

}
]
rotation 0.000000 0.000000 0.000000 0.000000
scale 0.490400 0.250400 0.490400
translation 2.779000 -1.947000 1.657000
}
DEF theClock_text Transform
{
 children
 [
   Transform
   {
     rotation 1 0 0 -1.571
     scale 0.5 0.3 0.5
     translation 0 0 0
     children
     [
       Shape
       {
         appearance Appearance
         {
           material MaxMaterial
           {
             name "NavType"
           }
         }
         geometry Text { font "body" justify "right" translate false text ".:ImOlAtE:." }
       }
     ]
   }
 ]
 rotation -90.000000 0.002966 0.000000 -1.551000
 scale .700000 .700000 .700000
 translation -0.860000 -0.56 1.654000
}

]
rotation 0 0 0.1 0.02
scale 70.000000 100.000000 40.000000
translation -325.1900002 -140.261000 -210.399994
}

now close that and find you Uix.ini file and add this to the bottom
CODE

[Info Panel]
info4=freespace
info1=ipaddress
info2=avtype
info3=cputemp
info5=fanspeed

and thats it
and like i said i tested this using these exact instructions but if it doesnt work i would like to know as soon as possible

even with the configurability there arent a ton of options but its a good platform to
work off of, this is because i want to get this done because i am gonna start something that will be ten times better that this -hopefully lol

finally this would not have happened with out the help of dazza
-enjoy, slick50zd
Infamous_One
Whats happens if i already have the clock? , and how would i make it to only show F HD size and IP. 5 things is way too big and makes it look ugly.
Goggens
This is to strange??

I have 2 xbox's one v1.1 and one v1.4

The code works just fine on the 1.4, but on the 1.1 it locks up at the background of the dash(FTP is still usable).

I have tried different bioses, different hdds, different dvd-roms always the same.

So i started adding and removing code to try and fing out why i happens.

And what i found is this:

When i remove these 3 lines
CODE

c.theClock_text.children[0].children[0].geometry.text = sMainText;
c.Clock_panel_header_text.text = sTopText;
c.Clock_panel_support_03_text.text = sBotText;



form the end of the default.xip/default.xap code, the dash "works" again, the infopanel does not show anything but it's there and the clock is there. and the ini settings is there to change.

As soon as i add any or all of these 3 lines in the default.xip/default.xap code, the dash locks up on the background.

Anyone got any idea why this happens on my v 1.1 Xbox??

Thanks very much.
slick50zd
i dont know this is why i was sick and tired of this because it was so hard to get it to work even with no apparent errors i have a 1.0 and it works fine i think it might have to do with the functions like getXboxversion will not work on my xbox how about you infamous one did it work for u? if so what version xbox do u have?

and those three lines of code are what display the text wink.gif
LyfsUXKuNT
hey slick i'll add it in today and post the results later. great job btw, just to drop credit where it's deserved smile.gif.
LyfsUXKuNT
hmmmm...it boots up great in the default green skin, but once i change it back to my custom skin it just freezes in my background like the old code. lol it's not that big of a problem, but i just finished my 3 weeks of work on my skin and it would suck if i couldn't use it with this awesome code sad.gif .
LyfsUXKuNT
(sorry for triple post...)

i'm guessing it has to do with adding some of the other code. the other code snippets i've added pertaining to my custom skin are using the xbox4.xbx as the orb, but switching that on and off wouldn't solve the problem. and i also changed the .xbx used to display the background image. that's it. hope it helps!


UPDATE!!!: ok it's definitely my background image. i deleted my background image after backing up my skin and it boots perfect without it.
slick50zd
thank god im finally glad to get and answer thank you!!
Infamous_One
v1.0 here , tried it and i get an empty main , nothing just background and frozen.
LyfsUXKuNT
oh yes and i forgot to add that you spelled Ip Address wrong in the panel LOL. that's one thing i can fix on my own though smile.gif. you spelled it "IP Adress".
billybobxxx
v1.0, 1.4 and 1.6 all works very great. Seen no ploblem with any of this xbox version
Goggens
Have tested every thing i can thing of, tested with virgin xips and the fixed .xbe and orginal xbe. complete clean install, don't work on my v1.1 xbox no matter what.

This is sad sad.gif sad.gif sad.gif
slick50zd
this is the strangest thing ever im really sorry for those of you that it doesnt work for sad.gif
Tru@ce
Goggens, delete your 0ffeeff0 file in UDATA. smile.gif

Ciao.
LyfsUXKuNT
hey tru@ce, what's in that folder? because if that works then i'll probably do that too, because i want my naruto skin!!!!
HoBoz
I can get the panel and the text "XBOX", "NAME" but no info in the panel except ".:ImOlAtE:."
LyfsUXKuNT
hey if anyone can get this working with a background image then please post your solution right away. i've temporarily taken out my background image and hopefully someone will find a fix for the problem.

oh and clearing out the cache didn't work sad.gif.
Goggens
QUOTE(Tru@ce @ Feb 3 2005, 12:45 AM)
Goggens, delete your 0ffeeff0 file in UDATA.  smile.gif

Ciao.
*



If you look up you can see i have tried that.

"complete clean install, don't work on my v1.1 xbox no matter what. "

But thanks anyways
roffle
QUOTE(Goggens @ Feb 2 2005, 12:55 AM)
This is to strange??

And what  i found is this:

When i remove these 3 lines
CODE

c.theClock_text.children[0].children[0].geometry.text = sMainText;
c.Clock_panel_header_text.text = sTopText;
c.Clock_panel_support_03_text.text = sBotText;

form the end of the default.xip/default.xap code, the dash "works" again,  the infopanel does not show anything but it's there and the clock is there. and the ini settings is there to change.

Anyone got any idea why this happens on my v 1.1 Xbox??

Thanks very much.
*



" the infopanel does not show anything but it's there "
Ok i have a 1.1 xbox and i had the exact same problem but its fixed now. All you do is ftp into your xbox and right click uix.ini, click on edit you should see that
[Info Panel]
info4=freespace
info1=ipaddress
info2=avtype
info3=cputemp
info5=fanspeed
is missing so just copy paste it and click save.
I don't know why it wasn't there too start with possible ftp overight issues but if you do it this way it will add it for sure. This may work for you or may not, I'm just letting people know how i fixed it. So basically check your .ini and make sure those lines are there.
LyfsUXKuNT
grr.gif ahhhhhhhhh stil can't find how to use this with a background image!!!!
roffle
Who ever has gotten this mod to work will realise the date/clock snippet is not positioned correctly on the screen, like it isnt sitting straight on the screen (you can see what im talking about in his screenshots). If anyone knows how to fix the positioning of the date/clock or removal of the clock completely please post the fix.
blade_boy1
QUOTE(roffle @ Feb 4 2005, 03:41 AM)
Who ever has gotten this mod to work will realise the date/clock snippet is not positioned correctly on the screen, like it isnt sitting straight on the screen (you can see what im talking about in his screenshots). If anyone knows how to fix the positioning of the date/clock or removal of the clock completely please post the fix.
*



In the main_menu/default you need to play around with the translation numbers in this part of the code (or whatever code is used to display your clock, it can differ as some people have modded differently):
CODE

DEF theClock_text Transform
{
children
[
  Transform
  {
    rotation 1 0 0 -1.571
    scale 0.5 0.3 0.5
    translation 0 0 0
    children
    [
      Shape
      {
        appearance Appearance
        {
          material MaxMaterial
          {
            name "NavType"
          }
        }
        geometry Text { font "body" justify "right" translate false text "slick50zd" }
      }
    ]
  }
]
rotation -90.000000 0.002966 0.000000 -1.551000
scale .700000 .700000 .700000
translation -0.860000 -0.56 1.654000
}


Might be best to just search for <clock> in your main_menu/default. Then scroll down until you find the first line that says translation # # #. Then just play around with the three numbers. The first number is for X-axis, the second is Y-axis and the third is Z-axis. But you will probably just need to play with the X or Y since you seem to notice some sort of misalignment somewhere. blink.gif

cheers
mrmodem
ok i see some ppl getting problems... i just whipped up this code here and it works for me .. u all can try it out..

i did this based on slicks first code post in this forum for the regular info panel without the config


the changes are as follows.

open your uix.ini file in your system folder of UIX

add these lines to the bottom of this file.... save it and upload it back to its original folder.. if you are using flashfxp you can edit it right there on the server.

CODE

[InfoPanel]
info5=avtype
info4=freespace
info3=cputemp
info2=fanspeed
info1=ipaddress



next .. open up default.xip/default.xap

go down to

CODE

function ChangeDisplay()
{    


delete everything in this function so it looks like this

CODE

function ChangeDisplay()
{    

}


now put this code in between the { } brackets

CODE

var line1;
var line2;
var line3;
var line4;
var line5;
var fanspeedtext;
var avtypetext;
var cputext;
var freespacetext;
var ipaddresstext;
var showmyinfo;
var sTopText = "";
var sBotText = "";
var sMainText = "";
sTopText = "My XBOX Info";
sBotText = "XBOX ";
var nIntTemp = theConfig.GetCPUTemp();
var CputempF = Math.round(nIntTemp * 9/5 + 32);
var TotalFree = theHardDrive.GetFreeSpace("E:\\") + theHardDrive.GetFreeSpace("F:\\") + theHardDrive.GetFreeSpace("G:\\");
cputext = "CPU Temp = " + CputempF + "F";
freespacetext= "Total Free Space = " + TotalFree + "MB";
ipaddresstext = "IP Address = " + theXboxNetwork.GetXboxIP();
fanspeedtext = "Fan Speed = " + theConfig.GetFanSpeed()*2 + "%";
avtypetext = "AV Pack Type = " + theConfig.GetAVPackType();

var myline = new Array(5);
 var mylinetext = new Array(5);

 var IniFile = new Settings;
   IniFile.SetIniSection( "InfoPanel" );
  line1 = IniFile.GetIniValue("info1");
   line2 = IniFile.GetIniValue("info2");
   line3 = IniFile.GetIniValue("info3");
     line4 = IniFile.GetIniValue("info4");
   line5 = IniFile.GetIniValue("info5");
     IniFile.CloseIniFile();

 myline[1] = line1;
 myline[2] = line2;
 myline[3] = line3;
myline[4] = line4;
 myline[5] = line5;

 for (var i=1; i < 6; i = i + 1) {

   if (myline[i] == "cputemp") {mylinetext[i] = cputext; }
   if (myline[i] == "freespace") { mylinetext[i] = freespacetext; }
   if (myline[i] == "ipaddress") { mylinetext[i] = ipaddresstext; }
   if (myline[i] == "fanspeed") { mylinetext[i] = fanspeedtext; }
   if (myline[i] == "avtype") { mylinetext[i] = avtypetext; }
   }


sMainText = mylinetext[1] + "\r" + mylinetext[2] + "\r" + mylinetext[3] + "\r" + mylinetext[4] + "\r" + mylinetext[5];


var c = theMainMenu.children[0].children[0];
c.theClock_text.children[0].children[0].geometry.text = sMainText;
c.Clock_panel_header_text.text = sTopText;
c.Clock_panel_support_03_text.text = sBotText;  


SAVE default.xap and insert it back into default.xap

next you have to edit default.xip/config.xap

look for this line ...

CODE

function BuildMainList()
{


scroll down till u see these lines

CODE

configList[i] = "Music Initial Volume:";
   configValues[i] = "c-Music On Boot-volume";
   configSelect[i] = "ConfigKeyB()";
   i = i + 1;


insert these lined directly below this ...

CODE

 configList[i] = "Info Panel - Line 1:";
   configValues[i] = "c-InfoPanel-info1";
   configSelect[i] = "SelectInfoPanelData1()";
   i = i + 1;
   configList[i] = "Info Panel - Line 2:";
   configValues[i] = "c-InfoPanel-info2";
   configSelect[i] = "SelectInfoPanelData2()";
   i = i + 1;
   configList[i] = "Info Panel - Line 3:";
   configValues[i] = "c-InfoPanel-info3";
   configSelect[i] = "SelectInfoPanelData3()";
   i = i + 1;
   configList[i] = "Info Panel - Line 4:";
   configValues[i] = "c-InfoPanel-info4";
   configSelect[i] = "SelectInfoPanelData4()";
   i = i + 1;
   configList[i] = "Info Panel - Line 5:";
   configValues[i] = "c-InfoPanel-info5";
   configSelect[i] = "SelectInfoPanelData5()";
   i = i + 1;    


so the function will now look like this ...

CODE

function BuildMainList()
{
   var i = 0;
   configList = new Array;
   configValues = new Array;
   configSelect = new Array;
   configList[i] = "Dash Style:";
   configValues[i] = "c-Dashboard Settings-Dash Style";
   configSelect[i] = "ToggleMM()";
   i = i + 1;
   configList[i] = "Menus Use Names From xbe:";
   configValues[i] = "c-Naming Method-use xbe names";
   configSelect[i] = "ToggleUseXBENames()";
   i = i + 1;
   configList[i] = "AutoLaunch Inserted Media:";
   configValues[i] = "c-AutoLaunch Media-Launch On Insert";
   configSelect[i] = "ToggleAutoLaunchMedia()";
   i = i + 1;
   configList[i] = "Background Music Start on Boot:";
   configValues[i] = "c-Music On Boot-enabled"; //section-value
   configSelect[i] = "ToggleTF()";
   i = i + 1;
   configList[i] = "Music Initial Volume:";
   configValues[i] = "c-Music On Boot-volume";
   configSelect[i] = "ConfigKeyB()";
   i = i + 1;
   configList[i] = "Info Panel - Line 1:";
   configValues[i] = "c-InfoPanel-info1";
   configSelect[i] = "SelectInfoPanelData1()";
   i = i + 1;
   configList[i] = "Info Panel - Line 2:";
   configValues[i] = "c-InfoPanel-info2";
   configSelect[i] = "SelectInfoPanelData2()";
   i = i + 1;
   configList[i] = "Info Panel - Line 3:";
   configValues[i] = "c-InfoPanel-info3";
   configSelect[i] = "SelectInfoPanelData3()";
   i = i + 1;
   configList[i] = "Info Panel - Line 4:";
   configValues[i] = "c-InfoPanel-info4";
   configSelect[i] = "SelectInfoPanelData4()";
   i = i + 1;
   configList[i] = "Info Panel - Line 5:";
   configValues[i] = "c-InfoPanel-info5";
   configSelect[i] = "SelectInfoPanelData5()";
   i = i + 1;
   ClearText();
   UpdateText();
}                                    


Next... within this same file.. scroll down till you see this....

CODE

function ToggleMM()
{
   var c = theConfigPanel.children[0].children[0];
   var b = c.theRightSlots.children[LV2Item].children[0].geometry.text;
   if(b.toLowerCase() == "modded") { RefreshMenu("stock"); }
   else if(b.toLowerCase() == "stock") { RefreshMenu("modded"); }
}      


Insert this code directly below it...

CODE


function SelectInfoPanelData1()
{
  var c = theConfigPanel.children[0].children[0];
   var b = c.theRightSlots.children[LV2Item].children[0].geometry.text;
   if(b.toLowerCase() == "ipaddress") { RefreshMenu("freespace"); }
   else if(b.toLowerCase() == "freespace") { RefreshMenu("cputemp"); }
   else if(b.toLowerCase() == "cputemp") { RefreshMenu("fanspeed"); }
 else if(b.toLowerCase() == "fanspeed") { RefreshMenu("avtype"); }
   else if(b.toLowerCase() == "avtype") { RefreshMenu("ipaddress"); }
}

function SelectInfoPanelData2()
{
  var c = theConfigPanel.children[0].children[0];
   var b = c.theRightSlots.children[LV2Item].children[0].geometry.text;
   if(b.toLowerCase() == "ipaddress") { RefreshMenu("freespace"); }
   else if(b.toLowerCase() == "freespace") { RefreshMenu("cputemp"); }
   else if(b.toLowerCase() == "cputemp") { RefreshMenu("fanspeed"); }
 else if(b.toLowerCase() == "fanspeed") { RefreshMenu("avtype"); }
   else if(b.toLowerCase() == "avtype") { RefreshMenu("ipaddress"); }
}

function SelectInfoPanelData3()
{
  var c = theConfigPanel.children[0].children[0];
   var b = c.theRightSlots.children[LV2Item].children[0].geometry.text;
   if(b.toLowerCase() == "ipaddress") { RefreshMenu("freespace"); }
   else if(b.toLowerCase() == "freespace") { RefreshMenu("cputemp"); }
   else if(b.toLowerCase() == "cputemp") { RefreshMenu("fanspeed"); }
 else if(b.toLowerCase() == "fanspeed") { RefreshMenu("avtype"); }
   else if(b.toLowerCase() == "avtype") { RefreshMenu("ipaddress"); }
}

function SelectInfoPanelData4()
{
  var c = theConfigPanel.children[0].children[0];
   var b = c.theRightSlots.children[LV2Item].children[0].geometry.text;
   if(b.toLowerCase() == "ipaddress") { RefreshMenu("freespace"); }
   else if(b.toLowerCase() == "freespace") { RefreshMenu("cputemp"); }
   else if(b.toLowerCase() == "cputemp") { RefreshMenu("fanspeed"); }
 else if(b.toLowerCase() == "fanspeed") { RefreshMenu("avtype"); }
   else if(b.toLowerCase() == "avtype") { RefreshMenu("ipaddress"); }
}


function SelectInfoPanelData5()
{
  var c = theConfigPanel.children[0].children[0];
   var b = c.theRightSlots.children[LV2Item].children[0].geometry.text;
   if(b.toLowerCase() == "ipaddress") { RefreshMenu("freespace"); }
   else if(b.toLowerCase() == "freespace") { RefreshMenu("cputemp"); }
   else if(b.toLowerCase() == "cputemp") { RefreshMenu("fanspeed"); }
 else if(b.toLowerCase() == "fanspeed") { RefreshMenu("avtype"); }
   else if(b.toLowerCase() == "avtype") { RefreshMenu("ipaddress"); }
}


SAVE config.xap , insert it back into default.xip.....
reboot your xbox ... and you will now have your info panel configurable from the dash configuration menu

....
mrmodem..

nuff respect to slick and the others for the excellent work and ideas..

ph34r.gif smile.gif ph34r.gif
mrmodem
also.. u may realize that

CODE

function SelectInfoPanelData1()
function SelectInfoPanelData2()
function SelectInfoPanelData3()
function SelectInfoPanelData4()
function SelectInfoPanelData5()



all do the same thing... i could have used only one.. but i put 5 seperate ones for future options.. this way each line could display a completely different set of options..
slick50zd
thx mrmodem, and im glad to see people expanding upon --- what i expanded upon lol biggrin.gif
roffle
Two words for mrmodem "F@@@@@@ LEGEND". I got tired just adding it in, dunno how you guys actually code it, thanks
mrmodem
lol lol thanks... i dont consider myself a legend as yet... ive only just started coding in UIX... less than a week to be precise..


ph34r.gif ph34r.gif
billybobxxx
ok, i modify the code for show the free space on f in GB, so i divide by 1000, but my question is how to round the number to 2 decimal??

(theHardDrive.GetFreeSpace("F:\\")/1000)
roffle
Another question would be how would i go about changing Cpu Temp to celcius format instead of F format
Goggens
I was hopeing mrmodems code would make it work on my v1.1 xbox, but it's the same problem as before.

sad.gif sad.gif sad.gif
Goggens
Found a way to make it work on my v1.1 xbox, i deleted the file "cellwall.xm" i my skin folder.
huh.gif huh.gif
It works, but i do not have any background on the main menu.

if anybody finds out why it's so, please let me now.

As said before, it works perfect on my v1.4 xbox

Thanks alot.
mrmodem
OK billybobxxx here is how i made my panel show my free space in GB instead of MB

so if i had 4128MB i now see 4.13 GB

.....

open default.xip/default.xap

scroll down to

CODE

function ChangeDisplay()
{    



now look for this line ...

CODE

var TotalFree = theHardDrive.GetFreeSpace("E:\\") + theHardDrive.GetFreeSpace("F:\\") + theHardDrive.GetFreeSpace("G:\\");


now add these lines below it.

CODE

var tf_gb_mb = TotalFree / 1000;
var tf_gb = Math.round(tf_gb_mb);
var tf_mb = (tf_gb_mb - tf_gb) * 100;
var tf_mb_r = Math.round(tf_mb);
var TotalFreeGB = tf_gb + "." + tf_mb_r;    



now scroll down and REPLACE the line...

CODE

freespacetext= "Total Free Space = " + TotalFree + "MB";


with....

CODE

freespacetext = "Total Free Space = " + TotalFreeGB + " GB";


and thats all folks...

save file ... re insert ... and reboot..

--- mrmodem ---
ph34r.gif smile.gif ph34r.gif
mrmodem
roffle... ur fix is easy...

the function

CODE

theConfig.GetCPUTemp();


already gives you the temperature in Celcius..

in our code we convert it to Farenhiet.

so just modify your code like this..

replace this line in the ChangeDisplay() function

CODE

cputext = "CPU Temp = " + CputempF + "F";


with

CODE

cputext = "CPU Temp = " + nIntTemp + " C";


save the file... re insert.. u know the drill

thats it..

---mrmodem---
ph34r.gif smile.gif ph34r.gif
Goggens
Is it possible to make the clock a 24 hour clock?

Thanks
mrmodem
24 hr clock... not sure... im gonna look into that now..
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.