Linking to the Winsetup through a settings panel

Started by Ghostlady, Fri 25/10/2024 04:24:50

Previous topic - Next topic

eri0o

Hi CW, the issue that I mentioned about being confusing maybe I can fix if I use the USE_SIMPLE_GFX_INIT, I have reread the code so maybe I will look into that - is something specific for non-desktop plataforms.

Crimson Wizard

@Ghostlady, I made a test build of the engine with some fixes, but I cannot test it myself, because I have only one monitor... Could you download it, place into the folder with your compiled game files are, and use it to launch the game (instead of game exe); then try the same situation as before, where you drag the window to the big monitor and switch modes?

Here's download link:
https://www.dropbox.com/scl/fi/rr5sur3m8db2hn4ho3ck2/acwin-361-widedisplay-issue.zip?rlkey=giedu74a3el2n94rb1lykqykf&st=xqu2i9mb&dl=0

Ghostlady

acwin.exe System Error
I get an error message that reads:  The code execution cannot proceed because SDL2.dll was not found. Reinstalling the program may fix this problem.
My Games:

Hauntings Of Mystery Manor
Intrigue At Oakhaven Plantation
Haunting at Cliffhouse

Crimson Wizard

#23
Quote from: Ghostlady on Sun 03/11/2024 02:15:14acwin.exe System Error
I get an error message that reads:  The code execution cannot proceed because SDL2.dll was not found. Reinstalling the program may fix this problem.

The screenshot that you posted earlier sais that you are running AGS 3.6.1, in which case there should already be SDL2.dll among the compiled game files.
Where did you put this acwin.exe to? I meant it should be placed with your compiled game files (e.g. Compiled/Windows folder).

Here's an updated archive with SDL2.dll, just in case.
https://www.dropbox.com/scl/fi/rr5sur3m8db2hn4ho3ck2/acwin-361-widedisplay-issue.zip?rlkey=giedu74a3el2n94rb1lykqykf&st=tphn84l1&dl=0

Ghostlady

Whoops, I put it just in the Compiled folder.  I moved it under the Windows folder and tested and it did not fix the issue.
My Games:

Hauntings Of Mystery Manor
Intrigue At Oakhaven Plantation
Haunting at Cliffhouse

Crimson Wizard

Could you add following lines to acsetup.cfg found inside the compiled game:

Code: ags
[log]
file=main:all

then run the same test,
then go to "%USERPROFILE%/Saved Games/Adventure Game Studio/"
and find a file called "ags.log" there,
and then either post that file's contents here, or upload it somewhere (like google drive) and post a link here?

Ghostlady

#26
One thing I noticed this time was that after the mouse froze, I was able to hit Alt Enter and get back into the full screen mode. I don't think I was able to do that before.

Here's the Log:
Code: ags
Adventure Game Studio v3.6 Interpreter
Copyright (c) 1999-2011 Chris Jones and 2011-2024 others
Engine version 3.6.1.29, 32-bit LE

Installing exception handler
Initializing backend libs
SDL Version: 2.28.5
Initializing game data
Looking for the game data.
 Cwd: C:/Users/pondi/Documents/OakhavenRemaster/Oakhaven/Compiled/Windows
 Path arg: 
Searching in (cwd): C:/Users/pondi/Documents/OakhavenRemaster/Oakhaven/Compiled/Windows
Found game config: C:/Users/pondi/Documents/OakhavenRemaster/Oakhaven/Compiled/Windows/acsetup.cfg
 Cfg: data file: 
