xboxscene.org forums

Author Topic: Code For System Info  (Read 359 times)

KyesaRRi

  • Archived User
  • Full Member
  • *
  • Posts: 205
Code For System Info
« on: April 02, 2005, 09:49:00 PM »

Ok most ppl mod thier system info to display shit like temp, kernal version, dash version. But i was messing around with it last night and found this little nify chunk of code:

default.xip:
CODE
c.QuestionText.text = c.QuestionText.text + "\nRECOVERY KEY:  " + thePanelJoystick.secretKey;


Slap this into default.xip settings.xap:

CODE
else if(strCurMenu == "SYSTEM INFO")


To get an idea of what i mean, here is the code 4 a slightly modded version of my system info:
[default.xip // settings.xap]

CODE

else if(strCurMenu == "SYSTEM INFO")
{
thePanelJoystick.secretKey = "Y" + theConfig.GetRecoveryKey();
thePanelJoystick.enableSecretKey = true;
bInRecoveryKeySequence = false;

c.PanelHeading.text = theTranslator.Translate("SYSTEM INFO");
if(theConfig.GetGameRegion() == "JAPAN")
{
c.QuestionText.text = theTranslator.Translate("JapanSystemInfo");
}
else
{
c.QuestionText.text = theTranslator.Translate("--------------------------------");
}
c.QuestionText.text = c.QuestionText.text + "\r--------------------------------";

c.QuestionText.text = c.QuestionText.text + "\n ";

c.QuestionText.text = c.QuestionText.text + "\n   USER INTERFACE X";

c.QuestionText.text = c.QuestionText.text + "\n ";

c.QuestionText.text = c.QuestionText.text + "\n--------------------------------";
c.QuestionText.text = c.QuestionText.text + "\r--------------------------------";

c.QuestionText.text = c.QuestionText.text + "\n                        ";

c.QuestionText.text = c.QuestionText.text + "\nBIOS:               " + theConfig.GetROMVersion();
c.QuestionText.text = c.QuestionText.text + "\rDASH:               " + theConfig.GetXdashVersion();

c.QuestionText.text = c.QuestionText.text + "\n  TEMPRATURE SETTINGS:";
c.QuestionText.text = c.QuestionText.text + "\rINTERNAL:  " + theConfig.GetInternalTemp() + " °C";
c.QuestionText.text = c.QuestionText.text + "\rCPU:  " + theConfig.GetCPUTemp() + " °C";
c.QuestionText.text = c.QuestionText.text + "\rFAN SPEED:  " + theConfig.GetFanSpeed();

c.QuestionText.text = c.QuestionText.text + "\nDISK FREE: ";

c.QuestionText.text = c.QuestionText.text + "\rE: " + theHardDrive.GetFreeSpace( "E:\\" ) + " of " + theHardDrive.GetTotalSpace( "E:\\" ) + " MB";
c.QuestionText.text = c.QuestionText.text + "\rF: " + theHardDrive.GetFreeSpace( "F:\\" ) + " of " + theHardDrive.GetTotalSpace( "F:\\" ) + " MB";
c.QuestionText.text = c.QuestionText.text + "\rG: " + theHardDrive.GetFreeSpace( "G:\\" ) + " of " + theHardDrive.GetTotalSpace( "G:\\" ) + " MB";

c.QuestionText.text = c.QuestionText.text + "\nRECOVERY KEY:  " + thePanelJoystick.secretKey;
c.ButtonGroup.visible = false;
c.ConsoleIcon.visible = true;

c.Group07.visible = false;

//KyesaRRi


I dont use a g:\ but i left it un-commented out for those ppl who do

To use this code delete from
CODE
else if(strCurMenu == "SYSTEM INFO")

To
CODE
c.Group07.visible = false;

then paste my above code in



Now back on target
The "secretkey" will clear out ALL of your save files
now, you see at the end of my system info there wll be a "recovery key"

Ok so if you get somthin like YRXYX then you would press in the system info Y, THEN RIGHT ON THE LEFT JOY, THEN X, THEN Y, THEN X

It will then bring uo a question box, asking if you want to clear your saved games [t/udata] and all soundtracks.

This code is handy if your going to sell your xbox and you dont want to delete all of the saved games and soundtracks 1 by 1.

If you ask me i'll post some screenies of this in action
Later
Logged

KyesaRRi

  • Archived User
  • Full Member
  • *
  • Posts: 205
Code For System Info
« Reply #1 on: April 02, 2005, 09:52:00 PM »

Edit on my last post:

When entering the code in, do it SLOWLY, this aint the v8 supercars

If you enter it too fast then it WILL NOT WORK and you wil have to exit system info, go back in system info and re-enter the code
Logged

KyesaRRi

  • Archived User
  • Full Member
  • *
  • Posts: 205
Code For System Info
« Reply #2 on: April 02, 2005, 10:12:00 PM »

Ok images are up

This is where you acess your system info for those who didnt know =P
(IMG:http://www.rapidtronics.com/images/KyE/uix1.jpg)

This is what your system info should look like if you entered my code correctly.
[This has scrolled down to the end]
(IMG:http://www.rapidtronics.com/images/KyE/uix2.jpg)

And this 1 is when you have entered the "RECOVERY KEY" correctly:
(IMG:http://www.rapidtronics.com/images/KyE/uix3.jpg)

This post has been edited by KyesaRRi: Apr 3 2005, 06:15 AM
Logged

Xsmurf

  • Archived User
  • Newbie
  • *
  • Posts: 20
Code For System Info
« Reply #3 on: April 04, 2005, 11:12:00 AM »

Oke, I have paste in your code, AND.............It worked.


But the Recovery Key is YAULD.


Which buttons do I have to push to enter  this code.



Logged

SpiderWeb

  • Archived User
  • Newbie
  • *
  • Posts: 20
Code For System Info
« Reply #4 on: April 04, 2005, 11:23:00 AM »

that would be great if you could make a choice screan and a question
clear your saved games [t/udata] or Only Music

because i have a problem whit one of my xbox in the (ST.db)
the sounds tracks can't be cleared  :uhh: in UIX or the Ms Dash
& i don't want to lost all the saves :(

This post has been edited by SpiderWeb: Apr 4 2005, 06:25 PM
Logged

KyesaRRi

  • Archived User
  • Full Member
  • *
  • Posts: 205
Code For System Info
« Reply #5 on: April 04, 2005, 06:08:00 PM »

QUOTE
Oke, I have paste in your code, AND.............It worked.


But the Recovery Key is YAULD.


Which buttons do I have to push to enter this code.


Ok XSMURF
Your code should be Y, A, UP On The Left Joystick, Left On The Left Joystick, Down On The Left Joystick

It may not be that tho, u normally means up on the left joy, but it could also mean up on the dpad / right joy

This applys for every U, D, L, R. These could be the left / right joy or the dpad

So some trial and error is the key here

The first button for everyone is ALLWAYS Y, [unless you change the code] this is because of this
CODE
thePanelJoystick.secretKey = "Y" + theConfig.GetRecoveryKey();


QUOTE
that would be great if you could make a choice screan and a question
clear your saved games [t/udata] or Only Music

because i have a problem whit one of my xbox in the (ST.db)
the sounds tracks can't be cleared uhh.gif in UIX or the Ms Dash
& i don't want to lost all the saves sad.gif


Well this code is what m$ gives you if your xbox is giving you an error code, you call the 1800myxbox number, give them some details and they give you the code for your xbox, this code i posted eliminates having to call 1800myxbox and gives you the pword, if i were to make it so it could erase a specific folder i would have to re-write the xbe, or script some new code. Maybe if im not too busy i code somthin to erase just the soundtracks, or just tdata or just udata. Just dont have your hopes up.

Hope that you could understand me =P

OR if you dont want a xbox specific reset code then:

CODE
thePanelJoystick.secretKey = "Y" + theConfig.GetRecoveryKey();


changed to:

CODE
thePanelJoystick.secretKey = "Y" + "B";


So now the code to reset will be Y THEN B

im not sure if this will work, im at tafe atm and i cant test

This post has been edited by KyesaRRi: Apr 5 2005, 01:16 AM
Logged

SpiderWeb

  • Archived User
  • Newbie
  • *
  • Posts: 20
Code For System Info
« Reply #6 on: April 04, 2005, 07:26:00 PM »

QUOTE
Well this code is what MS gives you if your xbox is giving you an error code, you call the 1800myxbox number, give them some details and they give you the code for your xbox, this code i posted eliminates having to call 1800myxbox and gives you the pword, if i were to make it so it could erase a specific folder i would have to re-write the xbe, or script some new code. Maybe if im not too busy i code somthin to erase just the soundtracks, or just tdata or just udata. Just dont have your hopes up.

Hope that you could understand me =P

OR if you dont want a xbox specific reset code then:

CODE
thePanelJoystick.secretKey = "Y" + theConfig.GetRecoveryKey();


changed to:

CODE
thePanelJoystick.secretKey = "Y" + "B";


So now the code to reset will be Y THEN B



ok
yeah..  
okay i think i get evrything..
i think ill just wait if you want make it to erase a specific Folder  ..
if not, its okay thx anyway   :beer:

This post has been edited by SpiderWeb: Apr 5 2005, 02:32 AM
Logged

KyesaRRi

  • Archived User
  • Full Member
  • *
  • Posts: 205
Code For System Info
« Reply #7 on: April 04, 2005, 09:58:00 PM »

It shouldent be too hard to make it delete a specific folder
Now that we have the filemanager =P

If i get time 2nite between xlink and sleep i get the code up

Remember that im in Australia so my time is different
its only 12:45 pm now

later

This post has been edited by KyesaRRi: Apr 5 2005, 05:01 AM
Logged

SpiderWeb

  • Archived User
  • Newbie
  • *
  • Posts: 20
Code For System Info
« Reply #8 on: April 05, 2005, 08:41:00 PM »

ok thanks..

but if i errase the Music folders..& ST.db & saves
when i rip somethings whit the MS Dash or the UIX
 the Music Folder & ST.db & saves folders should get back alone or what ...!?

This post has been edited by SpiderWeb: Apr 6 2005, 03:43 AM
Logged

KyesaRRi

  • Archived User
  • Full Member
  • *
  • Posts: 205
Code For System Info
« Reply #9 on: April 05, 2005, 10:18:00 PM »

the dash generates its own st.db... i think
when i can be bothered 2 write this, ill test it and write down probs / bugs so there is no worry that it will compleatly kill your music

=P
Logged

SpiderWeb

  • Archived User
  • Newbie
  • *
  • Posts: 20
Code For System Info
« Reply #10 on: April 06, 2005, 03:01:00 AM »

okay
thx a alot
i will try to errase them manually.. :)
Logged

dajuice

  • Archived User
  • Newbie
  • *
  • Posts: 44
Code For System Info
« Reply #11 on: April 06, 2005, 08:09:00 PM »

Hey brothers, I got the code to work but could you help with changing the Celsius setting to Fahrenheit. I don't think it is as easy as just replacing the "C" in the code with an "F". Sorry I don't know anything about reading or writing progamming languages.
Logged

KyesaRRi

  • Archived User
  • Full Member
  • *
  • Posts: 205
Code For System Info
« Reply #12 on: April 06, 2005, 09:03:00 PM »

ok im just posting conversion code from c to f:

CODE
var nIntTemp = theConfig.GetCPUTemp();
var CputempF = Math.round(nIntTemp * 9/5 + 32);


i'll incoporate it when i get back home
Logged

KyesaRRi

  • Archived User
  • Full Member
  • *
  • Posts: 205
Code For System Info
« Reply #13 on: April 07, 2005, 01:15:00 AM »

Ok im back home, so here it the Fahrenheit Code
Not too sure it will work, maybe someone can fix it up abit if it doesent
Could imprive it with var's but im too tired

This is NOT Tested
So i'd say it has about a 70% chance of not working  :P

ANYWAY...

It works the same as the Celsius code, just delete my celcius code and paste this in there

Here it goes:

CODE
else if(strCurMenu == "SYSTEM INFO")
{
thePanelJoystick.secretKey = "Y" + theConfig.GetRecoveryKey();
thePanelJoystick.enableSecretKey = true;
bInRecoveryKeySequence = false;



c.PanelHeading.text = theTranslator.Translate("SYSTEM INFO");
if(theConfig.GetGameRegion() == "JAPAN")
{
c.QuestionText.text = theTranslator.Translate("JapanSystemInfo");
}
else
{
c.QuestionText.text = theTranslator.Translate("--------------------------------");
}
c.QuestionText.text = c.QuestionText.text + "\r--------------------------------";

c.QuestionText.text = c.QuestionText.text + "\n ";

c.QuestionText.text = c.QuestionText.text + "\n   USER INTERFACE X";

c.QuestionText.text = c.QuestionText.text + "\n ";

c.QuestionText.text = c.QuestionText.text + "\n--------------------------------";
c.QuestionText.text = c.QuestionText.text + "\r--------------------------------";

c.QuestionText.text = c.QuestionText.text + "\n                        ";

c.QuestionText.text = c.QuestionText.text + "\nBIOS:               " + theConfig.GetROMVersion();
c.QuestionText.text = c.QuestionText.text + "\rDASH:               " + theConfig.GetXdashVersion();

c.QuestionText.text = c.QuestionText.text + "\n  TEMPRATURE SETTINGS:";

c.QuestionText.text = c.QuestionText.text + "\rINTERNAL:  " +  Math.round(theConfig.GetInternalTemp() * 9/5 + 32);

//I Havent Tested This
//Make A Backup b4 U Test This

c.QuestionText.text = c.QuestionText.text + "\rCPU:  " +  Math.round(theConfig.GetCPUTemp() * 9/5 + 32);

//And This
//Hope It Works

c.QuestionText.text = c.QuestionText.text + "\rFAN SPEED:  " + theConfig.GetFanSpeed();

c.QuestionText.text = c.QuestionText.text + "\nDISK FREE: ";

c.QuestionText.text = c.QuestionText.text + "\rE: " + theHardDrive.GetFreeSpace( "E:\\" ) + " of " + theHardDrive.GetTotalSpace( "E:\\" ) + " MB";
c.QuestionText.text = c.QuestionText.text + "\rF: " + theHardDrive.GetFreeSpace( "F:\\" ) + " of " + theHardDrive.GetTotalSpace( "F:\\" ) + " MB";
c.QuestionText.text = c.QuestionText.text + "\rG: " + theHardDrive.GetFreeSpace( "G:\\" ) + " of " + theHardDrive.GetTotalSpace( "G:\\" ) + " MB";

c.QuestionText.text = c.QuestionText.text + "\nRECOVERY KEY:  " + thePanelJoystick.secretKey;
c.ButtonGroup.visible = false;
c.ConsoleIcon.visible = true;

c.Group07.visible = false;

//KyesaRRi


Hope this helps mate
:beer:
Later

This post has been edited by KyesaRRi: Apr 7 2005, 08:20 AM
Logged

SpiderWeb

  • Archived User
  • Newbie
  • *
  • Posts: 20
Code For System Info
« Reply #14 on: April 17, 2005, 06:07:00 PM »

QUOTE(KyesaRRi @ Apr 6 2005, 03:48 AM)
the dash generates its own st.db... i think
when i can be bothered 2 write this, ill test it and write down probs / bugs so there is no worry that it will compleatly kill your music

=P
*




thx alot dude..! :beer:

everything works good now

the dash generates its own st.db... :popcorn:  B)

This post has been edited by SpiderWeb: Apr 18 2005, 01:08 AM
Logged