Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
"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 ?
do you have that with the mod activated and normal maps ?
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()
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
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.