Skip to content

Implement Weather Randomizer#38

Open
jmarmstrong1207 wants to merge 5 commits intoMaxWasUnavailable:feature/dedicated_reworkfrom
jmarmstrong1207:weather-randomizer
Open

Implement Weather Randomizer#38
jmarmstrong1207 wants to merge 5 commits intoMaxWasUnavailable:feature/dedicated_reworkfrom
jmarmstrong1207:weather-randomizer

Conversation

@jmarmstrong1207
Copy link
Copy Markdown

This service makes a prefix patch for GetNext(), where it will peak the next mission in the queue, then modify the corresponding json file for a randomized weather experience. This will require notice of the user that it will be modifying the original properties and a backup may be needed if they prefer to keep the original values.

Of course, still requires #28

TODO: Make this toggleable via config

@jmarmstrong1207 jmarmstrong1207 marked this pull request as draft January 4, 2026 09:03
@jmarmstrong1207 jmarmstrong1207 marked this pull request as ready for review January 6, 2026 23:22
@jmarmstrong1207
Copy link
Copy Markdown
Author

jmarmstrong1207 commented Jan 6, 2026

Weather Randomizer made toggleable. Parses MissionDirectory in DedicatedServerConfig.json to mission folder.

Still need to add configuration for each weather variable

@bekkos
Copy link
Copy Markdown

bekkos commented Jan 12, 2026

I managed to rewrite some of this so that it does not edit the actual JSON files and also works on the default «BuiltIn» missions. Will post code here or make a PR when I have time. Which ever works out the best

@jmarmstrong1207
Copy link
Copy Markdown
Author

I managed to rewrite some of this so that it does not edit the actual JSON files and also works on the default «BuiltIn» missions. Will post code here or make a PR when I have time. Which ever works out the best

i'd make a separate PR unless you're able to edit my branch directly. This sounds promising and outright better

@jmarmstrong1207
Copy link
Copy Markdown
Author

Randomizer has been improved. It doesn't modify the json directly now, and instead modifies the mission object in a postfix patch for MissionSaveLoad.TryLoad()

Courtesy of Pauel

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.

2 participants