Don't Starve Together

Don't Starve Together

More Drops
94 Comments
nathandrake208 21 Oct, 2024 @ 6:11pm 
this fixes the game crashing entirely when mining ice
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
Kenkire 29 Sep, 2024 @ 2:45pm 
Wow. Crashing when mining ice. Rude. Any fix yet?
Zizo 6 Sep, 2024 @ 4:32am 
So this Mod is the one that crahes game when mine ICE!!!

Need to use it along with a ICE Crafting Mod such as
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=577104313&searchtext=craft+ice
RedMaza 21 Aug, 2024 @ 3:32am 
Game still crashes when mining 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. =((
ŁorÐ Dvořák 23 Jul, 2024 @ 4:39pm 
LuiJua117 3/out./2023 às 17:02 
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
JonyDany12 28 Jun, 2024 @ 5:07pm 
was gonna comment how ice causes crashing, but i see i ain't the only one
原批 20 Jun, 2024 @ 7:22am 
挖冰会导致崩溃:steamfacepalm:
Mining ice causes crashing.
Mr.Blonde 15 Jun, 2024 @ 11:08pm 
краш сервера при сборе льда
Mlodyowiec 6 Jun, 2024 @ 7:38am 
Just remove lines about the glacier from the mod
Iozoiioinolosabiaz 4 Jun, 2024 @ 9:11pm 
Mining Ice causes crashes
AundeeDCat 20 May, 2024 @ 5:26pm 
Mining ice causes crashing.
Mago Comunista 7 Apr, 2024 @ 1:14pm 
mining ice still crashing
Dielipez 3 Apr, 2024 @ 4:18am 
im gay
Ddoodle 9 Feb, 2024 @ 9:30am 
아니 크래시 댓잔아여 ㅡㅡ
CHAN KRUM 1 Jan, 2024 @ 3:14pm 
mining ice causes crash (still)
waterbang 4 Dec, 2023 @ 6:13am 
挖冰导致服务器崩溃
Chupucchino 28 Oct, 2023 @ 9:40am 
mining ice crashs the server
LagerGorgon1 16 Oct, 2023 @ 9:21pm 
fix bug when mining ice please
nagamasa Мфгд 13 Oct, 2023 @ 11:28am 
fix bug of glaciar.lua
PizzaurusRex 6 Oct, 2023 @ 7:11pm 
@Player48 check the fix that Simon Made it works.
Greg -TPF- 5 Oct, 2023 @ 4:18pm 
@Simon thanks, the fix still works
Player48 3 Oct, 2023 @ 11:39am 
When mining ice, it will be disconnected from the server.
PizzaurusRex 19 Sep, 2023 @ 7:02pm 
@Simon Thanks it works :D
Simon 15 Sep, 2023 @ 4:59pm 
I also tried to debug the mod so that the game wouldn't crash when I mined glaciers. Like Nerdygamer1, I wanted to edit the Steam/Steamapps/Common/Don't Starve Together/mods/workshop-563754964/scripts/glaciers.LUA file.

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
Nixe 2 Sep, 2023 @ 4:10pm 
Start the game, sometimes that does it, (at least it did that for me)
PizzaurusRex 2 Sep, 2023 @ 3:23pm 
@Nerdygamer1 I can't find the file folder, i mean there's a list of other mod IDs, but there's no 563754964 on my mod folder i don't know why.
れPURE い.億KiotheCloud四 2 Sep, 2023 @ 8:47am 
crash glacier
Nixe 29 Aug, 2023 @ 8:13am 
Hope the developer sees what you have done so we can get this fixed :/ This is the only mod i know that adds more drops so nicely.
Nerdygamer1 22 Aug, 2023 @ 2:28pm 
So, like others here, my game was also crashing when breaking a glacier down to a smaller stage. After much experimentation, I appear to have fixed this by going to C:/ProgramFiles(x86)/Steam/Steamapps/Common/Don't Starve Together/mods/workshop-563754964/scripts and opening the glaciers.LUA file with notepad++. After making a backup copy of that file, I deleted everything under the line "local function ImproveGlacier(inst)," but above the line "end"

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.
มันม่วง 18 Aug, 2023 @ 8:55am 
Fix the mod When digging ice, the game crashes.
Plaifah 18 Aug, 2023 @ 8:21am 
crash when mining ice, can you fix it?
SadisticStrike 11 Aug, 2023 @ 11:19am 
It actually works yes, but like how everyone is saying...
crashes game when mining mini glacier
Stupid Caracal 10 Aug, 2023 @ 7:05pm 
game crash when mining mini glacier
KAIKROOK 10 Aug, 2023 @ 5:01am 
crash when mining mini glacier
HoschakaL 20 Apr, 2023 @ 8:59pm 
greate. it s still working. thank you...
Marshadow 4 Dec, 2022 @ 12:56am 
YES 3x SERVER
shannonrakes99 22 Nov, 2022 @ 5:56pm 
can this be updated so we can use it ?
geniusthemaster 8 May, 2022 @ 12:00pm 
this might be an issue from another mod but..

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.
Demonology 10 Nov, 2021 @ 12:36pm 
Unfortunatelly this mod crashes my game One of my favourite mods playng alone. Any chance for update?
Curious Fox 15 Sep, 2021 @ 1:11am 
How the heck does this mod make the debugger mod (Too Many Items Plus) crash? This is the only source of it.
Jarl Ballin 16 Aug, 2021 @ 4:33pm 
Works fine for me. Obviously doesnt work for the new Reap What You Sow farming, but it certainly doesn't crash.
Felipe Smith 19 Jun, 2021 @ 11:07am 
Doesn't work anymore, it crash the game, need to be update
Homer 9 Feb, 2021 @ 7:38pm 
DeepL翻译:
使得树木、巨石等资源源掉落更多。

目前允许人们配置数量的。
-施肥。默认是重新种植的植物只需要施肥一次。
-割草从草。默认为3个。
-从树苗上剪枝。默认为2。 -从芦苇中剪取芦苇。
-从芦苇上剪下芦苇。缺省值为2
-日志。默认为所有树木+1,高大的树木在此基础上再加1。
-树种。默认20%的几率让非矮树额外掉落一个松果、桦树、或小树枝果。
-收割的作物。默认在收割农场时额外掉落1个农作物。

也会增加(目前不可配置)。
-从巨石上掉落的岩石、燧石、硝石和金子。现在巨石在采矿时每次被击中都有机会掉落岩石、燧石和/或硝石。金块也是一样的,除了金块代替硝石,月球巨石有月球石代替硝石。
-冰川掉落的冰块。功能与巨石中的岩石相同。
-岩石有几率给玩家一个宝石,相当于从风滚草中获得宝石的几率。
Uzair 31 Jan, 2021 @ 11:34am 
Doesn't work after the last update
FawZer 27 Sep, 2020 @ 2:38am 
(y)
Noro 15 Aug, 2020 @ 2:38am 
i just think crop can only made 1-2 seeds. this is very unreasonable, yeah this is configurable
大香蕉 13 Aug, 2020 @ 10:13pm 
有什么用
Saro 24 Jun, 2020 @ 3:54am 
Some one update this! :(
Randoe YT 13 Jun, 2020 @ 12:28pm 
works for me their latino. it gives me about 5 of any crop. and anyone know if it works with lureplant farms.
LatinoGringo 3 Apr, 2020 @ 4:59pm 
This mod doesnt seem to work anymore when it comes to the crops. ive tried both the advanced farm mod and the regular improved farm and neither give extra crops