Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Vincent on Thu 06/08/2020 15:30:11

Title: system.viewport_width
Post by: Vincent on Thu 06/08/2020 15:30:11
Hello all Ags'er I am using the new version 3.5.0 Patch 2 and I was wonder to know how has this line of code been replaced with the new version?
Code (ags) Select
system.viewport_width
Title: Re: system.viewport_width
Post by: Crimson Wizard on Thu 06/08/2020 15:33:45
Argh, this is going to be infinite problem now :(
E.g. https://www.adventuregamestudio.co.uk/forums/index.php?topic=58308.0
https://www.adventuregamestudio.co.uk/forums/index.php?topic=58286.0

I would like to know how may we improve this situation to let people find it out faster.

Currently you may find a hint if you look in the manual on corresponding command page, it should mention that the property is deprecated and what to use instead.
Also, "Upgrading to AGS 3.5.0" article has a table of correspondence between old and new functions.
Title: Re: system.viewport_width
Post by: Vincent on Thu 06/08/2020 15:46:56
Thanks CW for the quick answer though I am sorry for the inconvenience, I should have been looking better into the manual. Anyway Screen.Width seems to be working as intended, still thanks a lot for the answer and suggestions.
Title: Re: system.viewport_width
Post by: Crimson Wizard on Thu 06/08/2020 15:55:59
I have a thought that it might be possible to report replacement in error message when you compile script, but idk if it is easy to implement. I will investigate this when get some spare time.
Title: Re: system.viewport_width
Post by: Vincent on Thu 06/08/2020 16:28:02
It would be definitely a good idea to me, however if that's too complicated to implement I would avoid doing it, after all there is always the manual but this idea is very nice.