xboxscene.org forums

OG Xbox Forums => Official MediaXMenu (MXM) Forum => Dashboard Forums => MXM WIP Beta forum => Topic started by: koldfuzion on April 28, 2004, 03:38:00 PM

Title: Downloadable Content
Post by: koldfuzion on April 28, 2004, 03:38:00 PM
Going to keep this short and sweet.  But not to forget some huge props to flattspott, for putting mucho time into the data this DB provides and also to Blazed for hosting the videos.  (of course BJ and UnleashX for enabling us, yes both dashboards will be using this.)

Maybe at a later date we can provide mini-game cover image and ESRB image? will think about that.

while not 100% complete from the web-user viewpoint.  Game Preview video download is 100% ready for MXM Actionscripting adn while I was planning to do it myself, it wouldnt be right to horde the information.

First, the web-view of the games database. http://www.xbox-skin...games/index.php

So lets get started.

Big question---> How?

You can get the info needed two ways. And you will need to get this data either once, if using the full database, or each time for each game based on the HEXID

1. Full Database http://www.xbox-skin...mes/gamesdb.xml

2. Using the HexID of the game to check for the single item xml and pulling only that xml data. ie http://www.xbox-skin...b4e0002</b>.xml for Airforce Delta Storm.

Then you only need to determine if the video is available, if you want it , and how to handle it.  You then send a video request to the website and work the file and possible cookie that is returned.

in the actionscripts, you send the video request using http://www.xbox-skin...?<b>sid=135</b>

XML Data:
The sid in the url is the VidID value in the XML.

Video : 0=No Video Download, 1=WMV, 2=XMV

VC=  Video Compression: 0=No Compression, 1=RAR, 2=ZIP


Retrieve the data:

Key points to check for are:
1. is the game in the DB, or single XML available?
2. is video available?
3. if video is available, how does it need to be handled? (RAR, ZIP, WMV, XMV)?

And all additinal info in the XML can be displayed, or not.  

Keep in mind.  Video downloads may or may-not be restricted to a certain download count.  Much like the way AXS does the skins now.

When that download count is reached, a cookie will be sent so you can display that the limit has been reached, and how long before downloading can resume.  (this might still need some work from BJ) Use the webdownload and click on 12 links or so)

The cookie you need to look for is named TimeLeft and its value will read something like :

"Everyone is limited to 10 Downloads in 24 hours. You have 2 hours 34minutes and 12 seconds to wait before downloads are re-enabled"


Not too short, and hopefully not too confusing.  If it is confusing, let me know and i will clarify.

------------------------------------------------------------------------------------------------

user posted image

