Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: SinSin on Thu 14/04/2005 14:47:58

Title: deleted script helllllpp
Post by: SinSin on Thu 14/04/2005 14:47:58
I think i may have deleted some script erm im not sure 
Whenever i go on the gui tab and click edit script it gives me the following

"an attempt was made to edit a script function #sectionstart interface_click that does not exist. Ensure that you have not manually deleted any automaticly-created script functions

Does anyone know a cure
please anyone

Sinsin
Title: Re: deleted script helllllpp
Post by: RickJ on Thu 14/04/2005 15:48:40
1.  First make a copy of the file backup_editor.dat (to editor.sav for example)

2.  Open the global script editor from the menu "Script->Edit Global Script"

3.  Search for "interface_click("

4.  If you don't find then scroll down the script looking for any fragments of that funtion you may recognize.

5.  If that doesn't work then exit from AGSEDIT and copy the saved backup_editor.dat file (i.e. editor.sav) to editor.dat.  Open AGSEDIT again and start over.