View Revisions: Issue #23531

Summary 0023531: Exception with "Custom Start" button if mods or expansions are disabled.
Revision Aug 10, 2020 12:51 pm by Lord Of Nothing
Description The short version: Disabling previously enabled mods or expansions causes the following error message and prevents me from creating custom start games.

Debug log attached for all this, but the main message here is this one, it's identical every time as far as I can see.
8/10/2020 11:06:16 AM Error on button click: System.NullReferenceException: Object reference not set to an instance of an object
  at Arcen.AIW2.Core.World_AIW2.GenerateMap (Arcen.AIW2.Core.Tutorial TutOrNullToUse) [0x000c6] in <dc82ba80a29b499c890fb26ce57c62f1>:0
  at Arcen.AIW2.Core.Engine_AIW2.LoadGameNoCampaignNameSet (System.String FullSaveGameName, Arcen.AIW2.Core.StartWorldSource1 StartSource1, Arcen.AIW2.Core.StartWorldSource2 StartSource2) [0x00361] in <dc82ba80a29b499c890fb26ce57c62f1>:0
  at Arcen.AIW2.External.Window_MainMenu+bCustomStartGame.StartCustomGame (System.Boolean StartInSinglePlayer) [0x00078] in <2bceaf7f23c64d2aa2eefa99836f9f51>:0
  at Arcen.AIW2.External.Window_MainMenu+bCustomStartGame.HandleClick_Subclass (MouseHandlingInput input) [0x00001] in <2bceaf7f23c64d2aa2eefa99836f9f51>:0
  at Arcen.AIW2.External.ButtonAbstractBase.HandleClick (MouseHandlingInput input) [0x0000f] in <2bceaf7f23c64d2aa2eefa99836f9f51>:0
  at Arcen.Universal.ArcenUI_Button.OnClick (UnityEngine.EventSystems.PointerEventData eventData) [0x00029] in <6e421d499082435eaafed7b80f3211bc>:0
  at Arcen.Universal.ArcenUI_Button.OnPointerClick (UnityEngine.EventSystems.PointerEventData eventData) [0x00012] in <6e421d499082435eaafed7b80f3211bc>:0

The full story here:
I am currently having an issue with custom games - specifically, clicking on the "Custom Start" option in the main menu causes the error message shown, and nothing further happens.

It started as being that I get the error unless I have Spire Railgun Shop enabled, in which case there were no issues.

I was wondering if this was caused by the previous game having been played and completed with SRS enabled - This wasn't too much of a problem, since SRS is entirely player-elective, but I then started testing further - the same issue shows up with SRS enabled, but with The Spire Rises disabled, though this could be due to SRS's dependencies on TSR. However, the same issue also occurred with both TSR and SRS disabled - custom start still does not work, but in this case It's unclear if it's only the absence of SRS that is causing the issue, of course.) So it's certainly making it impossible to disable TSR for me, and might be an issue with disabling mods/expansions more generally. Further testing needed:

What did succeed in resolving part of the issue was deleting _Internal in my PlayerData\Save folder, (after having already disabled the mod in game and allowing the game to close), and letting it create a new one when starting the game again. This got me to a situation where SRS being enabled was no longer required to use the new game button, but that was with TSR still enabled.

This in turn allowed me to test disabling TSR in isolation, from a situation in which I knew SRS was not involved and, sure enough, the same error appears again if I disable TSR. In this case, however, deleting _Internal in my PlayerData\Save folder does not fix the issue.
Revision Aug 10, 2020 6:26 am by Lord Of Nothing
Description The short version: Disabling previously enabled mods or expansions causes the following error message and prevents me from creating custom start games.

Debug log attached for all this, but the main message here is this one, it's identical every time as far as I can see.
8/10/2020 11:06:16 AM Error on button click: System.NullReferenceException: Object reference not set to an instance of an object
  at Arcen.AIW2.Core.World_AIW2.GenerateMap (Arcen.AIW2.Core.Tutorial TutOrNullToUse) [0x000c6] in <dc82ba80a29b499c890fb26ce57c62f1>:0
  at Arcen.AIW2.Core.Engine_AIW2.LoadGameNoCampaignNameSet (System.String FullSaveGameName, Arcen.AIW2.Core.StartWorldSource1 StartSource1, Arcen.AIW2.Core.StartWorldSource2 StartSource2) [0x00361] in <dc82ba80a29b499c890fb26ce57c62f1>:0
  at Arcen.AIW2.External.Window_MainMenu+bCustomStartGame.StartCustomGame (System.Boolean StartInSinglePlayer) [0x00078] in <2bceaf7f23c64d2aa2eefa99836f9f51>:0
  at Arcen.AIW2.External.Window_MainMenu+bCustomStartGame.HandleClick_Subclass (MouseHandlingInput input) [0x00001] in <2bceaf7f23c64d2aa2eefa99836f9f51>:0
  at Arcen.AIW2.External.ButtonAbstractBase.HandleClick (MouseHandlingInput input) [0x0000f] in <2bceaf7f23c64d2aa2eefa99836f9f51>:0
  at Arcen.Universal.ArcenUI_Button.OnClick (UnityEngine.EventSystems.PointerEventData eventData) [0x00029] in <6e421d499082435eaafed7b80f3211bc>:0
  at Arcen.Universal.ArcenUI_Button.OnPointerClick (UnityEngine.EventSystems.PointerEventData eventData) [0x00012] in <6e421d499082435eaafed7b80f3211bc>:0

The full story here:
I am currently having an issue with custom games - specifically, clicking on the "Custom Start" option in the main menu causes the error message shown, and nothing further happens.

It started as being that I get the error unless I have Spire Railgun Shop enabled, in which case there were no issues.

I was wondering if this was caused by the previous game having been played and completed with SRS enabled, thus raising the question: If I start a Quick Start (Which is working correctly) game without it enabled, and make a save so it is the most recent campaign, will that sidestep the issue? The answer is no.

This wasn't too much of a problem, since SRS is entirely player-elective, but I then started testing further - the same issue shows up with SRS enabled, but with The Spire Rises disabled, though this could be due to SRS's dependencies on TSR. However, the same issue also occurred with both TSR and SRS disabled - custom start still does not work, but in this case It's unclear if it's only the absence of SRS that is causing the issue, of course.) So it's certainly making it impossible to disable TSR for me, and might be an issue with disabling mods/expansions more generally. Further testing needed:

What did succeed in resolving part of the issue was deleting _Internal in my PlayerData\Save folder, (after having already disabled the mod in game and allowing the game to close), and letting it create a new one when starting the game again. This got me to a situation where SRS being enabled was no longer required to use the new game button, but that was with TSR still enabled.

This in turn allowed me to test disabling TSR in isolation, from a situation in which I knew SRS was not involved and, sure enough, the same error appears again if I disable TSR. In this case, however, deleting _Internal in my PlayerData\Save folder does not fix the issue.

Debug Log

Number Execution time Caller Event
PLUGIN-10SMFAuth SMFAuth.php:55 SMFAuthPlugin->auto_login()SMFAuth Initializing
PLUGIN-20SMFAuth SMFAuth.php:59 SMFAuthPlugin->auto_login()SMF Settings loaded from /home/arcengames/public_html/forums
PLUGIN-30SMFAuth SMFAuth.php:147 SMFAuthPlugin->decodeCookie()Cookie doesn't exist! Is the user logged into the forums?