Current Working code (except i have the filefetches rem'd for now till i get the thumbs and covers uploaded and renamed.

Call from context,  it makes no self references so you can name whatever you want to.


kudos to Jezz for the loaddialog from xml he used in the IPDialog script.  Its awesome code and was used extensively with modification.  Made the script build go extremely fast.



CODE




:TOP
SET _contentprogress 200
;##############  CHECK FOR DIALOG XMLs CREATE IF NOT FOUND
SETFUNC XCheck FILEEXISTS E:\UDATA\00004321\content.xml
IF# %XCheck% == 1 GOTO NETWORKCHECK
XMLCreate ContentDLG Content
XMLSetValue ContentDLG !^pos~t 100
XMLSetValue ContentDLG !^pos~l 120
XMLSetValue ContentDLG !^pos~w 400
XMLSetValue ContentDLG !^pos~h 220
XMLSetValue ContentDLG !.control:0~type text
XMLSetValue ContentDLG !.control:0~ctrlid 902
XMLSetValue ContentDLG !.control:0^rect~t 10
XMLSetValue ContentDLG !.control:0^rect~b 125
XMLSetValue ContentDLG !.control:0^rect~l 10
XMLSetValue ContentDLG !.control:0^rect~r 395
XMLSetValue ContentDLG !.control:0^text "Only Press the Button 1 time!$eol$Download time depends on file size.$eol$You will be notified of completion."
XMLSetValue ContentDLG !.control:1~type button
XMLSetValue ContentDLG !.control:1~ctrlid 201
XMLSetValue ContentDLG !.control:1^rect~t 128
XMLSetValue ContentDLG !.control:1^rect~b 155
XMLSetValue ContentDLG !.control:1^rect~l 60
XMLSetValue ContentDLG !.control:1^rect~r 130
XMLSetValue ContentDLG !.control:1^text "All"
XMLSetValue ContentDLG !.control:2~type button
XMLSetValue ContentDLG !.control:2~ctrlid 202
XMLSetValue ContentDLG !.control:2^rect~t 128
XMLSetValue ContentDLG !.control:2^rect~b 155
XMLSetValue ContentDLG !.control:2^rect~l 160
XMLSetValue ContentDLG !.control:2^rect~r 240
XMLSetValue ContentDLG !.control:2^text "Video"
XMLSetValue ContentDLG !.control:3~type button
XMLSetValue ContentDLG !.control:3~ctrlid 203
XMLSetValue ContentDLG !.control:3^rect~t 128
XMLSetValue ContentDLG !.control:3^rect~b 155
XMLSetValue ContentDLG !.control:3^rect~l 270
XMLSetValue ContentDLG !.control:3^rect~r 340
XMLSetValue ContentDLG !.control:3^text "Thumb"
XMLSetValue ContentDLG !.control:4~type button
XMLSetValue ContentDLG !.control:4~ctrlid 204
XMLSetValue ContentDLG !.control:4^rect~t 170
XMLSetValue ContentDLG !.control:4^rect~b 195
XMLSetValue ContentDLG !.control:4^rect~l 60
XMLSetValue ContentDLG !.control:4^rect~r 130
XMLSetValue ContentDLG !.control:4^text "Cover"
XMLSetValue ContentDLG !.control:5~type button
XMLSetValue ContentDLG !.control:5~ctrlid 205
XMLSetValue ContentDLG !.control:5^rect~t 170
XMLSetValue ContentDLG !.control:5^rect~b 195
XMLSetValue ContentDLG !.control:5^rect~l 160
XMLSetValue ContentDLG !.control:5^rect~r 240
XMLSetValue ContentDLG !.control:5^text "ESRB"
XMLSetValue ContentDLG !.control:6~type button
XMLSetValue ContentDLG !.control:6~ctrlid 206
XMLSetValue ContentDLG !.control:6^rect~t 170
XMLSetValue ContentDLG !.control:6^rect~b 195
XMLSetValue ContentDLG !.control:6^rect~l 270
XMLSetValue ContentDLG !.control:6^rect~r 340
XMLSetValue ContentDLG !.control:6^text "QUIT"
XMLSetValue ContentDLG !^timer 2000
XMLSave ContentDLG E:\UDATA\00004321\content.xml
XMLClose ContentDLG

XMLCreate ContentListDLG ContentList
XMLSetValue ContentListDLG !^pos~t 100
XMLSetValue ContentListDLG !^pos~l 120
XMLSetValue ContentListDLG !^pos~w 400
XMLSetValue ContentListDLG !^pos~h 220
XMLSetValue ContentListDLG !.control:0~type text
XMLSetValue ContentListDLG !.control:0~ctrlid 100
XMLSetValue ContentListDLG !.control:0^rect~t 10
XMLSetValue ContentListDLG !.control:0^rect~b 35
XMLSetValue ContentListDLG !.control:0^rect~l 10
XMLSetValue ContentListDLG !.control:0^rect~r 395
XMLSetValue ContentListDLG !.control:0^text "Select Title to Download Content:"
XMLSetValue ContentListDLG !.control:1~type ListBox
XMLSetValue ContentListDLG !.control:1~ctrlid 101
XMLSetValue ContentListDLG !.control:1^rect~t 40
XMLSetValue ContentListDLG !.control:1^rect~b 170
XMLSetValue ContentListDLG !.control:1^rect~l 10
XMLSetValue ContentListDLG !.control:1^rect~r 390
XMLSetValue ContentListDLG !.control:1^Mode "List"
XMLSetValue ContentListDLG !.control:1.Item:0^Text
XMLSetValue ContentListDLG !.control:2~type button
XMLSetValue ContentListDLG !.control:2~ctrlid 102
XMLSetValue ContentListDLG !.control:2^rect~t 180
XMLSetValue ContentListDLG !.control:2^rect~b 210
XMLSetValue ContentListDLG !.control:2^rect~l 20
XMLSetValue ContentListDLG !.control:2^rect~r 160
XMLSetValue ContentListDLG !.control:2^text "Download"
XMLSetValue ContentListDLG !.control:3~type button
XMLSetValue ContentListDLG !.control:3~ctrlid 103
XMLSetValue ContentListDLG !.control:3^rect~t 180
XMLSetValue ContentListDLG !.control:3^rect~b 210
XMLSetValue ContentListDLG !.control:3^rect~l 170
XMLSetValue ContentListDLG !.control:3^rect~r 270
XMLSetValue ContentListDLG !.control:3^text "HELP"
XMLSetValue ContentListDLG !.control:4~type button
XMLSetValue ContentListDLG !.control:4~ctrlid 104
XMLSetValue ContentListDLG !.control:4^rect~t 180
XMLSetValue ContentListDLG !.control:4^rect~b 210
XMLSetValue ContentListDLG !.control:4^rect~l 280
XMLSetValue ContentListDLG !.control:4^rect~r 370
XMLSetValue ContentListDLG !.control:4^text "CLOSE"
XMLSetValue ContentListDLG !.control:4^exitcode 1
XMLSetValue ContentListDLG !^timer 2000
XMLSave ContentListDLG E:\UDATA\00004321\contentlist.xml
XMLClose ContentListDLG

:NETWORKCHECK
SET _GETALL 0
;######################### Network  Check #########################
SETFUNC GETSTATIC RIGHT 7 $IP$  ; Check for STATIC in IP value
SETFUNC GETDHCP RIGHT 5 $IP$  ; Check for DHCP in IP value
IF "%GETDHCP%" #^ "DHCP" GOTO GETHEX;check if static or not
IF "%GETDHCP%" #^ "atic" GOTO GETHEX;check if static or not
MSGBOX "Your network cable is currently unplugged,$eol$ or your configuration is invalid..$eol$$eol$Try again later."
GOTO QUIT

;######################### GET GAME HEX ID #########################
:GETHEX
SETFUNC nDEC XBEID %_GameExe%
SETFUNC HexID CvtToBase 16 8 "%nDEC%"
SETFUNC HexID RIGHT 8 %HexID%

IF "%HexID%" == "00000000" GOTO HOMEBREW
IF "%HexID%" == "ffff051f" GOTO HOMEBREW
GOTO NOTHOMEBREW

############################## HOMEBREW #######################################
:HOMEBREW
SET ISHB 1
OnEvent EventHandlerHB
MSGBOX "Getting Data : Please Wait" 0 3000

SET _contentprogress 0
GOSUB PROGRESS

;#########Check XML and XML FileSize
SETFUNC XCheck FILEEXISTS Z:\homebrew.xml
IF# %XCheck% == 1 GOTO XMLCONTHB
WEBFILEFETCH z:\homebrew.xml http://www.xbox-skins.net/games/homebrew.xml
SET _contentprogress 10
GOSUB PROGRESS

:XMLCONTHB
SETFUNC XTS FILESIZE z:\homebrew.xml
IF# %XTS% == 0 GOTO SKIPXMLHB

;#####  ReadXML
SET _contentprogress 20
GOSUB PROGRESS
XMLOPEN vidshbXML z:\homebrew.xml
XMLSetNodePtr vidshbXML !
XMLGetElementCount vidshbXML Count
For X = 0 to %Count%
XMLGetValue vidshbXML nTitlehb%X% !.XBG:%X%.Title
XMLGetValue vidshbXML nHexIDhb%X% !.XBG:%X%.HexID
XMLGetValue vidshbXML nVidIDhb%X% !.XBG:%X%.VidID
XMLGetValue vidshbXML nVideohb%X% !.XBG:%X%.VIDEO
XMLGetValue vidshbXML nVChb%X% !.XBG:%X%.VC
XMLGetValue vidshbXML nESRBhb%X% !.XBG:%X%.ESRB
XMLGetValue vidshbXML nCoverxhb%X% !.XBG:%X%.Cover
XMLGetValue vidshbXML nThumbxhb%X% !.XBG:%X%.Thumb
Next
XMLClose vidshbXML

SET _contentprogress 30
GOSUB PROGRESS

set DialogName "ContentListDialog"
LoadDialogFromFile ContentListDialog E:\UDATA\00004321\contentlist.xml
For Item = 0 to %Count%
 Set @ContentListDialog.Control?CtrlID=101.Item:%Item%^Text "%nTitlehb{Item}%"
Next
ExecuteUIOBject ContentListDialog
QUIT

:EventHandlerHB
SWITCH %UITriggerID%
CASE 101
    If "%@ContentListDialog.Control?CtrlID=101.Item:{UIParam1}.Selected%" == "True" Then
       Set nTitle "%nTitlehb{UIParam1}%"
       Set nHexID "%nHexIDhb{UIParam1}%"
       Set nVidID "%nVidIDhb{UIParam1}%"
       Set nVideo "%nVideohb{UIParam1}%"
       Set nVC "%nVChb{UIParam1}%"
       Set nESRB "%nESRBhb{UIParam1}%"
       Set nCoverx "%nCoverxhb{UIParam1}%"
       Set nThumbx "%nThumbxhb{UIParam1}%"
    EndIf
ENDCASE
CASE 102
 XMLCreate DLXML GDBASE
 XMLSetValue DLXML !.XBG:0~Title %nTitle%
 XMLSetValue DLXML !.XBG:0~HexID %nHexID%
 XMLSetValue DLXML !.XBG:0~VidID %nVidID%
 XMLSetValue DLXML !.XBG:0~Video %nVideo%
 XMLSetValue DLXML !.XBG:0~ESRB %nESRB%
 XMLSetValue DLXML !.XBG:0~Cover %nCoverx%
 XMLSetValue DLXML !.XBG:0~Thumb %nThumbx%
 XMLSave DLXML z:\%nHexID%.xml
 XMLClose DLXML
 SET HexID %nHexID%
 GOTO NOTHOMEBREW
ENDCASE
CASE 103
   MSGBOX " Yea, You REALLY need HELP!"
ENDCASE
CASE 104
   QUIT
   GOTO QUIT
ENDCASE
DEFAULT
ENDCASE
ENDSWITCH
RETURN
QUIT

:SKIPXMLHB
QUIT
;#################################### REGULAR TITLE #################################
:NOTHOMEBREW
SET _contentprogress 40
GOSUB PROGRESS
OnEvent EventHandler ContentDialog
set DialogName "ContentDialog"
LoadDialogFromFile ContentDialog E:\UDATA\00004321\content.xml
XMLSetValue ContentDialog !.Control:0.text "Only Press the Button 1 time!$eol$Download time depends on file size.$eol$You will be notified of completion."
ExecuteUIOBject ContentDialog
IF# %ISHB == 1 THEN
   CloseUIOBject "ContentListDialog"
ENDIF
QUIT

:EventHandler
SWITCH %UITriggerID%
CASE 201
 IF %DialogName% == "ContentDialog" THEN
   SET _GETALL 1
GOTO GETVID
 ENDIF
ENDCASE
CASE 202
 IF %DialogName% == "ContentDialog" THEN
   GOTO GETVID
 ENDIF
ENDCASE
CASE 203
 IF %DialogName% == "ContentDialog" THEN
   GOTO GETTHUMB
 ENDIF
ENDCASE
CASE 204
 IF %DialogName% == "ContentDialog" THEN
   GOTO GETCOVER
 ENDIF
ENDCASE
CASE 205
 IF %DialogName% == "ContentDialog" THEN
   GOTO GETESRB
 ENDIF
ENDCASE
CASE 206
 IF %DialogName% == "ContentDialog" THEN
 GOTO QUIT
 ENDIF
ENDCASE
DEFAULT
ENDCASE
ENDSWITCH
RETURN
QUIT

IF %HBOK% == "1" GOTO ISHOMEBREW
;######################### VIDEO #########################
:GETVID

SET _contentprogress 50
GOSUB PROGRESS

GOSUB XMLCHECK
IF# %XTS% == 0 THEN
   SET nVidID ""
   SET nVideo ""
   SET nVC ""
   SET nThumbx 0
   SET nCoverx 0
   SET nESRB 0
   SET
   GOTO GOTVALS
ELSE
   GOTO GOODXML
ENDIF

:GOODXML
XMLOPEN vidsXML z:\%HexID%.xml
XMLGetValue vidsXML nVidID !.XBG:0.VidID
XMLGetValue vidsXML nVideo !.XBG:0.VIDEO
XMLGetValue vidsXML nVC !.XBG:0.VC
XMLGetValue vidsXML nESRB !.XBG:0.ESRB
XMLGetValue vidsXML nCoverx !.XBG:0.Cover
XMLGetValue vidsXML nThumbx !.XBG:0.Thumb
XMLClose vidsXML

:GOTVALS
if "%nVC%" == "1"  GOTO RAR
if "%nVC%" == "2"  GOTO ZIP
if "%nVideo%" == "2"  GOTO XMV
if "%nVidID%" == ""  GOTO NOVID

:ISHOMEBREW
XMLSetValue ContentDialog !.Control:0.text "$eol$Downloading Video"

SET _contentprogress 55
GOSUB PROGRESS

WEBFILEFETCH %_GameDir%\MXM_SS.wmv "http://www.xbox-skins.net/games/sendvid.php?sid=%nVidID%"
MSGBOX "Video Downloaded" 0 2000

SET _contentprogress 60
GOSUB PROGRESS

IF# %_GETALL% == 1 GOTO GETTHUMB
GOTO QUIT

:RAR;######################### HANDLE RAR FORMAT
GOTO SKIPRAR  ;#########REMOVE WHEN RAR SUPPORT ADDED
XMLSetValue ContentDialog !.Control:0.text "$eol$Downloading Video"
WEBFILEFETCH z:\%HexID%.rar "http://www.xbox-skins.net/games/sendvid.php?sid=%nVidID%"
MSGBOX "Video Downloaded$eol$ Uncomressing RAR Archive" 0 2000
OpenRar COMPVIDRAR z:\%HexID%.rar
UnRarFile COMPVIDRAR 0 z:\%HexID%.wmv
CloseRar COMPVIDRAR

SETFUNC XCheck FILEEXISTS Z:\%HexID%.wmv
IF# %XCheck% == 0 GOTO RARBAD
SETFUNC XTS FILESIZE Z:\%HexID%.wmv
IF# %XTS% == 0 THEN
   DELETE Z:\%HexID%.wmv
   MSGBOX "Video Download Failed" 0 5000
ELSE
   COPY Z:\%HexID%.wmv  %_GameDir%\MXM_SS.WMV
   DELETE Z:\%HexID%.wmv
   DELETE Z:\rar%HexID%.rar
   MSGBOX "Video Downloaded" 0 2000
ENDIF

:RARBAD
MSGBOX "Failed to Uncompress RAR Archive" 0 5000

:SKIPRAR;############### REMOVE SKIP ONCE RAR SUPPORT INCLUDED
MSGBOX "RAR Archives Not Yet Supported" 0 5000
IF# %_GETALL% == 1 GOTO GETTHUMB
GOTO QUIT

:ZIP;######################### HANDLE ZIP FORMAT
MSGBOX "Zip Files Not Yet Supported" 0 5000
IF# %_GETALL% == 1 GOTO GETTHUMB
GOTO QUIT

:NOVID;######################### NO VIDEO AVAIL
If# %_GETALL% == 1 THEN
GOTO GVIDC
ELSE
GOTO BVIDA
GOTO QUIT

:BVIDA
XMLSetValue ContentDialog !.Control:0.text "$eol$Video Not Available$eol$ Press X To Request Video for this Title$eol$Press A to Quit"
Input
If %_GP_X% == "1" GOTO VDR
If %_GP_A% == "1" GOTO QUIT
GOTO BVIDA

:GVIDC
XMLSetValue ContentDialog !.Control:0.text "$eol$Video Not Available$eol$ Press X To Request Video for this Title$eol$Press A to continue without request."
Input
If %_GP_X% == "1" GOTO VDR
If %_GP_A% == "1" GOTO GETTHUMB
GOTO GVIDC

:XMV;######################### CANT DO XMV YET
IF# %_GETALL% == 1 THEN
XMLSetValue ContentDialog !.Control:0.text "Only a XMV file is currently available$eol$Press X to Request a WMV Video for this title.$eol$Press A to continue without request."
Input
If %_GP_X% == "1" GOTO VDR
If %_GP_A% == "1" GOTO GETTHUMB
If %_GP_BLACK% == "1" GOTO QUIT
ELSE
XMLSetValue ContentDialog !.Control:0.text "Only a XMV file is currently available$eol$Press X to Request a WMV Video for this title.$eol$Press A to Quit"
Input
If %_GP_X% == "1" GOTO VDR
If %_GP_A% == "1" GOTO QUIT
If %_GP_BLACK% == "1" GOTO QUIT
ENDIF
GOTO XMV

;######################### VIDEOREQUEST #########################
:VDR
SETFUNC nsize FILESIZE %_GameExe%
SETFUNC nTitle XBETITLE %_GameExe%
SETFUNC nTitle REPLACE " " "+" %nTitle%
SETFUNC nTitle REPLACE ":" "" %nTitle%
SETFUNC nTitle REPLACE "!" "" %nTitle%
SETFUNC nTitle REPLACE "'" "" %nTitle%
SETFUNC nTitle REPLACE "@" "" %nTitle%
XMLSetValue ContentDialog !.Control:0.text "$eol$Sending Request$eol$"
WEBFILEFETCH z:\request.xml "http://www.xbox-skins.net/games/request.php?t=%nTitle%&h=%HexID%&f=wmv&s=%nsize%"
XMLOPEN vidsR z:\request.xml
XMLGetValue vidsR xrequest1 !.XBR:0.RESULT1
XMLGetValue vidsR xrequest2 !.XBR:0.RESULT2
XMLClose vidsR
MSGBOX "%xrequest1%$eol$%xrequest2%" 0 5000

SET _contentprogress 65
GOSUB PROGRESS

IF# %_GETALL% == 1 THEN
   GOTO GETTHUMB
ELSE
   GOTO QUIT
ENDIF
;######################### THUMB #########################
:GETTHUMB
SET _contentprogress 70
GOSUB PROGRESS
GOSUB XMLCHECK
XMLOPEN vidsXML z:\%HexID%.xml
XMLGetValue vidsXML nThumb !.XBG:0.THUMB
XMLClose vidsXML
IF "%nThumb%" == "" THEN
   MSGBOX "Thumbnail Not Available" 0 5000
   GOTO SKIPTHUMB
ELSE
   XMLSetValue ContentDialog !.Control:0.text "$eol$Downloading Thumbnail"
   WEBFILEFETCH z:\MXM_THUMB%HexID%.png "http://www.xbox-skins.net/games/thumbs/%HexID%.png"
ENDIF
SETFUNC XTS FILESIZE z:\MXM_THUMB%HexID%.png
IF# %XTS% == 0 THEN
   DELETE z:\MXM_THUMB%HexID%.png
   MSGBOX "Thumbnail Download Failed" 0 5000
ELSE
   COPY z:\MXM_THUMB%HexID%.png  %_GameDir%\MXM_THUMB.png
   DELETE z:\MXM_THUMB%HexID%.png
   MSGBOX "Thumbnail Downloaded" 0 2000
ENDIF
SET _contentprogress 75
GOSUB PROGRESS
:SKIPTHUMB
IF# %_GETALL% == 1 GOTO GETCOVER
GOTO QUIT

;######################### COVER #########################
:GETCOVER
SET _contentprogress 80
GOSUB PROGRESS
GOSUB XMLCHECK
XMLOPEN vidsXML z:\%HexID%.xml
XMLGetValue vidsXML nCover !.XBG:0.Cover
XMLClose vidsXML
IF "%nCover%" == "" THEN
   MSGBOX "$eol$Cover Not Available" 0 5000
   GOTO SKIPCOVER
ELSE
   XMLSetValue ContentDialog !.Control:0.text "$eol$Downloading Cover"
   WEBFILEFETCH z:\MXM_Cover%HexID%.jpg "http://www.xbox-skins.net/games/covers/%HexID%.jpg"
ENDIF
SETFUNC XTS FILESIZE z:\MXM_Cover%HexID%.jpg
IF# %XTS% == 0 THEN
   DELETE z:\MXM_Cover%HexID%.jpg
   MSGBOX "Cover Download Failed" 0 5000
ELSE
   COPY z:\MXM_Cover%HexID%.jpg  %_GameDir%\MXM_Cover.jpg
   DELETE z:\MXM_Cover%HexID%.jpg
   MSGBOX "Cover Downloaded" 0 2000
ENDIF
SET _contentprogress 85
GOSUB PROGRESS
:SKIPCOVER
IF# %_GETALL% == 1 GOTO GETESRB
GOTO QUIT

;######################### ESRB #########################
:GETESRB
SET _contentprogress 95
GOSUB PROGRESS

GOSUB XMLCHECK
XMLOPEN vidsXML z:\%HexID%.xml
XMLGetValue vidsXML nESRB !.XBG:0.ESRB
XMLClose vidsXML
XMLSetValue ContentDialog !.Control:0.text "$eol$Downloading ESRB Icon"
WEBFILEFETCH z:\MXM_ESRB%HexID%.jpg "http://www.xbox-skins.net/games/esrb/%nESRB%.jpg"
SETFUNC XTS FILESIZE z:\MXM_ESRB%HexID%.jpg
IF# %XTS% == 0 THEN
   DELETE z:\MXM_ESRB%HexID%.jpg
   MSGBOX "ESRB Download Failed" 0 5000
ELSE
   COPY z:\MXM_ESRB%HexID%.jpg  %_GameDir%\MXM_ESRB.jpg
   DELETE z:\MXM_ESRB%HexID%.jpg
MSGBOX "ESRB Downloaded" 0 2000

SET _contentprogress 100
GOSUB PROGRESS

ENDIF
GOTO QUIT

;######################### XMLCHECK #########################
:XMLCHECK
SETFUNC XCheck FILEEXISTS Z:\%HexID%.xml
IF# %XCheck% == 1 GOTO XMLCONT
XMLSetValue ContentDialog !.Control:0.text "DO NOT PRESS A BUTTON$eol$$eol$Checking Availablitity."
WEBFILEFETCH z:\%HexID%.xml http://www.xbox-skins.net/games/xml/%HexID%.xml
:XMLCONT
SETFUNC XTS FILESIZE Z:\%HexID%.xml
IF# %XTS% == 0 THEN
IF# %FCHECKED% == 1 THEN
   GOTO SKIPXML
ENDIF
ADD FCHECKED 1
XMLSetValue ContentDialog !.Control:0.text "This Title is not listed.$eol$Press X to Request a Video,Thumb,Cover.$eol$Press A to Quit"
Input
If %_GP_X% == "1" GOTO VDR
If %_GP_A% == "1" GOTO QUIT
If %_GP_BLACK% == "1" GOTO QUIT
QUIT
ENDIF
:SKIPXML
RETURN

;#######################################################
:PROGRESS
BeginDraw UseCurrent
Box 270 330 %_contentprogress% 30 RED BLACK
EndDraw
RETURN

;######################### QUIT #########################
:QUIT
SetFunc File FileExists Z:\%HexID%.xml
If# %File% == 1 Then
DELETE Z:\%HexID%.xml
EndIf
SetFunc File FileExists Z:\homebrew.xml
If# %File% == 1 Then
DELETE Z:\homebrew.xml
EndIf

QUIT

Title: Downloadable Content
Post by: koldfuzion on April 28, 2004, 03:53:00 PM
also... if you can master this, then skin downloading and actionscript downloading will be just as easy  wink.gif

Title: Downloadable Content
Post by: flattspott on April 28, 2004, 05:14:00 PM
short and sweet huh? Just kidding. Sounds good to me  <
Title: Downloadable Content
Post by: geniusalz on April 28, 2004, 07:14:00 PM
Definitely sweet.  Are all the preview videos up?  I was thinking of redoing some of them.  These are my thoughts on what the videos should be like:
-All in-game footage.  Prefereably some action, or scenes cut and pasted together.  Should show no titles (game name, dev name) or intro.
-No audio, because it sounds weird scrolling through.
-Low bitrate, about 300 kbits > Smoother scrolling


Besides that, I was thinking about a system where scripts could request files.  e.g. skins for (originally) no-resource games, sound effects, etc

So you could let scripters upload files, and then put URLs in the script to download those optional files.  <
Title: Downloadable Content
Post by: koldfuzion on April 28, 2004, 08:21:00 PM
QUOTE
Are all the preview videos up? I was thinking of redoing some of them

For the games listed, 99.9% have videos.  I havent looked at every one of them.  I know some, if not a large percentage of the ones BloodyMary uploaded to the site are ones that i did and I have been pushing a lot of new videos there too.

I too would and will replace a lot of the videos over time, I just dont have the time to sit in front of the PC and do video after video.  

QUOTE
These are my thoughts on what the videos should be like:
-All in-game footage. Prefereably some action, or scenes cut and pasted together. Should show no titles (game name, dev name) or intro.
-No audio, because it sounds weird scrolling through.
-Low bitrate, about 300 kbits > Smoother scrolling


I capture and encode straight from the game, so that the quality isnt lost and most of the latest ones i have done look like this one

a quick 1-2 second title screen with gameplay. WMV8 encoded at 500kb, the 500 just look way better than the 384 did.  Think the difference between 500 and 384 justifies redoing them?

I think if you dont give the title screen... it might be hard to tell what video is for what game, or if you never named it right to begin with.. what game it might be.

Audio, i think should be left in.  Just so its available to those that dont use music.  I <usemusic>True</usemusic> in my MXM.XML because i prefer to listen to my soundtracks and only suspend music in my skins for intro/outro videos(so the video audio can be heard).


Anyone else any thoughts?  Anyone else willing to help in the video creations?

QUOTE
Besides that, I was thinking about a system where scripts could request files. e.g. skins for (originally) no-resource games, sound effects, etc

So you could let scripters upload files, and then put URLs in the script to download those optional files.


Shouldnt be too hard to set up at all, xml output to list the files and url. sure.

This post has been edited by koldfuzion: Apr 29 2004, 03:31 AM <
Title: Downloadable Content
Post by: geniusalz on April 28, 2004, 08:51:00 PM
500 seems ok.  As for the game title screen, that's like a pet peeve of mine.  Don't really like it, because the game name is there anyway when you're scrolling through your list.  But I guess it's fine, because who am I to tell you how to make them when you're the one making them smile.gif
Title: Downloadable Content
Post by: koldfuzion on May 03, 2004, 09:55:00 PM
anyone have anything that works yet?


Edited to remove old code

This post has been edited by koldfuzion: May 5 2004, 12:09 PM <
Title: Downloadable Content
Post by: flattspott on May 04, 2004, 01:48:00 AM
I don't know for sure but you really should make it a point to try and read both the ActionScript Readme and the Change Log. Not trying to be mean spirited or anything like that. It's just that BJ revamped the webfile fetch in the 1197 build.

QUOTE
  • Updated HTTP client to support Cookies and HTTP 1.x protocol.
        - Enhanced WebFileFetch command:
        - WebFileFetch <LocalFile> <URL> [<VarToHoldNewfilepath>|.|""] [<VarToHoldResult>]
        - Allows redirect headers (302 result code) to change the filename (remains in specified path, however) if a var name is specified.
        - <VarToHoldResult> will return the result code, too. This will be implmentd in other commands as well.


Maybe that has sonething to do with why it's giving you probems.  <
Title: Downloadable Content
Post by: koldfuzion on May 04, 2004, 03:02:00 AM
well, understandable to state, but i did read it.   over and over, tried numerous ways of doing it, im just not getting the results returned.   Yes, i tried the new var after the url too.  I either get a lockup, or nothing.

Once i run the script I may or may not be able to navigate the main menu again even though i can quit the script and reboot with the controller... weird.


Nice try though,  thank you for taking the time to provide a working sample. smile.gif
Title: Downloadable Content
Post by: BLazeD on May 04, 2004, 04:35:00 AM
QUOTE (koldfuzion @ May 4 2004, 04:44 PM)
anyone have anything that works yet?


Im trying the following code, but having no luck,  the xml will download fine from the AXS url,  but i get a 404 from xbox-skins even though the url is fine in IE.(wierd)

Anyone see whats wrong?  All three webfilefetch urls are valid urls.


Could it be server settings, or the fact I switched servers?  <
Title: Downloadable Content
Post by: koldfuzion on May 04, 2004, 05:34:00 AM
hold on, my dumb ass is a wip behind.. just noticed im still using 1172 and not 1197.  Thanks flattspot, you were helpful after all, image that.

getting the XML AND the rar using the sendvid.php? work fine now.

the xml and vid get from xbox-skins is fine now too.  

I feel like an ass now, but when do i not?

This post has been edited by koldfuzion: May 4 2004, 12:59 PM <
Title: Downloadable Content
Post by: koldfuzion on May 04, 2004, 06:10:00 AM
Edit, see first post for code

This post has been edited by koldfuzion: May 4 2004, 09:04 PM <
Title: Downloadable Content
Post by: koldfuzion on May 04, 2004, 06:16:00 AM
Blazed,  you want to put the game covers in the same general location too?  They are just mini ones like you see on walmart.com.  

I can add code to the admin to handle them but i will need a directory to put them in.  im thinking "covers" in the same location as the "XML" folder

329 are 15 mb so far.  I think it would be easier to see whats missing if they could be compared against the same list.

This post has been edited by koldfuzion: May 4 2004, 01:17 PM <
Title: Downloadable Content
Post by: chilin_dude on May 04, 2004, 05:18:00 AM
biggrin.gif  beerchug.gif
Great progress Koldfuzion, how about adding thumbnails to it as well? And how about instead of just listing the age rating an icon for the age rating?
Title: Downloadable Content
Post by: koldfuzion on May 04, 2004, 06:41:00 AM
for the web listing, we got away from icons and the soon to be sent code doesnt even shot the values unless you do a mouseover of the "+" sign that is shown on the webpage.   This is only to show you that the value or content exists, the real work should be done by the scripts, web side, the user should just be clicking the download links.

Eventually, the scripts will download the videos, download the covers and the ESRB graphic and dump them all into the game directory.

If the skins are set to use resource calls using basenames , then no one will be forced the reboot to see the content immediately in the skins that support all three.

Edit: What would the source be for the thumbnails? I suppose the larger walmart.com cover images could be cropped to a decent thumb, but who is gonna do it?  It was a pain just to get the 329 mini covers (i definitely thank adobe for adding actions to photoshop 7, saved me an butt-load of time but was still a lengthy process.)

um, friendly sarcasm aside.  Thanks for pointing me to my error flattspott. Its great to see this stuff work, even though it still has a way to go.  On your skinfix script to use basenames, you are including the in the script the thumbs/covers basenames too?

BJ, a little concern about a user choosing "download videos" on the context menu more than once before final execution.  Maybe a function to disable controller input for a specific time, and/or timeout?


msgbox "Controller input will disabled during video download, press a button to continue, black to quit"

CNTLRLOCK   20000 <<- Lock controller input with time to wait, follow
Webfilefetch var path result   <<- get file if bad result immediately unlock  (i havent played with the results yet, so i dont know what im talking about)
If result == "404"  GOTO Unlock
CNTLRUNLOCK
GOTO File cleanup

:Unlock
CNTRLUNLOCK
GOTO QUIT

This post has been edited by koldfuzion: May 4 2004, 02:39 PM <
Title: Downloadable Content
Post by: koldfuzion on May 04, 2004, 06:30:00 AM
What are the possibilities of using actiondraw to provide progress on content download??

I could send the filesizes,  but how to send the value first and how to use in MXM to display?  I think it would be a very nice touch...and very progress informative.
Title: Downloadable Content
Post by: chilin_dude on May 04, 2004, 06:39:00 AM
biggrin.gif
Title: Downloadable Content
Post by: flattspott on May 04, 2004, 06:53:00 AM
QUOTE
I think flattspot said there was some problems with the rename command, does this affect copy/delete too?


Yes I did say that, copy/delete work off and on too. It's like they don't like variables or something.

QUOTE
Currently just downloads wmv and saves to Z, i have to get to work or i would work on it more.


Why not just save it to %_GameDir%.?


QUOTE
On your skinfix script to use basenames, you are including the in the script the thumbs/covers basenames too?


Nah, didn't think about that, it shouldn't be an issue to add it though.

QUOTE
BJ, a little concern about a user choosing "download videos" on the context menu more than once before final execution. Maybe a function to disable controller input for a specific time, and/or timeout?

msgbox "Controller input will disabled during video download, press a button to continue, black to quit"


How about just doing this, MsgBox "Do NOT press any buttons" ?
Title: Downloadable Content
Post by: flattspott on May 04, 2004, 07:00:00 AM
QUOTE
What are the possibilities of using actiondraw to provide progress on content download??

I could send the filesizes, but how to send the value first and how to use in MXM to display? I think it would be a very nice touch...and very progress informativ


That would be cool. Unfortunatly at the moment, like you said basically it not gonaa happen right away.

But you could have some scripts scan the menu for what videos they need. Then download them all at one, or a least the limit. Then you could have progress bar of sorts that is upated ofter each download finishes.
Title: Downloadable Content
Post by: koldfuzion on May 04, 2004, 07:40:00 AM
QUOTE
How about just doing this, MsgBox "Do NOT press any buttons" ?


because even though you tell them not to, they might accidentally, ive done it myself and i end up with a subsequent followup download.

QUOTE
Why not just save it to %_GameDir%.?


For uncompressed WMV files I will. For compressed I think it might be cleaner and safer to work from the Z dir.. since you can delete everything and it really doesnt matter.   This was just an intial test script to make sure it all worked and plan it out.  I still need to first add a check for xml-get results to ensure the xml was downloaded (that it existed).  I havent done a lot of file fetching so Im still learning it and need to see the result var and how to handle a file not found error.

QUOTE
Well about the thumbnails, just get everyone here to upload all their own ones


Might be the good solution. I have a lot in the thumbs on AXS that i used for compilation disks... those are about 260x191.  You're right though, those should probably be added.

I would like to see someone volunteer to make Covers for homebrew stuff to be included with the regular game covers. (using the same style as a game cover)

The download script should probably offer options,  download video only, download thumb only, download esrb only, download all etc... maybe done through radio or checkboxes with the new form ui.

I did post the beginning script and asked for contributions so everyone can provide thier 2 cents and make it right from the start.  Trying to make sure something isnt overlooked and its the best it can be.  I'll work off any changes/additions that are posted.

Title: Downloadable Content
Post by: chilin_dude on May 04, 2004, 07:46:00 AM
well there are a few covers for homebrew stuff already on
http://covers.boob.co.uk/
And a few others have been posted before... If you get a list of the ones that haven't yet been done then I'll make ones for them.

As for the thumbnails - it shouldn't be too hard to create a script to dump all the thumbnails to a folder where we can then upload them to a site for you should it?
Title: Downloadable Content
Post by: koldfuzion on May 04, 2004, 09:11:00 AM
nice link chilin_dude,  definitely to be used.

I will post a link later today so the covers i have can be checked for those willing to grab what is missing.  Yes,  a upload form could be done to allow the dumping of the covers/thumbs.

Like I said, I only hit walmart.com,  never made it to amazon or any other site to search for covers.

Need to add an internet check to the script too.. so if the xbox ip is 0.0.0.0 the script is killed right away.
Title: Downloadable Content
Post by: chilin_dude on May 04, 2004, 10:22:00 AM
laugh.gif )
because thats the only way i can really help as I'm too stupid for the rest  laugh.gif
Title: Downloadable Content
Post by: koldfuzion on May 04, 2004, 01:01:00 PM
will do, the script went very fast so far.. just need to work the rar and unzip stuff for it to be completed.

