Alpha Centauri 2

Sid Meier's Alpha Centauri & Alien Crossfire => The Theory of Everything => Topic started by: Kirov on June 18, 2017, 12:45:25 pm

Title: SMAX won't run under Windows 10
Post by: Kirov on June 18, 2017, 12:45:25 pm
I see that this issue is mentioned here a couple of times, but I could find no effective solution. Recently I've 'upgraded' my Win7 to Win10 and noticed just today that my SMAX won't launch. I looked up a few solutions but they won't work. First of all, the GOG version should work in Win10 (mine is GOG). Secondly, the opening movie should be disabled and mine is. Then I tried two approaches to run the game in the compability mode (for Win7 and XPSP3), all to no avail.

Did anyone have a similar problem and found a trick that worked?
Title: Re: SMAX won't run under Windows 10
Post by: gwillybj on June 21, 2017, 09:33:25 pm
Can you try this:
Run the installer (I'm assuming it's named Setup.exe) as Administrator in XP Compatibility Mode (mine is in SP2).
Run the game directly from terranx.exe as Administrator, also in XP Compatibility Mode.
Title: Re: SMAX won't run under Windows 10
Post by: Geo on June 22, 2017, 12:11:13 am
I have the GOG version installed on my computer, and the game seems to run like a charm?
Title: Re: SMAX won't run under Windows 10
Post by: Buster's Uncle on June 27, 2017, 09:20:39 pm
Try PMing Petek if none of that has worked...
Title: Re: SMAX won't run under Windows 10
Post by: Kirov on June 28, 2017, 08:08:38 am
Try PMing Petek if none of that has worked...

Thanks, I will when I find a moment.
Title: Re: SMAX won't run under Windows 10
Post by: Kirov on June 28, 2017, 08:10:28 am
Can you try this:
Run the installer (I'm assuming it's named Setup.exe) as Administrator in XP Compatibility Mode (mine is in SP2).
Run the game directly from terranx.exe as Administrator, also in XP Compatibility Mode.

Tried it, didn't work. I will reinstall and rerun in other compatibility modes (SP3, W7), maybe this helps.

