Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: barefoot on Thu 03/02/2011 17:24:55

Title: Error (line 81)
Post by: barefoot on Thu 03/02/2011 17:24:55
Hi

i've suddenly had this come up..


Failed to save room room13.crm; details below
_AutoGenerated.ash(81): Error (line 81): Variable ';' is already defined

I tried changing main music..

can you elaborate and help

barefoot
Title: Re: Error (line 81)
Post by: ddq on Thu 03/02/2011 17:28:34
What's on line 81 and surrounding lines in your script? This looks like just some kind of syntax error.
Title: Re: Error (line 81)
Post by: barefoot on Thu 03/02/2011 17:31:23
No line 81 in room script and just normal ) in asc line 81
Title: Re: Error (line 81)
Post by: Calin Leafshade on Thu 03/02/2011 17:32:29
It from the AutoGenerated script. Can't you read ddq?

I suggest trying Rebuild All from the build menu.

EDIT: Also check the global variables pane and make sure none of your variables have no name. (the editor probably wouldnt even allow this though)
Title: Re: Error (line 81)
Post by: barefoot on Thu 03/02/2011 17:34:09
did rebuilt all.. still the same.. what can you suggest?

cheers
Title: Re: Error (line 81)
Post by: monkey0506 on Thu 03/02/2011 17:34:22
_AutoGenerated.ash is an automatically generated, built-in script header file, so he wouldn't be able to tell us what the line actually says.

Check all of your Character, Hotspot, Object, Region, GUI, GUIControl, Dialog, AudioClip, etc. names in their respective panes in the editor. It sounds like at some point you put a semi-colon in one of these boxes and the editor isn't catching the error before it tries to compile it.
Title: Re: Error (line 81)
Post by: barefoot on Thu 03/02/2011 17:38:24
Hi

I actually did this.. i downloaded music file.. renamed it to an exsisting one and reloaded it.. then i got the error...  whicg now states room 1 as the same

I hope my backup copy puts it back as it should be,...

cheers

barefoot
Title: Re: Error (line 81)
Post by: monkey0506 on Thu 03/02/2011 17:46:56
What is the full filename of the music file? Do you have more than one file with the same name but different file extensions?
Title: Re: Error (line 81)
Post by: barefoot on Thu 03/02/2011 18:06:00
Hi Monkey

i had a backup copy so ok.. I'de obviously bal**ed it up changing the music files..

I will have to be more aware next time..

thank you

barefoot