Searching for game data in: C:/Users/pondi/Documents/OakhavenRemaster/Oakhaven/Compiled/Windows
Found game data pak: C:/Users/pondi/Documents/OakhavenRemaster/Oakhaven/Compiled/Windows/Oakhaven.ags
Located game data pak: c:/Users/pondi/Documents/OakhavenRemaster/Oakhaven/Compiled/Windows/Oakhaven.ags
Opened game data file: game28.dta
Game data version: 3060114
Compiled with: 3.6.1.24
Startup directory: C:/Users/pondi/Documents/OakhavenRemaster/Oakhaven/Compiled/Windows
Data directory: c:/Users/pondi/Documents/OakhavenRemaster/Oakhaven/Compiled/Windows/
Setting up game configuration
Logging to C:/Users/pondi/Saved Games/Adventure Game Studio/ags.log
Voice pack found: speech.vox
audio.vox found and initialized.
Initializing TTF renderer
Initializing mouse: number of buttons reported is 3
Initializing audio
Requested audio driver: default
Audio driver: wasapi
AudioCore: opened device "Default OpenAL playback device"
Supported sound decoders:
 - Play modules through ModPlug : 669,AMF,AMS,DBM,DMF,DSM,FAR,GDM,IT,MDL,MED,MOD,MT2,MTM,OKT,PTM,PSM,S3M,STM,ULT,UMX,XM,
 - MPEG-1 Audio Layer I-III : MP3,MP2,MP1,
 - Microsoft WAVE audio format : WAV,
 - Audio Interchange File Format : AIFF,AIF,
 - Sun/NeXT audio file format : AU,
 - Ogg Vorbis audio : OGG,
 - Creative Labs Voice format : VOC,
 - Raw audio : RAW,
 - Shorten-compressed audio data : SHN,
 - Free Lossless Audio Codec : FLAC,FLA,
Sound cache set: 32768 KB
Install exit handler
Initialize path finder library
Load game data
Game title: 'Intrigue At Oakhaven'
Game uid (old format): `1125104187`
Game guid: '{51d81780-07b1-4d1b-b2e1-68b3513ef570}'
Game GUI version: 119
Requested script API: v3.6.1 (3060100), compat level: v3.2.1 (0)
Loaded font 0: agsfnt0.wfn, req size: 0; nominal h: 18, real h: 18, extent: 0,18
Loaded font 1: agsfnt1.wfn, req size: 0; nominal h: 18, real h: 18, extent: 0,18
Loaded font 2: agsfnt2.wfn, req size: 0; nominal h: 18, real h: 18, extent: 0,18
Loaded font 3: agsfnt3.ttf, req size: 16; nominal h: 16, real h: 21, extent: -1,21
Loaded font 4: agsfnt4.ttf, req size: 16; nominal h: 16, real h: 19, extent: 0,19
Initializing resolution settings
Game native resolution: 640 x 480 (16 bit)
Mouse cursor graphic area: (0,0)-(639,479) (640x480)
Checking for disk space
Device display resolution: 1920 x 1200
Graphic settings: driver: OGL, windowed: no, screen size: 0 x 0, game scale: proportional
Graphic settings: refresh rate (optional): 0, vsync: 0
Using graphics factory: OGL
Created graphics driver: OpenGL
Supported gfx modes (32-bit): 
	1920x1200;1920x1200;1920x1080;1920x1080;1680x1050;1680x1050;1600x1200;1600x1200;
	1280x1024;1280x1024;1280x800;1280x800;1280x720;1280x720;1024x768;1024x768;
	800x600;800x600;640x480;640x480;
Attempting to find nearest supported resolution for screen size 1920 x 1200 (32-bit) fullscreen
Attempt to switch gfx mode to 1920 x 1200 (32-bit) fullscreen
OpenGL adapter info:
	OpenGL: 4.6.14802 Compatibility Profile Context 21.40.18.15 30.0.14018.15002
	Vendor: ATI Technologies Inc.
	Renderer: AMD Radeon(TM) Graphics
