NewsfeedSwitch Action ScriptPurpose: This action script is a temp fix for people who encounter problems with newsfeeds when the website providing the newsfeed slows down MXM as noted by several users here. I know BJ is working on a permanent fix but I think this does the job nicely for the interim. It basically lets you switch between 2 MXM.xml file versions. This same script can be used/modified to swap between 2 menu.xml files if you want to switch between 2 versions of menus as in a kids/limited only menu version that doesnt list apps or inappropriate games.
Usage:Place NewsfeedSwitch.xas anywhere on your xbox and use the callfile function to execute the script or simly imbed the script in your <action> taglines in your menu.xml. Also needed are 2 copies of your mxm.xml file with newsfeeds enabled in
mxmnewsfeedon.xml and disabled in
mxmnewsfeedoff.xmlNewsfeedSwitch.xas| CODE |
SETFUNC MXMXMLFileSize FILESIZE c:\mxm.xml SETFUNC NewsfeedONFileSize FILESIZE c:\mxmnewsfeedon.xml SETFUNC NewsfeedOFFFileSize FILESIZE c:\mxmnewsfeedoff.xml IF %MXMXMLFileSize% == %NewsfeedONFileSize% GOTO NewsfeedStatusON IF %MXMXMLFileSize% == %NewsfeedOFFFileSize% GOTO NewsfeedStatusOFF
:NewsfeedStatusON SET MXMFileStatus "ON" GOTO Start
:NewsfeedStatusOFF SET MXMFileStatus "OFF" GOTO Start
:Start BeginDraw UseCurrent MessageBox " - Newsfeed Status: %MXMFileStatus% -$eol$Press Y to Turn Newsfeed ON$eol$Press X to Turn Newsfeed OFF$eol$Press B to Cancel" EndDraw
Input If %_GP_Y% == "1" GOTO NewsfeedON If %_GP_X% == "1" GOTO NewsfeedOFF If %_GP_B% == "1" GOTO Cancel Quit
:NewsfeedON IF %MXMFileStatus% == "ON" GOTO StatusSame COPY c:\mxmnewsfeedon.xml c:\mxm.xml SET MXMFileStatus "ON" GOTO ExitMessage
:NewsfeedOFF IF %MXMFileStatus% == "OFF" GOTO StatusSame COPY c:\mxmnewsfeedoff.xml c:\mxm.xml SET MXMFileStatus "OFF" GOTO ExitMessage
:StatusSame BeginDraw UseCurrent MessageBox "Newsfeed Status is already %MXMFileStatus%" EndDraw Delay 1 Goto Start
:ExitMessage BeginDraw UseCurrent MessageBox "- Newsfeed Status: %MXMFileStatus% -$eol$ Press A to Accept$eol$ B to Change" EndDraw Input If %_GP_A% == "1" GOTO Reboot If %_GP_B% == "1" GOTO Start
:Reboot Reboot Quit
:Cancel BeginDraw UseCurrent MessageBox "- Newsfeed Status: %MXMFileStatus% -$eol$ CHANGE ABORTED" EndDraw Delay 2
|
Sample mxmnewsfeedon.xml
| QUOTE |
<Config>
<Main> <SkinsPath>C:\MXMSkins</SkinsPath> <DiscTitle>Media X Menu</DiscTitle> <DiscSubtitle>MXM.xml File</DiscSubtitle> <RemoveDuplicates>True</RemoveDuplicates> <RemoveInvalid>True<RemoveInvalid> </Main>
<Preferences> <FTPPriority>highest</FTPPriority> <SynchronizeClock>false</SynchronizeClock> <TimeServerIP>192.168.0.100</TimeServerIP> <Nickname>MXM</Nickname> <AutoLaunchGame>False</AutoLaunchGame> <AutoLaunchMovie>False</AutoLaunchMovie> <AutoLoadMulti>False</AutoLoadMulti> </Preferences>
<Network> <UseDHCP>false</UseDHCP> <IP>192.168.0.321</IP> <DefaultGateway>192.168.0.1</DefaultGateway> <SubnetMask>255.255.255.0</SubnetMask> <DNS1>192.168.0.1</DNS1> </Network>
<Overrides> </Overrides>
<FTPServer> <User> <Name>xbox</Name> <Password>xbox</Password> </User> <AllowAnon>False</AllowAnon> <AnonRoot></AnonRoot> <ServerPort>21</ServerPort> </FTPServer>
<Newsfeed name="newsfeed"> <Global>True</Global> <RotateChannels>True</RotateChannels> <URL>http://www.xbox-scene.com/xbox1data/xbox-scene.xml</URL> <UpdateIntervalMin>20</UpdateIntervalMin> <RotateItemInterval>5</RotateItemInterval> </Newsfeed>
</Config>
|
Sample mxmnewsfeedoff.xml
| QUOTE |
<Config>
<Main> <SkinsPath>C:\MXMSkins</SkinsPath> <DiscTitle>Media X Menu</DiscTitle> <DiscSubtitle>MXM.xml File</DiscSubtitle> <RemoveDuplicates>True</RemoveDuplicates> <RemoveInvalid>True<RemoveInvalid> </Main>
<Preferences> <FTPPriority>highest</FTPPriority> <SynchronizeClock>false</SynchronizeClock> <TimeServerIP>192.168.0.100</TimeServerIP> <Nickname>MXM</Nickname> <AutoLaunchGame>False</AutoLaunchGame> <AutoLaunchMovie>False</AutoLaunchMovie> <AutoLoadMulti>False</AutoLoadMulti> </Preferences>
<Network> <UseDHCP>false</UseDHCP> <IP>192.168.0.321</IP> <DefaultGateway>192.168.0.1</DefaultGateway> <SubnetMask>255.255.255.0</SubnetMask> <DNS1>192.168.0.1</DNS1> </Network>
<Overrides> </Overrides>
<FTPServer> <User> <Name>xbox</Name> <Password>xbox</Password> </User> <AllowAnon>False</AllowAnon> <AnonRoot></AnonRoot> <ServerPort>21</ServerPort> </FTPServer>
</Config>
|
Please post feedback and/or bugs in the script... I have tested it on my personal xbox and have not run into any problems yet.
PS: I even tried to get the character spacing right by adding whitespaces in the display screens. Hopefully there's a CENTER TEXT command in a future release of MXM