Zainstaluj Steam
zaloguj się
|
język
简体中文 (chiński uproszczony)
繁體中文 (chiński tradycyjny)
日本語 (japoński)
한국어 (koreański)
ไทย (tajski)
български (bułgarski)
Čeština (czeski)
Dansk (duński)
Deutsch (niemiecki)
English (angielski)
Español – España (hiszpański)
Español – Latinoamérica (hiszpański latynoamerykański)
Ελληνικά (grecki)
Français (francuski)
Italiano (włoski)
Bahasa Indonesia (indonezyjski)
Magyar (węgierski)
Nederlands (niderlandzki)
Norsk (norweski)
Português (portugalski – Portugalia)
Português – Brasil (portugalski brazylijski)
Română (rumuński)
Русский (rosyjski)
Suomi (fiński)
Svenska (szwedzki)
Türkçe (turecki)
Tiếng Việt (wietnamski)
Українська (ukraiński)
Zgłoś problem z tłumaczeniem
Anyone wondering how to fix the ice crashing your game, then listen here.
Step 1: open foulder, and follow this path SteamLibrary steamapps workshop content 322330 2551657430 scripts then boulders.lua open in notepad+ or notepad.
Step 2: change the ONLY lines of text that say
inst.components.workable.onwork = function(inst, worker, workleft)
Replace with inst.components.workable.onwork = function(inst, worker, workleft, numworks)
on all of them, make sure the top line of code is something like boulders.ImproveNitre = function(inst) or whatever material it is.
Step 3: replace
oldonwork(inst, worker, workleft) to oldonwork(inst, worker, workleft, numworks)
that should be it, if done wrong ask kevin781228.
credit goes to them for finding out the issue, all I really did was explain it better, make it clearer, and translate it.
【異常原因】
主要是對 onwork 函數的引用儲存在 oldonwork 變數中。 但這個函數似乎已經進化了,現在有 4 個參數:inst、worker、workleft、numworks。 因此,我們需要修改我們希望重新定義的函數的簽章以及對 oldonwork 的呼叫。
【解法】
編輯路徑:SteamLibrary\steamapps\workshop\content\322330\2551657430\scripts\boulders.lua
步驟一:
將所有的
inst.components.workable.onwork = function(inst, worker, workleft)
用
inst.components.workable.onwork = function(inst, worker, workleft, numworks)
取代
步驟二:
將所有的
oldonwork(inst, worker, workleft)
用
oldonwork(inst, worker, workleft, numworks)
取代
步驟三:
儲存檔案
之後重啟遊戲,讓存檔重抓新的MOD就可以正常運作了