Skip to content

Remove globals from scenario index#3276

Merged
AaronVanGeffen merged 3 commits intoOpenLoco:masterfrom
duncanspumpkin:removeGlobals3
Oct 14, 2025
Merged

Remove globals from scenario index#3276
AaronVanGeffen merged 3 commits intoOpenLoco:masterfrom
duncanspumpkin:removeGlobals3

Conversation

@duncanspumpkin
Copy link
Copy Markdown
Contributor

@duncanspumpkin duncanspumpkin commented Sep 26, 2025

A little bit of rework so should test this a little make sure i haven't broken anything.

Fix #2797

@AaronVanGeffen AaronVanGeffen modified the milestones: v25.09, v25.09+ Sep 29, 2025
@AaronVanGeffen AaronVanGeffen modified the milestones: v25.10, v25.10+ Oct 9, 2025
Copy link
Copy Markdown
Member

@AaronVanGeffen AaronVanGeffen left a comment

Choose a reason for hiding this comment

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

Building the scenario index seems to be working fine, but something is going wrong writing it to file. Other than the magic numbers at the beginning, scores.dat is all zeros. Oddly enough, the file seems to be at the expected length, though (same size as the file I had before).

Screenshot 2025-10-13 at 13 10 13

@duncanspumpkin
Copy link
Copy Markdown
Contributor Author

Okay think this works now

Copy link
Copy Markdown
Contributor

@ZehMatt ZehMatt left a comment

Choose a reason for hiding this comment

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

No objections on the code, haven't tested this.

Copy link
Copy Markdown
Member

@AaronVanGeffen AaronVanGeffen left a comment

Choose a reason for hiding this comment

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

Looks like it's all working correctly now!

@AaronVanGeffen AaronVanGeffen enabled auto-merge (squash) October 14, 2025 08:54
@AaronVanGeffen AaronVanGeffen merged commit 102e44c into OpenLoco:master Oct 14, 2025
11 checks passed
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.

Single player scenario scores reset after creating new scenario

3 participants