ADM Posted July 17, 2019 Share Posted July 17, 2019 (edited) Hi there, it's been a month that I've started a little mod... You can use it to place Turfs over water so it rebuild the Turf you want over it, like this : My issue is that when you place the Turf, the ground type will be changed, but the border will still the same, which occur two problems : - You can fall in water, cause there is no border to stop you - The worst is that you actually CAN'T go on the turf you placed next to a shore cause the border is blocking you from reaching it What I haveWhat I need As far, the only way to reload the border around the turf I have is to reload your world, and things will be fine again, but I don't really expect that players and myself have to do that for every single turf :/ This is the function used to place the turf local function ondeploy(inst, pt, deployer) if deployer ~= nil and deployer.SoundEmitter ~= nil then deployer.SoundEmitter:PlaySound("dontstarve/wilson/dig") end local map = TheWorld.Map local original_tile_type = map:GetTileAtPoint(pt:Get()) local x, y = map:GetTileCoordsAtPoint(pt:Get()) if x ~= nil and y ~= nil then map:SetTile(x, y, GROUND.FOREST) map:RebuildLayer(original_tile_type, x, y) map:RebuildLayer(GROUND.FOREST, x, y) end local minimap = TheWorld.minimap.MiniMap minimap:RebuildLayer(original_tile_type, x, y) minimap:RebuildLayer(GROUND.FOREST, x, y) inst.components.stackable:Get():Remove() end So, if someone is aware for a method to reload the borders to a turf (if it exist) I'm all ears to learn this forbidden knowledge. Thanks for the help ! Edited July 17, 2019 by ADM Link to comment https://forums.kleientertainment.com/forums/topic/108942-rebuild-world-border/ Share on other sites More sharing options...
Developer zarklord_klei Posted July 17, 2019 Developer Share Posted July 17, 2019 you can't. Link to comment https://forums.kleientertainment.com/forums/topic/108942-rebuild-world-border/#findComment-1227187 Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now