wmv, cover and thumb will save to the game directory.

i still think its better to use z: for rar/zip operations.

See the FIRST POST for the code and required xml,  props again to Jezz for the dialog code he used.

Now i got  lots of php to write, email on the way Blazed.

Title: Downloadable Content
Post by: koldfuzion on May 04, 2004, 02:08:00 PM
I almost forgot the ESRB Button and icons, plus I made a mistake that screwed the script.  So if you got it before now, you need to update both files.


almost there.. time for a quick bite, an email and some php.


Edit:  Here are the mini covers i have so far. I havent touched the homebrew/apps yet.

chilin_dude, you can always upload the thumbs to the ftp.  single zip if you want.
(anonymous access : ftp.allxboxskins.com  can write to the incoming dir, wont see anything listed though)


Edit 2: Added a video request function (see very first post in thread).  So if a XMV is provided, a WMV video can be requested from the dash.  Will add this so any video missing can also be requested but I first need to make the php to pull the url data in and add to the yet uncreated table to list the requests.  I will set this up on AXS for testing, and if it works right, convert to the xbox-skins code.

Title: Downloadable Content
Post by: koldfuzion on May 05, 2004, 12:53:00 PM
updated the code in the very first post.

The video request url points to axs right, but the code there works fine, so it might be wise to adapt the code to all possible requests.

