DXWnd + ArtyFix All-in-One for SPWAW

SPWaW is a tactical squad-level World War II game on single platoon or up to an entire battalion through Europe and the Pacific (1939 to 1945).

Moderator: MOD_SPWaW

User avatar
Riitaoja2
Posts: 208
Joined: Wed Feb 10, 2016 12:57 pm

DXWnd + ArtyFix All-in-One for SPWAW

Post by Riitaoja2 »

UPDATE:
The SP:WaW Depot now has an unofficial patch (8.403d) available that corrects the artillery screen unresponsive mouse.
https://www.tapatalk.com/groups/spwawdepot/index.php
It should supersede all these old fixes.


P.S.
Dxwnd is still very useful for running SPWAW. It can be used to fix the colors on Win7 (and Vista) and the “Handle exceptions” option reduces random crashing.

P.P.S.
For redundancy the unofficial patch is now also uploaded here:
forceddownload.asp?file=1;4373023

A replacement spwaw.exe to fix problemes with the intro movie not playing can be downloaded from here:
forceddownload.asp?file=2;4373023
.
.
.

original post:

Disclaimer:
All the fixes provided here on the forums are user made non official ones. Officially the game only supports Windows 95/98/2000/XP. In addition something that is missing from the Product Requirements page is that the game does not work properly on multi core processors.

Ideally everyone should first download the free version of the game and make sure it works before committing to buying the full game. The only difference with the full game and the free game are the Mega Campaigns.


UPDATE:
CPU affinity is now set using PowerShell instead of the "start /affinity" command. This is hopefully more reliable.

UPDATE:
Starting with version v2_03_69_build of DXWnd there is now an in-built option to adjust the CPU speed that is similar to what the "BES" program does. If you are still having issues with the artillery screen you can start dxwnd.exe and navigate to the "Timing" tab to adjust your "System speed". (From Dxwnd main window select SPWAW then click on Edit->Modify->Timing.)

By using different values here you should be able to affect the artillery screen mouse responsiveness. There is no one correct value since computers can have a huge variety of processors running at different speeds.

If you set a too high value then the game sounds start to get distorted and the game becomes slow. If the ratio is too low then the artillery screen will remain unresponsive.

I suggest you try setting a ratio of 1:10 and working up in increments of 5 until you find the limits of your computer. Then work down at increments of 1 until you find the sweet spot.

Image


This is a new all-in-one fix that includes both Dxwnd and the artillery screen fix in a single .zip package.
- The artillery screen fix is a batch file that tries to start SPWAW with the last cpu core on multi core systems.
- Dxwnd is a program that is designed to run old games on modern systems with better compatibility and should fix the random crashing. It also has the option to run the program in a windowed mode if needed. For Windows 7 and Vista it also fixes the color bug.

To use:
Extract all the files to your \Steel Panthers World at War\ main -directory. (where mech.exe resides)
Then start the game from the file: _Start_SPWAW_Dxwnd+ArtyFix.cmd
Or alternatively you can start Dxwnd.exe and double click the SPWAW entry from there.



DOWNLOAD LINK: (Based on Dxwnd version 2.03.97)
forceddownload.asp?file=0;4025035


NOTE:
You must make sure that mech.exe has no compatibility flags set otherwise Dxwnd won't work properly.
To make sure follow these steps:
- Right click on mech.exe
- Left click on Properties
- Go to Compatibility Tab and make sure no options are checked there.


Here is the old Dxwnd legacy version 2.03.52 (with added CPU slowdown option) just in case it works better for some users. Dxwnd gets updated quite often and sometimes there might be some regression issues with the latest releases.



[center]
Dxwnd is available from this web site and it is created by the user ghotik (or gho) all credit for Dxwnd goes to him:
https://sourceforge.net/projects/dxwnd/[/center]
Attachments
dxwnd_CPU_slowdown.gif
dxwnd_CPU_slowdown.gif (27.96 KiB) Viewed 1113 times
sami heimola
Posts: 421
Joined: Mon May 08, 2000 8:00 am
Location: kouvola finland

RE: DXWnd + ArtyFix All-in-One for SPWAW

Post by sami heimola »

I made test. First I checked that mech.exe had no any compability things "on". Then I chose 1 105mm battery (Germany) and attack battle (against Russia). I went into artillery menu and amazed then I noticed that choosing target hexes lasted only about 10-15 sec. each[X(]! At least first 2 targets needed 10 seconds without any shift pressing but third needed "longer" process (at least from my viewpoint) and I pressed shift. Then it marked as it should[;)]...

Thanks about fix[:)]

User avatar
Riitaoja2
Posts: 208
Joined: Wed Feb 10, 2016 12:57 pm

RE: DXWnd + ArtyFix All-in-One for SPWAW

Post by Riitaoja2 »

The artillery fix is the automated one that selects the AFFINITY value based on cpu type.
fb.asp?m=4043994
So it is nothing new although I did make some slight optimizatins and cleanup of the script.

This all-in-one version just bundles the DxWnd program and artillery fix together with all the settings pre-configured. So the end user only needs to unzip the files to SPWAW game folder and run _Start_SPWAW_Dxwnd+ArtyFix.cmd to play the game.

Ofcourse you can still start DXWnd and edit the settings if you want to.



ORIGINAL: sami heimola
...And does this work surely with Intel i5 processor too?

Short answer:
No. There is no guarantee that the arty fix will work on all computers.

Long answer:

Can not make the generalization since I know for a fact that the artillery fix works on at least two computers that I have tested it on that had an Intel i5 processor. So it is not so simple and I am puzzled as to why it does not work on all i5 processors out there.

I have no idea if some i5 models are just incompatible with the fix due to some technical differences or if there is some other underlying issues with those computers that is affecting the use of the CPU cores.

The only computer so far that I have personaly tested the artillery fix and have it fail was an AMD 6-core machine. And I would have loved to really dissect that computer and study it thoroughly. Unfortunately it wasn't my computer so I could not do that. [;)]
User avatar
Riitaoja2
Posts: 208
Joined: Wed Feb 10, 2016 12:57 pm

RE: DXWnd + ArtyFix All-in-One for SPWAW

Post by Riitaoja2 »

ORIGINAL: sami heimola
...I went into artillery menu and amazed then I noticed that choosing target hexes lasted only about 10-15 sec. each[X(]! At least first 2 targets needed 10 seconds without any shift pressing but third needed "longer" process (at least from my viewpoint) and I pressed shift. Then it marked as it should[;)]...

Thanks about fix[:)]


Are you saying that you keep pressing the mouse button again and again for 10-15 seconds. Or do you mean that you click on the hex once and then after waiting 10-15 seconds the hex gets selected?

EDIT:

Reason I ask is that if you need to click several times for the selection to register then that is the normal artillery screen bug that the arty fix is made to solve.

However if you need to click just once and then after a delay the click registers then that is a different issue. I had that type of problem once and solved it by installing an older version of the Nvidia display driver. Then again that issue affected other screens in SPWAW too...

Generaly speaking if the artillery fix works the way it is supposed to you should have no delay or lag at all in the artillery screen. It should work perfectly.
sami heimola
Posts: 421
Joined: Mon May 08, 2000 8:00 am
Location: kouvola finland

RE: DXWnd + ArtyFix All-in-One for SPWAW

Post by sami heimola »

Hmm if I remember right, I pressed once and waited about 10-15 (maybe even longer?) sec. Sorry, this needs more testing anyway[8|]... Next time lasted (same kind of test) many minutes as earlier[8|]. Seems to be random when menu works "faster" than originally[8|]. Even leaving menu seem to be as slow as earlier[:@]. It's baddest thing IMHO. Sometimes it makes me angry[:@] ...
User avatar
Riitaoja2
Posts: 208
Joined: Wed Feb 10, 2016 12:57 pm

RE: DXWnd + ArtyFix All-in-One for SPWAW

Post by Riitaoja2 »

ORIGINAL: sami heimola

Hmm if I remember right, I pressed once and waited about 10-15 (maybe even longer?) sec. Sorry, this needs more testing anyway[8|]... Next time lasted (same kind of test) many minutes as earlier[8|]. Seems to be random when menu works "faster" than originally[8|]. Even leaving menu seem to be as slow as earlier[:@]. It's baddest thing IMHO. Sometimes it makes me angry[:@] ...

