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
FOLLOW THIS BELOW
"C:\Program Files (x86)\Steam\steamapps\common\Don't Starve Together\mods\workshop-563754964\scripts\glaciers.lua"
(Copy and paste below on notepad) delete the previous lines or whatever is written there.
local utils = require("utils")
local function ImproveGlacier(inst)
local oldonwork = inst.components.workable.onwork
inst.components.workable.onwork = function(inst, worker, workleft, numworks)
--Allow ice to spawn while mining
utils.DropLootRandom(inst, "ice", .1)
oldonwork(inst, worker, workleft, numworks)
end
end
return ImproveGlacier
Need to use it along with a ICE Crafting Mod such as
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=577104313&searchtext=craft+ice
Would be amazing if there's a fix that doesn't require subscribers to mess with the codes.
Big fan of the mod if it wasn't for the mining ice crash. =((
Edit the Steam/Steamapps/Common/Don't Starve Together/mods/workshop-1397586934/scripts/glaciers.LUA file.
A reference to the onwork function is stored in the oldonwork variable. However, this function has evolved and now takes 4 parameters: inst, worker, workleft, numworks. We therefore need to modify both the signature of the function we wish to redefine, and the call to oldonwork.
My file now looks like this:
local utils = require("utils")
local function ImproveGlacier(inst)
local oldonwork = inst.components.workable.onwork
inst.components.workable.onwork = function(inst, worker, workleft, numworks)
--Allow ice to spawn while mining
utils.DropLootRandom(inst, "ice", .1)
oldonwork(inst, worker, workleft, numworks)
end
end
return ImproveGlacier
Mining ice causes crashing.