Title, hexid, request type and xbe size are the only things saved.

I'll move it over to xbox-skin.net soon, i have other code i need to finish before i send blazed another update.

Request posting
Title: Downloadable Content
Post by: koldfuzion on May 06, 2004, 01:10:00 AM
smile.gif

Changed back to using the Z drive for the Thumb and Cover as a temp locations. Wmv and esrb download will go straight to the game directory.

Why? because if a thumb or cover doesnt exist on the webserver a #hexid#.jpg still gets created with 0 (zero) filesize.  Not too big a deal, it can be checked for, but it CANT be deleted until you reboot and delete it yourself.

So if oyu use the Z drive, you can check filesize before you copy and you dont run the risk of messing up your menu.... and it will stop it in its tracks.

BJ, how can i check if a remote file exists before attempting to save to a null file that cant be deleted??

for this.. an easy fix is just to add the thumb/cover as another database field in the xml (just a 1 or 0 depending on its existance, hex value for filename), so if the xml is zero byte, then i can work around it.

first post code updated. works rather nicely.. but i did run into the delete bug smile.gif
Title: Downloadable Content
Post by: chilin_dude on May 06, 2004, 01:44:00 AM
Wel I'm wanting to try this out, but I don't get the first bit, add tothe context menu, whereabouts do we add it in there?
Title: Downloadable Content
Post by: koldfuzion on May 06, 2004, 02:10:00 AM
in your MXM.XML   find a nice spot and put this whole block (edit the path to what you need)

