xbox-scene.com - your xbox news information source
Quick Links: Main Forums | Xbox360 Forums | Xbox1 Forums | PS3 Forums
Xbox-Scene Forum Help  Search Xbox-Scene Forums   Xbox-Scene Forum Members   Xbox-Scene Calendar

Giganews Usenet Offers: +1150 days binary retention, 99%+ Completion, and Unlimited Speed/Access!

360 ODD Emulators: X360 Key $99 | Wasabi360 FAT $99 | Wasabi360 Slim $99
C4E's iXtreme Burner MAX Drive: LiteOn iHAS124 DROPPED TO JUST $17


Welcome Guest ( Log In | Register )

 Forum Rules Rules
 
Reply to this topicStart new topic
> Entry Maker, A Context ActionScript I made
flattspott
post Jan 29 2004, 11:01 PM
Post #1


X-S Freak
*****

Group: Moderator
Posts: 1787
Joined: 14-April 03
From: Southern California
Member No.: 32293
Xbox Version: v1.0
360 version: v1 (xenon)



UPDATE
Removed the need to add a section to your MXM.xml for the override code
(You can delete it if you added it)
- A check is done to see if a EM-Override.xml exists. If it doesn't
then you will be prompted to enter the override pass at that time.
That pass will be converted to an MD5 and saved out to an xml file
(E:\UDATA\00004321\EM-Override.xml)
This will automatically happen the first time you run this version
of EntryMaker, currently 6.0

Also note that if you try to use it for the first time on a game
that already has an entry, it will prompt for the override code
and then it will immediatly ask you for it again because the game
has an entry. This is normal.

This will be the last update until I finish a Dialog based version

Save As - EntryMaker.xas
CODE

