Don't Starve Together

Don't Starve Together

Turfed!
Muche 18 Dec, 2015 @ 7:11am
Bug report
I think there are typos reading insulation configuration:
--- modmain.lua +++ modmain.patch.lua @@ -237,7 +237,7 @@ AddComponentPostInit("terraformer", function(self) end) --Turfs, Overheating/Freezing, and YOU! -if GetModConfigData("InsulationDuration") == 1 then +if GetModConfigData("InsulatingTurfs") == 1 then AddComponentPostInit("temperature", function(self) local _GetInsulation = self.GetInsulation self.GetInsulation = function(self) @@ -269,8 +269,8 @@ if GetModConfigData("InsulationDuration") == 1 then or tile == GLOBAL.GROUND.WOODDARK or tile == GLOBAL.GROUND.WOODPINE then - winterInsulation = winterInsulation + GetModConfigData("insulation_time") - summerInsulation = summerInsulation + GetModConfigData("insulation_time") + winterInsulation = winterInsulation + GetModConfigData("InsulationDuration") + summerInsulation = summerInsulation + GetModConfigData("InsulationDuration") end return math.max(0, winterInsulation), math.max(0, summerInsulation) end
< >
Showing 1-7 of 7 comments
Deja Vu 31 Jan, 2016 @ 11:16am 
Got a crash, error log here: http://pastebin.com/41RW42vV
Deja Vu 31 Jan, 2016 @ 1:17pm 
Ignore the last bug report. Muche pointed out that it's not caused by your mod!
Muche 6 Apr, 2016 @ 1:48pm 
@Sarifynna, here is a possible patch for the failed assert, which is needed for current version of WorldGenData branch as I mentioned in its thread - http://pastebin.com/7Fm0kABf .
Included is patch for seeing turfs on the minimap mentioned in my previous comment.

There is this thing that could be called a bug or a feature - it is possible to plant saplings, grass, berries and trees on the custom turfs. It is not possible to plant them on basic wood floor or basic carpet.
Adding the turf into GLOBAL.GROUND_FLOORING forbids this planting. It is included in the patch commented out. If you decide that this is a bug, please add a configuration option for this (with the default being disable planting).

Regarding sounds when walking on the turfs, that can be solved by adding appropriate sounds to AddTile's specs parameter, e.g.
AddTile("WOODPINE", 71, "woodpine", {noise_texture = "levels/textures/noise_woodpine.tex", runsound="dontstarve/movement/run_wood", walksound="dontstarve/movement/walk_wood", snowsound="dontstarve/movement/run_ice"}, {noise_texture = "levels/textures/mini_noise_woodpine.tex"})

Regarding layering, it seems to be determined by the order of turfs in require('worldtiledefs').ground table. So just by changing the order how the tiles are added in modworldgenmain.lua the layering can be controlled (tiles added earlier are lower).
However, base game tiles are on the very bottom, so if you want basic carpet be on top of e.g. woodpine, you'd have to manipulate the table itself. Just make sure the code can handle the table to be filled with inconsistently structured items (e.g. see my recent comment for Structures and More mod).
hey!please instead of 174-209 line in the following

local function SpawnTurf(turf, pt)
if turf ~= nil then
local loot = SpawnPrefab(turf)

if loot.components.inventoryitem ~= nil then
loot.components.inventoryitem:InheritMoisture(GLOBAL.TheWorld.state.wetness, GLOBAL.TheWorld.state.iswet)
end

loot.Transform:SetPosition(pt:Get())

if loot.Physics ~= nil then
local angle = math.random() * 2 * GLOBAL.PI
loot.Physics:SetVel(2 * math.cos(angle), 10, 2 * math.sin(angle))
end
end
end

-- Not necessary for the AddComponentPostInit version
local Terraformer = require("components/terraformer")
local OldTerraform = Terraformer.Terraform or function() return false end

-- A heavily-gutted version of the original Terraform function
-- Ultimately, it checks for the turf type at the intended dig spot and will spawn it if the original function didn't
function Terraformer:Terraform(pt, spawnturf)
local Map = GLOBAL.TheWorld.Map

if not Map:CanTerraformAtPoint(pt:Get()) then
return false
end

local original_tile_type = Map:GetTileAtPoint(pt:Get())
--local dugSomethingUp = OldTerraform(self, pt)

-- If the old terraform successfully dug up some turf and it's a ruins turf, spawn the item
if OldTerraform(self, pt, spawnturf) then
local turfPrefab = MOD_GROUND_TURFS[original_tile_type]

if spawnturf and turfPrefab ~= nil then
SpawnTurf(turfPrefab, pt)
end

return true
end

return false
end
76561198200227939 15 Jun, 2019 @ 7:14am 
wormwood causes errors in the game

{LINK REMOVED}
Zilargron [PH] 1 Jul, 2019 @ 7:01am 
Same for the hosting a Dedicated server. Forgot to screen shot it and send it here but it's the same with Panur's case crashing due to a wormwood in game
Tropical Experience and Turfed's tiles get mixed up and TE's turf gets replaced with Turf's.
< >
Showing 1-7 of 7 comments
Per page: 1530 50