Crap. To have a rig without a working SMAC is a huuge bummer. :( Switch to Win10, they said, your games will run more smoothly, they said.
Title: Re: SMAX won't run under Windows 10
Post by: TarMinyatur on July 01, 2017, 11:50:52 pm
Windows 10 now opts out of a legacy component called DirectPlay. You can opt in to it to play older games. https://windowsforum.com/threads/turn-on-direct-play-to-use-older-games-windows-8-8-1-1-and-10.205952/
Title: Re: SMAX won't run under Windows 10
Post by: Kirov on July 02, 2017, 01:05:22 am
Windows 10 now opts out of a legacy component called DirectPlay. You can opt in to it to play older games. https://windowsforum.com/threads/turn-on-direct-play-to-use-older-games-windows-8-8-1-1-and-10.205952/

At least one of my copies works right now. You, sir, are a true hero of this board, I cannot tell you how grateful I am. If you ever start a cult, consider me in.

Thank you so much!!!  ;b; ;b; ;b; I mean it.
Title: Re: SMAX won't run under Windows 10
Post by: Quinch on July 09, 2017, 05:18:13 pm
Hi, I'm having {had?} the same problem. Turning on DirectPlay gets the program to start.... but I can't actually switch into it. Any ideas?

Hmm, reinstalling the game from scratch seems to have fixed it - so it might have been one of the patches that was causing it? More experimentation is in order...
Title: Re: SMAX won't run under Windows 10
Post by: Kirov on July 10, 2017, 09:48:24 am
Hi, I'm having {had?} the same problem. Turning on DirectPlay gets the program to start.... but I can't actually switch into it. Any ideas?

Hmm, reinstalling the game from scratch seems to have fixed it - so it might have been one of the patches that was causing it? More experimentation is in order...

Yes, I will look at it in a free moment (which is not going to happen too soon), but it seems that Yitzi patch makes the program start but somehow "in the background", meaning I don't get to see the screen although the intro music plays. I have never experienced any serious compatibility issues among various patches and I believe it's just a formality that everybody uses the same version. Nevertheless, I'd like to fix it.
Title: Re: SMAX won't run under Windows 10
Post by: Quinch on July 11, 2017, 02:40:10 am
Let's see - running W10, 10.0.15063 Build 15063 {Creators Update}

Running without DirectPlay enabled - crashes on start.

Direct Play Enabled - launches fine without compatibility mode.
-----
PracX installed: Starting movie plays, initial menu sound is heard, but screen is black with a cursor.

Changing Alpha Centauri.ini to

[PRACX]
ScreenWidth=1
ScreenHeight=1

Or anything other than <default> makes the game display properly.
On the other hand, when the turn ends on a moving unit, the End Turn button doesn't activate until the mouse is moved. Pathfinding itself seems a little slow, but that might be subjective.
---
Yitzi's Patch

Works fine by itself.
Enabling PracX in the ini file throws error "Unable to allocate draw-buffer".
----

That's all I got so far. Anything else worth testing?
Title: Re: SMAX won't run under Windows 10
Post by: DrazharLn on July 12, 2017, 12:41:17 am
Could you clarify if Yitzi + DirectPlay=0 works?

I've attached a debug binary for you to try, if you have time.

If you do, please unzip the attached in your SMAC dir and delete the PRACX section from your alpha centauri.ini. Run SMACX to the menu screen, then quit. Rename the file pracx.log to something sensible, like "pracx_defaults.log".

It's important you rename rather than copy because the log file is appended to, rather than replaced, so if you copy it the logs from previous runs will still be there and it will be harder for me to decipher what's going on.

Then set ScreenWidth and height to a couple of different values and repeat. Letting me know whether any of the runs differ from what you've described earlier.
Title: Re: SMAX won't run under Windows 10
Post by: Quinch on July 12, 2017, 01:14:34 am
Game doesn't seem to start without DirectPlay regardless of patches, Yitzi's included - having the feature on seems to be non-negotiable.

Should I try the debug binary thing with PracX installed by itself, Yitzi's Patch, or both combined?
Title: Re: SMAX won't run under Windows 10
Post by: DrazharLn on July 12, 2017, 02:35:53 am
Here's a slightly improved debugging build. If you've already tested with the old one, don't bother doing it again.

Let's just test the recommended install so:

base + yitzi + pracx_debug

That will leave terran.exe unpatched for pracx's hooks (but terranx.exe will be). If you want it patched, just install pracx v1.09 before you overwrite with pracx_debug.
Title: Re: SMAX won't run under Windows 10
Post by: Quinch on July 12, 2017, 02:50:52 am
Let's see - I didn't get to the main menu - the process starts and shows up on the taskbar, but clicking on it does nothing. Killing the process from the task manager {have to use Ctrl-Alt-Del instead of ctrl-shift-esc, the game presumably reserves some of the functions}. On a bit more testing, I can right-click it and close it from there - at that point, the starting movie plays and the game closes.

Here is the log;

6098750:pracx.cpp:2498:DllMain   65C50000   1   00000000
6098750:pracx.cpp:2504:DllMain   Loaded
6098750:pracx.cpp:2292:PRACXHook   
6098750:pracx.cpp:2498:DllMain   65C50000   2   00000000
6098765:pracx.cpp:776:PRACXGetSystemMetrics   3   17
6098765:pracx.cpp:754:PRACXWinMain   00400000   00000000      1
6098765:pracx.cpp:1368:PRACXRegisterClassA   0019F824
6098765:pracx.cpp:776:PRACXGetSystemMetrics   0   0
6098765:pracx.cpp:776:PRACXGetSystemMetrics   1   0
6098765:pracx.cpp:647:PRACXCreateWindowEx   w: 0   h: 0   x: 0   y: 0
6098812:pracx.cpp:776:PRACXGetSystemMetrics   13   32
6098812:pracx.cpp:776:PRACXGetSystemMetrics   14   32
6099125:pracx.cpp:2498:DllMain   65C50000   2   00000000
6099125:pracx.cpp:2498:DllMain   65C50000   2   00000000
6099140:pracx.cpp:2498:DllMain   65C50000   2   00000000
6099187:pracx.cpp:2498:DllMain   65C50000   2   00000000
6099187:pracx.cpp:2498:DllMain   65C50000   2   00000000
6099187:pracx.cpp:2498:DllMain   65C50000   2   00000000
6099187:pracx.cpp:2498:DllMain   65C50000   2   00000000
6100140:pracx.cpp:2245:PRACXMainMenuUpdateVisible   -1
6100140:pracx.cpp:2144:GetMenuCaption   3000
6100140:pracx.cpp:2144:GetMenuCaption   3001
6100140:pracx.cpp:2144:GetMenuCaption   3002
6100140:pracx.cpp:2144:GetMenuCaption   3003
6100140:pracx.cpp:2144:GetMenuCaption   3004
6100140:pracx.cpp:2144:GetMenuCaption   3005
6100140:pracx.cpp:2144:GetMenuCaption   3006
6100140:pracx.cpp:2144:GetMenuCaption   3007
6100140:pracx.cpp:2144:GetMenuCaption   3008
6100140:pracx.cpp:2144:GetMenuCaption   3009
6100140:pracx.cpp:2144:GetMenuCaption   3010
6100140:pracx.cpp:2144:GetMenuCaption   3011
6100656:pracx.cpp:1748:PRACXLoadIcons   
6105859:pracx.cpp:708:SetWindowed   1
6105875:pracx.cpp:1207:PRACXWinProc   WM_USER+3
6106000:pracx.cpp:1228:PRACXWinProc   WM_SYSCOMMAND   61472
6128796:pracx.cpp:2498:DllMain   65C50000   2   00000000
6128796:pracx.cpp:2498:DllMain   65C50000   2   00000000
6133265:pracx.cpp:1228:PRACXWinProc   WM_SYSCOMMAND   61728
6141062:pracx.cpp:1228:PRACXWinProc   WM_SYSCOMMAND   61472
6147234:pracx.cpp:1228:PRACXWinProc   WM_SYSCOMMAND   61728
6178515:pracx.cpp:1228:PRACXWinProc   WM_SYSCOMMAND   61536
6178531:pracx.cpp:583:PRACXShowMovie   opening
----
Also, not sure if these bits of info are relevant - installing Yitzi's patch. I copy over the 3.5 files, followed by the 3.5d executable.

After closing the game, the .ini file reforms the pracx section with all <default> values.

Edit: Just to check, I put 500 {just random} in screenwidth and screenheight -

7001453:pracx.cpp:2498:DllMain   66D00000   1   00000000
7001453:pracx.cpp:2504:DllMain   Loaded
7001453:pracx.cpp:2292:PRACXHook   
7001468:pracx.cpp:2498:DllMain   66D00000   2   00000000
7001531:pracx.cpp:776:PRACXGetSystemMetrics   3   17
7001546:pracx.cpp:754:PRACXWinMain   00400000   00000000      1
7001546:pracx.cpp:1368:PRACXRegisterClassA   0019F824
7001546:pracx.cpp:776:PRACXGetSystemMetrics   0   1024
7001546:pracx.cpp:776:PRACXGetSystemMetrics   1   768
7001546:pracx.cpp:647:PRACXCreateWindowEx   w: 1024   h: 768   x: 0   y: 0
7001656:pracx.cpp:776:PRACXGetSystemMetrics   13   32
7001656:pracx.cpp:776:PRACXGetSystemMetrics   14   32
7001718:pracx.cpp:2498:DllMain   66D00000   2   00000000
7001734:pracx.cpp:2498:DllMain   66D00000   2   00000000
7001734:pracx.cpp:2498:DllMain   66D00000   2   00000000
7001812:pracx.cpp:2498:DllMain   66D00000   2   00000000
7001828:pracx.cpp:2498:DllMain   66D00000   2   00000000
7001828:pracx.cpp:2498:DllMain   66D00000   2   00000000
7001828:pracx.cpp:2498:DllMain   66D00000   2   00000000
7002015:pracx.cpp:2245:PRACXMainMenuUpdateVisible   -1
7002015:pracx.cpp:2144:GetMenuCaption   3000
7002015:pracx.cpp:2144:GetMenuCaption   3001
7002015:pracx.cpp:2144:GetMenuCaption   3002
7002015:pracx.cpp:2144:GetMenuCaption   3003
7002015:pracx.cpp:2144:GetMenuCaption   3004
7002015:pracx.cpp:2144:GetMenuCaption   3005
7002015:pracx.cpp:2144:GetMenuCaption   3006
7002031:pracx.cpp:2144:GetMenuCaption   3007
7002031:pracx.cpp:2144:GetMenuCaption   3008
7002031:pracx.cpp:2144:GetMenuCaption   3009
7002031:pracx.cpp:2144:GetMenuCaption   3010
7002031:pracx.cpp:2144:GetMenuCaption   3011
7002515:pracx.cpp:1748:PRACXLoadIcons   
7002671:pracx.cpp:583:PRACXShowMovie   opening
7006984:pracx.cpp:1128:PRACXWinProc   WM_MOVIEOVER
7006984:pracx.cpp:708:SetWindowed   0
7007203:pracx.cpp:1228:PRACXWinProc   WM_SYSCOMMAND   61488
7009312:pracx.cpp:2498:DllMain   66D00000   3   00000000
7009312:pracx.cpp:2498:DllMain   66D00000   3   00000000
7009343:pracx.cpp:2498:DllMain   66D00000   3   00000000
7009343:pracx.cpp:2498:DllMain   66D00000   3   00000000
7009359:pracx.cpp:776:PRACXGetSystemMetrics   0   1024
7009359:pracx.cpp:776:PRACXGetSystemMetrics   1   768
7009359:pracx.cpp:708:SetWindowed   1
7009593:pracx.cpp:776:PRACXGetSystemMetrics   0   1024
7009593:pracx.cpp:776:PRACXGetSystemMetrics   1   768
7009750:pracx.cpp:2498:DllMain   66D00000   0   00000001
7009750:pracx.cpp:2507:DllMain   Unloaded
----
So by the looks of it, the issue has something to do with getsystemmetrics?
Title: Re: SMAX won't run under Windows 10
Post by: Kirov on July 12, 2017, 10:30:48 am
I can't say I follow you, guys, but I'm certainly somewhere behind. I hope you arrive at some conclusions and then please tell me what to do in layman terms. ;)

 ;b; ;b; ;b;