<Context>
<Item Name="Content Download">
<Mode>HD</Mode>
<Action>CallFile C:\mxmscripts\getvid.xas</Action>
</Item>
</Context>


Once you have the MXM.XMl edited, the content.xml file in the same dir as MXM and the script in the place you specified just go to a game, press Y, select game options and choose "Content Download".



All the covers will be going up real soon.  Should have the dash to web requests completed soon too.
Title: Downloadable Content
Post by: geniusalz on May 06, 2004, 08:31:00 AM
QUOTE (flattspott @ May 4 2004, 10:53 AM)
How about just doing this, MsgBox "Do NOT press any buttons" ?

There is an issue with 'focus' for scripts called from context menus, like I said earlier (with the tiny prev. vid download script I made)

BJ, could you look into it?
Title: Downloadable Content
Post by: flattspott on May 06, 2004, 08:50:00 AM
QUOTE
There is an issue with 'focus' for scripts called from context menus, like I said earlier (with the tiny prev. vid download script I made)


Ok then how about just using something like this?

BeginDraw
Text 320 240 Center "Do NOT press any buttons or you'll kill your Xbox"
EndDraw
Title: Downloadable Content
Post by: koldfuzion on May 06, 2004, 09:38:00 AM
hey flattspott... where you at with the xml?  we could just post what you already have and go from there.