Well from that description I would say you have more issues on your computer than what the artillery fix is designed to solve.

-Could be a cpu throttling issue.
-Could be a bad video or sound driver or even some other system driver conflict.
-Could be a bad audio codec.
-Could be something else.

Have you noticed any issues with other games or software on your computer?


As a test you could rename your \Steel Panthers World at War\SND\ -folder to
\Steel Panthers World at War\SND-off\.

The game then can not find the sound files and should start with sounds disabled.

If the game then plays fine with no delays it is a sound card driver or an audio codec issue.
sami heimola
Posts: 421
Joined: Mon May 08, 2000 8:00 am
Location: kouvola finland

RE: DXWnd + ArtyFix All-in-One for SPWAW

Post by sami heimola »

Yeah it's very mystic thing[8|]... I have not noticed any problems in other games (BF2, other SP games+mods) or softwares. It could be some audio/video driver (Nvidia GeForce GTX570) or something else[8|]... But as I said long time ago, I can deal with slow artillery because I seldom use it[:'(].

Thanks anyway about good try Riitaoja[:)]. Nice to know that even somebody try to solve this problem...
User avatar
Major_Mess
Posts: 471
Joined: Sun Feb 08, 2004 4:28 pm
Location: The True North. Strong and Free

RE: DXWnd + ArtyFix All-in-One for SPWAW

Post by Major_Mess »

TESTERS!!!!!!

Could we get a few intrepid souls with Multi-Core machines to give this a try.
Report back here with your findings.

Please and thank you.



Major Mess
Click below. You know you want to!!


Image
Grotum
Posts: 1
Joined: Fri Feb 12, 2016 3:27 pm

RE: DXWnd + ArtyFix All-in-One for SPWAW

Post by Grotum »

