Help - Search - Members - Calendar
Full Version: Share Scripts For Others
Scenyx Entertainment Community > Xbox1 Forums > Dashboard Forums > Official MediaXMenu (MXM) Forum > MXM ActionScripting Forum
Pages: 1, 2, 3, 4
vexx22
Please share all your scripts here, they can help other to understand AS or bring them to new ideas. IF you have a question ask here.

If nobody should share his script without me, this will be the only scripts i ever post here for you.

I know that there are people who are much better in ActionScript as i.
vexx22
Here is my best script i call it "Copy Single Game DVD"some little detail were integratet from HABs69m
QUOTE

<Action>

SET SomeVar $DVDType$
TrayClose
Delay 10

If %SomeVar% == "game disc" GOTO Launch
If %SomeVar% != "game disc" GOTO begin


:begin
TrayOpen
BeginDraw UseCurrent
   MessageBox "Please insert A Game to Copy$eol$Press A to Continue$eol$Press B to Cancel"
EndDraw

  Input
    If %_GP_A% == "1" GOTO APRESSED
    If %_GP_B% == "1" GOTO BPRESSED
  QUIT

:APRESSED
  Trayclose
  Delay 10
  GOTO Launch

:BPRESSED
TrayClose
  QUIT

:Launch
  SETFUNC DVDTitle XBETITLE D:\DEFAULT.XBE
  SETFUNC DVDSIZE FILESIZE D:\DEFAULT.xbe

BeginDraw UseCurrent
  MessageBox "Press A to Copy %DVDTitle% or B to Cancel"
EndDraw

  Input
    If %_GP_A% == "1" GOTO A2PRESSED
    If %_GP_B% == "1" GOTO BPRESSED
  QUIT

:A2PRESSED
BeginDraw UseCurrent
MessageBox "DVD is Copying"
EndDraw
MKDIR F:\games\%DVDTITLE%
Copy D:\ F:\games\%DVDTITLE%
BeginDraw UseCurrent
MessageBox "%DVDTitle% is on Hard drive$eol$Will now reset MenuCache"
EndDraw
TrayOpen
Delay 10
ResetMenuCache

BeginDraw UseCurrent
MessageBox "Press A to Reboot$eol$Press B to Reboot later"
EndDraw

Input
If %_GP_A% == "1" GOTO A3PRESSED
If %_GP_B% == "1" GOTO BPRESSED
QUIT

:A3PRESSED
Trayclose
Reboot
QUIT

</Action>

vexx22
Here is a simple XBOX Disc Lauch script with checking system, too.

QUOTE

<Action>

SET SomeVar $DVDType$
TrayClose
Delay 10

:check
If %SomeVar% == "game disc" GOTO Launch
If %SomeVar% != "game disc" GOTO begin




:begin
TrayOpen
  BeginDraw UseCurrent
   MessageBox "Please insert A Game$eol$Press A to Continue$eol$Press B to Chancel"
  EndDraw

  Input
    If %_GP_A% == "1" GOTO APRESSED
    If %_GP_B% == "1" GOTO BPRESSED
  QUIT

:APRESSED
trayclose
delay 10
goto check

:BPRESSED
  QUIT

:Launch
  SETFUNC DVDTitle XBETITLE D:DEFAULT.XBE

  BeginDraw UseCurrent
  MessageBox "Press A to Launch %DVDTitle% or B to Cancel"
  EndDraw

  Input
    If %_GP_A% == "1" GOTO A2PRESSED
    If %_GP_B% == "1" GOTO BPRESSED
  QUIT

:A2PRESSED
LaunchDVD
MessageBox "%DVDTitle% is Starting"
QUIT

</Action>
vexx22
This is a script to control a little box on the screen with your D-Pad. After starting script click on D-Pad to activate. This script is not from me but i correct the version from this board and now it runs.

QUOTE

<Action>
SET YY 100
SET XX 100

:BLAH
Input

If %_GP_D_LF% == "1" GOTO LF
If %_GP_D_UP% == "1" GOTO UP
If %_GP_D_DN% == "1" GOTO DN
If %_GP_D_RT% == "1" GOTO RT
If %_GP_A% == "1" GOTO EXIT
Quit

:UP
SUB YY 5
GOTO DRAWIT
:DN
ADD YY 5
GOTO DRAWIT
:LF
SUB XX 5
GOTO DRAWIT
:RT
ADD XX 5
GOTO DRAWIT

:DRAWIT
BEGINDRAW
BOX %XX% %YY% 10 10 Black White
ENDDRAW
GOTO BLAH

:EXIT
QUIT

</Action>
vexx22
This is a short Script to control your intern Xbox Fans, Only to Optiions are aviable, 100% and default.

QUOTE

<Action>
BeginDraw UseCurrent
  MessageBox "Press A for 100 Percent$eol$Press B for Default"
EndDraw

  Input
    If %_GP_A% == "1" GOTO APRESSED
    If %_GP_B% == "1" GOTO BPRESSED
  QUIT

:APRESSED
  SETFANSPEED Manual 100%
  SETFANSPEED Manual 100%
  QUIT

:BPRESSED
  SETFANSPEED default
  SETFANSPEED default
  QUIT


</Action>
vexx22
Please post importent changes, like adding something good to the script. So that we can see what we forget.
flattspott
Why did you put the Fanspeed functions down two times each?
vexx22
to flatspot. They are put two times because if i made it only one time you need to activate the script two time. And with this configuration you need only open the script one time.
BenJeremy
I think there's some wierdness in the fanspeed stuff.... what I observed might have been a delay or rampup time for the speed to adjust, though.
vexx22
Is nobody interested in sharing his scripts with others? I donīt post my new scripts without other poting their scripts.
I mean i am not the one and only who program scripts for MXM, or am i? Come on you donīt need to share perfect scripts or big scripts. Share small and scripts who failed in function. Then all can watch and try to help, and much people can learn how to use ActionScript, and get new ideas.
X30n
I wish I had some scripts to share. What are some good uses of scripts and I will give a shot at it.
vexx22
try programming any kind of a script, it just for learning. let your fantasy play. biggrin.gif I startet programming Friday morning, it was the first time i used ActionScript. But after reading some topics and the readme i made my first own script. And it getting more. You can that too. Try it.
Habs69M
Oh well this is not done but here is my FormatPatitions.xas

I didnt bother adding these = \ but i guess you can figure out where they go biggrin.gif

:begin
BeginDraw UseCurrent
MessageBox "This will format partitions$eol$Press A to Format C$eol$Press B to Format E$eol$Press X to Format F$eol$Press Y to Format G$eol$Press BACK to Cancel"
EndDraw

Input
If %_GP_A% == "1" GOTO APRESSED
If %_GP_B% == "1" GOTO BPRESSED
If %_GP_X% == "1" GOTO XPRESSED
If %_GP_Y% == "1" GOTO YPRESSED
If %_GP_BACK% == "1" GOTO BACKPRESSED
QUIT

:APRESSED
BeginDraw UseCurrent
MessageBox "This will FORMAT C:$eol$Press A to confirm$eol$B to Cancel"
EndDraw
Input
If %_GP_A% == "1" GOTO A2PRESSED
If %_GP_BACK% == "1" GOTO BACKPRESSED
QUIT
:A2PRESSED
Delay 2
FORMAT C:

:BPRESSED
BeginDraw UseCurrent
MessageBox "This will FORMAT E:$eol$Press A to confirm$eol$B to Cancel"
EndDraw
Input
If %_GP_A% == "1" GOTO A3PRESSED
If %_GP_BACK% == "1" GOTO BACKPRESSED
QUIT
:A3PRESSED
Delay 2
FORMAT E:

:XPRESSED
BeginDraw UseCurrent
MessageBox "This will FORMAT F:$eol$Press A to confirm$eol$B to Cancel"
EndDraw
Input
If %_GP_A% == "1" GOTO A4PRESSED
If %_GP_BACK% == "1" GOTO BACKPRESSED
QUIT
:A4PRESSED
Delay 2
FORMAT F:

:YPRESSED
BeginDraw UseCurrent
MessageBox "This will FORMAT G:$eol$Press A to confirm$eol$B to Cancel"
EndDraw
Input
If %_GP_A% == "1" GOTO A5PRESSED
If %_GP_BACK% == "1" GOTO BACKPRESSED
QUIT
:A5PRESSED
Delay 2
FORMAT G:

:BACKPRESSED
QUIT
vexx22
Cool Big thanks to HABS69M for his first script. Have you tested it? Because i see something missing.
Habs69M
Loll my first script was a remake of your MXMcopy, anyways ..... i know its missing things like i said its not done but you wanted some scripts so i posted my progress biggrin.gif and for now yes it works will probably finish it tonight, kind a cool what you can do with this , wonder what else could be nice as a XAS like maybe flash bios? BJ can you answer this? can i make a XAS script to flash a bios on a mod chip?
vexx22
I thank you for posting your script, and i hope that other will do it too. You need to add a QUIT string like here

