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 |
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
|
This post has been edited by geniusalz: Apr 3 2004, 02:56 AM
Neat, but the vids.xml is kinda small don't you think?
As I said, I've only got 2 videos hosted ATM, as a proof of concept, but adding more isn't a problem.
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.
This post has been edited by geniusalz: Apr 3 2004, 04:09 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.
This post has been edited by unleashx: Apr 3 2004, 04:32 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
Can't really help with the web scripting stuff (never done it before)
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.
| 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.
Shouldn't Context Scripts go in your MXM.xml and not your Menu.xml?
| 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?
No the Title ID is hard coded I believe.
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?
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.
only the intial setup, which would be quite simple actually.
Alright then, let's see it
That's what I was thinking originally. But it seems like a waste to use cache menus, cause it has all the other redundent (sp?) stuff like paths, media, etc. After all we're only after the IDs. Someone would still have to go through the cache menus, and get the IDs.
| QUOTE (flattspott @ Apr 3 2004, 08:09 PM) |
| That's what I was thinking originally. But it seems like a waste to use cache menus, cause it has all the other redundent (sp?) stuff like paths, media, etc. After all we're only after the IDs. Someone would still have to go through the cache menus, and get the IDs. |
Koldfuzion says
| QUOTE |
| let it parse the xml into a single database/xml with the xbeid and game name? |
So i think he means it will auto delete all the unneeded stuff!!!
Great stuff guys!!! Will be good for my hard drive dvd games
Yeah I saw that afterwards. If thats the case then Im all for it.
It'll also need some sort of duplicate checking though
let me know if you run into any errors.. especially with those using nested menus. I didnt take the time to create one for testing, but it should still be fine.
Apps or games with a gameid of zero (0) or null will not be added.
If the game already exists in the DB, it too will not be added.
If you recieve an error durring upload.. its quite possible a xml was being parsed at the time and you need to wait a second or two.
You can see the current Apps and Games DB here
And you can submit your own cache_menu.xml HERE
Errors?... please let me know.. and provide a screenshot if you can.
EDIT: the LiveEnabled will null for non-live enabled games and a 1 for live enabled games. Hoping to prevent xbox live conenctions for those using anything other than the x2 4891 bios. I think this was discussed a long time ago.. so i thought i would throw it in. I might change this to actually produce a zero or one and not leave a null tag. (for easier actionscripting comparison)
BLazeD, i will be installing the forum on my local PC soon so i can see how it is structured.
Once I get that done, writing the code to "add" to your existing site should be very simple. I just need to see what data I need, and where to execute the updates to the xml at.
I will PM you to send you the code and any directions you may need to implement. Or just help you through it.
You have Halo listed as a LiveEnabled game
| QUOTE (flattspott @ Apr 3 2004, 11:46 PM) |
| You have Halo listed as a LiveEnabled game |
yea i know.. im playing around with an admin form to change those values. Since they cant be pulled from the menu_cache.. it will have to be done manually.
It will be fixed though.
Well I just did a script that will get the internal name and IDs in a directory.
Capcom vs SNK 2 EO = 1128464392
True Crime: Streets of LA = 1096155150
Blinx: The Time Sweeper = 1297285139
Buffy: The Vampire Slayer = 1161887762
Halo: Combat Evolved = 1297285124
Hitman 2: Silent Assassin = 1163067401
Soul Calibur 2 = 1313669123
Metal Gear Solid 2: Substance = 1263403015
Mortal Kombat: Deadly Alliance = 1297547276
Oddworld: Munch's Oddysee = 1297285121
Project Gotham Racing 2 = 1297285195
Silent Hill 2: Restless Dreams = 1263403012
Tony Hawk's Pro Skater 4 = 1096155159
Tao Feng: Fist of the Lotus = 1297285140
Indiana Jones and the Emperor's Tomb = 1279328263
Vexx = 1094909957
007: Nightfire = 1161887782
Medal Of Honor: Frontline = 1161887770
Dino Crisis 3 = 1128464387
MLB Slugfest 2004 = 1297547273
Red Faction 2 = 1414594565
X2: Wolverine's Revenge = 1096155144
NINJA GAIDEN = 1413677059
Brute Force = 1297285150
Midnight Club 2 = 1414791176
Need For Speed: Hot Pursuit 2 = 1161887784
Wreckless: The Yakuza Missions = 1096155146
Evil Dead: A Fistful Of Boomstick = 1414594571
Dead or Alive Xtreme Beach VolleyBall = 1413677063
Soldier of Fortune II = 1096155163
Max Payne = 1414791171
The Suffering = 1297547285
Quantum Redshift = 1297285141
Teenage Mutant Ninja Turtles = 1263403035
Spawn: Armageddon = 1313669132
Grand Theft Auto III = 1414791182
Need for Speed:Underground = 1161887815
Prince of Persia: The Sands of Time = 1431502877
I-Ninja = 1313669135
Ghost Recon: Island Thunder = 1431502855
Hunter: The Reckoning = 1448411143
Burnout 2: Point of Impact = 1094909977
XIII = 1431502857
Max Payne 2 = 1414791180
But I could change it to put it in the xml form you have
im just parsing the cache_menu.xml I figured that would be the easiest, even a non-techie could help contribute that way.
I think im going to work on a DVD script to put DVD game info in the same format as the cache_menu.xml (but named DVD.XML) and run it as a context script so all the games I have on DVD can easily be added too.
EDIT: By the way, I named the xml elements that way to prevent confusion with existing elements. So eventually, if this thing gets used, it shouldnt caue too many conflicts with whats already in place.
Nice work.
But I see a little problem there. "Fan Speed 20%" was a menu item in my xml, and it's appearing on the DB:
- <item>
<gametitle>Fan speed 20%</gametitle>
<gameid>262994624</gameid>
<liveenabled>0</liveenabled>
</item>
From my xml:
<item>
<title>Fan speed 20%</title>
<action>
SetFanSpeed Manual 10
</action>
<dir>C:\</dir>
</item>
Edit: that ID (262994624) is actually dvd2xbox
can you get on irc and send me your cache_menu.xml... i'd like to see whats causeing this.
| QUOTE |
I manually added yours, flattspott. With that, YuYu's and part of mine.. we are up to 153 and i backed it up in case geniusalz corrupts it with his hacked menu .
Edit: I just went through the Database Thread (can we please clean that up now?) and added all the missing ones up to 198 games. |
That's around the number I had back in the day. This list was just games, not apps or emulators. I'll see if if still got that list hidding one my pc.
Also, maybe you could be so kind as to fix some of those Need For Speed names.
NFS = Seems bad to me
Need For Speed = Seems nicer
| QUOTE |
Also, maybe you could be so kind as to fix some of those Need For Speed names. NFS = Seems bad to me Need For Speed = Seems nicer |
I think I have them all done.
bump... bj, can you read the first post, and look at the 'focus' issue?
He's probable still out on his 20 mile bike ride at the moment.
Heh... not yet tonight. I'll try and look at the "FOCUS" issue (assuming I can understand what is happening there).
At the moment, I find myself having to write a routine to decode: "mon, 01-Jan-2014 12:00:00 GMT" into a valid Date, for proper cookie support in HTTP.
Yes, it's coming shortly. X-S forums use cookies, but not "expires" yet, but I was able to decode the cookie fine. Saving to a database, and storing cookies with expiries is the next step. I have to wrap this up so I can put the HTTP stuff down for a while and get back to stomping bugs and cleaning up the init code.
Good to hear about this stuff you're thinking up