Skip to content

Fix QuickStart#905

Merged
ajhalme merged 1 commit intoC7-Game:Developmentfrom
ajhalme:quickstart
Mar 6, 2026
Merged

Fix QuickStart#905
ajhalme merged 1 commit intoC7-Game:Developmentfrom
ajhalme:quickstart

Conversation

@ajhalme
Copy link
Contributor

@ajhalme ajhalme commented Mar 3, 2026

Looks like Quick Start broke during the base game / save file consolidation effort.

Git bisect suggests it was one of these commits:
19aada8
42c3696

This patch adds a dedicated class that does some default inits, enough to launch a Quick Start game.

@stavrosfa
Copy link
Contributor

That's tottaly fine as a temp setup, I don't know if @esbudylin is working on something similar at the moment, or it's fine to merge

Copy link
Contributor

@esbudylin esbudylin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, with the exception of this minor comment. Feel free to merge.


globalState.SaveGame = save;

Civilization player = save.Civilizations.FirstOrDefault(x => x.name == "Netherlands") ?? save.Civilizations[1];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since these strings ("Netherlands" and "Regent") are also used as default values in the PlayerSetup class, should we extract them into constants?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I considered constants, but actually, what we want to do is make Quick Start conform to the original.

I was reading the manual again and noticed that Quick Start is supposed to run a game with the same parameters as what was set by the user when a New Game was last creates. So this setup information should be stored in a file somewhere. This file can then be initially set with some defaults, which may or may not not match the New Game defaults.

I'll open a separate issue for this behaviour, I think it would be useful for testing.

@ajhalme ajhalme merged commit c89cd13 into C7-Game:Development Mar 6, 2026
3 checks passed
@ajhalme ajhalme deleted the quickstart branch March 6, 2026 00:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants