安装 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(越南语)
Українська(乌克兰语)
报告翻译问题








(For example through AddPrefabPostInit? I am not very skilled in that but want to try if it is possible)
That goes in modmain.lua. Just put whatever mod prefab you're adjusting in place of "shovel" there (and the appropriate tag for the right strength). You can find the exact name for both tags at the bottom of the main mod page if you need them.
Hope that helps!
It looks like this patching method doesn't work well. I patched cane like this and it worked fine. But sometimes when switching from cane to lantern or other castable weapon the client crashes:
Also it constantly spamming this in client logs:
Any tips on how to fix this? I see that the problem is that id of my action component is nil but I don't even have any components in that patch mod
UPD: Asked on klei discord server and got a hint that it is mod UI hoverer crashes, probably because of update function.
Tried to comment all patches and leaving only mana per hit function. It stopped spam of "out of sync" and probably crashes (they are inconsistent). Commenting mana function and uncommenting patches brings out of sync spam back.
UPD2: Disabling all mods from spam section leaves only this, but it still spams
The way I patched weapons:
Error message is always the same:
It keeps spamming this error untill log file is about 11MB and then crashes with this message:
Crash report on pastebin (I removed a lot of repeating spam lines so it could fit in allowed size):
https://pastebin.com/rSLWkGpy
I know how it sounds, but it looks like this crash only appears with large amount of mods present, specifically mods that do any AddComponentAction.
I tried everything on my part, but even having single AddPrefabPostInit function and nothing else in modmain will crash the client if there are other "dangerous" mods.