安装 Steam
登录
|
语言
繁體中文(繁体中文)
日本語(日语)
한국어(韩语)
ไทย(泰语)
български(保加利亚语)
Čeština(捷克语)
Dansk(丹麦语)
Deutsch(德语)
English(英语)
Español-España(西班牙语 - 西班牙)
Español - Latinoamérica(西班牙语 - 拉丁美洲)
Ελληνικά(希腊语)
Français(法语)
Italiano(意大利语)
Bahasa Indonesia(印度尼西亚语)
Magyar(匈牙利语)
Nederlands(荷兰语)
Norsk(挪威语)
Polski(波兰语)
Português(葡萄牙语 - 葡萄牙)
Português-Brasil(葡萄牙语 - 巴西)
Română(罗马尼亚语)
Русский(俄语)
Suomi(芬兰语)
Svenska(瑞典语)
Türkçe(土耳其语)
Tiếng Việt(越南语)
Українська(乌克兰语)
报告翻译问题
"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.