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.
I understood that a reference to the onwork function is stored in the oldonwork variable. But it seems that 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
So the final file looks like this:
local utils = require("utils")
local function ImproveGlacier(inst)
end
return ImproveGlacier
Make sure you have a backup of your game made, because various iterations screwed up my game in various different ways and I've only given this fix a cursory test play. My game launches and I can mine glaciers without crashing; that's the extent of my testing.
crashes game when mining mini glacier
im trying to isolate a bug but it seems in multiplayer players cant see their hunger health or sanity being lost and then die instantly when it reaches the thresholds
can you verify that the hud is showing stat drain on your end in multiplayer? also i happen to use combined hud currently and have never noticed when running as the server host. only for secondary players
@demonology as for what demonology said its probably bs. because ive been running this mod for 3 years now without crashes related to it.
使得树木、巨石等资源源掉落更多。
目前允许人们配置数量的。
-施肥。默认是重新种植的植物只需要施肥一次。
-割草从草。默认为3个。
-从树苗上剪枝。默认为2。 -从芦苇中剪取芦苇。
-从芦苇上剪下芦苇。缺省值为2
-日志。默认为所有树木+1,高大的树木在此基础上再加1。
-树种。默认20%的几率让非矮树额外掉落一个松果、桦树、或小树枝果。
-收割的作物。默认在收割农场时额外掉落1个农作物。
也会增加(目前不可配置)。
-从巨石上掉落的岩石、燧石、硝石和金子。现在巨石在采矿时每次被击中都有机会掉落岩石、燧石和/或硝石。金块也是一样的,除了金块代替硝石,月球巨石有月球石代替硝石。
-冰川掉落的冰块。功能与巨石中的岩石相同。
-岩石有几率给玩家一个宝石,相当于从风滚草中获得宝石的几率。