xboxscene.org forums

Author Topic: What's The Proper Way To Use A Context Script?  (Read 144 times)

flattspott

  • Archived User
  • Hero Member
  • *
  • Posts: 1220
What's The Proper Way To Use A Context Script?
« on: January 26, 2004, 06:56:00 AM »

Cause I tried to add the Context section and the location of the xas file to my mxm.xml. It showed the new selection but when I clicked on it, it said file not found. I also tried adding the entire script between the
Logged

Kthulu

  • Archived User
  • Hero Member
  • *
  • Posts: 787
What's The Proper Way To Use A Context Script?
« Reply #1 on: January 26, 2004, 08:52:00 AM »

don't know if you saw this thread or not...
http://forums.xbox-s...T&f=58&t=130913

it talks about one issue you may be experiencing.  you have to setup 3 dummy context scripts before the real ones will show up.  BJ may have fixed it already but i bet if you follow the examples in that thread, you'll get it figured out...even if that's not your issue.
Logged

Kthulu

  • Archived User
  • Hero Member
  • *
  • Posts: 787
What's The Proper Way To Use A Context Script?
« Reply #2 on: January 26, 2004, 08:58:00 AM »

...if that doesn't help, post the context script section of your mxm.xml...
Logged

flattspott

  • Archived User
  • Hero Member
  • *
  • Posts: 1220
What's The Proper Way To Use A Context Script?
« Reply #3 on: January 26, 2004, 09:21:00 AM »

Well I can see the new option just fine. However when I select it it says file not found.
I've tried these already.

<Context>
<Item Name="Some Script">
<Mode>HD</Mode>
</Item>
</Context>
-------------and
<Context>
<Item Name="Some Script">
<Mode>HD</Mode>
BeginDraw
::
Quit
</Script>
</Item>
</Context>

Logged

Kthulu

  • Archived User
  • Hero Member
  • *
  • Posts: 787
What's The Proper Way To Use A Context Script?
« Reply #4 on: January 26, 2004, 10:19:00 AM »

the first example is how i do mine...and it looks fine to my eyes.  i don't usually do the <Mode></Mode> stuff tho...so without being able to look at my mxm.xml at home, i'd say...

...try getting rid of the <Mode></Mode> stuff.  you're giving CallFile an absolute path to your script anyway.  i never really understood the purpose of the <Mode> stuff.

hopefully, someone more sure of themselves will see this and help you before i get home tonight
Logged

Kthulu

  • Archived User
  • Hero Member
  • *
  • Posts: 787
What's The Proper Way To Use A Context Script?
« Reply #5 on: January 26, 2004, 10:27:00 AM »

oh yeah, just for kicks and giggles, go ahead and setup the same script 4 times and see what happens...

<Context>
<Item Name="Some Script">
<Mode>HD</Mode>
</Item>
<Item Name="Some Script">
<Mode>HD</Mode>
</Item>
<Item Name="Some Script">
<Mode>HD</Mode>
</Item>
<Item Name="Some Script">
<Mode>HD</Mode>
</Item>
</Context>
Logged

Kthulu

  • Archived User
  • Hero Member
  • *
  • Posts: 787
What's The Proper Way To Use A Context Script?
« Reply #6 on: January 26, 2004, 08:39:00 PM »

he's absolutely right...that is the problem!

i need some glasses smile.gif
Logged

Yuyu

  • Archived User
  • Hero Member
  • *
  • Posts: 908
What's The Proper Way To Use A Context Script?
« Reply #7 on: January 27, 2004, 05:17:00 AM »

QUOTE
i need some glasses  smile.gif


You do realize how many times you repeated his mistake right?
HEHE, I was dong the same exact thing a couple weeks ago helping someone in the #mxm channel. I kept repeating their mistake of <actions> instead of <action>.... needless to say, problem fixed after I saw that... tongue.gif
Logged

Kthulu

  • Archived User
  • Hero Member
  • *
  • Posts: 787
What's The Proper Way To Use A Context Script?
« Reply #8 on: January 27, 2004, 09:39:00 AM »

yeah, i should prolly stop trying to help people since i seem to be error prone, misunderstood, and BLIND smile.gif
Logged

flattspott

  • Archived User
  • Hero Member
  • *
  • Posts: 1220
What's The Proper Way To Use A Context Script?
« Reply #9 on: January 27, 2004, 03:38:00 PM »

Well I've tried like ten different ways and nothing's workin.

I know for a fact that I tried tem way because I made the context menu have ten items. with names like MScript - Script Single (uses
Logged

flattspott

  • Archived User
  • Hero Member
  • *
  • Posts: 1220
What's The Proper Way To Use A Context Script?
« Reply #10 on: January 27, 2004, 10:53:00 PM »

I don't have the info handy at the moment but i'll post it in the morning. It's 1:00am here
Logged