;###########################################################
;# Name: Entry Maker
;# Author: flattspott
;# Date: 02-16-2004
;# Version: 6.0
;# FileName: EntryMaker.xas
;#
;# Purpose:
;#  Allows you to create MXM_Entry.xml files on your Xbox. Once
;#  made they are permanent even after you reset the menu cache,
;#  unless you go and delete the MXM_Entry.xml.
;#
;# Info:
;#  You can define the title, description, cover, thumbnail, preview
;#  and passcode that are used by MXM for the selected game or app.
;#  Only new MXM_Entry.xml's are made. If there's an old one it will
;#  just get overwritten (but not before asking for an override code).
;#  However it doesn't work properly yet if you use it on a menu item
;#  that was manually entered into your Menu.xml like Linux maybe.
;#  If you try it, the MXM_Entry gets saved to where MXM is run from.
;#  Other then that it works fine for any menu items that where made
;#  from an AutoDir.
;#
;# Installation:
;#  Upload the EntryMaker.xas file to your Xbox, then add something like
;#  this somewhere in your MXM.xml.
;#  $ActualPath$ is the MXM folder for your info.
;#  
;#    <Context>
;#      <Item Name="Make Entry">
;#        <Mode>HD</Mode>
;#        <Action>CallFile $ActualPath$\Scripts\EntryMaker.xas</Action>
;#      </Item>
;#    </Context>
;#
;#              Reboot your Xbox for it to show up in the menu.
;#
;# Usage:
;#  When on a menu item press Y to bring up the System Menu.
;#  Then go to Game Options and select Entry Maker.
;#  You can use it for any menu item, not just games specifically.
;#  If a game already has an Entry it will prompt you to enter
;#  an authorization code to proceed.
;#
;############################################################
SETFUNC FirstRun FILEEXISTS "E:\\UDATA\\00004321\\EM-Override.xml"
IF# %FirstRun% == "0" THEN
GOTO GETCODE
ELSE
GOTO NEEDSPASSCHECK
ENDIF
:GETCODE
MsgBox "This is the first time you've run EntryMaker$eol$You will need to enter an override code first"
StringInput OverrideCode SINGLE "Enter an override code to use."
SETFUNC OverrideMD5 MD5 %OverrideCode%
XMLOPEN OverrideXML
XMLCreate OverrideXML Override
XMLSetValue OverrideXML !.Pass %OverrideMD5%
XMLSave OverrideXML "E:\\UDATA\\00004321\\EM-Override.xml"
XMLCLOSE OverrideXML
GOTO NEEDSPASSCHECK
:NEEDSPASSCHECK
SETFUNC oEntry FILEEXISTS %_GameDir%\MXM_Entry.xml
IF# %oEntry% == "1" THEN
GOTO SECURITY
ELSE
GOTO GETTITLE
ENDIF
:SECURITY
XMLOpen SecureXML "E:\\UDATA\\00004321\\EM-Override.xml"
;XMLSetNodePtr SecureXML !.Pass.
XMLGetValue SecureXML Verify !.Pass
XMLClose SecureXML
;------------------- Get Input Start ---------------------------
:CHECK
StringInput Authorize SINGLE "Enter override code"
SETFUNC AuthorizeMD5 MD5 %Authorize%
IF %AuthorizeMD5% == %Verify% THEN
GOTO ACCEPTED
ELSE
GOTO DENIED
ENDIF
:GETTITLE
SETFUNC nTitle XBETITLE %_GameExe%
StringInput nTitle SINGLE "Enter a new title or leave input line empty to exit"
IF %nTitle% == "" GOTO END
GOTO SHOWTITLE
:GETDESC
SET nDesc %_GameDescr%
StringInput nDesc SINGLE "Enter a description"
GOTO SHOWDESC
:GETCOVER
SET nCover MXM_Cover.jpg
StringInput nCover SINGLE "Enter cover filename.ext to use $eol$ Include path if not in game folder"
GOTO SHOWCOVER
:GETTHUMB
SET nThumb MXM_Thumb.jpg
StringInput nThumb SINGLE "Enter thumbnail filename.ext to use $eol$ Include path if not in game folder"
GOTO SHOWTHUMB
:GETPREVIEW
SET nPreview MXM_SS.wmv
StringInput nPreview SINGLE "Enter preview filename.ext to use $eol$ Include path if not in game folder"
GOTO SHOWPREVIEW
:GETPASS
StringInput nPass SINGLE "Enter a 5 digit alphanumeric passcode $eol$ to limit access or leave emtpy for none"
IF %nPass% == "" GOTO SHOWNOPASS
SETFUNC nPassMD5 MD5 %nPass%
GOTO SHOWPASS
;------------------- Get Input End ------------------------------
;------------------- Message Output Start -----------------------
:ACCEPTED
CallScript _DisplayMessageBox "Authorization code accepted $eol$ Press any button"
GOTO GETTITLE
:DENIED
CallScript _DisplayMessageBox "You don't have permission to change this entry $eol$ Press any button"
GOTO END
:SHOWTITLE
CallScript _DisplayMessageBox "Name Entered: %nTitle% $eol$ Press any button"
GOTO GETDESC
:SHOWDESC
CallScript _DisplayMessageBox "Description Entered: %nDesc% $eol$ Press any button"
GOTO GETCOVER
:SHOWCOVER
CallScript _DisplayMessageBox "Cover Entered: %nCover% $eol$ Press any button"
GOTO GETTHUMB
:SHOWTHUMB
CallScript _DisplayMessageBox "Thumbnail Entered: %nThumb% $eol$ Press any button"
GOTO GETPREVIEW
:SHOWPREVIEW
CallScript _DisplayMessageBox "Preview Entered: %nPreview% $eol$ Press any button"
GOTO GETPASS
:SHOWNOPASS
CallScript _DisplayMessageBox "Passcode NOT Entered $eol$ Press any button"
GOTO SAVENOPASS
:SHOWPASS
CallScript _DisplayMessageBox "Passcode Entered $eol$ MD5: 0x%nPassMD5% $eol$ Press any button"
GOTO SAVEPASS
:RESULTS
CallScript _DisplayMessageBox "MXM_Entry.xml for %_GameTitle% saved to: $eol$ %_GameDir%\\MXM_Entry.xml $eol$ Changes will happen after reboot $eol$ Press any button"
GOTO DONE
;------------------- Message Output End -------------------------
;------------------- Save Entry Start ---------------------------
:SAVENOPASS
XMLOPEN EntryXML
XMLCreate EntryXML Config
XMLSetValue EntryXML !.Item.Title %nTitle%
XMLSetValue EntryXML !.Item.Descr %nDesc%
XMLSetValue EntryXML !.Item.Description %nDesc%
XMLSetValue EntryXML !.Item.Cover %nCover%
XMLSetValue EntryXML !.Item.Thumbnail %nThumb%
XMLSetValue EntryXML !.Item.Media %nPreview%
XMLSave EntryXML %_GameDir%\MXM_Entry.xml
XMLCLOSE EntryXML
GOTO RESULTS
:SAVEPASS
XMLOPEN EntryXML
XMLCreate EntryXML Config
XMLSetValue EntryXML !.Item.Title %nTitle%
XMLSetValue EntryXML !.Item.Descr %nDesc%
XMLSetValue EntryXML !.Item.Description %nDesc%
XMLSetValue EntryXML !.Item.Cover %nCover%
XMLSetValue EntryXML !.Item.Thumbnail %nThumb%
XMLSetValue EntryXML !.Item.Media %nPreview%
XMLSetValue EntryXML !.Item.PasscodeMD5 %nPassMD5%
XMLSave EntryXML %_GameDir%\MXM_Entry.xml
XMLCLOSE EntryXML
GOTO RESULTS
;------------------- Save Entry End -----------------------------
:DONE
ResetMenuCache
:END
QUIT


This post has been edited by flattspott: Feb 16 2004, 08:30 PM
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
geniusalz
post Jan 29 2004, 11:09 PM
Post #2


Team MXM
*****

Group: Head Moderator
Posts: 1827
Joined: 3-January 03
Member No.: 16298
Xbox Version: v1.1
360 version: unknown



cool cool.gif and useful
beerchug.gif
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Kthulu
post Jan 30 2004, 12:04 AM
Post #3


X-S Freak
*****

Group: XS-BANNED
Posts: 1287
Joined: 8-August 03
Member No.: 54981
Xbox Version: v1.0
360 version: unknown



awesome flattspott! thanks!

This post has been edited by Kthulu: Jan 30 2004, 12:08 AM
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Unbewoffnet
post Jan 30 2004, 03:11 AM
Post #4


X-S Young Member
*

Group: Members
Posts: 35
Joined: 15-May 03
Member No.: 38175



Excellent, I was gonna hafta write something like this. Way to go, flattspott.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
flattspott
post Jan 30 2004, 06:59 AM
Post #5


X-S Freak
*****

Group: Moderator
Posts: 1787
Joined: 14-April 03
From: Southern California
Member No.: 32293
Xbox Version: v1.0
360 version: v1 (xenon)



Also, I fail to mention. This will only work with the last few WIP releases or newer seeing how 0.9n6 doesn't have the StringInput stuff.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
flattspott
post Feb 6 2004, 06:26 PM
Post #6


X-S Freak
*****

Group: Moderator
Posts: 1787
Joined: 14-April 03
From: Southern California
Member No.: 32293
Xbox Version: v1.0
360 version: v1 (xenon)



Updated above^ biggrin.gif
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
yourwishismine
post Feb 6 2004, 06:44 PM
Post #7


X-S Genius
****

Group: Members
Posts: 890
Joined: 5-September 03
Member No.: 60722
Xbox Version: unk



this and a few of the other scripts are SUPER cool. Perhaps BenJeremy would consider packaging them in with the next release of MXM... since they are very very small (especially when rar'ed)... and super cool features...
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
BenJeremy
post Feb 6 2004, 09:31 PM
Post #8


X-S Elysian
*************

Group: Head Moderator
Posts: 9688
Joined: 19-July 02
Member No.: 1853
Xbox Version: v1.1
360 version: v1 (xenon)



QUOTE (yourwishismine @ Feb 6 2004, 03:44 PM)
this and a few of the other scripts are SUPER cool. Perhaps BenJeremy would consider packaging them in with the next release of MXM... since they are very very small (especially when rar'ed)... and super cool features...

Actually, once dialog UI is done, I'll be calling on ActionScripting WIP Testers to help me complete the system wink.gif with some cool scripts to be made internal to MXM.

The auto-installer routine needs a lot of work right now, and I'd like to make some of the cool functionality that's been createdf a part of the standard MXM build.

User is offlineProfile CardPM
Go to the top of the page
+Quote Post
flattspott
post Feb 7 2004, 05:41 PM
Post #9


X-S Freak
*****

Group: Moderator
Posts: 1787
Joined: 14-April 03
From: Southern California
Member No.: 32293
Xbox Version: v1.0
360 version: v1 (xenon)



Look at the first post for todays update info!
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Dyesub Dave
post Mar 4 2005, 08:45 AM
Post #10


X-S Enthusiast


Group: Members
Posts: 7
Joined: 4-March 05
Member No.: 203415



Hi All .. I'm new to this forum and MXM.

I've only been using MXM for a few days but it's already starting to make my XBOX look really KOOL. The options are endless. I've got some game trailers running and I've been playing with the sound a bit. I do have a background in computer programming but it's been a while!

I'm currently using MXM 0.9n6 and have been trying to passcode some of the games & apps so that my 6yr old doesn't get into them. I haven't had much luck so far .... I'm not sure where to put the MXM_Entry.xml file?? When doing a search for info I came across this MXM scripting but I think it says it won't work with the version of MXM that I have. And I'm unsure of what this WIP is and how it relates to MXM .... I'll have to read a little more of this forum maybe ... but everyone already seems to know what it is.

blink.gif uhh.gif blink.gif

The MXM Entry Maker sounds like the solution to my problem but I'm not sure if I can use it with the version that I have .... and/or do I need some update files?? Any advice or a nudge in the right direction would be appreciated !!

Thanks .. Dyesub Dave. cool.gif



User is offlineProfile CardPM
Go to the top of the page
+Quote Post





Reply to this topicStart new topic

 

Lo-Fi Version Time is now: 18th June 2013 - 07:25 AM