:A2PRESSED
Delay 2
FORMAT C:
QUIT

but it a nice script i think. You can also add something like

:A2PRESSED
Delay 2
FORMAT C:
Copy D:\CDRIVE\ C:\
QUIT

I donīt know exakly, will this copy all inside the CDRIVE folder to C: or will it copy the FOlder to c: can you help BenJeremy?
geniusalz
QUOTE (Habs69M @ Sep 29 2003, 05:11 PM)

:XPRESSED
BeginDraw UseCurrent
MessageBox "This will FORMAT F:$eol$Press A to confirm$eol$B to Cancel"
EndDraw
Input
If %_GP_A% == "1" GOTO A4PRESSED
If %_GP_BACK% == "1" GOTO BACKPRESSED
QUIT
:A4PRESSED
Delay 2
FORMAT F:

:YPRESSED
BeginDraw UseCurrent
MessageBox "This will FORMAT G:$eol$Press A to confirm$eol$B to Cancel"
EndDraw
Input
If %_GP_A% == "1" GOTO A5PRESSED
If %_GP_BACK% == "1" GOTO BACKPRESSED
QUIT
:A5PRESSED
Delay 2
FORMAT G:

:BACKPRESSED
QUIT

You need to QUIT after every format "block"
Otherwise it will keep executing the rest of the code after the "format" command
I was making the same mistake...

With that bug fixed:
CODE

:begin
BeginDraw UseCurrent
MessageBox "This will format partitions$eol$Press A to Format C$eol$Press B to Format E$eol$Press X to Format F$eol$Press Y to Format G$eol$Press BACK to Cancel"
EndDraw

Input
If %_GP_A% == "1" GOTO APRESSED
If %_GP_B% == "1" GOTO BPRESSED
If %_GP_X% == "1" GOTO XPRESSED
If %_GP_Y% == "1" GOTO YPRESSED
If %_GP_BACK% == "1" GOTO BACKPRESSED
QUIT

:APRESSED
BeginDraw UseCurrent
MessageBox "This will FORMAT C:$eol$Press A to confirm$eol$B to Cancel"
EndDraw
Input
If %_GP_A% == "1" GOTO A2PRESSED
If %_GP_BACK% == "1" GOTO BACKPRESSED
QUIT
:A2PRESSED
Delay 2
FORMAT C:
QUIT

:BPRESSED
BeginDraw UseCurrent
MessageBox "This will FORMAT E:$eol$Press A to confirm$eol$B to Cancel"
EndDraw
Input
If %_GP_A% == "1" GOTO A3PRESSED
If %_GP_BACK% == "1" GOTO BACKPRESSED
QUIT
:A3PRESSED
Delay 2
FORMAT E:
QUIT

:XPRESSED
BeginDraw UseCurrent
MessageBox "This will FORMAT F:$eol$Press A to confirm$eol$B to Cancel"
EndDraw
Input
If %_GP_A% == "1" GOTO A4PRESSED
If %_GP_BACK% == "1" GOTO BACKPRESSED
QUIT
:A4PRESSED
Delay 2
FORMAT F:
QUIT

:YPRESSED
BeginDraw UseCurrent
MessageBox "This will FORMAT G:$eol$Press A to confirm$eol$B to Cancel"
EndDraw
Input
If %_GP_A% == "1" GOTO A5PRESSED
If %_GP_BACK% == "1" GOTO BACKPRESSED
QUIT
:A5PRESSED
Delay 2
FORMAT G:
QUIT

:BACKPRESSED
QUIT
vexx22
You are right geniusalz thats exactliy what i told him. biggrin.gif
Habs69M
geniusalz do i still need a QUIT after a FORMAT command? since the QUIT is right after my input key press? if not well this script will be ready to test biggrin.gif



:begin
BeginDraw UseCurrent
MessageBox "This will format partitions$eol$Press A to Format C$eol$Press B to Format E$eol$Press X to Format F$eol$Press Y to Format G$eol$Press BACK to Cancel"
EndDraw

Input
If %_GP_A% == "1" GOTO APRESSED
If %_GP_B% == "1" GOTO BPRESSED
If %_GP_X% == "1" GOTO XPRESSED
If %_GP_Y% == "1" GOTO YPRESSED
If %_GP_BACK% == "1" GOTO BACKPRESSED
QUIT

