Help - Search - Members - Calendar
Full Version: Chilin Dude Response
Scenyx Entertainment Community > Xbox1 Forums > Dashboard Forums > Official MediaXMenu (MXM) Forum > MXM ActionScripting Forum
LarryX
The thread you posted in is just for Action Script Postings...


It looks to me that the xas can't find pwscreen.xas...

In line 12 - $actualpath$ tells you where MXM is run from... So if you launch MXM as a dashboard from c:\ then $actualpath$ = c:\ ... Just make sure that the callfile line points to pwscreen.xas.... there are several others in the xas.

I use my own variables to define paths... Load the following code in MXM.xml Autoexec... Edit the paths to your situation....

line 12: callfile %_scriptpath%pwscreen.xas

CODE
;#
;#Set MXM Scripting Enviroment Path Variables
;#auto load in AutoExec in MXM.xml
;#


SET _scriptpath "c:\\mxm\\mxmscripts\\"
SET _gamepath "f:\\games\\"
;SET _appspatch "f:\\apps\\"
;SET _skinpath "c:\\mxm\\mxmskins\\"
;SET _mediapath "e:\\mxmmedia\\"
;SET _thumbspath "e:\\mxmmedia\\"
;SET _coverartpath "e:\\mxmmedia\\"
chilin_dude
Thanks for the reply, so say if i'm runnning from E:\Scripts\pw.xas
Then i have to change $actualpath$\scripts\pwscreen.xas to E:\Scripts\pw.xas and do that all the way through?
edit: nope thats wrong, i have to add that stuff quoted into the mxm.xml!
chilin_dude
Still can't figure it out, I get this screen:
user posted image
And this is how I have changed the MXM.XML to try to do what you said

QUOTE

;#
;#Set MXM Scripting Enviroment Path Variables
;#auto load in AutoExec in MXM.xml
;#


SET _scriptpath "e:\\scripts\\"
SET _gamepath "E:\\games\\"
;SET _appspatch "E:\\apps\\"
;SET _skinpath "c:\\skins\\"
;SET _mediapath "e:\\mxmmedia\\"
;SET _thumbspath "e:\\mxmmedia\\"
;SET _coverartpath "e:\\mxmmedia\\"
<Config>
<Main>
<DiscTitle>Rich Xbox</DiscTitle>
<DiscSubtitle>Rich Xbox </DiscSubtitle>
<AllowAutoConfig>No</AllowAutoConfig>
<SkinsPath>C:\Skins</SkinsPath>
</Main>
</Config>
flattspott
Firs off if you plan on doing it the LarryX way, it would be like this.

%_ScriptPath%pw.xas

Second, it looks to me like you didn't do the autoexec part correctly. Should be..

CODE

<scripts>
<ActionScript Name="_AutoExec">
SET _ScriptPath E:\scripts\
SET _GamePath E:\games\
SET _AppPath E:\apps\
SET _SkinPath C:\skins\
SET _MediaPath E:\mxmmedia\
SET _ThumbPath E:\mxmmedia\
SET _CoverPath E:\mxmmedia\
</ActionScript>
</Scripts>


And qoutes are ONLY needed when the path has spaces in it.
chilin_dude
Ok I removed that from my MXM.XML and have added it to my menu.xml shown below
QUOTE

<Title>Fan Speed</Title>
<Description>Change Fan Speed</Description>
<Action>Callfile E:\Scripts\FanSpeed.xas</Action>
<Media>E:\MXM Videos\scripts.wmv</Media>
</Item>
<Item>
<Title>AutoExec</Title>
<Description>AutoExec</Description>
<Action>Callfile E:\Scripts\_AutoExec.xas</Action>
<Media>E:\MXM Videos\scripts.wmv</Media>
</Item>
</Submenu>
</menu>


So i ran AutoExec then went back and tried to launch a game I had passcoded and this time I got the screen where you got to put in the pascode
and the black screen with 5 boxes to put in my pasword comes up. However it then freezes before I press anything and says 'error line 81' and I have to turn off xbox then back on.
And to get to even be able to get to the password bit were it crashes I have to run AutoExec AGAIN!
Please help meeee
tayior7
just now saw this post, so i modified the script so now you wont have to worry about the problem you guys are getting
CODE
<Item>
<Title>Game1</title>
<Action>
 SET DIGIT1a A
 SET DIGIT2a B
 SET DIGIT3a X
 SET DIGIT4a Y
 SET DIGIT5a A
 SET PWSCRIPTPATH "E:\\scripts"
 SET PATHNAME "C:\\folder\\anotherfolder"
 SET FILENAME "default.xbe"
 Callfile %PWSCRIPTPATH%\pw.xas
</Action>
</Item>


that is how the new script works, so now the script can be run from anywhere. hopefully the new version (1.1) will be on AXS soon

get it here
http://forums.xbox-scene.com/index.php?act...=0#entry1165411
chilin_dude
Well I have got it working sort of, but i have to run Autoexec to get it to work!!!
Please can you just post the two scripts up here so i can create it in Notepad?
And btw do you plan on implementing a background image for it? As i think a 'Please enter password' windows style background would be good!
tayior7
i didnt think u could add a bg image with the current public version?
anyways, heres a link to the scripts:
http://forums.xbox-scene.com/index.php?act...=0#entry1165411
chilin_dude
Hmm i have changed to the newer version that i dld off your ftp, however now it has gone back to the line 12 error!
edit: still got this on line 12
Callfile $actualpath$\scripts\pwscreen.xas
could this be the cause?
tayior7
where did u find
CODE
Callfile $actualpath$\scripts\pwscreen.xas

that isnt supposed to be there anymore ohmy.gif


edit: my bad- i saved the wrong file DOH
geniusalz
Insert this above the problematic line:

CODE
Begindraw
messagebox $actualpath$\scripts\pwscreen.xas
enddraw

DELAY 5

Callfile $actualpath$\scripts\pwscreen.xas


Then run it, and see what exact path/filename its looking for, and verify it exists. Remember to check for missing or double slashes and whatnot.
tayior7
ok new (and hopefully fixed biggrin.gif ) version is now up
http://forums.xbox-scene.com/index.php?act...=0#entry1165411
chilin_dude
QUOTE (tayior7 @ Mar 20 2004, 08:59 PM)
ok new (and hopefully fixed biggrin.gif ) version is now up
http://forums.xbox-scene.com/index.php?act...=0#entry1165411

Yeah!!!!
Thats the one!
Works beautifully now!!
Is it possible to use this to password a folder?
Also would anyone have any idea how to add a background image?
tayior7
hmm never really thought about doing it for a folder.. ill have to think about that one. and about the image i think you migt be able to do it in the next release, but not positive
tayior7
it might be possible to replace the built in password feature in internal.xml with mine, ill look into it later
chilin_dude
I tried adding your password thing but it didnt work!
tayior7
what do you mean? are u talking about in internal.xml?
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.