sailworks-0.1.0.jar
Curse Maven Snippet
What's new
0.1.0 — first public release
Sails
- The Sail Controller takes kinetic input: the magnitude of RPM sets the furling speed, the direction sets spread or furl, and zero RPM holds the current amount. Stress follows Create's native "impact × |RPM|".
- The sail is not a texture but a triangle mesh generated from the convex hull of the anchors and mast heads. It routes around solid blocks along its normal, sits flat when taut, bellows deeper with more cloth, and bows its free edges outward. Three points in total (anchors plus mast heads) already enclose a sail.
- Two mast heads form the yard and set the sail's facing, the furling axis and the top edge of the cloth; angled and vertical mounts both work. With no mast heads the older behaviour, based on the controller's shaft, returns.
- Thrust goes into Sable's
PROPULSIONforce group and acts at the controller's block centre. Bigger area and more spread mean more thrust and more stress. - The Decorative Sail Controller needs no power and produces no thrust or stress; the sail stays fully spread for display. With no bound mast heads it draws no yard, because that spar is not in the world.
- The furled bundle now scales with sail area, cloth thickness and cloth amount (large, thick or slack sails furl fatter), capped at a radius that still looks like a sail rather than a barrel.
- The sail renders at the chunk view distance, so it no longer disappears before the terrain. Distant sails drop mesh detail, patterns stop beyond 64 blocks, and scenes with many sails hold a much better frame rate.
- With back-face culling, the plain sail is significantly faster under shaders (the shadow pass no longer shades two layers and their backs); facing arrows only draw within 24 blocks.
- Free edges now sag under gravity: a horizontal foot shows a visible curve, a vertical leech is unaffected, and a taut sail (100% cloth) does not sag. Anchor positions never move.
- Fixed how gravity sag and edge bow behave when they hit a block in the sail plane: the edge stops at the first obstacle, rests on the deck, and no longer passes into the block or gets routed into a flipped sheet.
- Fixed the dents and folds at high cloth: gravity now keeps only its outward component, so slanted leeches no longer fold into the sail, the outline stays convex and the fan mesh cannot self-intersect. Edge response to cloth is more consistent too.
- Fixed dents and flips pressed out by blocks at high cloth: routing no longer pushes vertices through to the other side of the sail (which left a dent on one face and a spike on the other); the cloth is pressed onto the block instead, and flattened patches fade into a shallow dent instead of a one-cell step.
- Fixed sails that stayed invisible but still pushed after a physics bearing cancelled or split the sub-level: the controller detects that Sable moved it to another sub-level, clears the old anchor and mast bindings and syncs the client, so the old rig cannot keep producing thrust. Re-bind on the new body.
- Fixed sail edges staying pinned after the cloth was increased next to a block: the in-plane clamp now tests the cloth's actual out-of-plane position, so an edge that clears the block releases the clamp and follows the cloth again.
- New client option edge billow (default on): the free edge between two anchors leaves the sail plane and bows toward the force; with it off the edge only bows in-plane. Purely visual — it changes neither billow depth, thrust nor stress.
Usage
- Sail Linker: right-click anchors, right-click the two mast heads, then right-click the controller to commit; sneak-right-click the controller to clear. Skipped anchors are reported by reason (not this controller's anchor / already bound / out of range / over the maximum sail area / over the anchor limit).
- Right-click the controller empty-handed to open the cloth screen: cloth (100% = taut) and thickness.
- Right-click with a dye to colour the sail. Right-click with a banner to stamp its base colour and patterns (up to 16 layers, the banner is not consumed); a plain banner clears the patterns.
- Wear Engineer's Goggles to read spread, anchor count, area, size, mast, cloth and thickness.
- Holding the controller or the Sail Linker and pressing
Wopens Ponder: five scenes on building the rig, furling and thrust, cloth and thickness, dye and banners, and binding with the linker. The rig scene reveals the mast and anchors first and the controller last; the furling scene slides two shafts in from the bow only while the sail is moving, with a fast furl (+64) and a slow spread (−16); the cloth page is split into two storyboards, one for cloth and thickness, one for dye, cross and border patterns aligning with the outline. The cloth scene follows explain → pause → point at the sail and show the value → pause → change it and show the new value, taking cloth from 1.0 (100%) to 1.8 (180%) and thickness from 0.025 to 0.08. The camera is rotated clockwise and pulled back.
Config
- Server
config/sailworks-server.toml: furling speed, thrust, stress, anchor limit, bind distance, maximum sail area and other gameplay values. - Client
config/sailworks-client.toml: facing arrows, cloth texture density, mesh detail, edge-bow ratios, pattern offset and other purely visual settings. - Both files can be edited in-game under
Mods → Sailworks → Config.
Known limitations
- The cloth is a convex hull: a concave anchor outline is filled in.
- Removing a bound anchor takes up to about a second to leave the binding.
- Dedicated servers and multiplayer are handled in code but have not had long multiplayer stress testing.
0.1.0 — 首个公开版本
风帆
- 风帆控制器吃动能:转速绝对值决定收放速度,转向决定张起还是收起, 零转速保持当前张起度。应力按 Create 原生的「影响 × |转速|」计算。
- 帆不是贴图,而是按支点与桅杆顶点的凸包生成的三角网格:会沿法线绕开 挡路的方块,绷平时是平面,布料越多鼓包越深,帆边会向外弯。支点和桅杆顶点 合计三个点就能围出帆面。
- 两个桅杆顶点连成帆桁,同时决定帆的朝向、收放轴和布面上边缘;斜挂、 竖挂都行。没有桅杆时退回以控制器转轴为基准的旧行为。
- 推力排进 Sable 的
PROPULSION力组,作用在控制器方块中心;面积越大、 张得越开,推力和应力越大。 - 装饰风帆控制器不需要动力、不产生推力和应力,帆固定满张展示;没有绑定 桅杆顶点时不画帆桁(那根杆子并不在世界上)。
- 收帆后的帆包粗细现在随帆面面积、布厚和布料量变化(大帆、厚帆、松布更粗), 并封顶在一个手感半径,不会粗成木桶。
- 帆的渲染距离与区块视距一致,不会比地形更早消失;远处的帆会自动降低网格 精度,64 格外不再绘制印花,多帆场景的帧率明显更好。
- 帆面改为背面剔除后,素帆在光影下的帧率明显改善(阴影 pass 不再重复着色 两层和背面);朝向箭头只在 24 格内显示。
- 帆的自由边现在会按重力下垂:水平帆脚有可见的弧度,竖直帆边不受影响; 绷平的帆(布料 100%)没有下垂。支点位置不动。
- 修正重力下垂/帆边外鼓在平面内撞到方块时的表现:现在会在第一处障碍前 停住,帆脚搭在甲板上,不再穿进方块或被绕行推成一块侧翻的布。
- 修正高布料时帆面出现的凹陷/折面:重力下垂现在只保留朝帆面外侧的分量, 斜帆边不会再向帆面内部凹进去,轮廓保持凸、扇形网格不会折叠;这也让帆边 随布料变化的幅度更一致。
- 修正大布料时被方块压出的凹坑/翻转:绕行不再把顶点翻到帆面另一侧(那会 在一面留下凹坑、另一面留下尖刺),而是压在方块上;被压平的补丁边缘会平滑 成浅坑,不再是一格台阶。
- 修正物理轴承取消/拆分物理体后帆不显示但仍有推力:控制器会检测自己被 Sable 换到了另一个子物理体,清除旧的支点/桅杆绑定并同步客户端,不再用旧帆架 继续推力;需要在新物理体上重新绑定。
- 修正在方块旁边的帆边布料增大后仍然被钉住的问题:平面内限制现在按布料 实际的离面位置判定,帆边鼓出方块范围后会自动解除限制、重新随布料弯曲。
- 新增客户端选项 帆边受力凸出(默认开):两条支点之间的帆边会离开帆面、 朝受力方向弯出去;关掉后帆边只在平面内弯。纯外观,不改变鼓包深度,也不影响 推力和应力。
操作
- 帆索链接器:右键支点选择,右键两个桅杆顶点,再右键控制器提交; 潜行右键控制器清空绑定。跳过的支点会按原因分别报数(不是本控制器的支点 / 已绑定 / 超出绑定距离 / 超出最大帆面积 / 超出支点数量上限)。
- 空手右键控制器打开帆布调整界面:调整布料(100% = 绷平)和布厚。
- 用染料右键给帆上色;用旗帜右键把旗帜的底色和花纹一起印到帆上 (最多 16 层,不消耗旗帜),普通旗帜会清除花纹。
- 戴工程师护目镜查看张起度、支点数、面积、尺寸、桅杆、布料与厚度。
- 手持控制器或帆索链接器按
W打开思索:五个场景分别讲搭帆、收放与 推力、布面与厚度、染料与旗帜、链接器绑定。搭帆页分段显示桅杆/支点和控制器; 收放页只在帆移动时从船头接入两根传动轴,快收(+64)与慢张(-16)方向和 速度都不同;布面页拆成两个 storyboard,分别演示布料/厚度的调整效果,以及 染料、十字花纹和边框花纹与帆面轮廓的对齐。布面与厚度页按“说明 → 停顿 → 指向帆面显示当前值 → 停顿 → 修改并显示新值”的节奏,布料 1.0(100%)→ 1.8 (180%),厚度 0.025 → 0.08。视角统一顺时针旋转并拉远。
配置
- 服务端
config/sailworks-server.toml:收放速度、推力、应力、支点上限、 绑定距离、最大帆面积等玩法数值。 - 客户端
config/sailworks-client.toml:朝向箭头、帆布贴图密度、网格精细度、 帆边外弯比例、花纹离面距离等纯视觉项。 - 两个文件都可以在游戏内
模组 → Sailworks → 配置里直接修改。
已知限制
- 帆面是凸包:支点围成凹形轮廓时,凹口会被填平。
- 拆掉已绑定的支点后,最多约 1 秒才会从绑定中移除。
- 专用服务器与联机只做了代码层面的兼容处理,尚未做长时间多人压力测试。
This mod has no additional files