############################################## # # Simple x3 install script for fat32 formatted # USB "pendrives". # Just insert "pendrive" into xbox and start # x3 config live, x3cl should handle the rest # # -Team Xecuter # ############################################## Quick list over commands : ___________________________ network preparedrive if v1.6 .. if exist .. delete download runscript sleep eject eeprom_backup flashbios backup flashbios bios hdd_lock hdd_unlock unzip copy launch %tag% reboot mbr format echo Detailed explanation : _______________________ :network _________ network = ;;;; This command basically initializes the network adapter to the desired network mode/adress. This step can be skipped, but if skipped and scripts try to access networked programs, it will initialize using x3 settings instead. examples : network = static;192.168.1.190;255.255.255.0;192.168.1.1;195.159.0.100 network = dhcp : preparedrive _________________ writes a new mbr and partitiontable to the drive, then formats all partitions. This is the one you want to run for new fresh harddrives. note : Does not ask upfront, so be careful. : if _______ if If can be used for a few things, very useful to make more flexible scripts. More settings to check with if-statement will come later on. So far you can only check for 2 different things : exist and v1.6. "exist" is used to check whether a file exists or not, "v1.6" is to check if the xbox running the script is a 1.6 or not. In order to check for the opposite, add a "!" in front of the check parameter. examples if v1.6 flashbios bios X3_1959_v16plus.bin if !exist z:\temp.jpg goto doesntexist : goto ________ goto moves execution of the script to the given tagname. Will ignore if tag not found. example goto %execution% : delete __________ delete Deletes a file, if located. example delete e:\dashboard.zip : download _____________ download Downloads a file from a httpserver to a desired location. Will initialize network if needed. example download z:\test.gif http://www.google.com/images/hp2.gif : runscript ______________ runscript Launches a new script from the local harddrive, can be useful if script is downloaded from web or copied from usb/9660 drive(s). note : this command will not continue in the script its called from, the new script will replace the current one completely. example runscript z:/script.ini : sleep __________ sleep Sleep simply delays the script a few ms if wanted. example : sleep 1000 : eject __________ eject Just ejects the cd-tray ( if possible ) : eeprom_backup _________________ eeprom_backup Backup up the eeprom from mainboard to the x3 slot 1. : flashbios ______________ flashbios Flashes the selected bios with the given bios-file. Possible targets is "bios" and "backup", where backup is ofcourse the backup bios. "bios" is locked to slot 1+2+3+4 for now. File can be located on the device script is running from, doesn't have to be copied to the harddrive first. e.g. if you run from a usb-drive, bios can be located on that drive. Simply skip any path in the filename to load from current device. examples : flashbios backup flashbios.bin flashbios bios X3_1959_v16plus.bin flashbios bios z:\X3_1959.bin : hdd_lock ____________ hdd_lock Locks the harddrive if possible. : hdd_unlock ______________ hdd_unlock Unlocks the harddrive if possible. : unzip __________ unzip unzips a zipfile to the desired destination, if only given a filename, it will try to load it from the device it's running the script from (9660 cd or usb-drive). If found on an external drive, it will copy it to the local harddrive first due to speed issues. examples unzip dash.zip c:\ unzip z:\dash.zip c:\ : copy _________ copy copies a file from hdd,cd or usbdrive to the location given in command. If you do not give a path to the file, it will try to copy the file from the device it runs the script from. examples copy X3_script.ini z:\ copy c:\x3_bios.bin z:\ : launch __________ launch Launches program from harddisk device. example launch e:\default.xbe : goto-tags ______________ These are simply targets for the "goto" instruction and is ignored by the runtime script engine. They are basically any name with a % before and after the given name. Dont use spaces in the name. example %bios_flashing% : reboot ___________ Cold reboots the xbox : mbr _______ Writes a new master boot record / partition sector on the harddrive. The preparedrive command is basically this command with following format of each partition. Can be helpful on upgrades, but mostly you will find yourselves not needing this command. : format __________ Formats a given partition, and yes - it will delete it all :) example format f: : echo ________ Outputs a text to screen when it gets to that point in the script, kinda like echo in the old DOS days. example echo If you can read this, your drives are formatted