Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: morph100 on Fri 28/02/2020 15:28:46

Title: 3.5 upgrade and now ViewpointHeight errors
Post by: morph100 on Fri 28/02/2020 15:28:46
Upgraded to 3.5 and now I've got errors in DialogScript.asc about ViewPortHeight and ViewportWidth which according to the release notes are no longer used in favour of screen properties but Ive no idea what to change them to?

This is from my Tumbleweed scripts
Title: Re: 3.5 upgrade and now ViewpointHeight errors
Post by: Cassiebsg on Fri 28/02/2020 15:39:08
Viewports have changed how they work.
See here for more info: https://github.com/adventuregamestudio/ags-manual/wiki/UpgradeTo35
Title: Re: 3.5 upgrade and now ViewpointHeight errors
Post by: morph100 on Fri 28/02/2020 16:07:32
Quote from: Cassiebsg on Fri 28/02/2020 15:39:08
Viewports have changed how they work.
See here for more info: https://github.com/adventuregamestudio/ags-manual/wiki/UpgradeTo35

Amazing, I had a fair few to find and replace but that link covered them all!
Title: Re: 3.5 upgrade and now ViewpointHeight errors
Post by: Crimson Wizard on Fri 28/02/2020 19:53:41
The offline manual that comes with AGS also contains "Upgrade to XXX" topics, found under the "Getting Started" folder in contents, they cover major differences for several versions, in case you upgrade from much older AGS.

Also you can always set "Script compatibility level" (in General Settings) to your previous version, and that should enable old functions.