xboxscene.org forums

Pages: [1] 2 3 ... 7

Author Topic: Add Games Not On Your Hdd With Vids  (Read 520 times)

chilin_dude

  • Archived User
  • Hero Member
  • *
  • Posts: 3068
Add Games Not On Your Hdd With Vids
« on: April 02, 2004, 10:06:00 AM »

Ok, I am sure a lot of people don't have all of their games on the hard drive, and instead burn them all to disks. I am one of these people, however I was thinking how cool it would be to be able to add all my games onto the list with preview videos and when i select the item it will prompt you to insert the disk. Now here is the clever bit. The only way that I think you could identify if it where the right game or not would to be use actionscripts. Say something like the following (please note i know this isn't the proper layout but I am getting to grips still.)

get mxm to check the dvd inserted for the XBEID and return it.
compare to the xbeid that the game that you are launching has, this will have had to have been entered to the actionscript before being put on your xbox.

IF  XBEID = 0x275802848 (the xbeid of the game you are trying to launch)
EXEC D:\Default.xbe

So now i have told you what i was thinking, can the wizards give me any tips on this and possibly even show how the real script would look?
Thanks for replying!!
Logged

geniusalz

  • Archived User
  • Hero Member
  • *
  • Posts: 1635
Add Games Not On Your Hdd With Vids
« Reply #1 on: April 02, 2004, 10:30:00 AM »

Yeah, that's pretty possible.

In the menu.xml

<Item>
<Title>Splinter cell</Title>
<Action>
SETFUNC fileID XBEID d:\default.xbe
if fileID == "012345679" GOTO CorrectID
GOTO BadID
:CorrectID
CD D:\
EXEC default.xbe
QUIT

:BadID
msgbox "Please insert the correct disc"
</Action>
<Media>preview vid goes here</Media>
Logged

chilin_dude

  • Archived User
  • Hero Member
  • *
  • Posts: 3068
Add Games Not On Your Hdd With Vids
« Reply #2 on: April 02, 2004, 10:58:00 AM »

W00T you rock man!!! Thought this would be possible but i wasn't clever enough to make it, know to go and collect some XBEID'S.
Logged

chilin_dude

  • Archived User
  • Hero Member
  • *
  • Posts: 3068
Add Games Not On Your Hdd With Vids
« Reply #3 on: April 02, 2004, 11:22:00 AM »

DAMN!!!!
It doesn't work, got the XBEID from in mxm by using title info screen, then entered that into my menu.xml however even when i insert the disk and run the file it simply comes up as 'please insert disk'
Logged

geniusalz

  • Archived User
  • Hero Member
  • *
  • Posts: 1635
Add Games Not On Your Hdd With Vids
« Reply #4 on: April 02, 2004, 12:27:00 PM »

My bad

if %fileID% == "012345679" GOTO CorrectID
GOTO BadID

Edit: MXM treats text as strings, and %blah% as variables.

And to check on the format, just say
Msgbox %fileID%

This post has been edited by geniusalz: Apr 2 2004, 08:32 PM
Logged

-FourDoor-

  • Archived User
  • Full Member
  • *
  • Posts: 225
Add Games Not On Your Hdd With Vids
« Reply #5 on: April 02, 2004, 01:12:00 PM »

Glad someone else wants to incorparate their DVD game list into their menu as well.  :D  This was the whole reason I got interested in Actionscripting. My last attempt at this was to create my DVD Game Disk launcher script.

Basically the way I had it set up was that I had a submenu for my dvd game lists which I manually created to include prev videos and game icon. And once you select the game, it prompts you to insert a dvd game disk. If it wasnt a game disk or if the dvd drive was empty it wouldn't launch. However, it wasn't smart enough to know the difference between halo and prince and persia in the dvd rom drive.  <_<  Then I had the same idea as you to launch based on xbeids but started getting too busy to play around with mxm fully. And in addition, BJ announced that a game database was in the works for MXM a little while ago.

LaunchDVDGame.xas

And this was what I had in my menu.xml for each dvd game listing
CODE

       
   Halo
   GameDisk Launcher
   
      CALLFILE c:\MXMxas\LaunchDVDGame.xas
   

   F:\Media\Videos\Prev\Halo.wmv   
    




It worked well but I got a little tired (more like lazy of adding items manually everytime I got a new game). So my next goal was to basically tap into BJ's gamelist database in the future and make an actionscript that lets you scroll down the list of games in the database, flag which games you have on dvd, specify the preview video/icon, hit reset, and have the actionscript automatically create you a DVD Game list submenu.  :popcorn:

Well that's my one dream/goal with MXM and actionscripting at least in the future. Hopefully I can find the time in the future and finish it up or have another one of the great actionscripters here finish the coding for it.  ;)  
Logged

flattspott

  • Archived User
  • Hero Member
  • *
  • Posts: 1220
Add Games Not On Your Hdd With Vids
« Reply #6 on: April 02, 2004, 05:46:00 PM »

