xboxscene.org forums

Author Topic: X2 Bios Config Script  (Read 785 times)

flattspott

  • Archived User
  • Hero Member
  • *
  • Posts: 1220
X2 Bios Config Script
« on: April 20, 2004, 12:48:00 PM »

CODE

;######################################################
;#  Script: X2 BIOS Config Script
;#  Author: flattspott
;#  Date: 04-20-2004
;#  Version: 1.0
;#  Disclaimer: Should be safe but as always use at your own risk.
;#  Info: Finally, a script from me that is MXM 0.9n.6 compatible            
;#  Purpose: To allow users to enable or disable X2 BIOS features from within MXM.
;#  Usage: A standard CallFile will do
;#
;#     CallFile \X2Config.xas
;#
;#######################################################
:X2Status
:IGRCheck
SetFunc IGR FileExists E:\x2_IGR_disabled
If# %IGR% == 1 Goto IGREnable
If# %IGR% == 0 Goto IGRDisable
:IGREnable
 Set Prompt1 "Press A to Enable: In Game Reset"
 Set Op1 Enable
Goto NROECheck
:IGRDisable
 Set Prompt1 "Press A to Disable: In Game Reset"
 Set Op1 Disable
Goto NROECheck

:NROECheck
SetFunc NROE FileExists E:\x2_NROE_disabled
If# %NROE% == 1 Goto NROEEnable
If# %NROE% == 0 Goto NROEDisable
:NROEEnable
 Set Prompt2 "Press B to Enable: No Reset on Eject"
 Set Op2 Enable
Goto XBLCCheck
:NROEDisable
 Set Prompt2 "Press B to Disable: No Reset on Eject"
 Set Op2 Disable
Goto XBLCCheck

:XBLCCheck
SetFunc XBLC FileExists E:\x2_XBLC_disabled
If# %XBLC% == 1 Goto XBLCEnable
If# %XBLC% == 0 Goto XBLCDisable
:XBLCEnable
 Set Prompt3 "Press X to Enable: Xbox Live Check"
 Set Op3 Enable
Goto CECCheck
:XBLCDisable
 Set Prompt3 "Press X to Disable: Xbox Live Check"
 Set Op3 Disable
Goto CECCheck

:CECCheck
SetFunc CEC FileExists E:\x2_CEC_disabled
If# %CEC% == 1 Goto CECEnable
If# %CEC% == 0 Goto CECDisable
:CECEnable
 Set Prompt4 "Press Y to Enable: Clock Error Check"
 Set Op4 Enable
Goto RefreshScreen
:CECDisable
 Set Prompt4 "Press Y to Disable: Clock Error Check"
 Set Op4 Disable
Goto RefreshScreen

:RefreshScreen
BeginDraw
Box 0 0 640 480 DarkBlue DarkBlue
Text 320 125 Center "X2 BIOS Config Script"
Text 320 200 Center "%Prompt1%"
Text 320 220 Center "%Prompt2%"
Text 320 240 Center "%Prompt3%"
Text 320 260 Center "%Prompt4%"
Text 320 300 Center "Press White to Exit"
EndDraw

Input
If %_GP_A% == "1" Goto %Op1%IGR
If %_GP_B% == "1" Goto %Op2%NROE
If %_GP_X% == "1" Goto %Op3%XBLC
If %_GP_Y% == "1" Goto %Op4%CEC
If %_GP_WHITE% == "1" Goto End
Goto RefreshScreen

:DisableIGR
OpenWrite X2 E:\x2_IGR_disabled
CloseFile X2
Goto X2Status

:DisableNROE
OpenWrite X2 E:\x2_NROE_disabled
CloseFile X2
Goto X2Status

:DisableXBLC
OpenWrite X2 E:\x2_XBLC_disabled
CloseFile X2
Goto X2Status

:DisableCEC
OpenWrite X2 E:\x2_CEC_disabled
CloseFile X2
Goto X2Status

:EnableIGR
Delete E:\x2_IGR_disabled
Goto X2Status

