Jump to content


Photo

Orb Changing Menu Without A Preview


  • Please log in to reply
18 replies to this topic

#1 t1x2irc2

t1x2irc2

    X-S Member

  • Members
  • Pip
  • 68 posts

Posted 24 January 2005 - 06:34 PM

First things First

All Credit goes to DAZZA he's the Man!!!



First Step
in default.xip

Extract the file - skin.xap and rename that to orbs.xap
Change all instances of Skins to Orbs and all instances of skins to orbs

WATCH THE CASES!!
don't just use the replace all shortcut ... trust me it don't work that way


Now after all instances have been changed
still in orbs.xap!
Change the refrence to the menu that skins was using to another one


find
CODE

DEF theOrbsMenu Level

look for
CODE

url "Settings_Panel/default3.xap"

change to
CODE

url "Settings_Panel/default4.xap"


NEXT STEP

find
CODE

function DoAction()

and change to
CODE

function DoAction()
{
   var c = theOrbsMenu.children[0].children[0];
   var info = new Settings;
   info.file = "A:\\system\\uix.ini";
   info.section = "Dashboard Settings";
   if (nCurPlayerMenuItem == 1) { ShowOrbInfo(); }
   else if (nCurPlayerMenuItem == 0)
   {

       var IniFile = new Settings;
       IniFile.SetIniSection( "Dashboard Settings" );
       IniFile.SetIniValue( "Current Orb", OrbMenuList[orbSelect]);
       AskQuestion("Skin change will not take full effect until you restart the dash.  Would you like to restart now?", "ReStartDash();", "", 0);
   }
}


Next comment out ( theConfig.ChangeOrbs )

find
CODE

function OnLeftThumbMoveUp()
       {
                       if (orbSelect <= 0) { return; }
                       PlaySoundMenuChange();
                       orbSelect = orbSelect - 1;
                       if (orbButton == 0) { orbScroll = orbScroll - 1; }
                       else { orbButton = orbButton - 1; }
  comment out --->     theConfig.ChangeOrb( OrbMenuList[orbSelect] );
                       UpdateOrbMenu();
       }

       function OnLeftThumbMoveDown()
       {
               if (orbSelect >= orbCount - 1) {  return; }
                       PlaySoundMenuChange();
                       orbSelect = orbSelect + 1;
                       if (orbButton == 8) { orbScroll = orbScroll + 1; }
                       else { orbButton = orbButton + 1; }
  comment out --->     theConfig.ChangeOrb( OrbMenuList[orbSelect] );
                       UpdateOrbMenu();
       }
   }


save then insert into default.xip. (save default.xip)

Next Step
copy settings_panel/default3.xap to settings_panel/default4.xip

as in step 1 the same process applies (extract,rename)

in default4.xip
find
CODE

DEF thePanel1Text Transform

look for
CODE

DEF SkinNames Transform

change to
CODE

DEF OrbNames Transform

also find
CODE

DEF S_Home_text_no Transform

look for
CODE

geometry DEF PanelHeading Text { font "heading" translate false text "Skins" width -12.2 }

and change to
CODE

geometry DEF PanelHeading Text { font "heading" translate false text "Orbs" width -12.2 }

save and insert default4.xip into settings_panel.xip (save settings_panel.xip)

NEXT STEP

now goto
default.xip/default.xap

find
CODE

DEF theSkinInline Inline

and change this
CODE

