Installer Steam
log på
|
sprog
简体中文 (forenklet kinesisk)
繁體中文 (traditionelt kinesisk)
日本語 (japansk)
한국어 (koreansk)
ไทย (thai)
Български (bulgarsk)
Čeština (tjekkisk)
Deutsch (tysk)
English (engelsk)
Español – España (spansk – Spanien)
Español – Latinoamérica (spansk – Latinamerika)
Ελληνικά (græsk)
Français (fransk)
Italiano (italiensk)
Bahasa indonesia (indonesisk)
Magyar (ungarsk)
Nederlands (hollandsk)
Norsk
Polski (polsk)
Português (portugisisk – Portugal)
Português – Brasil (portugisisk – Brasilien)
Română (rumænsk)
Русский (russisk)
Suomi (finsk)
Svenska (svensk)
Türkçe (tyrkisk)
Tiếng Việt (Vietnamesisk)
Українська (ukrainsk)
Rapporter et oversættelsesproblem









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://gtm.steamproxy.vip/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.