Im reluctant to add any titles that are in your range because i dont want to duplicate work.  Except new ones that come out, im manually adding them.

If you want to, you can send me what you have now, and just do it web-based from then on.


Edit: Im also going to add the content.xml to the script.  Do a check in the same location as the pref.xml for MXM and if it doesnt exist, write it out.  It will take away any user setup, especially if the script is included in one of the releases.


Finish this up.. and I can get to work on the Actionscript market.. Like geniusalz proposed. script writers will be able to create, distribute and update scripts with thier own source control and versioning.

btw.. the update from-dash-to-web worked great using existing filefetch which in a way.. was a step toward the high-score list for games, add the security and its just begging people to play for the #1 spot.





Title: Downloadable Content
Post by: chilin_dude on May 06, 2004, 09:44:00 AM
wink.gif
Only messing I know it takes a while!!!
BTW KF thanks alot for the pms you sent me, I had a play around for a while and I think I understand just about all of it and have got about finding which games down't have preview vids there, one question though - I don't get how you ul thumbs  unsure.gif
Title: Downloadable Content
Post by: BenJeremy on May 06, 2004, 09:47:00 AM
wink.gif Meanwhile, I'm adding a bunch of code to handle various things.

One thing I'm adding is memory buffers for byte-by-byte access to files, as well as "handled" searches (if you don't specify a handle for the search, it becomes "GlobalSearch", so old scripts will still work with the new methods.)

I've been fleshing out the PnP White Paper, too... more ideas, refining the whole scheme. Once I'm satisfied it's solid, I'll start implimenting it - which is why this next WIP release should be carefully looked at, including the updated White Paper when I get it uploaded tonight. I really will need feedback on it.

Title: Downloadable Content
Post by: koldfuzion on May 06, 2004, 09:52:00 AM
1. The pulldown box to the left chooses what you are uploading. Cover or Thumb.

2. The browse button lets you locate the jpg to be uploaded.

3. The UL button is to start the upload.  

It will post it using the hex value of the title...and all that is automatic.  

A popup will appear saying something like "d3f45434.jpg was uploaded to the covers"  or if hex is 0 or null, it will tell you hells no...of sorts.

Sorry if its confusing.. very limited on space so i dont show the filename you selected.

Glad you were able to read through the pm's.  I know it was a lot to get at once..but its a lot to explain too.


Title: Downloadable Content
Post by: chilin_dude on May 06, 2004, 10:00:00 AM
QUOTE
2. The browse button lets you locate the jpg to be uploaded.

This was the bit I am stuck on, I can't find the browse button :S
I'm sure its just me  wink.gif
QUOTE
It will post it using the hex value of the title...and all that is automatic.

A popup will appear saying something like "d3f45434.jpg was uploaded to the covers" or if hex is 0 or null, it will tell you hells no...of sorts.

Yeah I thought so, thats a decent way to do it  biggrin.gif
QUOTE
Sorry if its confusing.. very limited on space so i dont show the filename you selected.

Glad you were able to read through the pm's. I know it was a lot to get at once..but its a lot to explain too.

Nah, it was a very thourough pm, so even I could understand it fully, I just copied it all into word and printed it so it was easier to read  laugh.gif

Glad to see you're doing some decent work BJ!!!
Title: Downloadable Content
Post by: koldfuzion on May 06, 2004, 10:21:00 AM
what browser are you using?
Title: Downloadable Content
Post by: flattspott on May 06, 2004, 01:57:00 PM
QUOTE
I've been fleshing out the PnP White Paper, too... more ideas, refining the whole scheme. Once I'm satisfied it's solid, I'll start implimenting it - which is why this next WIP release should be carefully looked at, including the updated White Paper when I get it uploaded tonight. I really will need feedback on it.


Don't worry about getting feedback, you'll get it  smile.gif

QUOTE
what browser are you using?


Mozilla Firefox, you?  ... jk
Title: Downloadable Content
Post by: koldfuzion on May 06, 2004, 02:10:00 PM
the script has been updated to require only one file.  flattspott built in the content.xml so if it doesnt exist, it will be created in the mxm folder on E.

it needs to be optimized.  The area for zip/rar handling is there and i cant think of anything else it needs besides those two.
Title: Downloadable Content
Post by: chilin_dude on May 06, 2004, 11:09:00 PM
wink.gif
Title: Downloadable Content
Post by: flattspott on May 07, 2004, 10:51:00 AM
finally got around to testing it out, downloaded the GTA3 vid. It was slow for me (dialup) but it worked nonetheless
Title: Downloadable Content
Post by: koldfuzion on May 07, 2004, 11:03:00 AM
laugh.gif

You never mentioned the delete bug.. so im assuming its fixed.  I can wait to try out the new WIP once i get home.
Title: Downloadable Content
Post by: BenJeremy on May 07, 2004, 12:07:00 PM
QUOTE (koldfuzion @ May 7 2004, 03:03 PM)
Maybe BJ can optimise it a little more to help out your dialup?  laugh.gif

You never mentioned the delete bug.. so im assuming its fixed.  I can wait to try out the new WIP once i get home.

The delete bug has been fixed. I refered to it as the "404 issue" -  when erroring out of a download, it didn't close the file. Now I close and delete it.
Title: Downloadable Content
Post by: flattspott on May 07, 2004, 12:30:00 PM
QUOTE
Maybe BJ can optimise it a little more to help out your dialup?


