xboxscene.org forums

Pages: [1] 2

Author Topic: "error (line 1): (callfile) "actionscript File...  (Read 209 times)

Be Absentminded

  • Archived User
  • Jr. Member
  • *
  • Posts: 69
"error (line 1): (callfile) "actionscript File...
« on: November 15, 2003, 11:36:00 AM »

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

This post has been edited by Be Absentminded: Nov 15 2003, 07:39 PM
Logged

geniusalz

  • Archived User
  • Hero Member
  • *
  • Posts: 1635
"error (line 1): (callfile) "actionscript File...
« Reply #1 on: November 15, 2003, 12:37:00 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
CODE
Delay 2

After the enddraw statement so it shows the messgebox for a while.
Logged

Be Absentminded

  • Archived User
  • Jr. Member
  • *
  • Posts: 69
"error (line 1): (callfile) "actionscript File...
« Reply #2 on: November 15, 2003, 11:49:00 AM »

Can someone send me the newest version so i can work on it? - I'm a bit rusty at compiliing the binarys.

-Jameson

This post has been edited by Be Absentminded: Nov 15 2003, 07:49 PM
Logged

yourwishismine

  • Archived User
  • Sr. Member
  • *
  • Posts: 325
"error (line 1): (callfile) "actionscript File...
« Reply #3 on: November 15, 2003, 11:53:00 AM »

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.
Logged

Be Absentminded

  • Archived User
  • Jr. Member
  • *
  • Posts: 69
"error (line 1): (callfile) "actionscript File...
« Reply #4 on: November 15, 2003, 12:54:00 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
Logged

geniusalz

  • Archived User
  • Hero Member
  • *
  • Posts: 1635
"error (line 1): (callfile) "actionscript File...
« Reply #5 on: November 15, 2003, 12:55:00 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.
Logged

Be Absentminded

  • Archived User
  • Jr. Member
  • *
  • Posts: 69
"error (line 1): (callfile) "actionscript File...
« Reply #6 on: November 15, 2003, 12:58:00 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
Logged

geniusalz

  • Archived User
  • Hero Member
  • *
  • Posts: 1635
"error (line 1): (callfile) "actionscript File...
« Reply #7 on: November 15, 2003, 01:01:00 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
Logged

yourwishismine

  • Archived User
  • Sr. Member
  • *
  • Posts: 325
"error (line 1): (callfile) "actionscript File...
« Reply #8 on: November 15, 2003, 12:07:00 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




This post has been edited by yourwishismine: Nov 15 2003, 08:21 PM
Logged

Be Absentminded

  • Archived User
  • Jr. Member
  • *
  • Posts: 69
"error (line 1): (callfile) "actionscript File...
« Reply #9 on: November 15, 2003, 01:04:00 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
Logged

yourwishismine

  • Archived User
  • Sr. Member
  • *
  • Posts: 325
"error (line 1): (callfile) "actionscript File...
« Reply #10 on: November 15, 2003, 12:14:00 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
Logged

Be Absentminded

  • Archived User
  • Jr. Member
  • *
  • Posts: 69
"error (line 1): (callfile) "actionscript File...
« Reply #11 on: November 15, 2003, 01:11:00 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
Logged

yourwishismine

  • Archived User
  • Sr. Member
  • *
  • Posts: 325
"error (line 1): (callfile) "actionscript File...
« Reply #12 on: November 15, 2003, 12:22:00 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...
Logged

Be Absentminded

  • Archived User
  • Jr. Member
  • *
  • Posts: 69
"error (line 1): (callfile) "actionscript File...
« Reply #13 on: November 15, 2003, 01:18:00 PM »

Hmm...Very Strange - 'cause like I stated before - After I replaced it with EXEC it worked perfect without an error.

-Jameson
Logged

koldfuzion

  • Archived User
  • Hero Member
  • *
  • Posts: 1226
"error (line 1): (callfile) "actionscript File...
« Reply #14 on: November 15, 2003, 01:26:00 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.
Logged
Pages: [1] 2