Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: Ghostlady on Sun 26/06/2011 03:12:40

Title: Questions about Windows 7 64 Bit
Post by: Ghostlady on Sun 26/06/2011 03:12:40
1.  Is AGS compatible with Windows 7
2.  Has anyone made a game with Windows 7 yet?
3.  I started creating my game with Windows XP and thought I'd finish it with Windows 7.  Is this a bad idea?
4.  When running the game from the editor - I only get the windowed mode
5.  I set up the Escape key to bring up the Load/Save gui and the Escape key does not always work.
Title: Re: Questions about Windows 7 64 Bit
Post by: monkey0506 on Sun 26/06/2011 03:53:46
Yes. Yes. No. This is by default, you're running the game with the script debugger which is always windowed. We need more information about #5 as it's probably a scripting issue.

To elaborate on #4, you have to select "Build -> Run without debugger". Also there is an option in preferences which might still force it to run windowed.

64-bit doesn't make any difference in AGS because all of its data types have an explicit maximum size of 32-bit. The reason certain 32-bit programs don't work in 64-bit systems is because they implicitly rely on certain data types being 32-bit whereas the system environment is actually explicitly defining them as 64-bit. Since AGS explicitly defines the size of its data types this isn't an issue.
Title: Re: Questions about Windows 7 64 Bit
Post by: Ghostlady on Sun 26/06/2011 04:13:17
1. ok
2. ok
3. ok
4. "Build -> Run without debugger" is what I selected and I didn't see any other options in preferences
5.  Code from the global script.  Keycode 27 is what I am using for the Escape key.

function on_key_press(int keycode) {
  // called when a key is pressed. keycode holds the key's ASCII code
  if (IsGamePaused() == 1) keycode=0;  // game paused, so don't react to keypresses
  if (keycode==17)  QuitGame(1);   // Ctrl-Q
  if (keycode==363) SaveGameDialog();   // F5
  if (keycode==365) RestoreGameDialog();  // F7
  if (keycode==367) RestartGame();  // F9
  if (keycode==434) SaveScreenShot("scrnshot.bmp");  // F12
  if (keycode==19)  Debug(0,0);  // Ctrl-S, give all inventory
  if (keycode==22)  Debug(1,0);  // Ctrl-V, version
  if (keycode==1)   Debug(2,0);  // Ctrl-A, show walkable areas
  if (keycode==24)  Debug(3,0);  // Ctrl-X, teleport to room
  if (keycode==27)  {
      gIconbar.Visible = true;
      aSound10.Play(); }  // Escape
}

Thanks for the explanation on 64-bit
Title: Re: Questions about Windows 7 64 Bit
Post by: Knox on Sun 26/06/2011 04:33:40
Im currently creating a game with win 7 x64, so far no probs.

For the esc problem sometimes not working as you mentionned, I get the same thing...sometimes its as if AGS doesnt capture the esc key or something.
Title: Re: Questions about Windows 7 64 Bit
Post by: monkey0506 on Sun 26/06/2011 04:53:01
That might actually be an issue with Windows. Do you by chance have "sticky keys" turned on in Windows?

As for running without the debugger: File -> Preferences. Then it's in the top-left corner of the pop-up: "When running without debugger" and there's a drop-down.
Title: Re: Questions about Windows 7 64 Bit
Post by: Calin Leafshade on Sun 26/06/2011 12:10:45
Esc may not work if Photoshop is open. Photoshop has a known issue in Win7 where it catches the escape key.
Title: Re: Questions about Windows 7 64 Bit
Post by: Ghostlady on Sun 26/06/2011 14:15:26
I found the setting.  Great.

How do I tell if "sticky keys" are turned on in Windows?

I don't have Photoshop on my computer.
Title: Re: Questions about Windows 7 64 Bit
Post by: Khris on Sun 26/06/2011 17:36:53
Go to Control Panel -> Ease of Access -> Keyboard
There are all kinds of settings there, sticky keys is among them.
Title: Re: Questions about Windows 7 64 Bit
Post by: Ghostlady on Sun 26/06/2011 18:22:50
Ok, sticky keys are not turned on.
Title: Re: Questions about Windows 7 64 Bit
Post by: Knox on Sun 26/06/2011 19:39:14
QuoteEsc may not work if Photoshop is open. Photoshop has a known issue in Win7 where it catches the escape key

wow, didnt know that...we should check that out!