I don't find that very funny Mr BroadBand.

It isn't really all that bad seeing how MXM gets it at the same speed as my pc would. Only difference that MXM doesn't give you any progross info.

Also, I guess I was wrong about there not being a Ninja Gaiden video. I just used this script to get it.

Title: Downloadable Content
Post by: koldfuzion on May 07, 2004, 01:06:00 PM
Doesnt do anything for me now, dialog comes up be nothing else happens and i cant even quit the script. I have to reboot the box.
Title: Downloadable Content
Post by: BenJeremy on May 07, 2004, 01:17:00 PM
QUOTE (koldfuzion @ May 7 2004, 05:06 PM)
Doesnt do anything for me now, dialog comes up be nothing else happens and i cant even quit the script. I have to reboot the box.

Hrm.... looks like I have some things to fix.

Don't know what might have happened to the input. Strange indeed.
Title: Downloadable Content
Post by: koldfuzion on May 07, 2004, 02:26:00 PM
Yea, it wont do anything at all.  

Can anyone else verify this?

the script has a pretty good update now too,esrb, thumbs, covers and videos all downloadable now. (no thumbs on the site though) .  link is in first post.
Title: Downloadable Content
Post by: flattspott on May 07, 2004, 02:32:00 PM
QUOTE
I can wait to try out the new WIP once i get home.


But you seemed so excited.

And yes this did happen to me to. I just went back to 1172 build.
Title: Downloadable Content
Post by: koldfuzion on May 07, 2004, 02:42:00 PM
smile.gif

i just reposted the script again.. its good NOW, damn typos smile.gif

I kept messing with it cause the ESRB wasnt coming down.  but it wasnt the code.  I sent Blazed a message a little while back askin him to rename the ESRB icons so they have the filename the same as the number they represet in the xml.. but i think he missed it in the barrage of msgs i sent.

gonna have to pm him.  the script will work once the filenames on the server are changed.

Title: Downloadable Content
Post by: BenJeremy on May 07, 2004, 02:43:00 PM
blink.gif
Title: Downloadable Content
Post by: flattspott on May 07, 2004, 02:47:00 PM
I knew it was the new interperater stuff. Hopefully after you get done with the second half of it, every thing will work as it should.
Title: Downloadable Content
Post by: koldfuzion on May 07, 2004, 02:57:00 PM
np, yea, we never thought of the KA-13...but i saw it on the ESRB.org site and downloaded the icon.

should probably put that in the scripts, just name it 7 and i will add it in.


When i was grabbing covers it hit me that europe and other nations may have adopted a different style than the ESRB that we are using.  Cant think of a solution without asking which style in the dialogs prior to download.

would need to find the other ratings and thier meanings though.
Title: Downloadable Content
Post by: koldfuzion on May 07, 2004, 05:18:00 PM
script updated with some enhancements from flattspott, and beter logic/error handling.

chillin_dude,  you can use opera again once Blazed updates the page on the site.

edit: updated script to use png for the thumbs (slight oversight) to support transparency.  Will update the web code soon.

Title: Downloadable Content
Post by: koldfuzion on May 10, 2004, 03:21:00 AM
smile.gif

Will update the webserver db and php to set up a flag for sorting when writing out the xmls.
Title: Downloadable Content
Post by: flattspott on May 10, 2004, 08:22:00 AM
QUOTE
Used some of flattspotts beautiful code to put the homebrew titles in a listbox


And what code might that be? The newschanger one I did?
Title: Downloadable Content
Post by: koldfuzion on May 10, 2004, 08:28:00 AM
smile.gif
Title: Downloadable Content
Post by: flattspott on May 10, 2004, 08:37:00 AM
Cool, however lets not forget where the original code came from... BenJeremy and his internal.xml. Cause thats what a used in NewsChanger.
Title: Downloadable Content
Post by: koldfuzion on May 10, 2004, 09:08:00 AM
damn, you mean we have to give props to BJ for providing us samples to use as well as props for MXM itself?

 beerchug.gif


and thanks smile.gif
Title: Downloadable Content
Post by: koldfuzion on May 10, 2004, 05:49:00 PM
Homebrew update is up on xbox-skins.net, so i updated the url in the script (first post).

will get it populated soon, i only put a couple apps in there to begin with.

Will also be updateding the web page version for those that like to browse.  
It will make finding the homebrew a lot easier.
Title: Downloadable Content
Post by: koldfuzion on May 11, 2004, 04:51:00 AM
should a checkbox be added so that covers downloaded are duped to default.tbn for XBMC? just wondering, its nice to see them when you run that app instead of the normal ones.
Title: Downloadable Content
Post by: flattspott on May 11, 2004, 06:18:00 AM
That sounds good to me. Although I rarely look at my games and applications while in XBMC. Other people however could use this feature.
Title: Downloadable Content
Post by: Kthulu on May 11, 2004, 07:41:00 PM
I agree, it wouldn't hurt as an option, but hopefully those Gueax.net guys will write a python script for XBMC that connects to the DB too...

Title: Downloadable Content
Post by: koldfuzion on May 11, 2004, 08:24:00 PM
i thought about the python script for it today, downloaded the small ?tutorial? someone wrote on it.  doesnt look too bad, but my question is... "Will XBMC provide the python script a hexid#?"

Just added a lot of XPort stuff tonight to the db.. including some custom mini-dvd covers that took all night to make.  dry.gif  .  I needed to get other stuff done

Still ahve more homebrew to add, doomx, quakex, duck hunt etc.
Title: Downloadable Content
Post by: Yuyu on May 12, 2004, 09:59:00 AM
Can't wait till BJ adds the progress bar stuff so this script will be great...

wink.gif

*hint* *hint*
Title: Downloadable Content
Post by: flattspott on May 12, 2004, 10:04:00 AM
I know what you mean, I'd use them for everything. IE, when a game loads it resources, etc.
Title: Downloadable Content
Post by: koldfuzion on May 12, 2004, 01:31:00 PM
well i just added a progressbar gosub to the script.  Draws the box based on var that is set at each step.   Its cude and not accurate right now because i just set the progress all the way down the script,  but it might be worth using (?).  

The progressbar would have to be dressed up and drawn outside the dialog too.

script on first page updated if anyone wants to see what i mean.
Title: Downloadable Content
Post by: flattspott on May 12, 2004, 03:10:00 PM
Why do you have SET _contentprogress 200 at the top, then soon after that you set it to 0? You don't have any GoSubs for it when it's at 200.
Title: Downloadable Content
Post by: flattspott on May 12, 2004, 04:27:00 PM
Also, I'm sitting here rewritting the entire script one line at time, trying to fine-tune it to perfection and I noticed this interesting thing I like to call WTF:

QUOTE
MSGBOX " Yea, You REALLY need HELP!"


All this professsionalism and then we have that. HAHA I like it.
Title: Downloadable Content
Post by: koldfuzion on May 12, 2004, 04:48:00 PM
QUOTE (flattspott @ May 13 2004, 12:10 AM)
Why do you have SET _contentprogress 200 at the top, then soon after that you set it to 0? You don't have any GoSubs for it when it's at 200.

it was a rush job, i wanted to see results before i had to go out for a little bit so my idle time could be spent thinking. Did a lot of copy/pasting and didnt realize i left that at the top, should have been 0

QUOTE
All this professsionalism and then we have that. HAHA I like it.


I kept meaning to add the help... but always forget to take it out.


The question is do we use the ghetto progress bar, or wait till be has it built in? could always switch later i guess.
Title: Downloadable Content
Post by: BenJeremy on May 12, 2004, 04:50:00 PM
Pssssssst.....   Ahem.......


1205 is now up. Let me know if this clears up some issues.

