饥荒联机版

饥荒联机版

92 个评价
Structure Alignment Plus
   
奖励
收藏
已收藏
取消收藏
文件大小
发表于
更新日期
49.264 KB
6 月 23 日 下午 5:49
12 月 7 日 下午 8:36
40 项改动说明 ( 查看 )

订阅以下载
Structure Alignment Plus

描述
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.
49 条留言
逐鹿游原 12 月 7 日 上午 6:32 
LUA ERROR stack traceback:
../mods/workshop-3507292297【Structure Alignment Plus(建筑对齐增强)39】/modmain.lua:92 in (method) DropItemFromInvTile (Lua) <89-127>
scripts/widgets/equipslot.lua:63 in (method) OnControl (Lua) <31-71>
scripts/widgets/widget.lua:130 in (method) OnControl (Lua) <124-138>
scripts/widgets/widget.lua:130 in (field) OnControl (Lua) <124-138>
scripts/widgets/inventorybar.lua:779 in (method) OnControl (Lua) <778-865>
scripts/widgets/widget.lua:130 in (method) OnControl (Lua) <124-138>
scripts/widgets/widget.lua:130 in (field) OnControl (Lua) <124-138>
scripts/screens/playerhud.lua:1346 in (method) OnControl (Lua) <1345-1542>
scripts/frontend.lua:428 in (method) OnControl (Lua) <412-489>
scripts/input.lua:166 in (method) OnControl (Lua) <163-170>
scripts/input.lua:752 in () ? (Lua) <751-753>
Walen  [作者] 12 月 4 日 下午 5:54 
@omg23310 Hello, sorry for the inconvenience.

I am currently having trouble updating the mod, so you can prevent the crash for now by changing "if P:CanAlignDrop()" to "if P.CanAlignDrop and P:CanAlignDrop()"
omg23310 12 月 4 日 上午 5:26 
The 3x3 grid is the most practical, as I can place it at the center of the land. Unfortunately, the official only supports even-numbered grids such as 2x2.
omg23310 12 月 4 日 上午 2:38 
I have a crash in game:

[string "./mods/workshop-3507292297/modmain.lua"]:92: attempt to call method 'CanAlignDrop'(a nil value)LUA ERROR stack traceback:
./mods/workshop-3507292297/modmain.lua:92 in (method) DropItemFromInvTile (Lua)<89-127>scripts/widgets/invslot.lua:346 in(method) DropItem (Lua)<344-348>
scripts/widgets/invslot.lua:42 in (method) OnControl (Lua)<10-83>scripts/widgets/widget.lua:130 in (method) 0nControl (Lua)<124-138>scripts/widgets/widget.lua:130 in(method) 0nControl (Lua)<124-138>scripts/widgets/widget.lua:130 in (field) 0nControl (Lua)<124-138>
scripts/widgets/inventorybar.lua:779 in (method) OnControl (Lua) <778-865>scripts/widgets/widget.lua:130 in (method) 0nControl (Lua) <124-138>scripts/widgets/widget.lua:130 in (method) 0nControl (Lua)<124-138>scripts/widgets/widget.lua:130 in (method) 0nControl (Lua)<124-138>
Besides, There is a possibility of conflict with ActionQueue RB3, I encountered a character command conflict while farming.
Wretched Gramophone 11 月 24 日 下午 1:30 
Game crashes when placing the Garden Digamajig:

[string "../mods/workshop-3507292297/scripts/compone..."]:38: variable 'L' is not declared
LUA ERROR stack traceback:
=[C]:-1 in (global) error (C) <-1--1>
scripts/strict.lua:23 in () ? (Lua) <21-26>
../mods/workshop-3507292297/scripts/components/axisaligner.lua:38 in () ? (Lua) <28-49>
=(tail call):-1 in () (tail) <-1--1>
scripts/components/playeractionpicker.lua:442 in (method) GetRightClickActions (Lua) <349-452>
scripts/components/playeractionpicker.lua:515 in () ? (Lua) <454-526>
=(tail call):-1 in () (tail) <-1--1>
scripts/components/playercontroller.lua:2675 in (upvalue) d (Lua) <2500-3022>
../mods/workshop-3507292297/scripts/components/axisaligner.lua:237 in (method) OnUpdate (Lua) <236-239>
scripts/update.lua:262 in () ? (Lua) <224-298>
Pa<o Pe<o 11 月 24 日 上午 10:14 
The game crashes when I try to farm with the hoe. I'm not using any other farming mod.
Walen  [作者] 11 月 23 日 下午 2:09 
@Ruby Moon In Settings > Advanced there is a Structure Alignment option defaulted to always off. In Settings > Controls there is a Toggle Alignment (mod) option that will switch the previous option to to opposite. (always off > on while held, always on > off while held)
Ruby Moon 11 月 14 日 下午 12:25 
How do you toggle this mod on? I try placing stuff and it doesnt show the mod
vizore 10 月 2 日 下午 2:49 
Easier to look at then the other mods :steamhappy:
KvltBear 10 月 1 日 上午 10:44 
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.