xbox-scene.com - your xbox news information source
Quick Links: Main Forums | Xbox360 Forums | Xbox1 Forums | PS3 Forums
Xbox-Scene Forum Help  Search Xbox-Scene Forums   Xbox-Scene Forum Members   Xbox-Scene Calendar

Giganews Usenet Offers: +1150 days binary retention, 99%+ Completion, and Unlimited Speed/Access!

360 ODD Emulators: X360 Key $99 | Wasabi360 FAT $99 | Wasabi360 Slim $99
C4E's iXtreme Burner MAX Drive: LiteOn iHAS124 DROPPED TO JUST $17


Welcome Guest ( Log In | Register )

 Forum Rules Rules
> Share Scripts For Others, Post new scripts and changes here
vexx22
post Sep 28 2003, 11:08 PM
Post #1


X-S Member
*

Group: Members
Posts: 96
Joined: 22-September 03
From: Germany
Member No.: 63907
Xbox Version: v1.1



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.

This post has been edited by vexx22: Sep 28 2003, 11:24 PM
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
 
Reply to this topicStart new topic
Replies
BenJeremy
post Sep 29 2003, 10:15 PM
Post #2


X-S Elysian
*************

Group: Head Moderator
Posts: 9688
Joined: 19-July 02
Member No.: 1853
Xbox Version: v1.1
360 version: v1 (xenon)



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>
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

