Установить 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.