Jump to content

(Modability) Save Games: Active Campaign Name set to FILE name instead of actual campaign name


Nifty255

Recommended Posts

  • 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
    1. Load any existing campaign
    2. Inspect via mod or debug logging `Game.SessionManager.ActiveCampaignName`
    3. 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 by Nifty255
Englishing
Link to comment
Share on other sites

×
×
  • Create New...