Posts in this topic
vexx22   Share Scripts For Others   Sep 28 2003, 11:08 PM
vexx22   Here is my best script i call it "Copy Singl...   Sep 28 2003, 11:12 PM
vexx22   Here is a simple XBOX Disc Lauch script with check...   Sep 28 2003, 11:16 PM
vexx22   This is a script to control a little box on the sc...   Sep 28 2003, 11:18 PM
vexx22   This is a short Script to control your intern Xbox...   Sep 28 2003, 11:21 PM
vexx22   Please post importent changes, like adding someth...   Sep 28 2003, 11:22 PM
flattspott   Why did you put the Fanspeed functions down two ti...   Sep 29 2003, 02:10 AM
vexx22   to flatspot. They are put two times because if i m...   Sep 29 2003, 11:43 AM
BenJeremy   I think there's some wierdness in the fanspeed...   Sep 29 2003, 11:47 AM
vexx22   Is nobody interested in sharing his scripts with o...   Sep 29 2003, 07:47 PM
X30n   I wish I had some scripts to share. What are some...   Sep 29 2003, 07:59 PM
vexx22   try programming any kind of a script, it just for ...   Sep 29 2003, 08:11 PM
Habs69M   Oh well this is not done but here is my FormatPati...   Sep 29 2003, 08:11 PM
vexx22   Cool Big thanks to HABS69M for his first script. H...   Sep 29 2003, 08:14 PM
Habs69M   Loll my first script was a remake of your MXMcopy,...   Sep 29 2003, 08:21 PM
vexx22   I thank you for posting your script, and i hope th...   Sep 29 2003, 08:25 PM
geniusalz   You need to QUIT after every format "block...   Sep 29 2003, 08:26 PM
vexx22   You are right geniusalz thats exactliy what i told...   Sep 29 2003, 08:28 PM
Habs69M   geniusalz do i still need a QUIT after a FORMAT co...   Sep 29 2003, 08:39 PM
BenJeremy   Working on that flash code yet.... The nice thi...   Sep 29 2003, 08:51 PM
geniusalz   Well, let's just say u type faster than me :...   Sep 29 2003, 09:01 PM
geniusalz   Well, you need to keep the QUIT after the inputs...   Sep 29 2003, 09:05 PM
Habs69M   Hehe i wanted to test it but got this message: AT...   Sep 29 2003, 09:06 PM
geniusalz   It's a security feature in case kids dont form...   Sep 29 2003, 09:11 PM
Habs69M   Hmm cool thks bud, you helped alot :) will test ...   Sep 29 2003, 09:14 PM
Habs69M   Ok the script in my previous post works but i am w...   Sep 29 2003, 09:40 PM
myffonline   Maybe someone should make a dedicated webpage wher...   Sep 29 2003, 09:50 PM
vexx22   To Habs69M you need to set the Quit because if not...   Sep 29 2003, 10:03 PM
camora   umm... the "Copy Single Game DVD" script...   Sep 29 2003, 10:04 PM
BenJeremy   Well, I've got the basic "Install disc...   Sep 29 2003, 10:06 PM
Habs69M   Well i figured that after every FORMAT instance ...   Sep 29 2003, 10:09 PM
Habs69M   Damn as soon as i learn something new BJ makes s...   Sep 29 2003, 10:22 PM
vexx22   To camora. is this a game you try to copy? the scr...   Sep 29 2003, 10:23 PM
vexx22   How to integrate an internal script override in my...   Sep 29 2003, 10:26 PM
camora   Yes, as i said. It's a game. I tried Gun Valky...   Sep 29 2003, 10:37 PM
BenJeremy   Strange.... MXM is seeing the game disc (an orig...   Sep 29 2003, 10:44 PM
BenJeremy   In the MXM.xml file, in the <scripts> nod...   Sep 29 2003, 10:48 PM
vexx22   I tested my original script with my halo Disc (ori...   Sep 29 2003, 11:01 PM
camora   The games i've tried are all original. I dont ...   Sep 29 2003, 11:17 PM
vexx22   i tested i earlier, with 007 : Nightfire in the sp...   Sep 29 2003, 11:20 PM
BenJeremy   I tested an original, not on the script, but wit...   Sep 29 2003, 11:21 PM
BenJeremy   Maybe I could add a function to convert a string...   Sep 29 2003, 11:25 PM
camora   Thomson No, when i try to access D:\ i see t...   Sep 29 2003, 11:28 PM
vexx22   do it please i have a samsung and use Evox D...   Sep 29 2003, 11:29 PM
Habs69M   camora i have a Thomson, but with my version of t...   Sep 29 2003, 11:34 PM
camora   @Habs69M Can you see your game disc contents over ...   Sep 29 2003, 11:40 PM
Habs69M   Once its finished coping? yeah sure i can or do ...   Sep 29 2003, 11:44 PM
camora   Yes, i mean when you just put a game dvd in the bo...   Sep 29 2003, 11:49 PM
BenJeremy   Yeah, there's something odd with 4978.03, bu...   Sep 30 2003, 12:01 AM
camora   I tried it with the MXM FTP Server and with EvoX,...   Sep 30 2003, 12:10 AM
camora   Yes! I changed my BIOS and now the script work...   Sep 30 2003, 12:37 AM
DBZRacer   NewsfeedSwitch Action Script Purpose: This action...   Sep 30 2003, 06:31 AM
irajames1176   Would it be possible to customize the DVD Copy scr...   Sep 30 2003, 08:32 AM
vexx22   i donīt think that it can added know, but nobody k...   Sep 30 2003, 12:13 PM
Madgame   I am in the same boat with the copy script not wor...   Sep 30 2003, 01:12 PM
BenJeremy   What BIOS are you using?   Sep 30 2003, 01:28 PM
vexx22   I tried it now with several games originaal and ba...   Sep 30 2003, 01:42 PM
Madgame   My bios is X2 4976.02. I was trying it with TWPGA...   Sep 30 2003, 01:47 PM
vexx22   I mean i have EvolutionX D6 bios it to long that i...   Sep 30 2003, 02:02 PM
BenJeremy   How was MXM launched? This is an odd problem. I...   Sep 30 2003, 02:09 PM
Habs69M   Huh? :blink: My bios is Evox 2.6 V1 blue , and...   Sep 30 2003, 02:33 PM
vexx22   oh sorry i mean something other i think :D   Sep 30 2003, 02:34 PM
Madgame   Yes MXM was launched. I put a link to the script ...   Sep 30 2003, 02:49 PM
chilin_dude   Well i can't share a script as i don't kno...   Sep 30 2003, 06:26 PM
DBZRacer   Good idea... I'll see if I have some time la...   Sep 30 2003, 06:58 PM
chilin_dude   Good idea... I'll see if I have some time lat...   Oct 1 2003, 01:52 PM
onthereal   This might work, but I think MXM halts all music ...   Oct 1 2003, 02:34 PM
BenJeremy   This might work, but I think MXM halts all music ...   Oct 1 2003, 02:48 PM
chilin_dude   This might work, but I think MXM halts all music ...   Oct 1 2003, 02:53 PM
DBZRacer   Good idea... I'll see if I have some time lat...   Oct 1 2003, 08:20 PM
DBZRacer   Action Script Name: PxHDDLoader Folder Renamer Pu...   Oct 1 2003, 09:37 PM
vexx22   Cool Script DBZRacer, i have a question because yo...   Oct 1 2003, 10:32 PM
DBZRacer   I was using yesterdays WIP binaries. It shouldnt...   Oct 1 2003, 10:38 PM
vexx22   Can somebody explain me this string? "IF#...   Oct 1 2003, 11:24 PM
BenJeremy   IF# is for numeric comparisons... IF# %arg1% ...   Oct 1 2003, 11:35 PM
sandman2869   I have been playing with these scripts for the pas...   Oct 3 2003, 01:17 PM
BenJeremy   Well, there are a couple other ways to execute t...   Oct 3 2003, 01:33 PM
sandman2869   BJ, Plain and simple, you rock! Thank you sir...   Oct 3 2003, 01:49 PM
BenJeremy   so if I understand you correctly, I would need so...   Oct 3 2003, 02:01 PM
sandman2869   Awesome! Haha, thanks much :) I finally get i...   Oct 3 2003, 02:55 PM
DBZRacer   If you want to do true looping, I would wait til...   Oct 3 2003, 06:52 PM
DeVante   Here is a slight rewrite of vexx22's "Lau...   Oct 3 2003, 10:58 PM
BenJeremy   IF must be in a specific form at the moment. It...   Oct 3 2003, 11:08 PM
DBZRacer   The problem I see right off the bat with your scri...   Oct 3 2003, 11:21 PM
vexx22   If any ideas please send them to me because the or...   Oct 3 2003, 11:23 PM
vexx22   For launching a simple DVD it is ok i think. Probl...   Oct 3 2003, 11:26 PM
DeVante   Alright, I moved the first SETVAR to be under the ...   Oct 4 2003, 12:24 AM
DBZRacer   Are you sure the original script is yours dude? ...   Oct 4 2003, 12:26 AM
DeVante   So DBZRacer, does that Launch Disc script you wrot...   Oct 4 2003, 12:49 AM
DBZRacer   I just got too busy and didnt have time to test/...   Oct 4 2003, 03:22 PM
Mordenkainen   Probably has something to do with the comment BJ m...   Oct 20 2003, 02:39 PM
koldfuzion   that was only the case with the first implementati...   Oct 20 2003, 02:51 PM
BenJeremy   Yes, I should have an "RC" tonight, perh...   Oct 20 2003, 03:45 PM
DBZRacer   The errors and bugs were fixed in both the actio...   Oct 20 2003, 05:55 PM
Taiger   Hi vexx22, Fantastic this thing about scripts, I ...   Oct 23 2003, 04:11 PM
BenJeremy   Actually, the range is 10-50. There is no translat...   Oct 23 2003, 05:06 PM
Taiger   From 10 to 50 ok I assumed that it was from 20% to...   Oct 23 2003, 05:23 PM
BenJeremy   It looks like when it exceeds 50, you end up setti...   Oct 23 2003, 05:32 PM
Taiger   gadgetstring ??, do you have any examples on that...   Oct 23 2003, 06:07 PM
2 Pages V  1 2 >






Reply to this topicStart new topic

 

Lo-Fi Version Time is now: 24th May 2013 - 04:44 AM