[:(] Well, I got excited and tried this latest fix and the arty bug remains for me.

my computer:
I7-5960X 8core processor
Windows 10 64 bit
32Gb RAM
Dual 12GB Nvidia Geforce GTX Titan X graphics cards
mech.exe is compatibility clear


On a side note, in your instructions you refer to the \Steel Panthers World at War\ directory. When I installed the game it named the directory \SPWaW 2016\. I unzipped the files there and it kept giving me an error when I tried to run your .cmd until I renamed the directory to \Steel Panthers World at War\

Anyway, thanx for continuing to work on this issue. I'm more than willing to do any further testing if you come up with new ideas to try.

-Grotum
mllange
Posts: 526
Joined: Sat Feb 05, 2005 1:35 am

RE: DXWnd + ArtyFix All-in-One for SPWAW

Post by mllange »

Almost identical specs as Grotum with similar results. The artillery issues remain. I did notice the affinity displayed 4 cores found when then are 8, so I tried again modifying the settings but it didn't make any difference. Thanks for continuing to work on this issue!
There's a simple answer to every complex question - and it's wrong.
-Umberto Eco
sami heimola
Posts: 421
Joined: Mon May 08, 2000 8:00 am
Location: kouvola finland

RE: DXWnd + ArtyFix All-in-One for SPWAW

Post by sami heimola »

Hmm seems to me that different affinity settings is not "root of all evil" in this case[&:]... My guess is that Windows 10 and some software (memory too?) thing (at least in my case) could be main guilty? Just speculation but still[:'(]...
User avatar
Riitaoja2
Posts: 208
Joined: Wed Feb 10, 2016 12:57 pm

RE: DXWnd + ArtyFix All-in-One for SPWAW

Post by Riitaoja2 »

ORIGINAL: Grotum
On a side note, in your instructions you refer to the \Steel Panthers World at War\ directory. When I installed the game it named the directory \SPWaW 2016\. I unzipped the files there and it kept giving me an error when I tried to run your .cmd until I renamed the directory to \Steel Panthers World at War\

That is weird. The fix should not care what name the folder has. I just used \Steel Panthers Wolrld at War\ as an example since that used to be the default install directory.

What Windows version are you running?
User avatar
Riitaoja2
Posts: 208
Joined: Wed Feb 10, 2016 12:57 pm

RE: DXWnd + ArtyFix All-in-One for SPWAW

Post by Riitaoja2 »

ORIGINAL: nim8or

Almost identical specs as Grotum with similar results. The artillery issues remain. I did notice the affinity displayed 4 cores found when then are 8, so I tried again modifying the settings but it didn't make any difference. Thanks for continuing to work on this issue!

Are you sure you have 8 cores instead of 4 cores with Hyper-Threading? A 4 core intel cpu with HT will display as an 8 core machine on windows task manager even though it is really just 4 cores + 4 virtual cores.

So the script should display:
4 CPU cores found.
Hyper-Threading detected.


Not that this helps but just trying to make sure that the script is recognizing the cpu type as it should.
User avatar
Riitaoja2
Posts: 208
Joined: Wed Feb 10, 2016 12:57 pm

RE: DXWnd + ArtyFix All-in-One for SPWAW

Post by Riitaoja2 »

I finaly got around installing Windows 10 on my laptop (I hate Win8, 8.1 & 10 with a passion...[:@]) and tested SPWAW on it.

The results with this all-in-one fix (_Start_SPWAW_Dxwnd+ArtyFix.cmd) was that the first time I run the game I got a black screen and then the desktop. However the game was running minimized on the task bar. Then when I quit the game Dxwnd was left as an icon on the task bar that I had to manualy close.

Second time I started the game again from _Start_SPWAW_Dxwnd+ArtyFix.cmd it all seemed to work.
So it looks like on Windows 10 the first time you run the fix it acts weird but then runs fine.

On my Windows 10 laptop with a dual core Intel cpu the artillery screen worked fine with the fix. However the mouse cursor was flickering a bit. This happened even without using Dxwnd so probably a graphics driver issue.

Also it looks like Dxwnd is having some issues in that I needed to mouse over the icon on the task bar every time after closing SPWAW to make it disappear...

Overall the fix seems to work fine enough on Win10 based on my testing.
User avatar
Riitaoja2
Posts: 208
Joined: Wed Feb 10, 2016 12:57 pm

RE: DXWnd + ArtyFix All-in-One for SPWAW

Post by Riitaoja2 »

By the way if anyone has a 4-core intel cpu and the fix works for him please tell. So far I do not recall anyone reporting success on a quad core. The only successful test was done by myself on two diffrent computers that had intel i5 quad core cpu's.

Also I am assuming that the fix is still working for everyone who has a dual core cpu. Is this correct or are there people out there having issues with the artillery screen fix even on 2-core machines?
User avatar
Riitaoja2
Posts: 208
Joined: Wed Feb 10, 2016 12:57 pm

RE: DXWnd + ArtyFix All-in-One for SPWAW

Post by Riitaoja2 »

ORIGINAL: Riitaoja2
Also it looks like Dxwnd is having some issues in that I needed to mouse over the icon on the task bar every time after closing SPWAW to make it disappear...

I fixed this issue. Dxwnd should now automaticaly close with the "taskkill /IM dxwnd.exe" -line in the updated SPWAW_Arty_FIX_v22_dxwnd.cmd batch file. The file attachement is now updated.
sami heimola
Posts: 421
Joined: Mon May 08, 2000 8:00 am
Location: kouvola finland

RE: DXWnd + ArtyFix All-in-One for SPWAW

Post by sami heimola »

Thanks about updated Dxwnd Riitaoja [:)]
User avatar
proberts
Posts: 14
Joined: Sun Feb 08, 2004 11:51 am
Location: liverpool uk

RE: DXWnd + ArtyFix All-in-One for SPWAW

Post by proberts »

Riitaoja
many thanks for your continued support of this great game
User avatar
Riitaoja2
Posts: 208
Joined: Wed Feb 10, 2016 12:57 pm

RE: DXWnd + ArtyFix All-in-One for SPWAW

Post by Riitaoja2 »

This fix is now updated with the latest "v2_03_69_build" of Dxwnd that allows the user to adjust the CPU slow down values.
sami heimola
Posts: 421
Joined: Mon May 08, 2000 8:00 am
Location: kouvola finland

RE: DXWnd + ArtyFix All-in-One for SPWAW

Post by sami heimola »

Riitaoja, btw can you tell are you programmer/ICT professional/some other data wizard in real life[:'(]? I'm bit curious[;)]...
Post Reply

Return to “Steel Panthers World At War & Mega Campaigns”