OGL: Transparency shader program created successfully
OGL: Tinting shader program created successfully
OGL: Lighting shader program created successfully
Graphics driver set: OpenGL
Graphics mode set: 1920 x 1200 (32-bit) fullscreen desktop, on display 0
Graphics mode set: refresh rate (optional): 120, vsync: 0
Render frame set, render dest (160, 0, 1759, 1199 : 1600 x 1200)
Requested gfx filter: StdScale
Graphics filter set: 'StdScale', filter dest (160, 0, 1759, 1199 : 1600 x 1200)
Using gfx filter: StdScale
Texture cache set: 131072 KB
Mouse speed control: enabled, unit: 1.000000, user value: 1.000000
Touch-to-mouse motion mode: absolute
Mouse cursor graphic area: (160,0)-(1759,1199) (1600x1200)
Multitasking mode set: 0
Setting up window
Multitasking mode set: 0
Initialize sprites
Sprite cache set: 131072 KB
Initialize game settings
Precache view 0 (loops 0-3) with 40 frames, total = 0 ms, average file->mem = 0 ms, bm->tx = 0 ms,
		loaded 0 sounds = 0 ms
	Sprite cache: 29 -> 54 KB, texture cache: 0 -> 99 KB
Prepare to start game
Engine initialization complete
Starting game
Attempting to find nearest supported resolution for screen size 1280 x 960 (32-bit) windowed
Maximal allowed window size: 1898 x 1072
Attempt to switch gfx mode to 1280 x 960 (32-bit) windowed
Graphics driver set: OpenGL
Graphics mode set: 1280 x 960 (32-bit) windowed, on display 0
Graphics mode set: refresh rate (optional): 0, vsync: 0
Render frame set, render dest (0, 0, 1279, 959 : 1280 x 960)
Mouse speed control: enabled, unit: 1.000000, user value: 1.000000
Touch-to-mouse motion mode: absolute
Mouse cursor graphic area: (0,0)-(1279,959) (1280x960)
Multitasking mode set: 0
Attempting to find nearest supported resolution for screen size 3840 x 1620 (32-bit) fullscreen
Attempt to switch gfx mode to 2560 x 1080 (32-bit) fullscreen
Graphics driver set: OpenGL
Graphics mode set: 3840 x 1620 (32-bit) fullscreen desktop, on display 1
Graphics mode set: refresh rate (optional): 60, vsync: 0
Render frame set, render dest (840, 0, 2999, 1619 : 2160 x 1620)
Mouse speed control: enabled, unit: 1.000000, user value: 1.000000
Touch-to-mouse motion mode: absolute
Mouse cursor graphic area: (840,0)-(2999,1619) (2160x1620)
Multitasking mode set: 0
Game.SetAudioTypeVolume: type: 2, volume: 24, change: all
Game.SetAudioTypeVolume: type: 2, volume: 50, change: all
Attempting to find nearest supported resolution for screen size 1280 x 960 (32-bit) windowed
Maximal allowed window size: 1898 x 1072
Attempt to switch gfx mode to 1280 x 960 (32-bit) windowed
Graphics driver set: OpenGL
Graphics mode set: 1280 x 960 (32-bit) windowed, on display 1
Graphics mode set: refresh rate (optional): 0, vsync: 0
Render frame set, render dest (0, 0, 1279, 959 : 1280 x 960)
Mouse speed control: enabled, unit: 1.000000, user value: 1.000000
Touch-to-mouse motion mode: absolute
Mouse cursor graphic area: (0,0)-(1279,959) (1280x960)
Multitasking mode set: 0
Attempt to switch gfx mode to 3840 x 1620 (32-bit) fullscreen
Graphics driver set: OpenGL
Graphics mode set: 3840 x 1620 (32-bit) fullscreen desktop, on display 1
Graphics mode set: refresh rate (optional): 60, vsync: 0
Render frame set, render dest (840, 0, 2999, 1619 : 2160 x 1620)
Mouse speed control: enabled, unit: 1.000000, user value: 1.000000
Touch-to-mouse motion mode: absolute
Mouse cursor graphic area: (840,0)-(2999,1619) (2160x1620)
Multitasking mode set: 0
Quitting the game...
***** ENGINE HAS SHUTDOWN
My Games:

Hauntings Of Mystery Manor
Intrigue At Oakhaven Plantation
Haunting at Cliffhouse

Crimson Wizard