:APRESSED
BeginDraw UseCurrent
MessageBox "This will FORMAT C:$eol$Press A to confirm$eol$B to Cancel"
EndDraw
Input
If %_GP_A% == "1" GOTO A2PRESSED
If %_GP_BACK% == "1" GOTO BACKPRESSED
QUIT
:A2PRESSED
BeginDraw UseCurrent
MessageBox "Formating Partition C:$eol$Please Wait"
EndDraw
Delay 2
FORMAT C:
BeginDraw UseCurrent
MessageBox "Done Formating C:$eol$Press A to Reboot$eol$Press B to return to Dash"
EndDraw
Input
If %_GP_A% == "1" GOTO A6PRESSED
If %_GP_B% == "1" GOTO BACKPRESSED
QUIT

:BPRESSED
BeginDraw UseCurrent
MessageBox "This will FORMAT E:$eol$Press A to confirm$eol$B to Cancel"
EndDraw
Input
If %_GP_A% == "1" GOTO A3PRESSED
If %_GP_BACK% == "1" GOTO BACKPRESSED
QUIT
:A3PRESSED
BeginDraw UseCurrent
MessageBox "Formating Partition E:$eol$Please Wait"
EndDraw
Delay 2
FORMAT E:
BeginDraw UseCurrent
MessageBox "Done Formating E:$eol$Press A to Reboot$eol$Press B to return to Dash"
EndDraw
Input
If %_GP_A% == "1" GOTO A6PRESSED
If %_GP_B% == "1" GOTO BACKPRESSED
QUIT

:XPRESSED
BeginDraw UseCurrent
MessageBox "This will FORMAT F:$eol$Press A to confirm$eol$B to Cancel"
EndDraw
Input
If %_GP_A% == "1" GOTO A4PRESSED
If %_GP_BACK% == "1" GOTO BACKPRESSED
QUIT
:A4PRESSED
BeginDraw UseCurrent
MessageBox "Formating Partition F:$eol$Please Wait"
EndDraw
Delay 2
FORMAT F:
BeginDraw UseCurrent
MessageBox "Done Formating F:$eol$Press A to Reboot$eol$Press B to return to Dash"
EndDraw
Input
If %_GP_A% == "1" GOTO A6PRESSED
If %_GP_B% == "1" GOTO BACKPRESSED
QUIT

:YPRESSED
BeginDraw UseCurrent
MessageBox "This will FORMAT G:$eol$Press A to confirm$eol$B to Cancel"
EndDraw
Input
If %_GP_A% == "1" GOTO A5PRESSED
If %_GP_BACK% == "1" GOTO BACKPRESSED
QUIT
:A5PRESSED
BeginDraw UseCurrent
MessageBox "Formating Partition G:$eol$Please Wait"
EndDraw
Delay 2
FORMAT G:
BeginDraw UseCurrent
MessageBox "Done Formating G:$eol$Press A to Reboot$eol$Press B to return to Dash"
EndDraw
Input
If %_GP_A% == "1" GOTO A6PRESSED
If %_GP_B% == "1" GOTO BACKPRESSED
QUIT

:A6PRESSED
Reboot

:BACKPRESSED
QUIT
BenJeremy
QUOTE (Habs69M @ Sep 29 2003, 05:21 PM)
Loll my first script was a remake of your MXMcopy, anyways ..... i know its missing things like i said its not done but you wanted some scripts so i posted my progress biggrin.gif and for now yes it works will probably finish it tonight, kind a cool what you can do with this , wonder what else could be nice as a XAS like maybe flash bios? BJ can you answer this? can i make a XAS script to flash a bios on a mod chip?

Working on that flash code yet....

The nice thing about ActionScript, is it temporarily frees me from having to get the UI in place before doing some neater things.


MediaPatch command is coming tonight, as soon as I get out of work here and get home. The code is written, it does a media flag and the 8 byte media check code patch.

Also coming is directory entry searching:

BEGINSEARCH <WildCardPath>
SEARCHITEM <VarName> (Load VarName with current file/pathname)
SEARCHSIZE <VarName> (Load VarName with current file size)
SEARCHTYPE <VarName> (Load VarName with current type for entry - "file" or "dir")
SEARCHNEXT
ENDSEARCH

geniusalz
QUOTE (vexx22 @ Sep 29 2003, 05:28 PM)
You are right geniusalz thats exactliy what i told him. biggrin.gif

Well, let's just say u type faster than me biggrin.gif
geniusalz
QUOTE (Habs69M @ Sep 29 2003, 05:39 PM)
geniusalz do i still need a QUIT after a FORMAT command? since the QUIT is right after my input key press? if not well this script will be ready to test biggrin.gif

Well, you need to keep the QUIT after the inputs, in case the user presses something other than A or B. Looks good right now
Habs69M
Hehe i wanted to test it but got this message:

ATTENTION
Partition Formatting must be enable by user
Access System Menu to change

How do i change this ? smile.gif please so i can test my script
geniusalz
It's a security feature in case kids dont format ohmy.gif

To bypass it temporarily, you need to go to the system meny (press Y) , and look for "allow format" or something there.

To bypass it everytime you run the script (not recommended), you need to put
ALLOWFORMAT 1
In your actionscript
Habs69M
Hmm cool thks bud, you helped alot smile.gif will test this ,without the QUIT after the FORMAT command and see what happens,

Thks again smile.gif
Habs69M
Ok the script in my previous post works but i am wondering if for the syntax i have to add the QUIT after the FORMAT command or not?

And damn it formats fast hehe i formated my E in like 4 seconds lolll
myffonline
Maybe someone should make a dedicated webpage where we can download good actionscripts and upload our own if we have them. That'd be cool.
vexx22
To Habs69M you need to set the Quit because if not the script donīt end after Formating a drive. It will run to the next quit and it can be that there are more than one format command between the label were the command begins and the next quit.

If here were more than 10 functional Scripts were posted i create a site. Or i ask BenJeremy to open a topic that can not be edited from anyone. But first we need scripts.

I were intrested in an installdisc. I could programm it myself but HABS69M has the formt part programmed and i think it were nice if somebody create another part For the disc.

What do you think BenJeremy about a installdisc what should it can? Wich functons are need. Please tell your opinion, to all.
camora
umm... the "Copy Single Game DVD" script dont work for me.
Lets say i put Gun Valkyrie in the tray, after that the copying process begins but only for 10 seconds. After the reboot the game is not in f:\games, but a folder called video_ts.
Another problem is that i cant delete this folder in MXM. So i need to switch to evox to delete it.
BenJeremy
QUOTE (vexx22 @ Sep 29 2003, 07:03 PM)
To Habs69M you need to set the Quit because if not the script donīt end after Formating a drive. It will run to the next quit and it can be that there are more than one format command between the label were the command begins and the next quit.

If here were more than 10 functional Scripts were posted i create a site. Or i ask BenJeremy to open a topic that can not be edited from anyone. But first we need scripts.

I were intrested in an installdisc. I could programm it myself but HABS69M has the formt part programmed and i think it were nice if somebody create another part For the disc.

What do you think BenJeremy about a installdisc what should it can? Wich functons are need. Please tell your opinion, to all.

Well, I've got the basic "Install disc" code built into MXM - check out the internal.xml file that is inclued in the source code (some good examples in there, as well).