DEF theSkinsInline Inline
{
  visible false
  url "skins.xap"
  function onLoad() {
  theSkinsInline.children[0].theSkinsMenu.GoTo();
}

function GoToSkins()
{
  theSettingsMenuIn.Play();
  if( theSkinsInline.visible ) { theSkinsInline.children[0].theSkinsMenu.GoTo(); }
  else { theSkinsInline.visible = true; }
}

to this
CODE

DEF theSkinsInline Inline
{
  visible false
  url "skins.xap"
  function onLoad() {
  theSkinsInline.children[0].theSkinsMenu.GoTo();
}

function GoToSkins()
{
  theSettingsMenuIn.Play();
  if( theSkinsInline.visible ) { theSkinsInline.children[0].theSkinsMenu.GoTo(); }
  else { theSkinsInline.visible = true; }
}

DEF theOrbsInline Inline
{
  visible false
  url "orbs.xap"
  function onLoad() {
  theOrbsInline.children[0].theOrbsMenu.GoTo();
}

function GoToOrbs()
{
  theSettingsMenuIn.Play();
  if( theOrbsInline.visible ) { theOrbsInline.children[0].theOrbsMenu.GoTo(); }
  else { theOrbsInline.visible = true; }
}

its just a copy of the DEF theSkinsInline Inline and function GoToSkins() with Skins renamed to Orbs then pasted
This should allow you to set up an orbs directory and get into it.

user posted image
Then this...

find
CODE

function MainMenuAttract()

look for
CODE

c.Modded_Orb.fade = a;

and under this add
CODE

c.gasorb.fade = a;

now look for
CODE

c.Modded_Orb.SetScale(43,43,43);

under that add
CODE

   var OrbName=GetOrbName();
   var info = new Settings;
   info.file = OrbName + ".xbx";
   info.section = "Orb";
   var scalex;
   var scaley;
   var scalez;
   scalex = info.GetValue("Scalex");
   scaley = info.GetValue("Scaley");
   scalez = info.GetValue("Scalez");
   c.gasorb.SetScale(scalex,scaley,scalez);
   c.Rotating_Large_X.fade = 0.43;
   ChangeTheOrb( OrbName + ".xm" );
}

and finally at the very bottom add
CODE

function ChangeTheOrb(e)
{
   var c = theMainMenu.children[0].children[0];
       c.Modded_Orb.visible = false;
       c.Stock_Orb.visible = false;

   c.gasorb.visible = false;
   c.gasorb.children[0].children[0].geometry.url = e;
   c.gasorb.visible = true;
}

function GetOrbName()
{
   var IniFile = new Settings;
   IniFile.SetIniSection( "Dashboard Settings" );
   var OrbName = IniFile.GetIniValue( "Current Orb" );
   IniFile.CloseIniFile();
   OrbName = "A:\\orbs\\" + OrbName + "\\" + OrbName;

   return OrbName;
}                




///////////////////////~ORB DIRECTORY SETUP~////////////////////////////////////////////////////


Create a dir in user.interface.x.dash called orbs
inside that create a folder for each orb and rename to the same name as your orb.
(just like the skins folder but orbs)

Example: user.interface.x.dash/spikes/spikes.xm

You should now have a working directory structure.

user posted image

Now if you peeps want to add a corrisponding xbx file to your orbs such as Author, Credits, ect.

you can make a txt file place in orbs folder rename to orbname.xbx
for instance (spikey.xbx)

and add something like this

#
# Xbox Dash Orb Data
#
# Orb Name - spikey
#
#
#

[OrbInfo]
Author=gasclown
DateCreated=17-Jan-05
Version=1.0
MadeUsing=
Credits=gasclown

[Orb]

Scalex=43

Scaley=43

Scalez=43
user posted image

that should do it folks if i missed something please let me know. i know it's a lot but it does work!

if it doesn't work right off try clearing your cache and
adding to uix.ini

something like this under Dashboard Settings
[Dashboard Settings]
Current Orb=Rings

the on-the-fly preview was the one thing that would make this great.. any suggestions or if you know off the top of your head how to do it please post your code

BTW, this is my first tut so go easy on me ....good luck beerchug.gif


....and oh yeah thanx Dazza for all your help cool.gif

user posted image

#2 b0oGy

b0oGy

    X-S Enthusiast

  • Members
  • 19 posts

Posted 24 January 2005 - 07:09 PM

Hi do I need to change Skin and skin to Orb and orb too or only Skins to Orbs and skins to orbs?

Thx

#3 DaBeast77

DaBeast77

    X-S X-perience

  • Members
  • PipPip
  • 313 posts
  • Location:Richmond, Virginia
  • Xbox Version:v1.0

Posted 24 January 2005 - 07:21 PM

Can i just add this code to the other orb code or do i have to remove the other one first?

#4 b0oGy

b0oGy

    X-S Enthusiast

  • Members
  • 19 posts

Posted 24 January 2005 - 08:40 PM

Are you sure that you have posted all code that is needed? I have done all steps and if i start my xbox i have only a black screen.


#5 t1x2irc2

t1x2irc2

    X-S Member

  • Members
  • Pip
  • 68 posts

Posted 24 January 2005 - 10:48 PM

sorry guys here is the rest ....

You need to change main_menu.xip/default.xap to include gasclowns code

place this code after the Modded_orb Transform

at the very bottom

CODE

DEF gasorb Transform  
{
   children
   [
           Spinner
       {
            rpm 5
       axis 0 2 2
               children
               [
           Shape
                   {
           appearance Appearance
                       {
               material MaxMaterial
                           {
                           name "MenuCell"
                           }

                       }
                       geometry Mesh { url "gasorb.xm" }
                   }
       ]
       }
   ]  
                   
   rotation -0.993700 -0.088440 0.068970 -1.576000
    scale 43.000000 43.000000 43.000000
   scaleOrientation 0.036530 0.975200 0.218400 -0.396500
    translation -54.880000 -15.100000 29.980000
}

   ]
}



