Log in

View Full Version : War Cabinet 0.8.2 is available!


ErikCumps
January 4th, 2021, 06:34 PM
Hello fellow wargamers,

I am delighted to announce the release of War Cabinet version 0.8.2!

This releases adds the following new features:

* New feature - SP:WaW Mega Campaign support

It is now possible to track Mega Campaign savegames. Adding a Mega
Campaign savegame to a new, empty, dossier will allow War Cabinet to
track this file and the savegame will be automatically added to the dossier
whenever it changes.

Note: for this tracking to be effective, War Cabinet needs to be running
in the background while playing the Mega Campaign


Note: due to the nature of Mega Campaign gameplay, War Cabinet does
not allow battle and/or turn deletions from a Mega Campaign dossier.


* New feature - read-only mode

War Cabinet tracks the original savegame folder used with a dossier. When
a dossier is loaded for which the original savegame folder can no longer be
found, the dossier will be opened in read-only mode and it will not be
possible to make any additions or deletions to it.

This release adds the following improvements:

* Improvement - simplified game configuration

The game configuration in the preferences has been simplified. Only the
game folder must be configured, it is no longer necessary to configure both
the OOB and the savegames folders separately.

* Improvement - improved game configuration

The game configuration in the preferences has been improved. War Cabinet
now supports up to four different game configurations, each consisting of a
game type and a game folder. The configurations also have a name for
easier reference in the New dossier dialog box. Previously, War Cabinet
only supported a single game configuration for an SP:WaW game and
a single game configuration for a winSPWW2 game.

* Improvement - require dossier file overwrite confirmation

If you use the same name as an existing dossier file while saving a
dossier, you will be prompted to confirm overwriting the existing dossier.

This release has the following fixes:

* Fix - incorrect winSPWW2 battle losses reporting

The campaign and battle losses recorded in the winSPWW2 savegame were
incorrectly decoded.

* Fix - fixed some crashes and memory corruptions/leaks



This release is completely compatible with the previous 0.8.1 release,
and you can keep using your existing campaign dossiers.

The latest files can always be found here (https://github.com/ErikCumps/spwproject/releases/latest) (on GitHub), screenshots can be found here (https://github.com/ErikCumps/spwproject/blob/master/info/screenshots/LIST.md) (also on GitHub).

Enjoy!
Erik

KAreil
January 9th, 2021, 01:14 PM
Unfortunately Windows Defender quarantines your EXE:

Behavior:Win32/DefenseEvasion.WI!ml

...

file: D:\Games\WinSPWW2_WarCab_0.8.2\warcab.exe

process: pid:7708,ProcessStart:132546858195924774

ErikCumps
January 9th, 2021, 01:59 PM
Unfortunately Windows Defender quarantines your EXE:

Behavior:Win32/DefenseEvasion.WI!ml

...

file: D:\Games\WinSPWW2_WarCab_0.8.2\warcab.exe

process: pid:7708,ProcessStart:132546858195924774



Hi KAreil,

Yes, unfortunately these things happen from time to time.
Each time it's a false positive and time/energy lost.

If it helps, this is the link to the VirusTotal report:
https://www.virustotal.com/gui/file/60d61a4a867ff43062ebe904b423c11f0aeece8ec8b1800edc 37fe438c9477fa/detection

I am sure you can do the same for the DLL files was well.

Erik

KAreil
January 9th, 2021, 04:41 PM
Okay, I restored the file and created a new Dossier.

Then I'm trying to import a savegame near the end of the first battle in my campaign but it doesn't work, see attachment.

When I use the "Add standalone" button it presents me a list but as the savegames are from a campaign they cannot be selected.

ErikCumps
January 9th, 2021, 05:02 PM
Okay, I restored the file and created a new Dossier.

Then I'm trying to import a savegame near the end of the first battle in my campaign but it doesn't work, see attachment.

When I use the "Add standalone" button it presents me a list but as the savegames are from a campaign they cannot be selected.

Hmmm,

Part of the 0.8.2 changes was the new game configuration (game type and OOB/savegame folder locations), so it's possible I introduced a bug there. (wouldn't be the first time :rolleyes:)

The game folder mentioned in the first dialog box: does it exist on your system?

If it does exist, could you give a description of its content?

Also, feel free to send me a copy of your warcab.ini file as well as a copy of your dossier file.

Erik

KAreil
January 9th, 2021, 05:39 PM
Folder does exist, is a standard game folder although I did some changes in

icon0095.shp
icon0097.shp
Rnk16.dat


All data in attached 7z file.



EDIT:
The attached .INI for some reason has "Default=-1" (probably from my other tests) this generates an error.
With "Default=0" which is the configuration where the StandAlone button works it is still the same problem.

ErikCumps
January 9th, 2021, 06:21 PM
Folder does exist, is a standard game folder although I did some changes in

icon0095.shp
icon0097.shp
Rnk16.dat


