Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: LameNick on Tue 05/11/2013 18:44:32

Title: keep the original resolution in full screen
Post by: LameNick on Tue 05/11/2013 18:44:32
hi, i was wondering would it be possible to prevent the game view from scaling in fullscreen mode? ..just have the original resolution with black background?
Title: Re: keep the original resolution in full screen
Post by: Andail on Tue 05/11/2013 18:51:14
I think there's a discussion over here:
http://www.adventuregamestudio.co.uk/forums/index.php?topic=48372.0
Title: Re: keep the original resolution in full screen
Post by: Crimson Wizard on Tue 05/11/2013 19:59:40
Implemented here as a test build:
(WARNING: this version is non-official at the moment)
http://www.adventuregamestudio.co.uk/forums/index.php?topic=49014.0

Instructions for setup:
http://www.adventuregamestudio.co.uk/forums/index.php?topic=47344.msg636462609#msg636462609
Title: Re: keep the original resolution in full screen
Post by: LameNick on Thu 07/11/2013 15:38:32
Thanks a lot for replays
@Crimson Wizard: thanks!, its great that there is a version with this feature. I downloaded the version and copied it over the content of the installation folder but when i loaded the default game and tried to build EXE, it gave an error: "GlobalScript.asc(19): Error (line 19): Undefined token 'SetVoiceMode'", i had to comment out all lines with "SetVoiceMode(eSpeechVoiceAndText);" in the GlobalScript.asc then it compiled successfully.
But i still don't understand how to lock the scale at its set resolution in fullscreen mode. I'm sorry i'm a total noob any help would be very much welcome.
Title: Re: keep the original resolution in full screen
Post by: Crimson Wizard on Thu 07/11/2013 17:01:19
This experimental version I mentioned is based on the 3.3.0 beta version that is being currently developed. For detailed information on changes (in comparison with v.3.2.1), check this post: http://www.adventuregamestudio.co.uk/forums/index.php?topic=47966.0

Quote from: LameNick on Thu 07/11/2013 15:38:32
when i loaded the default game and tried to build EXE, it gave an error: "GlobalScript.asc(19): Error (line 19): Undefined token 'SetVoiceMode'", i had to comment out all lines with "SetVoiceMode(eSpeechVoiceAndText);" in the GlobalScript.asc then it compiled successfully.
"SetVoiceMode" function has been deprecated in this version, you should use "Speech.VoiceMode", like:
Code (ags) Select

Speech.VoiceMode = eSpeechVoiceAndText;

The "default game" template will be fixed accordingly with the next update.


Quote from: LameNick on Thu 07/11/2013 15:38:32
But i still don't understand how to lock the scale at its set resolution in fullscreen mode. I'm sorry i'm a total noob any help would be very much welcome.
Currently the custom resolutions version is unfinished, and there's no way to set random resolution by setup program. You'll have to manually edit configuration file, acsetup.cfg, found in your game directory (you may simply use a Notepad for that).
The instructions are given in this post: http://www.adventuregamestudio.co.uk/forums/index.php?topic=47344.msg636462609#msg636462609
For example, open acsetup.cfg, and put this somewhere under "[misc]" line:
Code (text) Select

renderstyle=2
screenwidth=1920
screenheight=1080

Instead of 1920 and 1080 you may try other sizes, depending on what your monitor and graphics card support (you may just check your current desktop resolution in Windows).
"renderstyle=2" command will stretch the game to the maximum possible, while maintaining the correct proportions. If your game has a large resolution on its own (like 800x600 and higher), you may also try "renderstyle=0" - this will not upscale the game, but leave it in the center of a black screen.
Title: Re: keep the original resolution in full screen
Post by: LameNick on Fri 08/11/2013 22:37:02
Thanks very much for making it clear. Now, the screenwidth and height works nicely but when i set renderstyle to 0 the game crashes at start and pops an error message:
Quote
---------------------------
Illegal exception
---------------------------
An exception 0xC0000005 occurred in ACWIN.EXE at EIP = 0x00492D80 ; program pointer is -3, ACI version 3.3.0.1140, gtags (1,60)

AGS cannot continue, this exception was fatal. Please note down the numbers above, remember what you were doing at the time and post the details on the AGS Technical Forum.



Most versions of Windows allow you to press Ctrl+C now to copy this entire message to the clipboard for easy reporting.

An error file CrashInfo.dmp has been created. You may be asked to upload this file when reporting this problem on the AGS Forums. (code 0)
---------------------------
OK   
---------------------------
Title: Re: keep the original resolution in full screen
Post by: Crimson Wizard on Sat 09/11/2013 14:35:28
I plan to be updating this version in few days, I'll look into what happens there.
I also suggest to continue discussion related to this version in the corresponding thread: http://www.adventuregamestudio.co.uk/forums/index.php?topic=49014.0