饥荒联机版

饥荒联机版

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

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

也会增加(目前不可配置)。
-从巨石上掉落的岩石、燧石、硝石和金子。现在巨石在采矿时每次被击中都有机会掉落岩石、燧石和/或硝石。金块也是一样的,除了金块代替硝石,月球巨石有月球石代替硝石。
-冰川掉落的冰块。功能与巨石中的岩石相同。
-岩石有几率给玩家一个宝石,相当于从风滚草中获得宝石的几率。
Uzair 2021 年 1 月 31 日 上午 11:34 
Doesn't work after the last update
FawZer 2020 年 9 月 27 日 上午 2:38 
(y)
Noro 2020 年 8 月 15 日 上午 2:38 
i just think crop can only made 1-2 seeds. this is very unreasonable, yeah this is configurable
大香蕉 2020 年 8 月 13 日 下午 10:13 
有什么用
Saro 2020 年 6 月 24 日 上午 3:54 
Some one update this! :(
Randoe YT 2020 年 6 月 13 日 下午 12:28 
works for me their latino. it gives me about 5 of any crop. and anyone know if it works with lureplant farms.
LatinoGringo 2020 年 4 月 3 日 下午 4:59 
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