Ensuring the first def is exactly the same as this one (ie gasorb not GasOrb) case sensitive.

and another currection

Example: user.interface.x.dash/spikes/spikes.xm

should of course be

Example: user.interface.x.dash/orbs/spikes/spikes.xm



thanx for pointing this out ...Mr.D

#6 b0oGy

b0oGy

    X-S Enthusiast

  • Members
  • 19 posts

Posted 24 January 2005 - 11:15 PM

Hmmm i have added the code to main_menu/default.xap but does not work for me. Can you post a sample orbs.xap?

I have checked everything 2 times but it does not work only Black Screen on boot sad.gif

Thx for help.

#7 MASTER GRINDCORE

MASTER GRINDCORE

    X-S Member

  • Members
  • Pip
  • 93 posts
  • Interests:xboxV1.2<br>xboxV1.6<br>grindcore rulz
  • Xbox Version:v1.6

Posted 24 January 2005 - 11:34 PM

super work
but i am to stupid and i don´t know what to do WERE and HOW
i can open the default xap or xip
but blink.gif THIS IS ME TO HIGH
please help me sad.gif

#8 t1x2irc2

t1x2irc2

    X-S Member

  • Members
  • Pip
  • 68 posts

Posted 24 January 2005 - 11:52 PM

here is another correction

like i said my first tut

CODE

AskQuestion("Skin change will not take full effect until you restart the dash.  Would you like to restart now?", "ReStartDash();", "", 0);
  }


should be

CODE

AskQuestion("Orb change will not take full effect until you restart the dash.  Would you like to restart now?", "ReStartDash();", "", 0);
  }


you really don't want the orbs menu to say that skin change won't happen unless you restart .....do you?

duh ...sorry about that


#9 MASTER GRINDCORE

MASTER GRINDCORE

    X-S Member

  • Members
  • Pip
  • 93 posts
  • Interests:xboxV1.2<br>xboxV1.6<br>grindcore rulz
  • Xbox Version:v1.6

Posted 25 January 2005 - 12:40 AM

