xboxscene.org forums

Author Topic: Entry Maker  (Read 116 times)

flattspott

  • Archived User
  • Hero Member
  • *
  • Posts: 1220
Entry Maker
« on: January 29, 2004, 04:12:00 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.
;#  
;#    
;#      
;#        HD
;#        CallFile $ActualPath$\Scripts\EntryMaker.xas
;#      

;#    

;#
;#              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, 09:41 PM <
Logged

geniusalz

  • Archived User
  • Hero Member
  • *
  • Posts: 1635
Entry Maker
« Reply #1 on: January 29, 2004, 04:20:00 PM »

cool B) and useful
:beer:   <
Logged

Kthulu

  • Archived User
  • Hero Member
  • *
  • Posts: 787
Entry Maker
« Reply #2 on: January 29, 2004, 05:15:00 PM »

awesome flattspott!  thanks!

This post has been edited by Kthulu: Jan 30 2004, 01:19 AM <
Logged

Unbewoffnet

  • Archived User
  • Newbie
  • *
  • Posts: 14
Entry Maker
« Reply #3 on: January 29, 2004, 08:22:00 PM »

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

flattspott

  • Archived User
  • Hero Member
  • *
  • Posts: 1220
Entry Maker
« Reply #4 on: January 30, 2004, 12:10:00 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.  <
Logged

flattspott

  • Archived User
  • Hero Member
  • *
  • Posts: 1220
Entry Maker
« Reply #5 on: February 06, 2004, 11:37:00 AM »

Updated above^ :D   <
Logged

yourwishismine

  • Archived User
  • Sr. Member
  • *
  • Posts: 325
Entry Maker
« Reply #6 on: February 06, 2004, 11:55:00 AM »

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...
 <
Logged

BenJeremy

  • Archived User
  • Hero Member
  • *
  • Posts: 5645
Entry Maker
« Reply #7 on: February 06, 2004, 02:42:00 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 ;) 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.

 <
Logged

flattspott

  • Archived User
  • Hero Member
  • *
  • Posts: 1220
Entry Maker
« Reply #8 on: February 07, 2004, 10:52:00 AM »

Look at the first post for todays update info!  <
Logged

Dyesub Dave

  • Archived User
  • Newbie
  • *
  • Posts: 1
Entry Maker
« Reply #9 on: March 04, 2005, 01:56:00 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:  :uhh:  :blink:

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.    B)



 <
Logged