Well here's a thought.

You use a modded version of EntryMaker to make an entry.xml for the game.
Maybe by changing the Mode to DVD instead of HD. Then you could have the games in your menu but not on your xbox.  
Logged

chilin_dude

  • Archived User
  • Hero Member
  • *
  • Posts: 3068
Add Games Not On Your Hdd With Vids
« Reply #7 on: April 03, 2004, 08:58:00 AM »

Thanks geniusalz!!!
Fourdoors, glad i wasn't the only one interested in this.
When I have finished adding my 40ish games I will post up my spreadsheet with all xbe ids so that we can try to complete a database...
Now i was thinking about the script though, at the moment it is:
QUOTE
<Item>
<Title>Splinter cell</Title>
<Action>
SETFUNC fileID XBEID d:\default.xbe
if %fileID% == "012345679" GOTO CorrectID
GOTO BadID
:CorrectID
CD D:\
EXEC default.xbe
QUIT

:BadID
msgbox "Please insert the correct disc"
</Action>
<Media>preview vid goes here</Media
</item>

Would there be anyway to get it to display the title name if the right game wasn't inserted?
Say
QUOTE
msgbox "Please insert %title% disk

I thought this might be possible but after looking throught the actionscript collection post it appears there is no %title% variable... Any other way to do it?
Logged

geniusalz

  • Archived User
  • Hero Member
  • *
  • Posts: 1635
Add Games Not On Your Hdd With Vids
« Reply #8 on: April 03, 2004, 09:03:00 AM »

%_GameTitle% might work, but I'm afraid it's only used for context scripts.
Logged

chilin_dude

  • Archived User
  • Hero Member
  • *
  • Posts: 3068
Add Games Not On Your Hdd With Vids
« Reply #9 on: April 03, 2004, 08:59:00 AM »

QUOTE (geniusalz @ Apr 3 2004, 06:56 PM)
%_GameTitle% might work, but I'm afraid it's only used for context scripts.

Ok, I'm starting to understand scripts a little  ohmy.gif
But 'context scripts'? Does this mean it wouldn't work?
Logged

chilin_dude

  • Archived User
  • Hero Member
  • *
  • Posts: 3068
Add Games Not On Your Hdd With Vids
« Reply #10 on: April 03, 2004, 09:23:00 AM »

QUOTE
<Item>
<Title>Splinter cell</Title>
<Action>
SETFUNC fileID XBEID d:\default.xbe
if %fileID% == "012345679" GOTO CorrectID
GOTO BadID
:CorrectID
CD D:\
EXEC default.xbe
QUIT

:BadID
msgbox "Please insert the correct disc"
</Action>
<Media>preview vid goes here</Media
</item>

Still doesn't work... Anyone know why? I tried various changes but couldn't get it to work ( And yes have changed the 0123 bit!
Logged

geniusalz

  • Archived User
  • Hero Member
  • *
  • Posts: 1635
Add Games Not On Your Hdd With Vids
« Reply #11 on: April 03, 2004, 09:26:00 AM »

Context scripts are those that show up when you press Y with a game selected, then go to 'Game Options'

So the _GameTitle variable might or might not be accessible in a 'normal' script.
Logged

geniusalz

  • Archived User
  • Hero Member
  • *
  • Posts: 1635
Add Games Not On Your Hdd With Vids
« Reply #12 on: April 03, 2004, 09:28:00 AM »

Try this to see what ID it's reporting:

SETFUNC fileID XBEID d:\default.xbe
Msgbox %fileID%
if# %fileID% == "012345679" GOTO CorrectID
Logged

chilin_dude

  • Archived User
  • Hero Member
  • *
  • Posts: 3068
Add Games Not On Your Hdd With Vids
« Reply #13 on: April 03, 2004, 10:41:00 AM »

This is weird, I have changed my menu to that now.
So now when i launch RTCW that I have in the drive by selecting it, it pops up a message box with about 8 digits, however this ISN'T the file ID as I have checked by going to the disk and pressing Y then game info and it shows the ID i have in my menu.xml
HOWEVER it loads the game even though the ID shown on screen isn't the real ID.
When i try to launch say PGR2 and its the RTCW disk inserted still, it shows the same (wrong) ID and then gives the 'Please insert the correct disc' message...
Bug or something?
Logged

koldfuzion

  • Archived User
  • Hero Member
  • *
  • Posts: 1226
Add Games Not On Your Hdd With Vids
« Reply #14 on: April 03, 2004, 01:34:00 PM »

I think a context menu to add a dvd game to a dvd.xml on the xbox would help facilitate building of the database quite rapidly.  


Just put it into the same structure as the current cache_menu.xml and away we go. smile.gif

edit: I say dvd.xml so everyone doesnt have to mess up thier cache_menu.xml  then the dvd.xml could be continually submitted to axs to update the database.
Logged
Pages: [1] 2 3 ... 7