ohmy.gif wink.gif sad.gif mad.gif what`?

#10 t1x2irc2

t1x2irc2

    X-S Member

  • Members
  • Pip
  • 68 posts

Posted 25 January 2005 - 01:16 AM

††MASTER GRINDCORE†† sorry to sound like a jerk... but the code is there

have a crack at it beerchug.gif

i personal like challenges.... biggrin.gif

did you see the 4 icon project i was working on.. gasclown didn't give me code and i figured it out... he did help a little but he didn't just hand over his xips...


if you need help i'm more then willing to help... but it takes the fun out of it when i distribute the files to everone

hope you understand

have fun smile.gif

#11 CrakkedOut

CrakkedOut

    X-S Expert

  • Members
  • PipPipPip
  • 731 posts
  • Location:LINY
  • Xbox Version:none
  • 360 version:none

Posted 25 January 2005 - 04:39 PM

yea seriously, just follow whats said and its that easy

#12 CrakkedOut

CrakkedOut

    X-S Expert

  • Members
  • PipPipPip
  • 731 posts
  • Location:LINY
  • Xbox Version:none
  • 360 version:none

Posted 26 January 2005 - 02:20 AM

QUOTE(t1x2irc2 @ Jan 24 2005, 05:19 PM)
sorry guys here is the rest ....

You need to change main_menu.xip/default.xap to include gasclowns code

place this code after the Modded_orb Transform

at the very bottom 

CODE


   ]  
                   
   rotation -0.993700 -0.088440 0.068970 -1.576000
    scale 43.000000 43.000000 43.000000
   scaleOrientation 0.036530 0.975200 0.218400 -0.396500
    translation -54.880000 -15.100000 29.980000
}

   ]
}



ok question

whats up with the
}
]
}

is the ] suppose to line up with the ] above rotation??

im asking cuz the dash will boot, but the squiggles and menu dont show.

#13 blade_boy1

blade_boy1

    X-S Enthusiast

  • Members
  • 25 posts
  • Xbox Version:v1.4

Posted 26 January 2005 - 06:19 AM

I couldnt help but notice people were having a hard time with this and as I was just giving this a read over considering have a go at it myself, I came across a few things. I think this:
QUOTE
DEF theSkinsInline Inline
{
  visible false
  url "skins.xap"
  function onLoad() {
  theSkinsInline.children[0].theSkinsMenu.GoTo();
}

function GoToSkins()
{
  theSettingsMenuIn.Play();
  if( theSkinsInline.visible ) { theSkinsInline.children[0].theSkinsMenu.GoTo(); }
  else { theSkinsInline.visible = true; }
}

DEF theOrbsInline Inline
{
  visible false
  url "orbs.xap"
  function onLoad() {
  theOrbsInline.children[0].theOrbsMenu.GoTo();
}

function GoToOrbs()
{
  theSettingsMenuIn.Play();
  if( theOrbsInline.visible ) { theOrbsInline.children[0].theOrbsMenu.GoTo(); }
  else { theOrbsInline.visible = true; }
}


Should actually look like this:
QUOTE
DEF theSkinsInline Inline
{
  visible false
  url "skins.xap"
  function onLoad() { theSkinsInline.children[0].theSkinsMenu.GoTo(); }
}

function GoToSkins()
{
  theSettingsMenuIn.Play();
  if( theSkinsInline.visible ) { theSkinsInline.children[0].theSkinsMenu.GoTo(); }
  else { theSkinsInline.visible = true; }
}

DEF theOrbsInline Inline
{
  visible false
  url "orbs.xap"
  function onLoad() { theOrbsInline.children[0].theOrbsMenu.GoTo(); }
}

function GoToOrbs()
{
  theSettingsMenuIn.Play();
  if( theOrbsInline.visible ) { theOrbsInline.children[0].theOrbsMenu.GoTo(); }
  else { theOrbsInline.visible = true; }
}

And this:
QUOTE
  var OrbName=GetOrbName();
  var info = new Settings;
  info.file = OrbName + ".xbx";
  info.section = "Orb";
  var scalex;
  var scaley;
  var scalez;
  scalex = info.GetValue("Scalex");
  scaley = info.GetValue("Scaley");
  scalez = info.GetValue("Scalez");
  c.gasorb.SetScale(scalex,scaley,scalez);
  c.Rotating_Large_X.fade = 0.43;
  ChangeTheOrb( OrbName + ".xm" );
}


Should actually look like this:
QUOTE
  var OrbName=GetOrbName();
  var info = new Settings;
  info.file = OrbName + ".xbx";
  info.section = "Orb";
  var scalex;
  var scaley;
  var scalez;
  scalex = info.GetValue("Scalex");
  scaley = info.GetValue("Scaley");
  scalez = info.GetValue("Scalez");
  c.gasorb.SetScale(scalex,scaley,scalez);
  c.Rotating_Large_X.fade = 0.43;
  ChangeTheOrb( OrbName + ".xm" );


Also, if Im not mistaken t1x2, you havent supplied the code to actually put the Orbs option in the Settings menu yet. Not sure where that is, but have a look through default.xip/settings.xap and you might find it there.

And CrakkedOut, you are correct in saying this:
QUOTE
DEF gasorb Transform 
{
  children
  [
          Spinner
      {
            rpm 5
      axis 0 2 2
              children
              [
          Shape
                  {
          appearance Appearance
                      {
              material MaxMaterial
                          {
                          name "MenuCell"
                          }

                      }
                      geometry Mesh { url "gasorb.xm" }
                  }
      ]
      }
  ] 
                 
  rotation -0.993700 -0.088440 0.068970 -1.576000
    scale 43.000000 43.000000 43.000000
  scaleOrientation 0.036530 0.975200 0.218400 -0.396500
    translation -54.880000 -15.100000 29.980000
}

  ]
}


Should actually be this:
QUOTE
DEF gasorb Transform 
{
  children
  [
          Spinner
      {
            rpm 5
      axis 0 2 2
              children
              [
          Shape
                  {
          appearance Appearance
                      {
              material MaxMaterial
                          {
                          name "MenuCell"
                          }

                      }
                      geometry Mesh { url "gasorb.xm" }
                  }
      ]
      }
  ] 
                 
  rotation -0.993700 -0.088440 0.068970 -1.576000
    scale 43.000000 43.000000 43.000000
  scaleOrientation 0.036530 0.975200 0.218400 -0.396500
    translation -54.880000 -15.100000 29.980000
}


Hope this helps everyone out and maybe I'll have a go at this myself and see how it goes. The preview Orb option sounds a little too good to be true as I dont think there is a way to change Orbs and other XMs on the fly. The only way I can think of how to do it is to hardcode each orb into the settings_panel.xip/default4.xap and just set the visible or Alpha (whichever way you wanna do it). But that means evertime you add an Orb to the orbs directory, you would have to open up the default4.xip and add another entry for that orb. Not really the "on-the-fly" everyone was looking for Im sure...but please, if someone knows a way, I would LOVE to be corrected as that would be pretty damn sweet!

#14 uschardcore

uschardcore

    X-S Enthusiast

  • Members
  • 14 posts

Posted 26 January 2005 - 08:20 AM

can you just make a new post or ammend this one with all the wroking code with instructions as well and what files they go in? i followed your to the t and your fixes and don't even get the orbs menu in system.

or maybe host your xip's (or i can for you actually) cause i'd love to have this shit working, but it definitely is not!

#15 t1x2irc2

t1x2irc2

    X-S Member

  • Members
  • Pip
  • 68 posts

Posted 26 January 2005 - 07:26 PM

ok here's the deal ...

i will go into the code and make sure i didn't miss something important ..i thought for sure i had everything needed.. sad.gif

i also have some other changes that was made to the code
just to warn you.. it's alot to explain..(there will be pics)

i will make sure the code is posted right this time
(like.. i said it was my first tut) wink.gif

the original code (w/proper syntax) will be posted by request only... i really want to get this new code out there.

then you guys can comment or add to it

so by tonight my time in the eastern USA.. i'll start a new topic with changes

(later)




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users