Jump to content


Photo

Preview Video Auto Downloader


  • Please log in to reply
37 replies to this topic

#1 geniusalz

geniusalz

    Team MXM

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

Posted 03 April 2004 - 02:19 AM

Very basic stuff, right now only has 2 videos hosted (Prince of Persia and Project Gotham Racing 2)

Context menu item that automatically downloads a preview video for a game.

Not extensively tested.

Something I noticed is that you can still navigate the menu while the script is running. Meaning, when you click 'download', and it starts downloading, the 'focus' stays in the context menu. So while it downloads, you can go out of the system menu.
An ugly situation, and MXM seems to hang up, but it really doesn't. Give it a while to finish downloading, then it should work fine.

Benjeremy, can you look into this focus issue, and fix it?



To use the script, put this in your menu.xml
CODE
<Context>
<Item Name="Download Preview Video">
 <Action>
 Msgbox "Press a button to start download"
 WEBFILEFETCH c:\vids.xml http://mxm.brokensite.org/vids.xml
 XMLOPEN vidsXML c:\vids.xml
 XMLGetValue vidsXML vidURL !.game?ID=%_GameXBEID%.file
 IF %vidURL% != "" THEN
  WEBFILEFETCH %_GameDir%\MXM_SS.wmv %vidURL%
  ResetMenuCache
  MsgBox "Video downloaded and cache reset.  Reboot to see changes"
 ELSE
  MsgBox "Preview video not found"
 ENDIF
 </Action>
</Item>
</Context>

Edited by geniusalz, 03 April 2004 - 02:20 AM.


#2 flattspott

flattspott

    X-S Freak

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

Posted 03 April 2004 - 03:20 AM

Neat, but the vids.xml is kinda small don't you think?

#3 geniusalz

geniusalz

    Team MXM

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

Posted 03 April 2004 - 03:28 AM

As I said, I've only got 2 videos hosted ATM, as a proof of concept, but adding more isn't a problem.

#4 geniusalz

geniusalz

    Team MXM

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

Posted 03 April 2004 - 03:31 AM

It also gives a webfilefetch command not implemented error. But it still works. Maybe like that Launchdvd problem

Edit: Now if unrar support was there, we could work with blazed to download vids off his site, and then unrar them.

Edited by geniusalz, 03 April 2004 - 03:33 AM.


#5 unleashx

unleashx

    X-S Freak

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

Posted 03 April 2004 - 03:51 AM

I'm preparing the sources to Unrar which could handle the newer rar format. This was written by grebulon and sent to me for testing. I'll upload it at xbins within the next few days for other people to use.

Add: I also spoke to BLazed a few weeks back, and he have no qualms about downloading skins/vids from his site. Although there's no limit, I propose that the dashes which uses the service implements the limit. This would encourage people to browse the site. Also, BLazed mentioned that he can't write scripts to list down the available file/videos and the videos don't have any relation to the game ID's either. I was thinking of doing it the hard way, parsing the HTML and get the links but then that wouldn't be too accurate. If somebody can get BLazeD a hand in creating that script to output XML, it would be beneficial to everyone.

Edited by unleashx, 03 April 2004 - 03:56 AM.


#6 geniusalz

geniusalz

    Team MXM

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

Posted 03 April 2004 - 04:05 AM

QUOTE (unleashx @ Apr 3 2004, 12:51 AM)
I'm preparing the sources to Unrar which could handle the newer rar format. This was written by grebulon and sent to me for testing. I'll upload it at xbins within the next few days for other people to use.

That's cool beerchug.gif

Can't really help with the web scripting stuff (never done it before)

#7 flattspott

flattspott

    X-S Freak

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

Posted 03 April 2004 - 02:55 PM

That's why I think a new script is in order.

A TitleID Grabber.

It will use the WriteFileLn stuff and print out a list of every XBE on your xbox in the following format;

TitleID=Internal Name
TitleID=Internal Name
TitleID=Internal Name
etc

This way everyone can run it and we can get a massie ID Database.

#8 koldfuzion

koldfuzion

    X-S Freak

  • Members
  • PipPipPipPipPip
  • 1,480 posts

Posted 03 April 2004 - 03:43 PM

QUOTE (unleashx @ Apr 3 2004, 05:51 AM)
Add: I also spoke to BLazed a few weeks back, and he have no qualms about downloading skins/vids from his site. Although there's no limit, I propose that the dashes which uses the service implements the limit. This would encourage people to browse the site. Also, BLazed mentioned that he can't write scripts to list down the available file/videos and the videos don't have any relation to the game ID's either. I was thinking of doing it the hard way, parsing the HTML and get the links but then that wouldn't be too accurate. If somebody can get BLazeD a hand in creating that script to output XML, it would be beneficial to everyone.

well I dont think he wants to change the current xbox-skins.net to a different code base however, I could load a copy of the board he uses on my local pc and see how it stores the files and the best location for the code to be executed.

Then a small code tidbit could be written added into his current site that uses the topic with archive/video file name/location written to xml on each upload.




#9 flattspott

flattspott

    X-S Freak

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

Posted 03 April 2004 - 04:06 PM

Shouldn't Context Scripts go in your MXM.xml and not your Menu.xml?

#10 chilin_dude

chilin_dude

    X-S Knowledgebase

  • Members
  • PipPipPipPipPipPipPipPip
  • 4,945 posts
  • Location:USA
  • Xbox Version:v1.0
  • 360 version:unknown

Posted 03 April 2004 - 04:11 PM

QUOTE (flattspott @ Apr 3 2004, 04:55 PM)
That's why I think a new script is in order.

A TitleID Grabber.

It will use the WriteFileLn stuff and print out a list of every XBE on your xbox in the following format;

TitleID=Internal Name
TitleID=Internal Name
TitleID=Internal Name
etc

This way everyone can run it and we can get a massie ID Database.

Well there's a load of games like this in the x-link forum... but this would be great for me. I will post all my games xbe ids when I have finished adding them to the xbox, one question though. If i have changed the default.xbe name by using xbe renamer will this change the title ID?

#11 flattspott

flattspott

    X-S Freak

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

Posted 03 April 2004 - 04:25 PM

No the Title ID is hard coded I believe.

#12 koldfuzion

koldfuzion

    X-S Freak

  • Members
  • PipPipPipPipPip
  • 1,480 posts

Posted 03 April 2004 - 04:49 PM

what if I made a page on AXS to accept cache_menu.xml's(uploaded) and let it parse the xml into a single database/xml with the xbeid and game name? would that be of any help?

#13 geniusalz

geniusalz

    Team MXM

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

Posted 03 April 2004 - 04:53 PM

IMO that would be less hassle than installing and running a script for the end user, but it will probably mean more work for you.

#14 koldfuzion

koldfuzion

    X-S Freak

  • Members
  • PipPipPipPipPip
  • 1,480 posts

Posted 03 April 2004 - 04:55 PM

only the intial setup, which would be quite simple actually.

#15 geniusalz

geniusalz

    Team MXM

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

Posted 03 April 2004 - 04:57 PM

Alright then, let's see it smile.gif




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users