If formats drives, and restores from preset directories. You, as a scripter, can override this, too... defining your own named scripts in the mxm.xml file (I'm working on a better delivery method, so people can drop the scripts in and have them work)
Habs69M
QUOTE
To Habs69M you need to set the Quit because if not the script donīt end after Formating a drive. It will run to the next quit and it can be that there are more than one format command between the label were the command begins and the next quit.


Well i figured that after every FORMAT instance i have my message box with option to reboot or quit so i guess its ok to leave it this way but i wanted to know for sure smile.gif because if i put a QUIT right after the FORMAT command it will quit before displaying my message box.
BenJeremy
You guys do know about the internal.xml, right?

CODE

<ActionScript Name="_ClearDisplay">
BeginDraw UseCurrent
EndDraw
</ActionScript>
<ActionScript name="_RenderMessageBox>
BeginDraw UseCurrent
MessageBox %1%
EndDraw
</ActionScript>
<ActionScript Name="_DisplayMessageBox">
CallScript _RenderMessageBox %1%
; Wait for input...
Input
; Clear old stuff out....
CallScript _ClearDisplay
</ActionScript>
<ActionScript Name="_AutoExec">
IF $MXMVersion$ !#^ "WIP" GOTO DONE
CallScript _DisplayMessageBox "This is a WIP Release$eol$Do not distribute"
CallScript _ClearDisplay
:DONE
CallScript _CheckPrep
</ActionScript>
<ActionScript name="_PREPDRIVES">
SETFUNC DrvCPres COND CDrivePresent
SETFUNC DrvEPres COND EDrivePresent
SETFUNC DrvFPres COND FDrivePresent
SETFUNC DrvGPres COND GDrivePresent
ALLOWFORMAT 1
CallScript _DisplayMessageBox "System Will Be Prepared"
CallScript _RenderMessageBox "Formatting Cache Partitions"
FORMAT X:
FORMAT Y:
FORMAT Z:
MOUNT X:
MOUNT Y:
MOUNT Z:
CallScript _ClearDisplay
IF %DrvGPres% != 0 GOTO SKIPG
CallScript _DisplayMessageBox "Do you have a G: Partition to format?$eol$Press 'Y' to format G:"
IF %_GP_Y% != "1" GOTO SKIPG
CallScript _PromptFormat G:
:SKIPG
IF %DrvFPres% != 0 GOTO SKIPF
CallScript _PromptFormat F:
:SKIPF
IF %DrvEPres% != 0 GOTO SKIPE
CallScript _PromptFormat E:
:SKIPE
IF %DrvCPres% != 0 GOTO SKIPC
CallScript _PromptFormat C:
:SKIPC
</ActionScript>
<ActionScript name="_CheckODash">
SETFUNC ODashPresent FileExists C:\xboxdash.xbe
IF %ODashPresent% != 0 GOTO ODASHPRESENT
CallScript _DisplayMessageBox "Copying MXM to C:"
MOUNT D:
COPY D:\default.xbe C:\xboxdash.xbe
ATTR C:\xboxdash.xbe rw
SETFUNC BIOSXMLPres FileExists D:\BIOSMD5.xml
IF %BIOSXMLPres% == 0 GOTO ODASHPRESENT
COPY D:\BIOSMD5.xml C:\BIOSMD5.xml
ATTR C:\BIOSMD5.xml rw
:ODASHPRESENT
SETFUNC TDataPres FileExists E:\TDATA
SETFUNC UDataPres FileExists E:\UDATA
IF %TDataPres% == 1 GOTO SKIP1
MKDIR E:\TDATA
:SKIP1
IF %UDataPres% == 1 GOTO SKIP2
MKDIR E:\UDATA
:SKIP2
SETFUNC TDataGPres FileExists E:\TDATA\00004321
SETFUNC UDataGPres FileExists E:\UDATA\00004321
IF %TDataGPres% == 1 GOTO SKIP3
MKDIR E:\TDATA\00004321
:SKIP3
IF %UDataGPres% == 1 GOTO SKIP4
MKDIR E:\UDATA\00004321
:SKIP4
</ActionScript>
<ActionScript name="_CHECKPREP">
SETFUNC DrvCPres COND CDrivePresent
SETFUNC DrvEPres COND EDrivePresent
SETFUNC DrvFPres COND FDrivePresent
SETFUNC DrvGPres COND GDrivePresent
IF %_ForceRestore% == 1 GOTO PREPSYSTEM
IF $DVD_Mode$ != 1 GOTO EPRESENT
IF %DrvCPres% == 1 GOTO CPRESENT
GOTO PREPSYSTEM
:CPRESENT
IF %DrvEPres% == 1 GOTO EPRESENT
:PREPSYSTEM
CallSCript _DisplayMessageBox "This drive appears to be unprepared$eol$Would you like to prepare your$eol$hard drive partitions now?$eol$Press RIGHT-TRIGGER and A to proceed$eol$Any other key"
IF %_GP_TRG_RT% != "1" GOTO EPRESENT
IF %_GP_A% != "1" GOTO EPRESENT
CallScript _PREPDRIVES
GOTO CHECKDASH
:CHECKDASH
CallScript _CheckODash
GOTO CHECKRESTORE
:CHECKRESTORE
CallScript _PerfRestore C
CallScript _PerfRestore E
CallScript _PerfRestore F 1
CallScript _PerfRestore G 1
CallScript _DisplayMessageBox "Done with default Prepare"
CallScript _ClearDisplay
:EPRESENT
</Actionscript>
<Actionscript name="_PERFRESTORE>
; CallScript _PerfRestore F
SET SourceDrive D:\
SET SourceDir %SourceDrive%%1%Backup
SET TargetDrive %1%:\
SETFUNC BackPresent FileExists %SourceDir%
SETFUNC DrvPres COND %1%DrivePresent
IF %DrvPres% != 1 GOTO DRVNOTPRESENT
IF %BackPresent% != 1 GOTO BACKNOTPRESENT
CallScript _DisplayMessageBox "Press 'Y' restore %TargetDrive% from %SourceDir%"
IF %_GP_Y% != "1" GOTO END
BeginDraw UseCurrent
MessageBox "Copying %1% Backup$eol$Please wait"
EndDraw
COPY %SourceDir% %TargetDrive%
CallScript _ClearDisplay
BeginDraw UseCurrent
MessageBox "Fixing Attributes$eol$Please wait"
EndDraw
ATTR %TargetDrive% rw
CallScript _ClearDisplay
GOTO END
:DRVNOTPRESENT
IF %2% == 1 GOTO END
CallScript _DisplayMessageBox "Unable to copy %1%: Backup$eol$Drive not present"
:BACKNOTPRESENT
IF %2% == 1 GOTO END
CallScript _DisplayMessageBox "Unable to copy %1%:$eol$ %SourceDir% not present"
:END
</Actionscript>
<ActionScript name="_PROMPTFORMAT">
; To use, CallScript _PromptFormat F:
SETFUNC Drive UPPER %1%
SETFUNC Drive LEFT 1 %Drive%
IF %Drive% == C GOTO DRIVECHECK
IF %Drive% == E GOTO DRIVECHECK
IF %Drive% == F GOTO DRIVECHECK
IF %Drive% == G GOTO DRIVECHECK
GOTO SKIPCHECK
:DRIVECHECK
SETFUNC DrvPres COND %Drive%DrivePresent
IF %DrvPres% != 1 GOTO SKIPCHECK
CallScript _DisplayMessageBox "%1% Has Data!$eol$Are you sure you want to format?$eol$Press 'Y' to confirm"
IF %_GP_Y% != "1" GOTO CANCELLED
:SKIPCHECK
CallScript _DisplayMessageBox "You are about to format drive %1%$eol$Are you sure?$eol$Press 'X' to confirm"
IF %_GP_X% != "1" GOTO CANCELLED
BeginDraw UseCurrent
MessageBox "Formatting drive %1%$eol$Please wait"
EndDraw
; ALLOWFORMAT 1
FORMAT %1%
CallSCript _DisplayMessageBox "Drive %1% Formatted"
Mount %1%
GOTO END
:CANCELLED
CallScript _DisplayMessageBox "Drive %1% Format Cancelled"
:END
</ActionScript>
<ActionScript name="_DisplayGameInfo">CallScript _DisplayMessageBox "%_GameTitle% is installed to the hard drive"</ActionScript>
<ActionScript name="_DisplayGameInfoDVD">CallScript _DisplayMessageBox "%_GameTitle% is on the DVD"</ActionScript>
<ActionScript name="_ClearGameSaves">CallScript _DisplayMessageBox "Clear %_GameTitle% Game Saves$eol$Not Implemented"</ActionScript>
<ActionScript name="_DeleteApp">CallScript _DisplayMessageBox "Delete %_GameTitle%$eol$Not Implemented"</ActionScript>
<ActionScript name="_InstallDVDApp">CallScript _DisplayMessageBox "Install %_GameTitle%$eol$Not Implemented"</ActionScript>
Habs69M
QUOTE
You guys do know about the internal.xml, right?


Damn as soon as i learn something new BJ makes sure i am confused with something else lollll

No i dont know about internal script but will learn it too i guess biggrin.gif
vexx22
To camora. is this a game you try to copy? the script take the folder name from the Gametitle, the folder you say is a DVD Video Folder and not a game folder. You should control is the script correct integrated. That the box reboot afert 10 sec is not what the script does because their is only one code how call 10 sec an thats after closing the tray in the 3rd line or the 4th.

Are their anyone with the same problem or runs the script. please give a short post.
vexx22
How to integrate an internal script override in my own sript? Like RenderMessageBox %1% to 100%
camora
Yes, as i said. It's a game. I tried Gun Valkyrie, Splinter Cell and Halo.
Always the same problem.
1. I start the script.
2. After the DVD tray is open i put the game in
3. I press A to continue
4. The message "Press A to copy or B to cancel" pops up.
5. I press A and 10 sec later the message "is on Hard Drive" pops up.
Thats all. Now i have a nice Video_TS folder with no use.

This is my copygame.xas:
CODE

<Action>

SET SomeVar $DVDType$
TrayClose
Delay 10

If %SomeVar% == "game disc" GOTO Launch
If %SomeVar% != "game disc" GOTO begin


:begin
TrayOpen
BeginDraw UseCurrent
  MessageBox "Please insert A Game to Copy$eol$Press A to Continue$eol$Press B to Cancel"
EndDraw

 Input
   If %_GP_A% == "1" GOTO APRESSED
   If %_GP_B% == "1" GOTO BPRESSED
 QUIT

:APRESSED
 Trayclose
 Delay 10
 GOTO Launch

:BPRESSED
TrayClose
 QUIT

:Launch
 SETFUNC DVDTitle XBETITLE D:DEFAULT.XBE
 SETFUNC DVDSIZE FILESIZE D:DEFAULT.xbe

BeginDraw UseCurrent
 MessageBox "Press A to Copy %DVDTitle% or B to Cancel"
EndDraw

 Input
   If %_GP_A% == "1" GOTO A2PRESSED
   If %_GP_B% == "1" GOTO BPRESSED
 QUIT

:A2PRESSED
BeginDraw UseCurrent
MessageBox "DVD is Copying"
EndDraw
MKDIR F:\games\%DVDTITLE%
Copy D:\ F:games\%DVDTITLE%
BeginDraw UseCurrent
MessageBox "%DVDTitle% is on Hard drive$eol$Will now reset MenuCache"
EndDraw
TrayOpen
Delay 10
ResetMenuCache

BeginDraw UseCurrent
MessageBox "Press A to Reboot$eol$Press B to Reboot later"
EndDraw

Input
If %_GP_A% == "1" GOTO A3PRESSED
If %_GP_B% == "1" GOTO BPRESSED
QUIT

:A3PRESSED
Trayclose
Reboot
QUIT

</Action>

BenJeremy
QUOTE (camora @ Sep 29 2003, 07:04 PM)
umm... the "Copy Single Game DVD" script dont work for me.
Lets say i put Gun Valkyrie in the tray, after that the copying process begins but only for 10 seconds. After the reboot the game is not in f:games, but a folder called video_ts.
Another problem is that i cant delete this folder in MXM. So i need to switch to evox to delete it.

Strange.... MXM is seeing the game disc (an original, obviously) as a DVD movie, which means soemthing failed in the DVD security check.
BenJeremy
QUOTE (vexx22 @ Sep 29 2003, 07:26 PM)
How to integrate an internal script override in my own sript? Like RenderMessageBox %1% to 100%

In the MXM.xml file, in the <scripts> node, you would define your script with the same name as the internal one you want to override.

You should be careful of arguments and such... changing them will likely hose up other scripts that depend on them.
vexx22
I tested my original script with my halo Disc (original) it runs perfect. i wil test it with a burn dvd at morning (time here is 01:54 am)
camora
The games i've tried are all original. I dont have any backups to try. Too bad, this would be a usefull script for me...
vexx22
i tested i earlier, with 007 : Nightfire in the space between 007 and : were in the messagebox for xbetitle a ? instaeat a space. and it go next to copy an then after one second to reboot but by me nothing was created i donīt kno what it is its not the script. Can you help BenJeremy?
BenJeremy
QUOTE (camora @ Sep 29 2003, 08:17 PM)
The games i've tried are all original. I dont have any backups to try. Too bad, this would be a usefull script for me...

I tested an original, not on the script, but with the FTP, and it read the disc fine.

What DVD drive do you have in your Xbox? Philips, Thomson, or Samsung?

Can you see your original game disc contents using an FTP client?

What BIOS are you using?
BenJeremy
QUOTE (vexx22 @ Sep 29 2003, 08:20 PM)
i tested i earlier, with 007 : Nightfire in the space between 007 and : were in the messagebox for xbetitle a ? instaeat a space. and it go next to copy an then after one second to reboot but by me nothing was created i donīt kno what it is its not the script. Can you help BenJeremy?

Maybe I could add a function to convert a string into a "legal" FATX name?

You couldn't use it to rename game files that aren't valid FATX, but it would help for your situation where a game puts nasty characters like ":" and "™" (Which is probably what the "?" actually was) in the title
camora
Thomson

No, when i try to access D:\ i see the content of my C:\ Drive

x2 4978.3
vexx22
do it please

i have a samsung and use Evox D& bios

i see it throug ftp an can play it on box
Habs69M
camora i have a Thomson, but with my version of the script i tried with backup games dvd and it works fine hell i even backed up slayer install disk to my games folder biggrin.gif (just to try)

Didnt try the final version of vexx22 script
camora
@Habs69M
Can you see your game disc contents over FTP?
Because i cant and i dont know why. Maybe because of my bios. What BIOS are you using?
Maybe my BIOS is the problem...
Habs69M
QUOTE
Can you see your game disc contents over FTP?


Once its finished coping? yeah sure i can or do you mean just put the game dvd in the xbox and look on D if i see the game folders? that too i can see

My bios is Evox 2.6 V1 blue and my kernel is 1.0.4034
camora
Yes, i mean when you just put a game dvd in the box.
Maybe i should try another BIOS...
BenJeremy
QUOTE (camora @ Sep 29 2003, 08:49 PM)
Yes, i mean when you just put a game dvd in the box.
Maybe i should try another BIOS...

Yeah, there's something odd with 4978.03, but I was referring to the MXM FTP Server (I think you were using the BIOS FTP Server?)
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2013 Invision Power Services, Inc.