Implement Weather Randomizer#38
Implement Weather Randomizer#38jmarmstrong1207 wants to merge 5 commits intoMaxWasUnavailable:feature/dedicated_reworkfrom
Conversation
|
Weather Randomizer made toggleable. Parses MissionDirectory in DedicatedServerConfig.json to mission folder. Still need to add configuration for each weather variable |
252124a to
8dae16a
Compare
|
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 |
|
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 |
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