Jump to content


Photo

Entry Maker


  • Please log in to reply
9 replies to this topic

#1 flattspott

flattspott

    X-S Freak

  • Moderator
  • PipPipPipPipPip
  • 1,787 posts
  • Location:Southern California
  • Xbox Version:v1.0
  • 360 version:v1 (xenon)

Posted 29 January 2004 - 11:01 PM

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

Edited by flattspott, 16 February 2004 - 08:30 PM.


#2 geniusalz

geniusalz

    Team MXM

  • Members
  • PipPipPipPipPip
  • 1,827 posts
  • Xbox Version:v1.1
  • 360 version:unknown

Posted 29 January 2004 - 11:09 PM

cool cool.gif and useful
beerchug.gif

#3 Kthulu

Kthulu

    X-S Freak

  • XS-BANNED
  • PipPipPipPipPip
  • 1,287 posts
  • Xbox Version:v1.0
  • 360 version:unknown

Posted 30 January 2004 - 12:04 AM

awesome flattspott! thanks!

Edited by Kthulu, 30 January 2004 - 12:08 AM.


#4 Unbewoffnet

Unbewoffnet

    X-S Young Member

  • Members
  • Pip
  • 35 posts

Posted 30 January 2004 - 03:11 AM

Excellent, I was gonna hafta write something like this. Way to go, flattspott.

#5 flattspott

flattspott

    X-S Freak

  • Moderator
  • PipPipPipPipPip
  • 1,787 posts
  • Location:Southern California
  • Xbox Version:v1.0
  • 360 version:v1 (xenon)

Posted 30 January 2004 - 06:59 AM

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.

#6 flattspott

flattspott

    X-S Freak

  • Moderator
  • PipPipPipPipPip
  • 1,787 posts
  • Location:Southern California
  • Xbox Version:v1.0
  • 360 version:v1 (xenon)

Posted 06 February 2004 - 06:26 PM

Updated above^ biggrin.gif

#7 yourwishismine

yourwishismine

    X-S Genius

  • Members
  • PipPipPipPip
  • 890 posts
  • Xbox Version:unk

Posted 06 February 2004 - 06: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...


#8 BenJeremy

BenJeremy

    X-S Elysian

  • Members
  • PipPipPipPipPipPipPipPipPipPipPipPipPip
  • 9,690 posts
  • Xbox Version:v1.1
  • 360 version:v1 (xenon)

Posted 06 February 2004 - 09:31 PM

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.



#9 flattspott

flattspott

    X-S Freak

  • Moderator
  • PipPipPipPipPip
  • 1,787 posts
  • Location:Southern California
  • Xbox Version:v1.0
  • 360 version:v1 (xenon)

Posted 07 February 2004 - 05:41 PM

Look at the first post for todays update info!

#10 Dyesub Dave

Dyesub Dave

    X-S Enthusiast

  • Members
  • 7 posts

Posted 04 March 2005 - 08:45 AM

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








0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users