Don't Starve Together

Don't Starve Together

78 ratings
Structure Alignment Plus
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
45.728 KB
23 Jun @ 5:49pm
28 Sep @ 9:56pm
37 Change Notes ( view )

Subscribe to download
Structure Alignment Plus

Description
Still being developed.

Extends the Structure Alignment feature by adding several grids, smart select, snapping tills, drop to grid, heavy object movement to grid, boat alignment, tile outline, and opacity.

I recommend changing the default Structure Alignment toggle key bind to avoid conflict with quick drop and other mods. I personally bind it to the key to the immediate right of left shift.

Grids
Dimensions
Function
3x3
Chest spacing, random seeds
9x9
Structure placement
12x12
Structure placement
16x16
Structure placement on boats

Add more grids on the fly or with mods using AddAxisAlignmentGrid(val).

If you find a grid size that offers enough utility to be a default, feel free to suggest.

Smart Select
Automatically selects a best fit grid from TUNING.AXISALIGNED_SUGGESTIONS when placing/deploying items if the previous placer was different.

Suggested values do not have to have an existing grid that can be cycled to. (e.g. bullkelp_root can be packed closer with 7/4, but 9/4 was chosen for its versatility while also allowing placement closer to the shoreline)

Snapping Tills
Based on Snapping Tills, a hoe held over farm soil or seeds held as a plantkin will get a placer. When Structure Alignment is disabled placement will snap to the hex layout.

Item Drop to Grid
Items held will get a placer if they don't have one, and when dropped will snap to it. Dropping (and deploying) is not blocked by mousing over objects when there are no other valid actions. Items quick dropped will snap to the last grid used for dropping or the wall grid.
(related mod)

Heavy Object Movement to Grid
Heavy objects held will get a placer to snap movement to it. Snapping is not 100% accurate because of server validation. Player hosts are able to deploy heavy objects to grid points with this.
42 Comments
Pa<o Pe<o 7 Oct @ 11:53pm 
Can you make the boats deploy by default on the tile like the farm plot tool?
vizore 2 Oct @ 2:49pm 
Easier to look at then the other mods :steamhappy:
KvltBear 1 Oct @ 10:44am 
This is great, especially with the update allowing to pre-choose grid sizes for specific items/categories. I think I might use this full time instead of the geometric mods.
Wretched Gramophone 26 Sep @ 8:08pm 
Did some more testing, and the boat bumper crash seems to be related to boat alignment, not geometric drop.
Wretched Gramophone 25 Sep @ 9:33pm 
The game crashes sometimes when placing boat bumpers with 1 item left in the stack, likely a conflict with the mod's geometric drop function.
(see below crash report)
Wretched Gramophone 25 Sep @ 9:32pm 
[string "scripts/components/map.lua"]:388: attempt to index field 'inventoryitem' (a nil value)
LUA ERROR stack traceback:
scripts/components/map.lua:388 in () ? (Lua) <387-389>
=(tail call):-1 in () (tail) <-1--1>
=(tail call):-1 in () (tail) <-1--1>
scripts/components/placer.lua:236 in (method) TestCanBuild (Lua) <231-242>
scripts/components/placer.lua:297 in (upvalue) UpdateCanBuild (Lua) <295-299>
scripts/components/placer.lua:378 in (upvalue) H (Lua) <300-400>
../mods/workshop-3507292297/modmain.lua:302 in (method) UpdateAxisAlignedHelpers (Lua) <301-304>
scripts/components/placer.lua:570 in (upvalue) V (Lua) <402-572>
../mods/workshop-3507292297/modmain.lua:321 in (upvalue) _ (Lua) <320-347>
../mods/workshop-3507292297/modmain.lua:36 in (method) OnUpdate (Lua) <35-39>
scripts/components/placer.lua:576 in (method) OnWallUpdate (Lua) <575-577>
scripts/update.lua:58 in () ? (Lua) <33-138>
cheri 25 Sep @ 9:43am 
great work! :lunar2019coolpig: i was disappointed that the official implementation didn't have boat alignment
엘간(엘프 볼간) 23 Sep @ 11:50am 
[string "../mods/workshop-3507292297/modmain.lua"]:317: attempt to index local 'item' (a nil value)
LUA ERROR stack traceback:
../mods/workshop-3507292297/modmain.lua:317 in (method) CanStartAxisAlignedPlacementForItem (Lua) <316-318>
scripts/components/placer.lua:194 in (upvalue) OldSetBuilder (Lua) <189-206>
../mods/workshop-351325790/modmain.lua:589 in (method) SetBuilder (Lua) <588-598>
../mods/workshop-3507292297/modmain.lua:266 in (upvalue) old_OnUpdate (Lua) <238-279>
../mods/workshop-3239843335/modmain.lua:130 in (method) OnUpdate (Lua) <129-144>
scripts/update.lua:262 in () ? (Lua) <224-298>
Pa<o Pe<o 23 Sep @ 10:15am 
I liked the mod, but it could replace Gemetric Drops, Place Statues, Snapping Tills if it gets better polished. I'll wait.
Мур 23 Sep @ 5:06am 
Как сделать, так чтоб всегда был активен?