Nifty255 Posted March 6, 2023 Share Posted March 6, 2023 (edited) KSP Version: 0.1.0.20892 Operating System: Windows 10 latest CPU / GPU: Intel 9700KF / MSI Gaming X Trio RTX 3070 Description of the bug. Expected Behavior The string `Game.SessionManager.ActiveCampaignName` within a mod should be the campaign's name (such as "Nifty Space Program") Observed Behavior The string`Game.SessionManager.ActiveCampaignName` within a mod is the file name (such as "autosave_1") Steps to Replicate Load any existing campaign Inspect via mod or debug logging `Game.SessionManager.ActiveCampaignName` Note the string contains the file name loaded (such as "autosave_1") rather than the player-set campaign name (such as "Nifty Space Program") Fixes / Workarounds: None known at this time. A list of ALL mods: Draft Your Viewers 2 (Link to relevant code: https://github.com/Nifty255/DraftYourViewers2/blob/e99ddf695f8f303e5db1bd726b2d0a5613ee5010/Mod Code/Draft Your Viewers 2/SceneChangeListener.cs#L49) Other Notes / Screenshots / Log Files: Log line from the mod: [LOG 20:06:40.900] [MOD | Draft Twitch Viewers] [INFO] | HECC, a campaign with the path "<AppData Folder>/LocalLow/Intercept Games/Kerbal Space Program 2\Saves\SinglePlayer\autosave_3" loaded! EDIT: After logging `Game.SessionManager.ActiveCampaignName` frame-by-frame, it appears the property takes on the wrong value starting from this log line: [LOG 21:03:59.828] [System] Initializing Session Data completed in 0.0088s. Until this log line: [LOG 21:04:18.372] [Debug] [SaveLoadManager]: Loading succeeded [19.82s]. Edited March 6, 2023 by Nifty255 Englishing Link to comment Share on other sites More sharing options...
Recommended Posts