Don't Starve Together

Don't Starve Together

More Drops
94 Comments
nathandrake208 Oct 21, 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 Sep 29, 2024 @ 2:45pm 
Wow. Crashing when mining ice. Rude. Any fix yet?
Zizo Sep 6, 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://steamcommunity.com/sharedfiles/filedetails/?id=577104313&searchtext=craft+ice
RedMaza Aug 21, 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 Jul 23, 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
Madcap Jun 28, 2024 @ 5:07pm 
was gonna comment how ice causes crashing, but i see i ain't the only one
原批 Jun 20, 2024 @ 7:22am 
挖冰会导致崩溃:steamfacepalm:
Mining ice causes crashing.
Mr.Blonde Jun 15, 2024 @ 11:08pm 
краш сервера при сборе льда
Mlodyowiec Jun 6, 2024 @ 7:38am 
Just remove lines about the glacier from the mod
Iozoiioinolosabiaz Jun 4, 2024 @ 9:11pm 
Mining Ice causes crashes
AundeeDCat May 20, 2024 @ 5:26pm 
Mining ice causes crashing.
Mago Comunista Apr 7, 2024 @ 1:14pm 
mining ice still crashing
Dielipez Apr 3, 2024 @ 4:18am 
im gay
Ddoodle Feb 9, 2024 @ 9:30am 
아니 크래시 댓잔아여 ㅡㅡ
CHAN KRUM Jan 1, 2024 @ 3:14pm 
mining ice causes crash (still)
waterbang Dec 4, 2023 @ 6:13am 
挖冰导致服务器崩溃
Chupucchino Oct 28, 2023 @ 9:40am 
mining ice crashs the server
LagerGorgon1 Oct 16, 2023 @ 9:21pm 
fix bug when mining ice please
nagamasa Мфгд Oct 13, 2023 @ 11:28am 
fix bug of glaciar.lua
PizzaurusRex Oct 6, 2023 @ 7:11pm 
@Player48 check the fix that Simon Made it works.
Greg -TPF- Oct 5, 2023 @ 4:18pm 
@Simon thanks, the fix still works
Player48 Oct 3, 2023 @ 11:39am 
When mining ice, it will be disconnected from the server.
PizzaurusRex Sep 19, 2023 @ 7:02pm 
@Simon Thanks it works :D
Simon Sep 15, 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 Sep 2, 2023 @ 4:10pm 
Start the game, sometimes that does it, (at least it did that for me)
PizzaurusRex Sep 2, 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.
億KiotheCloud四 Sep 2, 2023 @ 8:47am 
crash glacier
Nixe Aug 29, 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 Aug 22, 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.
มันม่วง Aug 18, 2023 @ 8:55am 
Fix the mod When digging ice, the game crashes.
Plaifah Aug 18, 2023 @ 8:21am 
crash when mining ice, can you fix it?
SadisticStrike Aug 11, 2023 @ 11:19am 
It actually works yes, but like how everyone is saying...
crashes game when mining mini glacier
Stupid Caracal Aug 10, 2023 @ 7:05pm 
game crash when mining mini glacier
KAIKROOK Aug 10, 2023 @ 5:01am 
crash when mining mini glacier
HoschakaL Apr 20, 2023 @ 8:59pm 
greate. it s still working. thank you...
Marshadow Dec 4, 2022 @ 12:56am 
YES 3x SERVER
shannonrakes99 Nov 22, 2022 @ 5:56pm 
can this be updated so we can use it ?
geniusthemaster May 8, 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 Nov 10, 2021 @ 12:36pm 
Unfortunatelly this mod crashes my game One of my favourite mods playng alone. Any chance for update?
Curious Fox Sep 15, 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 Aug 16, 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 Jun 19, 2021 @ 11:07am 
Doesn't work anymore, it crash the game, need to be update
Homer Feb 9, 2021 @ 7:38pm 
DeepL翻译:
使得树木、巨石等资源源掉落更多。

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

也会增加(目前不可配置)。
-从巨石上掉落的岩石、燧石、硝石和金子。现在巨石在采矿时每次被击中都有机会掉落岩石、燧石和/或硝石。金块也是一样的,除了金块代替硝石,月球巨石有月球石代替硝石。
-冰川掉落的冰块。功能与巨石中的岩石相同。
-岩石有几率给玩家一个宝石,相当于从风滚草中获得宝石的几率。
Uzair Jan 31, 2021 @ 11:34am 
Doesn't work after the last update
FawZer Sep 27, 2020 @ 2:38am 
(y)
Noro Aug 15, 2020 @ 2:38am 
i just think crop can only made 1-2 seeds. this is very unreasonable, yeah this is configurable
大香蕉 Aug 13, 2020 @ 10:13pm 
有什么用
Saro Jun 24, 2020 @ 3:54am 
Some one update this! :(
Randoe YT Jun 13, 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 Apr 3, 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