Sid Meier's Civilization VI

Sid Meier's Civilization VI

Yet (not) Another Maps Pack
Poplicola 12 Sep, 2019 @ 8:56pm
Game Restart Crashes After 9/12/19 Update!!
After the latest update today on 9/12/19, I'm getting crashes restarting a game if the YNAMP MOD is activated.

Steps to duplicate:
--Activate the YNAMP MOD (it was the only active MOD on my computer for this test)

THEN:
--Restart any game (both YNAMP MOD-activated game or a normal non-MOD Gathering Storm game) from within an ongoing single player game.

OR

--Attempt to exit to main menu from within an ongoing single player game (both YNAMP MOD-activated game or a normal non-MOD Gathering Storm game).

Since the update of 9/12/19, as long as the YNAMP MOD is active, doing either of the above, will cause a crash out to Windows. Even if I start Gathering Storm, and just use the Play Now mode, I will get a crash out to Windows when trying to restart a game if the YNAMP MOD is active.

The crashes will stop if I disable the MOD.

I have verified the integrity of the game files, as well as uninstalled and reinstalled CIV 6 and Gathering Storm. This did not solve the issue.

Any ideas Gedemon? Are there any logs or files I can provide to help out?
Last edited by Poplicola; 12 Sep, 2019 @ 10:42pm
< >
Showing 1-15 of 22 comments
Gedemon  [developer] 13 Sep, 2019 @ 7:37am 
can you try to remove the line
"Automation.RemoveInputHandler( OnInputHandler )"

in the Cleaning() function near the end of the file here: \steamapps\workshop\content\289070\871861883\Scripts\YnAMP_InGame.lua

and report back please ?
V 13 Sep, 2019 @ 8:35am 
Still crash here after removing that line
Last edited by V; 13 Sep, 2019 @ 8:36am
Gedemon  [developer] 13 Sep, 2019 @ 9:48am 
no idea then, I have had that time of crashes in the past and always thought it was related to the map sizes, not the mod itself.

do you have that with the mod activated and normal maps ?
V 13 Sep, 2019 @ 10:05am 
yes still crash with normal maps
Last edited by V; 13 Sep, 2019 @ 10:06am
Gedemon  [developer] 13 Sep, 2019 @ 1:03pm 
Just done 3 restarts in a row without crash, after removing that line.
Poplicola 13 Sep, 2019 @ 7:28pm 
Hi Gedemon,

I removed the line you mentioned.

I then opened Civ6 with the mod active and hit Play Now. Once the game started, I hit restart. The game crashed to Windows. I repeated two more times, but all three times the game crashed to Windows.

I then opened Civ6 and disabled the YNAMP mod and hit Play Now. Once the game started, I hit restart. I was able to successfully restart a game. I repeated two more times, and all three times the game successfully restarted with no issues, as long as the YNAMP mod was deactivated.

In order to confirm I followed the instructions properly, my file YnAMP_inGame.LUA file now ends with the following code. I'm pasting it to make sure I did what you suggested correctly.

Please let me know if there are any logs I can provide you, or any further testing I could help out with. I would be happy to help.

--=====================================================================================--
-- Cleaning on exit
--=====================================================================================--
function Cleaning()
print ("Cleaning YnAMP table...")
--
ExposedMembers.YnAMP = nil
print ("Cleaning InputHandler...")
end
Events.LeaveGameComplete.Add(Cleaning)
LuaEvents.RestartGame.Add(Cleaning)

function Initialize()
StartLoadingTextUpdate()
end
Initialize()


Last edited by Poplicola; 13 Sep, 2019 @ 7:29pm
Gedemon  [developer] 13 Sep, 2019 @ 7:41pm 
can you try with the standard ruleset (ie not gathering storm or R&F) please ?
V 13 Sep, 2019 @ 9:18pm 
same crash as before with the standard ruleset
Last edited by V; 13 Sep, 2019 @ 9:18pm
Poplicola 14 Sep, 2019 @ 1:19am 
In order to make sure the standard ruleset was in use, I went to single player game, create game, and chose standard ruleset, and started a game. Once in game I click Restart. However if the YNAMP mod is activated, I continue to get crashes out to windows upon restarting that game.
Gedemon  [developer] 14 Sep, 2019 @ 3:57am 
Thanks for the report.

I won't be able to try to reproduce until next week I'm afraid, can you try to also remove the line with:
Automation.SetInputHandler( OnInputHandler )

TIA
Gedemon  [developer] 14 Sep, 2019 @ 3:58am 
(same file)
V 14 Sep, 2019 @ 4:09am 
I can confirm that it works now, ty Gedemon!
Last edited by V; 14 Sep, 2019 @ 4:09am
Gedemon  [developer] 14 Sep, 2019 @ 6:19am 
OK, thanks
Poplicola 14 Sep, 2019 @ 1:41pm 
Hi Gedemon,

That worked!

I removed this line from YnAMP_inGame.LUA:
Automation.SetInputHandler( OnInputHandler )

After doing so I was able to restart games on both the Play Now mode, and a YNAMP map multiple times with no crashes.

I then re-added this line back to the YnAMP_inGame.LUA file which we tried removing earlier as part of the troubleshooting:
"Automation.RemoveInputHandler( OnInputHandler )"

After re-adding this line I was still able to restart both the Play Now and YNAMP games with no crashes.

Therefore, the only line that needs to be removed from the YnAMP_inGame.LUA file to fix the restart crash issue is this line:

Automation.SetInputHandler( OnInputHandler )

Thank you for your help! Please let me know if you need help troubleshooting any other errors with this MOD. I love it and I'm happy to spend some time helping you with it.
Last edited by Poplicola; 14 Sep, 2019 @ 1:41pm
Poplicola 14 Sep, 2019 @ 11:14pm 
Are you able to play late into a game (turn 350+ on a Giant Earth map)?
< >
Showing 1-15 of 22 comments
Per page: 1530 50