Allegro.cc - Online Community

Allegro.cc Forums » Allegro Development » Allegro 4.4 / Win8 / 64-bit - doesn't work.

This thread is locked; no one can reply to it. rss feed Print
Allegro 4.4 / Win8 / 64-bit - doesn't work.
Shannes
Member #14,797
December 2012

I have been trying to get some games a friend has sent me, written for Allegro 4.4, to work on Windows 8, 64-bit (this may not make a difference).

These failed to run and crashed with a black screen.

I then compiled Allegro 4.4 for Visual C++ 2012 and also compiled the games with Visual Studio 2012 and noticed no errors or even warnings while compiling. However they continued to fail to run. I then used the excellent Visual Studio 2012 debugger and found that there appeared to be problems when setting the display mode. I tried every available display mode to no avail, and even went as far as making minor changes to use AllegroGL as the display back-end, again to no avail.

I'm aware that Allegro 4.4 is now out-dated in favour of version 5, but my friend has said he will not be moving to Allegro 5. Any advice that can be given here would be very much appreciated.

Thank you in advance.

Sirocco
Member #88
April 2000
avatar

You probably have to launch the games with Admin access. I just ran into that recently with Win 8. If the program installs to Program Files and needs write access, it'll fail otherwise.

Edit:

Whoops. Missed the part about the debugging. Is the program trying to go fullscreen, or windowed? What res? What color depth? Is it trying to step down if it encounters a problem? Etc.

-->
Graphic file formats used to fascinate me, but now I find them rather satanic.

Matthew Leverton
Supreme Loser
January 1999
avatar

Did you build Allegro yourself?

Shannes
Member #14,797
December 2012

The program is trying to go 640x480 in Windowed mode, either colour depth 16 or 32-bits, both fail. It will sometimes give an error saying that the screen couldn't be initialised, but sometimes just hangs (threading related?). I tried running as admin, in compat for WinXP, no luck. I did build it myself Matthew, but the same problem occured with the games' original binaries linked against the official Allegro.

Sirocco
Member #88
April 2000
avatar

4.x stuff works just fine under Windows 8, but all the things I've tested have been built with MingW32.

I'm at a loss, though. Have you tried using a precompiled version of Allegro? I'm not sure a MSVC build exists. I could probably stop and go look, but I'm feeling laaaaaaaaaaaazy.

-->
Graphic file formats used to fascinate me, but now I find them rather satanic.

Shannes
Member #14,797
December 2012

The problem still afflicts with a build that was made using the pre-compiled Allegro 4.4 for MinGW32.

It's odd that even adding a breakpoint can sometimes alter how far the game gets, whether it goes full-screen for a moment, switches back, then back again until Allegro declares that the screen can't be initialised. This sounds like a very severe problem with threading.

For anyone wondering the game: It's Prosonic, which I believe is in the Allegro Depot.

Edgar Reynaldo
Major Reynaldo
May 2007
avatar

Shannes said:

The program is trying to go 640x480 in Windowed mode, either colour depth 16 or 32-bits, both fail.

...

It's odd that even adding a breakpoint can sometimes alter how far the game gets, whether it goes full-screen for a moment, switches back, then back again until Allegro declares that the screen can't be initialised.

Are you trying to program windowed or fullscreen? Which mode is it set to use? What is the line of code?

In Windows 8, fullscreen 640x480 may not even be available anymore. 320x240 or 320x200 are no longer supported either. Check your computer's available resolutions through your graphics driver. You may want to have your friend use 800x600 (which is very standard still) and then center his 640x480 or stretch it onto the new size. This would take very little code to change.

Go to: