Adventure (campaign) save feature implementation#4
Conversation
* Save campaign * Add planetsVisited to PlayerCommander* classes * Fix restoration of special items * Refactor * (Re)introduce hardmode restoration
|
Huh, this is a nice surprise! At first glance the changes look okay too; I just have a couple questions:
|
|
Hi, thanks for comments, I'll answer the questions as best as I can:
I could change the target framework to .NET 4.7.2 (reflected in ee3dedd ) and build the executable. The new executable (Flotilla.exe) worked without a problem.
I tried building the whole project with FNA master branch and 25.04 tag, and the build was successful for both cases.
I downloaded the FNA daily build binary from https://github.com/FNA-XNA/fnalibs-dailies/actions/runs/14425285573 and replaced dlls with them, then I could run Flottila.exe without a problem. Looks like it's working (may have to take time to be sure, though). Cheers, |
|
That all looks right to me, the old exe probably needs new fnalibs to work correctly. Will review hopefully this week, thanks! |
|
Update: successfully finished a few adventures in hardcore mode. Found out a few additional properties to correctly calculate final score and to enable smite across the saves. |

This is my attempt to implement adventure (campaign save) feature.
Build Environment
The project was built with Microsoft Visual Studio Community 2022 using .NET Framework 4.8.
Testing
The executable was tested on Steam. I could finish several (non-hardcore mode) campaigns with this version, and currently I'm checking campaigns with hardcore mode.
Modification of Project Files
I tried to avoid modifying project files (
.csproj) and auto-generated resource files in C# (*.Designer.cs) as best as possible, but some changes coming from the difference in the build environment versions has gotten into the changeset, sorry.Additional Changes
A
.gitignorefile was added to the repository. I'd like you to check the content is appropriate for the development in the future.Let me know if further adjustments or clarifications are needed!