:EnableNROE
Delete E:\x2_NROE_disabled
Goto X2Status

:EnableXBLC
Delete E:\x2_XBLC_disabled
Goto X2Status

:EnableCEC
Delete E:\x2_CEC_disabled
Goto X2Status

:End
Quit


This post has been edited by flattspott: Apr 20 2004, 07:53 PM <
Logged

geniusalz

  • Archived User
  • Hero Member
  • *
  • Posts: 1635
X2 Bios Config Script
« Reply #1 on: April 20, 2004, 12:52:00 PM »

Nice  <
Logged

flattspott

  • Archived User
  • Hero Member
  • *
  • Posts: 1220
X2 Bios Config Script
« Reply #2 on: April 20, 2004, 12:55:00 PM »

Thanks geniusalz. I was going for the simple but effective look.  <
Logged

koldfuzion

  • Archived User
  • Hero Member
  • *
  • Posts: 1226
X2 Bios Config Script
« Reply #3 on: April 20, 2004, 03:14:00 PM »

great idea.   Hey,  where do you get this actionscript stuff?  <
Logged

flattspott

  • Archived User
  • Hero Member
  • *
  • Posts: 1220
X2 Bios Config Script
« Reply #4 on: April 20, 2004, 05:23:00 PM »

QUOTE
Hey, where do you get this actionscript stuff?


What do you mean? Like where do I come up with ideas for the ones I've done? You need a few or something...

This post has been edited by flattspott: Apr 21 2004, 12:24 AM <
Logged

koldfuzion

  • Archived User
  • Hero Member
  • *
  • Posts: 1226
X2 Bios Config Script
« Reply #5 on: April 20, 2004, 06:15:00 PM »

hehe. na, you got some great ideas, i'm just being stupid smile.gif
Logged

flattspott

  • Archived User
  • Hero Member
  • *
  • Posts: 1220
X2 Bios Config Script
« Reply #6 on: April 20, 2004, 07:30:00 PM »

You don't have to tell me, I know.  biggrin.gif
Logged

-FourDoor-

  • Archived User
  • Full Member
  • *
  • Posts: 225
X2 Bios Config Script
« Reply #7 on: April 21, 2004, 10:00:00 AM »

Thats really slick... Maybe a nice x2 background pic for some added eye candy  :popcorn:   <
Logged

flattspott

  • Archived User
  • Hero Member
  • *
  • Posts: 1220
X2 Bios Config Script
« Reply #8 on: April 21, 2004, 10:46:00 AM »

That's what I was thinking, but if I did that then the script would be WIP only. Wait a sec, I forget I started using an MXM check in my scripts. Let me see what I can do..  <
Logged

koldfuzion

  • Archived User
  • Hero Member
  • *
  • Posts: 1226
X2 Bios Config Script
« Reply #9 on: April 21, 2004, 01:05:00 PM »

QUOTE (flattspott @ Apr 21 2004, 04:30 AM)
You don't have to tell me, I know.  biggrin.gif

hey!  that wasnt fair smile.gif
Logged

geniusalz

  • Archived User
  • Hero Member
  • *
  • Posts: 1635
X2 Bios Config Script
« Reply #10 on: April 21, 2004, 01:34:00 PM »

QUOTE (flattspott @ Apr 21 2004, 01:35 PM)
That's what I was thinking, but if I did that then the script would be WIP only. Wait a sec, I forget I started using an MXM check in my scripts. Let me see what I can do..

Version check? Wow. beerchug.gif
Logged

flattspott

  • Archived User
  • Hero Member
  • *
  • Posts: 1220
X2 Bios Config Script
« Reply #11 on: April 21, 2004, 03:56:00 PM »

Here's the check I started using.

CODE
If $MXMVersion$ #^ "0.9n.6" Goto Error
Goto Start

:Error
BeginDraw
MessageBox "This script is not compatible with MXM $MXMVersion$"
EndDraw

DelayMS 3500

Goto Done
 <
Logged