Be Absentminded
Nov 15 2003, 08:30 PM
Ok, I've downloaded the script for Launching a DVD game called LaunchDVDGame.xas - Now here's the strange part. When I run it it works like a charm BUT is does this "ERROR (line 1): (callfile) "ActionScript file failed execution" What's even stranger is that the script still continues to run and launches the DVD just fine. I'm just wondering if there's a way I can get rid of that damn error or maybe it's something with the code?
Here's the code for the one i'm using.
| QUOTE |
;############################# ;# ;# CREATOR: DBZRacer ;# DATE: 10.09.03 ;# Action Script Name: LaunchDVDGame ;# VERSION: 1.0 ;# Menu Item Action Script ;# Function Description: This is a simple action script ;# that you can use launch a gamedisk from your MXM menu. ;# It first checks to see if there is a valid XBOX game ;# disk in the DVD tray. If not, it will prompt you to ;# insert a game disk before launching. One use for this ;# action script is to simplify building a DVD Game List ;# submenu in MXM. Version 2 of LaunchDVDGame will only ;# launch if the corresponding disk in the DVD tray matches ;# the game title in your DVD Game List entry. ;# ;#############################
:DiskCheckMessage BeginDraw UseCurrent MessageBox "Checking Disk Status. Please Wait..." EndDraw GOTO DiskCheck
:DiskCheck TrayClose IF $TrayState$ != "Tray Closed" GOTO DiskCheck IF $DVDType$ != "Game Disc" GOTO InsertDisk IF $DVDType$ == "Game Disc" GOTO LaunchDisk QUIT
:InsertDisk BeginDraw UseCurrent MessageBox "Please Insert Game Disk$eol$Press A TO Continue$eol$Press B To Cancel" EndDraw TrayOpen Input If %_GP_A% == "1" GOTO DiskCheckMessage If %_GP_B% == "1" GOTO LaunchCancel Quit
:LaunchCancel TrayClose BeginDraw UseCurrent MessageBox "Game Disk Launch Cancelled" EndDraw Delay 3 QUIT
:LaunchDisk SETFUNC DVDTitle XBETITLE D:default.xbe MessageBox "%DVDTitle% Now Launching..." LaunchDVD QUIT
|
One more thing - Eventhough it does launch it doesn't display the Now launching screen which is coded in the script.
-Jameson
geniusalz
Nov 15 2003, 08:37 PM
ERROR (line 1): (callfile) "ActionScript file failed execution"
This just means that there's an error in the script being called from the <action> tag. I.e. doesn't show error messages for scripts called from within scripts.
The new version of MXM fixes this and displays the proper error message. So then you can figure out what the real problem is.
As for the messagebox not working:
| CODE |
BeginDraw UseCurrent MessageBox "Checking Disk Status. Please Wait..." EndDraw |
Works
| CODE |
| MessageBox "%DVDTitle% Now Launching..." |
Doesn't, because it doesn't have a "BeginDraw UseCurrent" and "EndDraw" in it.
You will probably also have to add a
After the enddraw statement so it shows the messgebox for a while.
Be Absentminded
Nov 15 2003, 08:43 PM
Can someone send me the newest version so i can work on it? - I'm a bit rusty at compiliing the binarys.
-Jameson
yourwishismine
Nov 15 2003, 08:47 PM
| QUOTE (Be Absentminded @ Nov 15 2003, 04:43 PM) |
Can someone send me the newest version so i can work on it? - I'm a bit rusty at compiliing the binarys.
-Jameson |
HEEE HEEE....
I doubt it... LOL...
geniusalz was, I believe, talking about the latest WIP release, which are only available to a select few.
Correct me if I'm wrong.
Be Absentminded
Nov 15 2003, 08:54 PM
Oh, Didn't know it was select. My bad - Well if anyone can help me with that script it'd be appreciated. Just wanna get rid of that damn error.
-Jameson
geniusalz
Nov 15 2003, 08:55 PM
Well, yeah, yourwishismine is right. The new version is not out yet. The WIP is just a work in progress, with features being implemented and tested. Then it is released publicly.
Be Absentminded
Nov 15 2003, 08:58 PM
Oh ok, well I guess i'll have to wait for the new release to fix that error then. Or just go insane trying to do it myself.
-Jameson
geniusalz
Nov 15 2003, 09:01 PM
Don't know what could be causing the error; and can't check coz bro is on the xbox.
You might wanna contact dbzracer
yourwishismine
Nov 15 2003, 09:01 PM
| QUOTE (Be Absentminded @ Nov 15 2003, 04:54 PM) |
Oh, Didn't know it was select. My bad - Well if anyone can help me with that script it'd be appreciated. Just wanna get rid of that damn error.
-Jameson |
Just wanted to let you know that I wasn't laughing at you.. but that question comes up so much.. it's just funny anymore... also... asking for binaries in the forums is a NO NO... Sorry.. if it makes you feel better... I don't get the WIP releases either... LOL.. so I'm in the same boat...
I'd say your problem lies right in this last little bit of code:
| CODE |
:LaunchDisk SETFUNC DVDTitle XBETITLE D:default.xbe MessageBox "%DVDTitle% Now Launching..." LaunchDVD QUIT
|
Be Absentminded
Nov 15 2003, 09:04 PM
Well if either one of you have some spare time could you take a look at that script? I got all the message delays fixed but it still give me that error right after the "Now Launching..." message.
-Jameson
yourwishismine
Nov 15 2003, 09:08 PM
| QUOTE (Be Absentminded @ Nov 15 2003, 05:04 PM) |
Well if either one of you have some spare time could you take a look at that script? I got all the message delays fixed but it still give me that error right after the "Now Launching..." message.
-Jameson |
read above
Be Absentminded
Nov 15 2003, 09:11 PM
I found it - It wasn't the code - The problem lies in the LaunchDVD function - 'cause if you replace the LaunchDVD function with
EXEC D:Default.xbe the script launches without a hitch. I guess I could tell BJ about that so it can be fixed.
-Jameson
yourwishismine
Nov 15 2003, 09:16 PM
| QUOTE (Be Absentminded @ Nov 15 2003, 05:11 PM) |
I found it - It wasn't the code - The problem lies in the LaunchDVD function - 'cause if you replace the LaunchDVD function with
EXEC D:Default.xbe the script launches without a hitch. I guess I could tell BJ about that so it can be fixed.
-Jameson |
Well that's strange..
I have 3 other Launch DVD scripts written by 3 different people.. and they all seem to use the LaunchDVD and I know at least 2 of them work fine...
Be Absentminded
Nov 15 2003, 09:18 PM
Hmm...Very Strange - 'cause like I stated before - After I replaced it with EXEC it worked perfect without an error.
-Jameson
koldfuzion
Nov 15 2003, 09:26 PM
i was just about to reply with the same thing.
the command is implented, but for some reason it throws an error and still continues.
the error it throws is "command not implemented"
maybe BJ needs to update an internal list of valid commands or something.
Lonecrow
Nov 19 2003, 01:33 AM
ok guys, i have the exact same problem, but im really new to action scripting, can you just point me out where i have to modify this string so the error msg go away?
Thanks its realy appreciated!
geniusalz
Nov 19 2003, 01:53 AM
Suppose you are using this:
<Action>
Callfile c:blah.xas
</Action>
Whenever any error occurs in blah.xas, you will get the message "error (line 1): (callfile) "actionscript File failed execution"
You don't see the proper error message.
The solution to get the proper error message would be to put the whole script inside the <Action> tag in your menu.xml
The next version of MXM fixes this annoyance, and reports proper error messages even for scripts in files.
The issue being discussed here was that the launchDVD command always throws an error message. So if you have a launchDVD command in your script, change it to EXEC D:Default.xbe
Lonecrow
Nov 19 2003, 05:50 PM
ok this is exactly my problem, but where do i put the EXEC D:DEFAULT.XBE
??
Is it in here:
| QUOTE |
:LaunchDisk SETFUNC DVDTitle XBETITLE D:default.xbe MessageBox "%DVDTitle% Now Launching..." LaunchDVD QUIT
|
Because if its there that i have to change something, ive already tried it and i still get the error msg while still launching the DVD...
yourwishismine
Nov 19 2003, 05:55 PM
| QUOTE (Lonecrow @ Nov 19 2003, 01:50 PM) |
ok this is exactly my problem, but where do i put the EXEC D:DEFAULT.XBE ??
Is it in here:
| QUOTE | :LaunchDisk SETFUNC DVDTitle XBETITLE D:default.xbe MessageBox "%DVDTitle% Now Launching..." LaunchDVD QUIT
|
Because if its there that i have to change something, ive already tried it and i still get the error msg while still launching the DVD... |
Based on what geniusalz just said...
I'd say you want it to look like this:
| CODE |
:LaunchDisk SETFUNC DVDTitle XBETITLE D:\default.xbe MessageBox "%DVDTitle% Now Launching..." EXEC D:\DEFAULT.XBE QUIT
|
Lonecrow
Nov 19 2003, 06:43 PM
ho i see!!
I had tried to change
| QUOTE |
SETFUNC DVDTitle XBETITLE D:default.xbe
|
instead of launchDVD, it should works, if it doesnt, ill wait until the newxt verison of mxm
Thanks!
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please
click here.