Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: MacGyver12345 on Mon 27/07/2009 22:24:13

Title: I cant open old files
Post by: MacGyver12345 on Mon 27/07/2009 22:24:13
 ???    I opened a template in 2.61 because it doesnt work in 2.72 or 3.0.   I saved it in 2.61, opened it in 2.72 and it tells me the rooms need to be recompiled and there is a scripting error. how can i get it to load in 2.72 correctly?
Title: Re: I cant open old files
Post by: Lt. Smash on Tue 28/07/2009 17:52:33
Either you update the whole code to object-based script or you just set 'Enforce object-based scripting'
and 'Enforce new-style strings' to false (General Settings).
Then you should be able to recompile the rooms. If not, show us what error you get and the wrong code.
Title: Re: I cant open old files
Post by: MacGyver12345 on Tue 28/07/2009 18:15:15
Quote from: Lt. Smash on Tue 28/07/2009 17:52:33
Either you update the whole code to object-based script or you just set 'Enforce object-based scripting'
and 'Enforce new-style strings' to false (General Settings).
Then you should be able to recompile the rooms. If not, show us what error you get and the wrong code.



when i do that and test the game it tells me  ".activeinv is not a public member of character"


Title: Re: I cant open old files
Post by: Lt. Smash on Tue 28/07/2009 18:33:28
search the manual for activeinv. You will see that it's obsolete and has been replaced by .ActiveInventory.
So replace activeinv with ActiveInventory and do that with all similar errors you probably get.
Title: Re: I cant open old files
Post by: Pumaman on Tue 28/07/2009 19:26:36
If you're new to AGS, please don't start out by trying to upgrade a template from 2.61 ... you'll only make things ridiculously confusing for yourself.

Instead, why not start off with one of the templates included with the latest version of AGS and go from there?
Title: Re: I cant open old files
Post by: MacGyver12345 on Tue 28/07/2009 20:36:46
Quote from: Lt. Smash on Tue 28/07/2009 18:33:28
search the manual for activeinv. You will see that it's obsolete and has been replaced by .ActiveInventory.
So replace activeinv with ActiveInventory and do that with all similar errors you probably get.
thanks
Title: Re: I cant open old files
Post by: MacGyver12345 on Tue 28/07/2009 20:37:47
Quote from: Pumaman on Tue 28/07/2009 19:26:36
If you're new to AGS, please don't start out by trying to upgrade a template from 2.61 ... you'll only make things ridiculously confusing for yourself.

Instead, why not start off with one of the templates included with the latest version of AGS and go from there?

the thing is i dont like the sierra or the verbcoin interfaces,  i like the verb table and inventory
Title: Re: I cant open old files
Post by: Scummbuddy on Tue 28/07/2009 23:11:15
What is so pressing of the latest versions that you can not use an older version of AGS? I know several people that refuse to upgrade because of compatibility issues.