Title: Re: SMAX won't run under Windows 10
Post by: DrazharLn on July 12, 2017, 01:02:09 pm
Thanks Quinch. Could you try again with this debug build?

I don't expect it to work, just to give me a bit more information.

Quote
...
Or anything other than <default> makes the game display properly.
On the other hand, when the turn ends on a moving unit, the End Turn button doesn't activate until the mouse is moved. Pathfinding itself seems a little slow, but that might be subjective.

I can't reproduce the end turn thing. Could you send me a save file where it occurs?
Title: Re: SMAX won't run under Windows 10
Post by: DrazharLn on July 12, 2017, 04:42:34 pm
Kirov,

I thought installing directplay fixed your problem?
Title: Re: SMAX won't run under Windows 10
Post by: Quinch on July 12, 2017, 06:15:12 pm
Here we go.

With <default> settings

49110734:..\shared\pracx.cpp:2487:DllMain   51DA0000   1   00000000
49110734:..\shared\pracx.cpp:2493:DllMain   Loaded
49110734:..\shared\pracx.cpp:2281:PRACXHook   
49110734:..\shared\pracx.cpp:2487:DllMain   51DA0000   2   00000000
49110734:..\shared\pracxsettings.cpp:550:Load   0   0   0   0   0   0
49110734:..\shared\pracx.cpp:759:PRACXGetSystemMetrics   3   17   17
49110765:..\shared\pracx.cpp:737:PRACXWinMain   00400000   00000000      1
49110765:..\shared\pracx.cpp:1357:PRACXRegisterClassA   0019F824
49110765:..\shared\pracx.cpp:759:PRACXGetSystemMetrics   0   0   1920
49110765:..\shared\pracx.cpp:759:PRACXGetSystemMetrics   1   0   1080
49110765:..\shared\pracx.cpp:630:PRACXCreateWindowEx   w: 0   h: 0   x: 0   y: 0
49110812:..\shared\pracx.cpp:759:PRACXGetSystemMetrics   13   32   32
49110812:..\shared\pracx.cpp:759:PRACXGetSystemMetrics   14   32   32
49110843:..\shared\pracx.cpp:2487:DllMain   51DA0000   2   00000000
49110859:..\shared\pracx.cpp:2487:DllMain   51DA0000   2   00000000
49110859:..\shared\pracx.cpp:2487:DllMain   51DA0000   2   00000000
49110921:..\shared\pracx.cpp:2487:DllMain   51DA0000   2   00000000
49110921:..\shared\pracx.cpp:2487:DllMain   51DA0000   2   00000000
49110921:..\shared\pracx.cpp:2487:DllMain   51DA0000   2   00000000
49110921:..\shared\pracx.cpp:2487:DllMain   51DA0000   2   00000000
49111812:..\shared\pracx.cpp:2234:PRACXMainMenuUpdateVisible   -1
49111812:..\shared\pracx.cpp:2133:GetMenuCaption   3000
49111812:..\shared\pracx.cpp:2133:GetMenuCaption   3001
49111812:..\shared\pracx.cpp:2133:GetMenuCaption   3002
49111812:..\shared\pracx.cpp:2133:GetMenuCaption   3003
49111812:..\shared\pracx.cpp:2133:GetMenuCaption   3004
49111812:..\shared\pracx.cpp:2133:GetMenuCaption   3005
49111812:..\shared\pracx.cpp:2133:GetMenuCaption   3006
49111812:..\shared\pracx.cpp:2133:GetMenuCaption   3007
49111812:..\shared\pracx.cpp:2133:GetMenuCaption   3008
49111812:..\shared\pracx.cpp:2133:GetMenuCaption   3009
49111812:..\shared\pracx.cpp:2133:GetMenuCaption   3010
49111812:..\shared\pracx.cpp:2133:GetMenuCaption   3011
49112375:..\shared\pracx.cpp:1737:PRACXLoadIcons   
49113281:..\shared\pracx.cpp:691:SetWindowed   1
49113296:..\shared\pracx.cpp:1196:PRACXWinProc   WM_USER+3
49116906:..\shared\pracx.cpp:1217:PRACXWinProc   WM_SYSCOMMAND   61536
49116906:..\shared\pracx.cpp:566:PRACXShowMovie   opening
49121515:..\shared\pracx.cpp:1117:PRACXWinProc   WM_MOVIEOVER
49123562:..\shared\pracx.cpp:1217:PRACXWinProc   WM_SYSCOMMAND   61472
49126203:..\shared\pracx.cpp:1217:PRACXWinProc   WM_SYSCOMMAND   61728
49128265:..\shared\pracx.cpp:1217:PRACXWinProc   WM_SYSCOMMAND   61536
49128328:..\shared\pracx.cpp:2487:DllMain   51DA0000   3   00000000
49128328:..\shared\pracx.cpp:2487:DllMain   51DA0000   3   00000000
49128375:..\shared\pracx.cpp:2487:DllMain   51DA0000   3   00000000
49128375:..\shared\pracx.cpp:2487:DllMain   51DA0000   3   00000000
49128375:..\shared\pracx.cpp:759:PRACXGetSystemMetrics   0   0   1920
49128375:..\shared\pracx.cpp:759:PRACXGetSystemMetrics   1   0   1080
49128390:..\shared\pracx.cpp:759:PRACXGetSystemMetrics   0   0   1920
49128390:..\shared\pracx.cpp:759:PRACXGetSystemMetrics   1   0   1080
49128421:..\shared\pracx.cpp:2487:DllMain   51DA0000   0   00000001
49128421:..\shared\pracx.cpp:2496:DllMain   Unloaded


