Sid Meier's Civilization VI

Sid Meier's Civilization VI

Yet (not) Another Maps Pack
Poplicola 2019 年 9 月 12 日 下午 8:56
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?
最后由 Poplicola 编辑于; 2019 年 9 月 12 日 下午 10:42
< >
正在显示第 1 - 15 条,共 22 条留言
Gedemon  [开发者] 2019 年 9 月 13 日 上午 7:37 
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 2019 年 9 月 13 日 上午 8:35 
Still crash here after removing that line
最后由 V 编辑于; 2019 年 9 月 13 日 上午 8:36
Gedemon  [开发者] 2019 年 9 月 13 日 上午 9:48 
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 2019 年 9 月 13 日 上午 10:05 
yes still crash with normal maps
最后由 V 编辑于; 2019 年 9 月 13 日 上午 10:06
Gedemon  [开发者] 2019 年 9 月 13 日 下午 1:03 
Just done 3 restarts in a row without crash, after removing that line.
Poplicola 2019 年 9 月 13 日 下午 7:28 
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()


最后由 Poplicola 编辑于; 2019 年 9 月 13 日 下午 7:29
Gedemon  [开发者] 2019 年 9 月 13 日 下午 7:41 
can you try with the standard ruleset (ie not gathering storm or R&F) please ?
V 2019 年 9 月 13 日 下午 9:18 
same crash as before with the standard ruleset
最后由 V 编辑于; 2019 年 9 月 13 日 下午 9:18
Poplicola 2019 年 9 月 14 日 上午 1:19 
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  [开发者] 2019 年 9 月 14 日 上午 3:57 
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  [开发者] 2019 年 9 月 14 日 上午 3:58 
(same file)
V 2019 年 9 月 14 日 上午 4:09 
I can confirm that it works now, ty Gedemon!
最后由 V 编辑于; 2019 年 9 月 14 日 上午 4:09
Gedemon  [开发者] 2019 年 9 月 14 日 上午 6:19 
OK, thanks
Poplicola 2019 年 9 月 14 日 下午 1:41 
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.
最后由 Poplicola 编辑于; 2019 年 9 月 14 日 下午 1:41
Poplicola 2019 年 9 月 14 日 下午 11:14 
Are you able to play late into a game (turn 350+ on a Giant Earth map)?
< >
正在显示第 1 - 15 条,共 22 条留言
每页显示数: 1530 50