#27
Thank you.
The log shows that the mouse bounds are reasonable, there's nothing suspicious there, at least not at the first glance.

I don't have much ideas at the moment. But I'd like to ask something else: could you try if this happens only with your game, or any random AGS game too?
That's to make sure that it's purely engine's problem, and not something unusual scripted in your game.

Ghostlady

Can you offer a suggestion for a game.  I've tried two but the Alt Enter will not work because one or both of those keys are used for other things, like settings.
My Games:

Hauntings Of Mystery Manor
Intrigue At Oakhaven Plantation
Haunting at Cliffhouse

Crimson Wizard

Quote from: Ghostlady on Sun 03/11/2024 20:02:36Can you offer a suggestion for a game.  I've tried two but the Alt Enter will not work because one or both of those keys are used for other things, like settings.

How old are these games?
If they are too old to support Alt+Enter, then you could use the same acwin.exe which I sent to run them instead.

I suppose that any random game released in this year may be suitable.
https://www.adventuregamestudio.co.uk/forums/completed-game-announcements/

At last, it's possible to create a new dummy game from any template, and use that.

Ghostlady

#30
I downloaded King's Quest It Takes Two to Tangle - It opens in full screen mode, able to Alt Enter to windowed mode but cannot get to the top of the window to move to the other screen.
I downloaded King's Quest 1 and Alt Enter goes to a screen with a prompt to restart
I downloaded The Order - It opens in full screen mode, able to Alt Enter to windowed mode and able to move to my large screen. If I hit Alt Enter again, it flips over to my laptop screen.  This one is a little strange because the first time I opened the game, I experienced my problem.  The second time I can't recreate it. It opens on my laptop screen. I can toggle Alt Enter over and over and it will change appropriately.  If I move to the large screen and hit Alt Enter, it constantly moves it to the laptop screen, so it will never open full window mode on large screen, it switches to the pc, but it doesn't freeze the mouse.

I'll try the new game option and see how that works.
My Games:

Hauntings Of Mystery Manor
Intrigue At Oakhaven Plantation
Haunting at Cliffhouse

Ghostlady

I created a new game with just one room and the problem appeared. I was thinking maybe resolution, so I changed it from 640 x 480 (my game) to 1024 and the problem still exists.
I also tried a different monitor instead of the large one. I have a really old standard one and the problem still exits.
My Games:

Hauntings Of Mystery Manor
Intrigue At Oakhaven Plantation
Haunting at Cliffhouse

Ghostlady

It's definitely the laptop causing the problem. It's still the main display but when I close the laptop, still running, the game loads up on my old monitor, I can move the game back and forth between the old monitor and newer widescreen monitor, toggle Alt Enter keys and there is no issue on either one.
My Games:

Hauntings Of Mystery Manor
Intrigue At Oakhaven Plantation
Haunting at Cliffhouse

Crimson Wizard

#33
I'm sorry, I didn't understand what you say about laptop... do you mean you have 1 or 2 external monitors connected to your laptop?


QuoteI downloaded King's Quest It Takes Two to Tangle - It opens in full screen mode, able to Alt Enter to windowed mode but cannot get to the top of the window to move to the other screen.

Ugh. I tried this, and apparently it has a "auto lock cursor inside window" option enabled by default.
You may turn it off in winsetup, on "Advanced" tab.
AGS is supposed to support Ctrl + Alt combo to toggle "cursor lock in window", but it does not work in the latest 3.6.1 for some reason, which is a new bug, and i will have to fix it.

"King's Quest 1", - if you are are referring to VGA remake, then it is probably made with the old version of AGS.

Ghostlady

Yes, I have 2 external monitors hooked up to my laptop. If I close my laptop, the game will load onto one monitor and I can move the game back and forth on the two monitors with no problem. This tells me it's not any coding specific to my game but somehow laptop related.
My Games:

Hauntings Of Mystery Manor
Intrigue At Oakhaven Plantation
Haunting at Cliffhouse

SMF spam blocked by CleanTalk