(Oh, has flattspott's internal.xml contribution, too)
Title: Downloadable Content
Post by: koldfuzion on May 12, 2004, 04:54:00 PM
lol   exactly the reason they teach us to read top -> down and yet i still read the forums bottom ->  up.


Edit: flattspott,  if you intend to keep the progress bar in there during the re-write,  use a range of 0-200 and the following  progressbar layout,  looks nicer and gives use a greater range to use for more frequent updates and better "movement"

replace all the "successful" messages with the progress gosub, wont slow the script and provides visual info.

QUOTE

:PROGRESS
BeginDraw UseCurrent
Box 218 328 202 33 BLACK WHITE
Box 220 330 %_contentprogress% 30 RED BLACK
EndDraw
RETURN


user posted image
Title: Downloadable Content
Post by: Yuyu on May 12, 2004, 06:12:00 PM
QUOTE (koldfuzion @ May 12 2004, 08:48 PM)
The question is do we use the ghetto progress bar, or wait till be has it built in? could always switch later i guess.

Please wait till the progress bar stuff is built into MXM, ghettto stuff can work sometimes but, after all your hard work do you really want to use a ghetto one... Just saying you've come this far, no need to muck things up with gheeto code...  wink.gif  

BJ progress bar update ?? (Know its not top priority, but it would be very useful in alot of the in-built modules and scripts you would like others to begin working on soon...)
Title: Downloadable Content
Post by: koldfuzion on May 12, 2004, 06:23:00 PM
true on using the ghetto stuff.   but i would just assume go with ghetto till after the this version is released.  Let BJ finish the PNP and other stuff he has panned, fix the bugs we find and still provide some kind of user info at the same time.

Everyone knows ppl are anxious for the next release and we know BJ can only do so much alone in so little time.  which is why i say that.

just my 2 cents though.
Title: Downloadable Content
Post by: BenJeremy on May 12, 2004, 06:54:00 PM
Yeah, yeah.... progress bar will be slick enough, I just want to get the PnP out of the way FIRST. The longer that stuff sits, the more my brain hurts and I worry I might miss something important.
Title: Downloadable Content
Post by: Yuyu on May 12, 2004, 07:45:00 PM
ph34r.gif  Just wanted an update , I knew it was on the back-burner of all the ideas (couple hundred or so..??) floating through your head at any given moment...

Thanks for the update though...   beerchug.gif
Title: Downloadable Content
Post by: Yuyu on May 16, 2004, 03:54:00 PM
tongue.gif

( I know I know, useless post, but it has been a beautiful weekend )
Title: Downloadable Content
Post by: flattspott on May 16, 2004, 05:10:00 PM
I know, I was wondering the same thing.

Title: Downloadable Content
Post by: chilin_dude on May 17, 2004, 03:26:00 AM
sad.gif
But then it will be PERFECT for me  beerchug.gif
Title: Downloadable Content
Post by: flattspott on May 17, 2004, 09:37:00 AM
I just realized, I think I completly missed the last half of page 5 of this this topic. Silly me.

As for the Context issue though. This is a problem. SetState Blank when used form a Context script will work only the Context menu will still be on top.
Title: Downloadable Content
Post by: unleashx on May 20, 2004, 02:15:00 AM
QUOTE
in the actionscripts, you send the video request using http://www.xbox-skin...vid.php?sid=135


Now, it's http://www.xbox-skin...dex.php?sid=135

Other than that, everything seems to be in place.

Kudos to you guys, especially for BLazeD and koldfuzion for making all of these possible.
Title: Downloadable Content
Post by: chilin_dude on May 20, 2004, 02:25:00 AM
QUOTE (unleashx @ May 20 2004, 11:15 AM)
I just noticed that the link to download vids have changed.



Now, it's http://www.xbox-skin...dex.php?sid=135

Other than that, everything seems to be in place.

Kudos to you guys, especially for BLazeD and koldfuzion for making all of these possible.

 wink.gif Both of those links work for me, possibly you can get them either way?
Title: Downloadable Content
Post by: koldfuzion on May 20, 2004, 04:18:00 AM
yes, both should work fine,  however, when requesting a vid using the dash,  then sendvid.php should be used.  (but doesnt have to be)

Flattspott put together the large majority of the data, some was done using mxm scripts. some by requesting from inside the dash.  Not as many titles need to have the videos linked as before, but there are still some left to do.

There is still a lot of titles missing but they cannot be added without the hexid.

UnleashX,  are you adding the ability to request content from the dash, if a video does not exist in the database, or if the title itself does not exist?


I give kudos to everyone,  BJ, Unleash, flattspott, Blazed and all users who will eventually benefit from this.
Title: Downloadable Content
Post by: flattspott on May 20, 2004, 04:53:00 AM
Ok yeah meant to say a while ago in regards to something like this never being done before...

It has been like this kinda, in the rom scene with their dat files. Only difference is that they are aren't tied together with a website. The closet on is some GBA dat front end that'll go and download the cover art based on the missing XXXX rom number. Images are named like so 0001.png. If you only had the 0001.png, and the dat went up to 0010.png then it would download the other nine.

Title: Downloadable Content
Post by: koldfuzion on May 20, 2004, 05:12:00 AM
QUOTE (unleashx @ May 20 2004, 11:15 AM)
I just noticed that the link to download vids have changed.


Now, it's http://www.xbox-skin...dex.php?sid=135

Other than that, everything seems to be in place.

Kudos to you guys, especially for BLazeD and koldfuzion for making all of these possible.

Im kind of confused where the info came from that made you think the link changed.

QUOTE
WEBFILEFETCH %_GameDir%\MXM_SS.wmv "http://www.xbox-skins.net/games/sendvid.php?sid=%nVidID%"


is used in the first post,  thought maybe i messed up and used index.php instead.

Not that it matters, just wondering.


missing title/video on site....
QUOTE
WEBFILEFETCH z:\request.xml "http://www.xbox-skins.net/games/request.php?t=%nTitle%&h=%HexID%&f=wmv&s=%nsize%"

(will post the title info to the site in a seperate db, it can then be either added to the main db or removed)
Title: Downloadable Content
Post by: koldfuzion on May 20, 2004, 07:34:00 AM
QUOTE
Is the last quote supposed to be the way to request video for specific title? If not, then is it posted in this thread. If it is, that's should be the easiest thing.


Yes, last quote is the format
hexid
title
f= media requested,  Not predefined, so you can send anything db related (video, xmv, wmv, thumb, cover etc.)
size=xbe size (raw size, no formatting).

in MXM i still do a file fetch, and save as xml file. The request.php is set to create results in XML format,  i posted it either here or sent you a PM on it.  i cant remember the exacts, but it will provide a response that can be used to display to the user. (uses two different nodes(?) so that the reponse can be displayed in two lines.)


QUOTE
I thought it gave me a 404 yesterday when I was testing so I went over to the site. Thats when I found out that index.php?sid=??? will send the video too. I'll use the old link back then.


hrm, shouldnt have gotten a 404 for either file, both urls work because if the sid is present, the index.php pulls the sendvid.php page instead.  It just allows the web user to stay on the same page without having to go to a seperate one for actual downloading.
Title: Downloadable Content
Post by: flattspott on May 20, 2004, 09:04:00 AM
QUOTE
I take it that I should display that result to the user?

Nope. That's why the script saves the z:\request.xml file. It gets the values from it automatically and displays a MsgBox to the user.

That is if your talking about the MXM script.

Otherwise if your talking about UnleashX then yes.
Title: Downloadable Content
Post by: koldfuzion on May 20, 2004, 09:25:00 AM
QUOTE
<GDBASE><XBR RESULT1="This Title is NOT Supported" RESULT2="You will have to get the files manually" /></GDBASE>


We are actually supporting these homebrew titles,   using homebrew.xml

But its up to the dashboard to check the hex and if its 00000000 or ffff051f and to pull the games/homebrew.xml instead of the xml/#hexid#.xml

but you have to create a list for the user to select,  or auto-select from the xml using the title.  Auto-selecting using the title might not be very reliable if the user edits the xbe to change the title.. or if our list is "off" enough to not produce a match.  We can always fix the db to match titles perfectly though.

QUOTE
What did this do? create a request on the server db? I take it that I should display that result to the user?


You dont have to display it to the user if you dont want to,  its all how you want to handle invalid requests and/or homebrew.
Title: Downloadable Content
Post by: koldfuzion on May 20, 2004, 09:42:00 AM
smile.gif   or PM you if you like.

smile.gif
Title: Downloadable Content
Post by: geniusalz on June 28, 2004, 05:43:00 PM
I feel so stupid for missing the script just about completely...
Checking it out now...
Edit: Had a few problems with comments messing up things, but fixed those.  

e.g. If blah GOTO somelabel;this is to go there

The comment became part of the label, and a space had to be added like so:
If blah GOTO somelabel ;this is to go there

Unforunately, my network doesn't want to share dialup, so I can't test out the downloading capabilities.