With edited windowsettings

49314609:..\shared\pracx.cpp:2487:DllMain   51DA0000   1   00000000
49314609:..\shared\pracx.cpp:2493:DllMain   Loaded
49314609:..\shared\pracx.cpp:2281:PRACXHook   
49314609:..\shared\pracxsettings.cpp:550:Load   0   0   0   0   1024   768
49314640:..\shared\pracx.cpp:2487:DllMain   51DA0000   2   00000000
49314687:..\shared\pracx.cpp:759:PRACXGetSystemMetrics   3   17   17
49314703:..\shared\pracx.cpp:737:PRACXWinMain   00400000   00000000      1
49314703:..\shared\pracx.cpp:1357:PRACXRegisterClassA   0019F824
49314703:..\shared\pracx.cpp:759:PRACXGetSystemMetrics   0   1024   1024
49314703:..\shared\pracx.cpp:759:PRACXGetSystemMetrics   1   768   768
49314703:..\shared\pracx.cpp:630:PRACXCreateWindowEx   w: 1024   h: 768   x: 0   y: 0
49314812:..\shared\pracx.cpp:759:PRACXGetSystemMetrics   13   32   32
49314812:..\shared\pracx.cpp:759:PRACXGetSystemMetrics   14   32   32
49314875:..\shared\pracx.cpp:2487:DllMain   51DA0000   2   00000000
49314890:..\shared\pracx.cpp:2487:DllMain   51DA0000   2   00000000
49314890:..\shared\pracx.cpp:2487:DllMain   51DA0000   2   00000000
49314953:..\shared\pracx.cpp:2487:DllMain   51DA0000   2   00000000
49314953:..\shared\pracx.cpp:2487:DllMain   51DA0000   2   00000000
49314953:..\shared\pracx.cpp:2487:DllMain   51DA0000   2   00000000
49314953:..\shared\pracx.cpp:2487:DllMain   51DA0000   2   00000000
49315359:..\shared\pracx.cpp:2234:PRACXMainMenuUpdateVisible   -1
49315359:..\shared\pracx.cpp:2133:GetMenuCaption   3000
49315359:..\shared\pracx.cpp:2133:GetMenuCaption   3001
49315359:..\shared\pracx.cpp:2133:GetMenuCaption   3002
49315359:..\shared\pracx.cpp:2133:GetMenuCaption   3003
49315359:..\shared\pracx.cpp:2133:GetMenuCaption   3004
49315359:..\shared\pracx.cpp:2133:GetMenuCaption   3005
49315359:..\shared\pracx.cpp:2133:GetMenuCaption   3006
49315359:..\shared\pracx.cpp:2133:GetMenuCaption   3007
49315359:..\shared\pracx.cpp:2133:GetMenuCaption   3008
49315359:..\shared\pracx.cpp:2133:GetMenuCaption   3009
49315359:..\shared\pracx.cpp:2133:GetMenuCaption   3010
49315359:..\shared\pracx.cpp:2133:GetMenuCaption   3011
49315843:..\shared\pracx.cpp:1737:PRACXLoadIcons   
49316687:..\shared\pracx.cpp:566:PRACXShowMovie   opening
49320375:..\shared\pracx.cpp:1117:PRACXWinProc   WM_MOVIEOVER
49320375:..\shared\pracx.cpp:691:SetWindowed   0
49320531:..\shared\pracx.cpp:1217:PRACXWinProc   WM_SYSCOMMAND   61488
49344796:..\shared\pracx.cpp:2487:DllMain   51DA0000   2   00000000
49344796:..\shared\pracx.cpp:2487:DllMain   51DA0000   2   00000000
49374187:..\shared\pracx.cpp:1602:PRACXZoomProcessing   0
49374343:..\shared\pracx.cpp:1602:PRACXZoomProcessing   8192
49374421:..\shared\pracx.cpp:1602:PRACXZoomProcessing   8192
49376562:..\shared\pracx.cpp:1602:PRACXZoomProcessing   8192
49376562:..\shared\pracx.cpp:1602:PRACXZoomProcessing   8192
49406328:..\shared\pracx.cpp:1217:PRACXWinProc   WM_SYSCOMMAND   61696
49406328:..\shared\pracx.cpp:691:SetWindowed   1
49406468:..\shared\pracx.cpp:1196:PRACXWinProc   WM_USER+3
49417500:..\shared\pracx.cpp:1602:PRACXZoomProcessing   8192
49417515:..\shared\pracx.cpp:1602:PRACXZoomProcessing   8192
49417546:..\shared\pracx.cpp:1602:PRACXZoomProcessing   8192
49417562:..\shared\pracx.cpp:1602:PRACXZoomProcessing   8192
49418250:..\shared\pracx.cpp:1217:PRACXWinProc   WM_SYSCOMMAND   61536
49420015:..\shared\pracx.cpp:2487:DllMain   51DA0000   3   00000000
49420015:..\shared\pracx.cpp:2487:DllMain   51DA0000   3   00000000
49420046:..\shared\pracx.cpp:2487:DllMain   51DA0000   3   00000000
49420046:..\shared\pracx.cpp:2487:DllMain   51DA0000   3   00000000
49420046:..\shared\pracx.cpp:759:PRACXGetSystemMetrics   0   1024   1920
49420062:..\shared\pracx.cpp:759:PRACXGetSystemMetrics   1   768   1080
49420093:..\shared\pracx.cpp:759:PRACXGetSystemMetrics   0   1024   1920
49420093:..\shared\pracx.cpp:759:PRACXGetSystemMetrics   1   768   1080
49420109:..\shared\pracx.cpp:2487:DllMain   51DA0000   0   00000001
49420109:..\shared\pracx.cpp:2496:DllMain   Unloaded

---
The end turn thing should be simple to reproduce {if it does happen on your end - to clarify, this seems to be a W10-specific issue as well, didn't occur on W7} - start a new game and drag all your units to a few squares away.
Title: Re: SMAX won't run under Windows 10
Post by: DrazharLn on July 12, 2017, 09:43:07 pm
Cool, your real resolution is 1920x1080, right?

I'm calling EnumDisplaySettings and asking for the values in your registry for your current display, but that doesn't give sensible values on your computer. Which is pretty weird. Let's see if ENUM_CURRENT_SETTINGS gets us anything sensible.

The windows GetSystemMetrics function does seem to be successfully reporting your screen res, so that's something.

I can't reproduce the end turn button thing or the slow path-finding.

Could you load the game once with these new binaries and send me the log? It doesn't matter what's in your alpha cent.ini.
Title: Re: SMAX won't run under Windows 10
Post by: TarMinyatur on July 14, 2017, 11:00:38 pm
Windows 10 now opts out of a legacy component called DirectPlay. You can opt in to it to play older games. https://windowsforum.com/threads/turn-on-direct-play-to-use-older-games-windows-8-8-1-1-and-10.205952/

At least one of my copies works right now. You, sir, are a true hero of this board, I cannot tell you how grateful I am. If you ever start a cult, consider me in.

Thank you so much!!!  ;b; ;b; ;b; I mean it.

Microsoft considers DirectPlay to be a security vulnerability so they have disabled DirectPlay without your explicit approval via automatic Windows OS updates. Microsoft obviously doesn't care about 18-year-old games such as SMAC and Starfleet Command which were released for a gamer-friendly Windows 98 environment with peer-to-peer networking. They wanted DirectPlay turned off by default, and they got it.
Title: Re: SMAX won't run under Windows 10
Post by: DrazharLn on July 17, 2017, 09:04:52 pm
Windows 10 Creators Update is known to cause issues with SMAC.

Specifically:

 - pathfinding path drawn slowly
 - end turn icon not enabled sometimes until you move the mouse

http://alphacentauri2.info/index.php?topic=14308.330 (http://alphacentauri2.info/index.php?topic=14308.330)
Templates: 1: Printpage (default).
Sub templates: 4: init, print_above, main, print_below.
Language files: 4: index+Modifications.english (default), TopicRating/.english (default), PortaMx/PortaMx.english (default), OharaYTEmbed.english (default).
Style sheets: 0: .
Files included: 31 - 840KB. (show)
Queries used: 14.

[Show Queries]