All data in attached 7z file.



EDIT:
The attached .INI for some reason has "Default=-1" (probably from my other tests) this generates an error.
With "Default=0" which is the configuration where the StandAlone button works it is still the same problem.

Thanks for the data! :up:

I'll do some verifications and if there's a bug there, I'll find it.

Erik

ErikCumps
January 9th, 2021, 06:28 PM
Folder does exist, is a standard game folder although I did some changes in

icon0095.shp
icon0097.shp
Rnk16.dat


All data in attached 7z file.



EDIT:
The attached .INI for some reason has "Default=-1" (probably from my other tests) this generates an error.
With "Default=0" which is the configuration where the StandAlone button works it is still the same problem.

A screenshot of your preferences would also be useful,
unless you can confirm that nothing in that dialog box
is highlighted in red?

Erik

ErikCumps
January 9th, 2021, 06:43 PM
Folder does exist, is a standard game folder although I did some changes in

icon0095.shp
icon0097.shp
Rnk16.dat


All data in attached 7z file.



EDIT:
The attached .INI for some reason has "Default=-1" (probably from my other tests) this generates an error.
With "Default=0" which is the configuration where the StandAlone button works it is still the same problem.

Thanks for the data! :up:

I'll do some verifications and if there's a bug there, I'll find it.

Erik

KAreil,

I just did a reproduction test:

created a copy of my winSPWW2 game folder as D:\Games\WinSPWW2_13.0_WSS
created a D:\Games\WinSPWW2_WarCab_0.8.2\save folder
copied your empty dossier file in this save folder
copied your warcab.ini file in my warcab folder
executed warcab

But the dossier loaded fine without complaints, so I'm not sure what's going wrong at your side.

To find out more, could you please install the debug build: warcab_0.8.2_debug.zip?

When you try again with this build, some logfiles will be created in the warcab folder.
Could you please 7z these and send them to me? The files I'm interested in are:

SPWAWLIB.LOG
debug_console.log


Erik

ErikCumps
January 10th, 2021, 04:59 AM
Scratch that.

I was too quick yesterday (it was already quite late),
so I missed it then, but I can in fact reproduce this.

Mark this one down as a bug, I'll fix this as soon as possible.
And also the incomplete preferences error.

Erik

ErikCumps
January 10th, 2021, 05:22 AM
Scratch that.

I was too quick yesterday (it was already quite late),
so I missed it then, but I can in fact reproduce this.

Mark this one down as a bug, I'll fix this as soon as possible.
And also the incomplete preferences error.

Erik

Ok, I'm a little bit embarrased now, but this bug is somewhere in the top 5 of most silly bugs... :o

The good news is, it's found and fixed, you can expect a new warcab version soon!

Erik

KAreil
January 10th, 2021, 05:34 AM
No worries.
I'm in Technical Support myself and I was mentally preparing a list of tests I'd do now to narrow down the issue.

Looking forward to the new version, I wouldn't mind if you shared the details of the bug.

Thanks a lot for your outstanding work!

ErikCumps
January 10th, 2021, 05:54 PM
No worries.
I'm in Technical Support myself and I was mentally preparing a list of tests I'd do now to narrow down the issue.

Looking forward to the new version, I wouldn't mind if you shared the details of the bug.

Thanks a lot for your outstanding work!
War Cabinet 0.8.3, which fixes these bugs, has just been released!.

Issue #13, the incomplete preferences error you get when the Default setting in the warcab.ini file
is (-1), was just a leftover behavior of before the game config preference changes.

Issue #14, well, that was embarrasing, as I said. :o

One of the changes for War Cabinet 0.8.2 where some new error dialog boxes to show when trying to add
a savegame to a dossier.

Dossier files keep track of the original OOB folder when the first savegame was added to it. (this is actually
the OOB folder of the selected game config at the time the dossier was created)

By tracking this OOB folder, War Cabinet can always know where it should look for additional savegames
to add to the dossier, even when the game configs in the preferences have changed in the meantime.

But, if the corresponding game folder matching the OOB folder recorded in a dossier can not be found, it
becomes impossible to list savegames to add to the dossier and an error dialog box must be shown to
explain this.

Of course, new error dialog boxes need testing, and testing needs either an actual error condition or a
simulation of the error condition in the code.

Guess what, I added some debug code to simulate the error condition. The error was simulated, the dialog
box was shown, everything was good. Except... :o I forgot to remove the code that simulates the error!

And so, even if the error condition wasn't there, even if everything was fine, the debug code was executed
anyway, an error condition was simulated and an error dialog box was shown in all cases.

Erik

Second-MaƮtre Laurent
February 12th, 2022, 01:31 PM
Hi Erik!
It's great that now WarCab run correctly! Yeepeh!:clap::clap:
But I would like to print the roster or the OOB of a battle. How can I do that?
Thank's for your feedback.
So long.