Repository navigation
For Modders
Rough Seas keeps one model of the world's wind, waves, storms and currents, computed on the server from the world's own climate and ocean map. The rest of the game meets that model in three ways, and a mod meets it in the same three.
- Through vanilla. We don't replace the game's weather; we drive it. Each region's wind pattern, the rain and the weather events still come out of vanilla's machinery, set from our model. So a mod written for plain Vintage Story reads our weather without a line about us. A mod that moves a lever vanilla itself has, drying the world or shifting its temperature, gets the answer vanilla would give; a mod that sets the weather in vanilla's place changes what vanilla reports, not our sea (Reading the weather).
- Through our own code. Vanilla has no place for the wind's direction, for waves or for currents. We publish them from our own types, on both sides: the sea state, and on a client the drawn sea, its picture of the waves.
- Through behaviours. A vessel takes our sea by carrying our entity behaviours, configured in JSON: it floats by its mass, ships water, cracks, floods, moors and drifts. No code.
Each page covers one part, for the mod that touches it; read the ones yours does.
| Your mod | Read |
|---|---|
| reads the wind, rain or temperature, or changes them | Reading the weather |
| adds weather events | Weather events |
| sets a region's wind pattern | Wind patterns |
| reshapes the oceans, or calls vanilla's ocean layer | The ocean map |
| reads the wind's direction, waves, storms or currents: a helm, a sail, a fish | Reading the sea |
| poses a vessel of its own on the swell a client draws | Reading the sea |
| adds a vessel, or gives ours its behaviours | Building a vessel |
Where a page touches physics, it says what the mod does and links The science behind it for why.
If you build on these pages, or need something they don't give, tell us on the issue tracker.
A mod that patches vanilla's swim stroke no longer stops our swimmer (Player Model Library), and our modules for other mods check the members they reach instead of the other mod's version.
-
SwimmingStrength.AddandRemovetake a factor of the arms' pull for an entity;SwimmingStrength.Factoris their product. Player Model Library'sswimSpeedstat is one, added while that mod is in the set. -
OtherModCompatlost its tested range:config/compat/shipwright.jsonandwalkableentities.jsonare gone, andextremeweather.jsonlosttested. A module finds every member it reaches inMeetbefore it changes anything (Compat.Reach), and a missing one, aMissingMemberException, leaves that mod alone with a warning naming it.MetreplacesTested, and theroughseas-shipwrightpatch condition follows it. -
BoatClassthrowsMissingFieldExceptionfor a missing field, as it already did for a missing method or property.
A tool weighs as a head of its own metal or stone and a haft of wood, armour by its own material; the swimmer strokes as a trained competitive swimmer, and a body on the bed pushes off it with its legs (the science).
-
config/person.json'scarriedlostdensityKgPerLitreandtoolKg. In their place:densities(kg/m³ by material),alike(a material taken as another: every stone as flint, a bear's hide as hide),handlePrefix(the prefix of a bone-handled tool's material,bonechert),tools(perEnumTool, aheadand an optionalhaft, each thekgof a measured part and the material it was measuredof),unknownArmourMaterial(the material armour of an unknown one is taken as) andunslowingArmourKg(the mass of armour by material that doesn't slow its wearer: wood). A material named there with no density fails the config's load. A tool of another mod is weighed by its type's parts in its ownmaterialormetalvariant, its measured material when that variant is unknown. -
PlayerPerson.WeightakesWorn(a piece of armour's walk speed penalty and material) andHeld(a hotbar item'sEnumTooland material) in place of bare penalties and tool types.Carriedadds with+. The server keeps a player's displaced litres on them too, asroughseas:carriedLitresbesideroughseas:carriedKg. -
config/person.json'sbody.swimmingis a trained competitive swimmer's stroke (Toussaint 1990): 49 W against drag and 32 W on the water pushed back at 1.17 m/s, andbody.dragAreaSwimming0.0613 m² from the same measure. A body coming into the water now lies upright until it moves through the water no faster than 1.17 m/s, in place of 0.90. Newbody.legsgives the legs' measured force-velocity profile they push off the bed with (newtonsPerKg,metresPerSecond,pushMetres). - A body keeps a full breath in the water,
Body.LungLitresfrom the newbody.tlc(total lung capacity), squeezed by Boyle's law at the chest's depth.Body.BreathingLitres,body.frcandbody.tidalLitresare gone. -
SwimStrokegainedJump, the jump key held.FloatingBody.SteptakesonBed(the feet stand on the bed,BodyAfloat.OnBed: the arms don't stroke, the motion across is vanilla's walk, and the legs push straight up while jump is held) andstrength(the arms' pull over a trained swimmer's: the world settingswimmingStrengthtimes the game's walk speed over its Normal and the player's own move speed,SwimmingStrength.Of).FloatReadinggainedSpareNewtons, what the arms and what is displaced have left over the weight with the body wholly under, andKick, the legs' push. - New world settings
realisticSwimming(off, a player swims as in the base game) andswimmingStrength(1×, 2×, 3×; a dropdown assailWindis, not a mechanic's switch). - On the bed a swimming player stands:
BodyOnTheBedlets vanilla'sPModuleOnGroundwalk it (its jump'sMotion.Ydropped for the legs' push), patches the activity flagsEntityAgent.OnGameTickanimates by, so it plays the base game's idle, walk and jump, and turnsWalkPitchupright.
A body moving through the water drags by how it lies, along its length and across it, and one that comes into the water brings its way in (the science).
-
config/person.json'sbody.dragAreaAlongis 0.084 m², a body towed along its length in water, in place of 0.25 m² from skydivers in air. - New
Posture: how a body lies, upright or along a unit axis, and its drag by the cross-flow principle.FloatingBody.Steptakes how the body is drawn asdrawn(upright when not given);BodyAfloatdraws a swimming player along vanilla'sWalkYawandWalkPitch. A body that comes into the water lies upright, as it came, while its plunge carries it faster than it swims (body.swimming.metresPerSecond). A swimmer's way up and down and across now drag as one velocity.SwimStroke.Proneis gone: how a body lies is itsPosture. - A
FloatingBodythat starts swimming takes the motion it comes in with as its own velocity, asWadedoes each step. A push of yours on a player already afloat still meets vanilla's drag only.
A swimmer's stroke spends a power, not a fixed force, so it pulls hardest from a standstill and less the faster the swimmer goes through the water (the science).
-
config/person.json'sbody.strokeNewtonsis gone;body.swimminggives the power spent against drag (usefulWatts), on the water pushed back (wastedWatts) and the speed both were measured at (metresPerSecond). NewSwimmingArmsturns them into a thrust at a speed. The law of a blade driven on a power isWater.SlippingBlade, which Propulsion'sBladeStrokenow calls too.FloatReadinggainedThrust. -
BodyAfloatfloats a player while the water reaches the chest (Swimming, by the drawn surface). Wading, vanilla's gravity, walk and jump stand, so a jump in shallow water clears a one-block step; across, newFloatingBody.Wadetakes the place of vanilla's water drag, so a jump keeps its way and the waves, a breaker and the current push a wader as they push a swimmer. A push of yours on a wading player'sPos.Motionacross meets the body's drag instead of vanilla's flat one.
Vanilla picks the selection box a look enters first, so a box inside the hull's HullAP box was never picked from outside a vessel: the stowage on five of ours, the bark canoe's seats and hold, the currach's holds.
- On our vessels every box but
HullAPnow stands at least a voxel over the hull box, and where two overlap, the one of smaller footprint stands a voxel over the larger. Only their tops moved, so a seat, a container or a stowed tool sits where it did.bin/model buildwrites the heights (shape.reachable). -
OarStoragereaches from where the tool lies out to just inside the hull box's side, so the strip where the tool lies is wide enough to aim at, and a look at her side still picks the hull. - A stowed paddle or pole lies centred on the vessel, whatever its length. The
Oar Storageslot of each of ours, and of vanilla's raft by patch, step-parents toOarRest, a point underOarStorageat the middle of her hull, and our stowed shapes (roughseas:item/paddle-stowed,pole-{2..5}-stowed) are drawn about their own middle. An item whose attached shape namesOarStorageas itsstepParentName, as vanilla's crude oar does, still lies where it did. A stowed shape of yours for categoryoarlies centred too when it is drawn about its own middle and names no step parent.
Hulls that crack, leak and flood changed the vessel keys, so they came as a major version. What a vessel of yours built before them needs to change:
-
roughseas:vesselintegrityloseswearPerDay: a reed hull'ssoakand a cracking hull'sseeptake its place. A mend'srestoresnow closes that much of one place's crack, or of a lashed hull's lashing; withgreases, it is the share ofseep.greaseDaysit gives back. -
roughseas:bilgelosessinks: a swamped vessel sinks by its buoyancy. -
roughseas:seaforces'freeboardMetrescounts only for a vessel that doesn't float by its mass, one with nodepthMetreson itsvesselintegrity. -
config/vessels/impact.jsonis nowconfig/vessels/mass.json, withcrewKgadded; a patch to it follows the rename. - A carried vessel's hull travels on its item as the stack attribute
roughseas:vessel;roughseas:wornis gone.
New: the hull model, parts[].share, depthMetres, waterplaneSquareMetres, seep, soak, the density of a material, config/vessels/hull.json, the response block of config/storms.json, and HullResponse. A world from before keeps its vessels: a raft takes its old condition as its lashing, a reed boat as water soaked up, and a cracking hull starts sound; a vessel carried as an item does the same from its durability.
In 3.1 every blow meets what really takes it (The hull). No key was removed, so a vessel of yours loads as it did, but it fares differently:
-
impactCapacityis what a broad load (a knock, a ram, rapids, a blast) must reach to break the hull up, and a smaller one cracks its place by its share; on areedhull too, which now tears. - Two hulls with
vesselintegrityram each other;minImpactSpeedis the speed they take in their stride. - Without a
shell, the frame's capacity resists point blows and cuts too, and breakers, now a pressure against the planking, don't harm the hull. Give it ashellfor both. -
Struck's second value is the blow over what resisted it, which is the shell for a point blow, a cut or a breaker, no longer always the hull's capacity. Its knock isHarmedonly when the place came to a worse stage.
New: the vessel's shell, config/vessels/damage.json's broadSources, cutShare and variation, a material's toughness and cutToughness, and hull.json's soakedStrengthShare. Gone, never documented here: config/storms.json's waves.breakerTransfer, waves.periodSecondsPerRootMetre and ashore.impactFactor.
In 3.2 every client draws the same waves, and everything at sea keeps one clock (The sea's time). A vessel of yours loads as it did, but code that reads the time changes:
-
ISeaWeather.NowHoursgave way toISeaWeather.Clock, aSeaClock: itsHoursis the old value. A mechanic of yours at sea that keeps a watch of it stands still and races with the calendar, as ours do. -
IDrawnSea.Secondsis the waves' time, the same on every client, so a mod that rides our swell needs no clock of its own. - Waves come aboard, bilges fill and leaks run by game time, so a vessel near a sleeping player lives through the night.
Gone, never documented here: config/storms.json's lightning.checkSeconds, and in config/soundscape.json the water.lapping loop and shore.lappingSound and lappingStrength. A hull's splash is water.splash now, and the slaps take a volumePerMetre.
In 4.0 a vessel with a draft heaves by its own mass (Floating), and what it drags with it comes from its form. A vessel of yours loads as it did; code that reads the heave changes:
-
HullResponse.HeavePeriod(draftMetres, config)gave way toHullResponse.HeavePeriod(kg, addedKg, kgPerMetre);HullResponse.Ofkeeps its arguments. -
config/storms.json'sresponse.heaveAddedMassis gone:HeaveAddedMassgives the water from a hull's waterplane. -
IBuoyant.SettlingMetresis gone;ReferenceDraftMetres,KgPerMetreandAddedKgare new.IOutboardaddsWaterplaneSquareMetresandLengthMetres. - Vanilla's
swimmingOffsetYnow sets the vessel's keel: vanilla'sSwimmingmeans its keel is wet.
The dugout is burnt and hewn out of five logs on the shore (Built in place), and its grid recipes are gone. No key was removed, so a vessel of yours loads as it did.
-
The dugout's rower holds what drives it, as on vanilla's raft: the dugout sets
requiresPaddlingTool, and its strokes are its own for each tool (Paddles, poles and oars). -
roughseas:bilge'scapacityLitresis what the finished hull holds; while it is built, it holds what is cut out of it. -
An axe starts it: Shift + right-clicked on the middle log of a row, it lays the blank. Anywhere else an axe does what vanilla does.
-
Every axe in the game, a modded one too, carries our collectible behaviour
roughseas:hew, so that holding it on a blank strips its bark and on a charred blank hews. -
Rain on a vessel, in its bilge and drying it ashore, is what
WeatherSystemBase.GetPrecipitationreads, as vanilla's fires do, and nothing under a roof.
New: the behaviour roughseas:burnout with its keys, the collectible behaviour roughseas:hew, and the watched tree roughseas:build on a vessel being built.
The bark canoe is stripped off a standing tree and framed where it lies (Framed in place), and its grid recipe is gone. No key was removed, so a canoe of yours loads finished, and the bark from a log still mends it.
- The bark canoe's rower holds what drives it, as the dugout's does: the canoe sets
requiresPaddlingTool, and its paddler kneels. Its own built-in paddle is gone; its strokes are its own for each tool (Paddles, poles and oars). - A knife held on a standing birch, elm or spruce trunk strips it: the trunk becomes our
roughseas:debarkedtrunk-{wood}, which keeps the grown log's tree-felling group, its spread and its hold on the leaves, and drops vanilla's debarked log. A mod that looks forlog-grown-*to find a trunk misses a stripped one. - Rope held on a canoe still being lashed lashes the canoe instead of tying itself to it: a Harmony prefix on
ItemRope.OnHeldInteractStart. Once its lashing is done, rope ties to it as before. - Rope and every liquid container in the game, a modded one too, carry our collectible behaviour
roughseas:framing, and our laths carry it by their JSON, so that holding them on a canoe being built lays its next piece. - A vessel picked up keeps its build on the item, as it keeps its hull's condition, under the stack attribute
roughseas:build; the item of a framed vessel carries our collectible behaviourroughseas:carriedbuild, which draws the vessel as far as it is built and in its laths' wood.
New: the behaviour roughseas:framing with its keys, the collectible behaviour of the same code, the items roughseas:lath-{wood}-{dry|wet} and the blocks roughseas:wedge-{we|ns} and roughseas:debarkedtrunk-{wood}.
The outrigger canoe is a finished dugout rigged where it lies (Rigged in place), and its grid recipes are gone. Its code is still roughseas:outrigger-{wood}, the wood its hull's, so an outrigger of yours loads finished, its float and poles of that wood.
-
Its hull is the dugout's: its shape, shell, collision boxes, seats, bilge and
impactCapacity. Its washstrakes and platform, sawn planks, are gone, and with them its oldhullBox. A patch that addressed its old shape's elements or its selection boxes by index misses: its boxes are the dugout's three, thenLowerMastAP. -
Its rower holds what drives it, as the dugout's does: the outrigger sets
requiresPaddlingTool, and its strokes are its own for each tool (Paddles, poles and oars). Its own built-in paddle is gone. -
It mends with a log of its hull's wood, and breaks into firewood, a rope and linen.
-
A pole held on a finished dugout with a row of three logs alongside replaces the dugout with a new outrigger entity: a mod that keeps a dugout's entity id sees it die (
EnumDespawnReason.Removed). The dugout's cracks and bilge go across throughIHandedOver; ropes tied to the dugout do not. -
roughseas:framing'sframePartnow names a part by its newnamekey, not by its material: the bark canoe's frame part is"name": "frame". -
Axes and cloth carry our collectible behaviour
roughseas:framingtoo, as rope does. -
The wedge's
lathsandlathattributes are nowsplits: what a row of so many wedged logs splits into, five into laths, three into poles. -
IHullFormgrewWrecked,UnhewnLitres,DepthMetresandWaterplaneSquareMetres, andHollowedbecameHoldLitres: what a vessel being built breaks into, the wood it still carries outside its hull, and its depth, waterplane and hold so far. A vessel with a mast that stands only once stepped implements the newIMasted. An implementation of yours returns the designed values to keep its behaviour. -
The dugout is the five logs from first to last: 4.5 m long, 0.9 m wide, 0.56 m deep, a 1298-litre hold and 252 kg in oak, against 400 kg and 450 litres before. Its shape's stage groups are each level's whole trunk,
Clay{n}each fire's rim, andShellthe finished hull; the item hides the stages as before. A dugout of yours loads as it was, at its new size. -
The outrigger takes optional washstrakes, sawn planks:
roughseas:framing's stages may beoptionaland raise its side and hold. One saved without a build has them on.
New: the behaviours roughseas:riggable and roughseas:rigging with their keys, roughseas:framing's works pole, hew, cloth and plank and its keys replaces, optional, raisesMetres, raisesLitres, part and texture, roughseas:burnout's keys blankDepthMetres, blankWaterplaneSquareMetres and unhewnLitres, a part's name and takesKnocks, and the items roughseas:pole-{wood}.
The reed boat is bound from two reed bundles laid side by side (Bound in place), and its grid recipe is gone. Its code is still roughseas:reedboat, so a reed boat of yours loads finished, with its ends bound up and its soak as it was.
- It is a float of two 19 cm bundles: 3 m by 0.36 m, 0.19 m deep, 50 kg, its rider 5 cm above the water. Its shape, collision boxes and seat height changed, and its
Hull,FrontSeatandCargoelements with them; a patch that addressed its old shape'sPort,Starboard,CoreorBindingelements misses. Itssoakand thereedmaterial's density changed with it (why). - Its rower holds what drives it: the reed boat sets
requiresPaddlingTool, and its strokes are its own for each tool (Paddles, poles and oars). Its own built-in paddle is gone. -
roughseas:framingno longer needs a vessel of a wood, and strips a tree only when it hasbarkSeconds. - The help text
roughseas:shipyard-lashnow reads "Lash it with rope" on every framed vessel.
New: the block roughseas:reedbundle of class roughseas:BlockBundles (its codes) and the behaviour roughseas:droop.
The coracle and the hide currach are laid out as laths on the ground and built where they lie (Laid out on the ground), and their grid recipes are gone. Their codes are still roughseas:coracle and roughseas:currach, so one of yours loads finished, the currach the right way up, both covered in prepared hide.
- The coracle's built-in sculling paddle is gone: the coracle sets
requiresPaddlingTool, and its sculler holds a paddle. The currach sets itfalseand is rowed with its own oars (The currach rowed facing its stern). Their strokes are their own for each tool (Paddles, poles and oars). - Their shapes are new: the coracle a Teifi basket of a lattice and a plaited gunwale, 1.5 by 1.07 m, with no seat board; the currach double-ended, 4.76 by 1.2 m, with ribs, stringers and a thwart pole in place of its transom, floor and stem post. A patch that addressed their old elements misses. Their bilges hold 272 and 1911 litres, and they weigh 17 and 88.5 kg.
- Laths and poles have a length:
roughseas:lath-{wood}-{2|3|4|5}-{dry|wet}androughseas:pole-{wood}-{2|3|4|5}, no longerlath-{wood}-{dry|wet}andpole-{wood}. A row of two to five wedged logs splits into 64 poles as long as it; the wedge'ssplitslist one per row length. An axe splits a pole into 16 laths of its length in the crafting grid (recipes/grid/laths.json). Their name takes the length as{1}. - Every piece of a
lathorpolestage names its length in the shape, a"metres"key on its group, and takes a lath or pole at least that long. The bark canoe's and the outrigger's pieces name theirs too. -
seep'slitresPerHouris nowlitresPerHourASeam: a cover seeps at every seam between hides. A cracking hull's newcovergives the hides of one from before its build;config/vessels/hides.jsongives each hide's keeping afloat and the water it takes up, and a patch can change them. -
IAfloat.Passtakes the water's temperature, and a hull whose cover is sewn on it as it is built implements the newICovered. - Hides carry our collectible behaviour
roughseas:framing, as rope does. Laths go down with Shift in vanilla's ground storage, wet or dry (Poles and laths piled on the ground), and rope held on a pile that starts a vessel binds it rather than doing what vanilla's rope does.
New: the behaviour roughseas:covering with its keys start, overturned and overturnedPivot, roughseas:framing's work hide and its keys bends, hides and hideStates, roughseas:vesselintegrity's key cover, the interface ICovered, and config/vessels/hides.json.
Each vessel built in place now changes the way the work would, and floats by numbers measured off its model (why).
- The weights, depths, waterplanes, holds, decks and
swimmingOffsetYof the dugout, outrigger, bark canoe, coracle and currach changed. The dugout's walls are 5 cm and its blank is the square trunk:unhewnLitres3329,blankWaterplaneSquareMetres5,hollowDepthMetres0.5125,hollowBeamMetres0.8. A patch that set these numbers sets them against its new model. - The outrigger's float is hewn from its three logs in six passes: its stage
Endsand the groupsFloatandBluntare gone, andHewing(asuccessivestage replacingFloatLog) comes afterBooms, whose pieces follow it (follows). Its washstrakes' end pieces are boards across its hollow, and the washstrakes add 422 litres, its measured opening 15 cm higher. The bark canoe's and the currach's holds stop at the lowest point of their gunwale, where water first spills over: 609 and 1911 litres. The outrigger's texture codesfloatbarkandfloatringsdraw the logs, in the float's wood. A dugout off the block grid is squared onto the logs when rigged, turned and moved so the float lies on them, no end of it more than half a block; one turned further from the row isn't rigged. - The bark canoe's sheet is 5 m long. Its stages are
Frame(inwales and thwarts),SlashesandEnds(knife cuts, workcut) andOutwales, before its stems; all four lift itsSkingroup, one child a level,Skin1toSkin13, and its frame pieces show fromFrame{n}At{k}andOutwales{n}At{k}. The finished canoe's item is drawn byroughseas:carriedbuildtoo, which shows only its last step. - The currach's gunwale pieces show from
Gunwale{n}At{k}, its stern ends apart until its second end lashing. - A hide bigger than what is left of a cover gives back the rest as smaller hides of its kind.
Laying.Spendhas an overload taking the pieces the work used. - A reed boat's ends sag over the soak it takes before it sinks with nothing aboard, not over its full saturation. The interface
ISoakingis gone;EntityBehaviorVesselIntegrity.SoakToSinkKggives that soak. - A refused piece logs a
[shipyard]line once a hold.
New: roughseas:framing's stage keys successive, follows and lifts and its work cut, the shape key depthMetres on a lifted group's steps, roughseas:rigging's key floatStage, the shape keys woodLitres and waterlineSquareMetres, and bin/lib/hulls/physics.py, which prints what each builder measures.
A paddled, poled or rowed vessel goes as fast as its rower drives it against the water's drag on it (Driving it), and the tools that drive it are items of their own.
- Our vessels no longer carry
speedMultiplierorturnSpeed: their speed and turn come from our behaviourroughseas:propulsion, which vanilla's raft gets by patch. A Harmony postfix onEntityBoat.SeatsToMotionhands any boat that carries it to the behaviour; vanilla's sailboat and every other mod's boat move as before. Under sail, vanilla's motion stands. - While someone holds a vessel's controls and it is not under sail, the behaviour's own drag takes the water's place along the surface: a prefix on
EntityBehaviorPassivePhysics.MotionAndCollisiongives back what vanilla's water drag takes from its horizontal motion, and leaves it on its vertical motion, which it keeps damping.WaterDragValueitself stays vanilla's. - What the rower spends is the behaviour's
EffortWatts, the power his body gives while he strokes, andStroke, the stroke he makes; until a stamina of our own takes it, the effort costs him satiety. - Vanilla's crude oar carries
roughseas:propulsionas a 2 m pole, and itstpHandTransformis ours, so it lies in the hand where our strokes put a pole. - Each vessel's rower has strokes of his own for each tool,
roughseas-{vessel}-{pole|paddle}-{ready|forward|backward}, inpatches/player-{vessel}.json, the raft's too; they keyItemAnchorto hold the tool where the stroke puts it. The currach's areroughseas-currach-{ready|forward|backward}again, with its own oars and thole pins. - Every vessel of ours has an
Oar Storageslot, its boxOarAPafter its others; the coracle takesrideableaccessoriesfor it. - The pole is drawn at its length:
shapeByTypetakesitem/pole-{2|3|4|5}and its attributes are by type. The shapeitem/poleis gone. - The currach's build ends with a stage
Oarsof the new workoar, tworoughseas:tholeoar-{wood}, and itspartsgainoars;roughseas:covering's new keyoarsnames what that stage takes. With them it weighs 88.5 kg. - The hull's drag law,
HullDragwithWaveMaking, lives with the hull, and a vessel's size for it is itsHullbox, which a client now measures once its selection boxes load rather than keeping its entity's selection box for good.
New: the behaviour roughseas:propulsion with its keys, the items roughseas:paddle-{wood} and roughseas:tholeoar-{wood}, the item attribute roughseas:propulsion, config/propulsion.json and config/vessels/drag.json.
Our vessels draw each place's crack in their own model, from a scratch to a hull stove in, and an outrigger's float takes the knocks on its side on its own lashings (Building a vessel). A vessel of yours loads as it did, its overlay still drawn from damage.textures.
- Our dugout, outrigger, bark canoe, coracle and currach dropped
damage.textures: their wounds areWound{Place}…groups in their shapes, and a patch to their shapes must keep them. Onlywoodandreedoverlays are left; thebarkandhideones are gone. - A knock on an outrigger's float side no longer cracks its starboard side: it goes to
IOutboard,roughseas:floatlashingon ours, whose lashings live inroughseas:vessel/float. So do a blast's and lightning's broad load landing outside its hull on that side; a blade or a club there only chips the float. An outrigger saved before has its lashings whole. - Once those lashings give out the outrigger is replaced by a dugout (
EnumDespawnReason.Removed), as rigging replaced the dugout before. The outrigger's riders keep their seats; what its accessory slots held drops beside it. -
HullDamage.VisibleisOverlaid, true only while an overlay is drawn. - Two vessels meet where either one's
IHull.Reachtouches the other's: its hull out to what stands off it, so a vessel that crosses only an outrigger's float rams the float. The knock's direction is still taken from the hulls, or toward the outboard when only it was met. -
HullShape.PointOfsets each port place a little toward the bow and each starboard place toward the stern, so a leak no longer starts at the mirror of the other side's.
New: IOutboard with OffMetres, IHull.Reach, HullShape.Spanning, EntityBehaviorVesselIntegrity.Impact, HullDamage.Hidden, the behaviour roughseas:floatlashing with its keys, and roughseas:rigging's lashing.
A paddle works on one side and turns the vessel away from it, and the paddler changes sides to hold a course or to turn it (Driving it). A vessel of yours loads as it did.
- A paddled vessel's
strokesholdpaddle-starboardandpaddle-portin place ofpaddle, each with a fourth animation,change, that carries the paddle over to that side:roughseas-{vessel}-paddle-{starboard|port}-{ready|forward|backward}androughseas-{vessel}-paddle-to-{starboard|port}. A vessel whosestrokeskeep a barepaddle, the coracle sculling over its bow, is paddled on no side. A patch that played or replacedroughseas-{vessel}-paddle-{ready|forward|backward}misses. - The vessel's new key
paddleAbeamMetresis how far out from its middle the blade drives: the blade's thrust turns the vessel by that lever. Without the key a paddle drives it straight, as before. - The side is decided on the server, which syncs it to every client in the vessel's watched attributes
roughseas:paddleSide(−1 starboard, 1 port) androughseas:paddleChanging. -
HullDrag.Turningtakes the vessel's speed through the water: under way a hull resists turning in proportion to it, so every vessel turns on a wider circle while it makes way than before, and spins on the spot as before.Propulsor.Pushtakes theSidethe tool works on. -
config/propulsion.json'spaddlingstroke gainsveerDegrees, how far off its course the vessel goes before the paddler changes sides.
New: the enum Side, the class Paddler, the keys paddleAbeamMetres and veerDegrees, and the watched attributes roughseas:paddleSide and roughseas:paddleChanging.
-
roughseas:propulsion'shandsAboveWaterMetresmoved into its newpoleobject, with thestrokethe pole makes and thestancethe rower takes to work it (Driving it). A patch that set the old key sets nothing. - With a pole in hand, the rower's seat changes while the rower holds the vessel's controls: its
RiderOffset,AnimationandEyeHeightbecome the stance's, and go back when the rower puts the pole away, leaves the vessel or someone else takes it. Only the seat of whoever holds the controls changes. A mod that reads a seat's config off one of our vessels reads the stance while he poles. - One owner now writes a seat's pose,
SeatPosesinRoughSeas.Vessels. A swamped hull's hold outranks a stance, and a stance outranks the seat as built. - New player animation
roughseas-stand, which the stance stands the rower in. The pole strokes key his legs and hips too,UpperFootR/L,LowerFootR/LandLowerTorso. -
config/propulsion.jsonhas a second pole stroke,seatedpole, for a vessel too tender to stand on.poleis the standing one, at a gross efficiency of 0.134.
New: the pole key with stroke, handsAboveWaterMetres and stance, the stroke seatedpole, the animation roughseas-stand, SeatPoses, bin/lib/hulls/leg.py and physics.stands, which decides from a hull whether its poler stands, and the bench's bin/scene shallows.
The currach's rower sits where a real Aran rower does: facing its stern, pulling the oars on pins that stand just abaft the thwart.
- Our vessels' seats are
VesselSeat, vanilla's boat seat turned by itsmountRotation: the rider's body, head and camera face that way. Vanilla turns only the limits a body is held in. The currach's seat hasmountRotationy 180; a pole'sstancetakes amountRotationof its own, so its poler stands facing its bow. - The currach's thwart, seat and thole pins moved: the
BackSeatbox is at x 2.12 to 10.12, its point on the thwart; the cargo boxes lie two forward of the rower and one aft of the rower's feet. ItsspanMetresis 4.12 and itsbladeSquareMetres0.057, the blade under the water and itssweepMetres1.3. - Its oars pivot on their pins through the bull on the loom's after side, the loom lying on its gunwale, their looms reach from the pin to its middle, and their blades stand upright, face to the water they push.
New: RoughSeas.Vessels.VesselSeat, and a seat's mountRotation read by bin/lib/hulls/stroke.py.
Our vessels' shapes are rebuilt so that no box stands outside the round it builds and no two faces share a plane. A vessel of yours loads as it did; a patch that addresses their elements by name should look again.
- The coracle's bottom strips,
Bottom{Bow|Stern}{n}, are inscribed in its bottom and joined to its sides byFloor{n}facets, one under each side board. Its bottom reaches round its outermost laths, its laths lie inside its hide, and its binding ties the 27 crossings where both laths lie flat: still three ropes. Its hold is 272 litres. - A hull lofted through stations (the currach, bark canoe, dugout and outrigger) takes more stations toward its ends, so its boards' names run on through them, and each tapering panel takes a second board,
{name}Top. - The currach's and the bark canoe's ends are as broad as what they close round: the currach is 4.76 m long, with a 1911-litre hold; the bark canoe's stem stands 5 cm higher inside its bark, and its lashing takes 21 ropes.
- The dugout's stepped ends are no wider than the hull they continue, its lower ends narrowest: it is 252 kg of oak, with 3329 litres hewn away (
unhewnLitres). - A reed bundle and the outrigger's float are as thick as their round: the bundles are 19 cm across, and the float is 196 litres, 132 kg in oak, which makes the outrigger 491 kg.
- A knock against a block is read as vanilla reads a fall: on the step a collision first blocks an axis of its motion, at the speed its position really changed by over the tenth of a second before, not from
Pos.Motion, which a steered vessel's rider rewrites each frame. A vessel held against a rock, by a current or its rider paddling on, strikes it once. A ram's closing speed comes from both hulls' real change of position too.IHull.Velocitygives a hull's, in m/s, kept byCourse;Impact.Steptakes it in place of its motion's history, andContact's closing speed is in m/s. - A
bundleshell takes a broad load by crushing its stems first:Resistance.CushionJoules, from the material's newcrushStrengthanddensificationStrain, across the bundle'smetresalong one metre of it. Only what is left meetsimpactCapacity. Our reed boat'simpactCapacityis now its lashings' work to break, 30,600 J. Abundleshell of yours on ourreedrow crushes too, and takes knocks it used to tear from. - The bench's
/bridge current SPEED YAWsets one current everywhere in place of the sea's, to carry an unridden vessel as a river would.
New: a material's crushStrength and densificationStrain, Resistance.CushionJoules and Resistance.Severity.
-
A
shellcan name itsframe,{ "material", "metres", "widthMetres", "spacingMetres", "spanMetres" }: the laths or ribs behind it. A broad load (a knock, a ram, rapids, a blast, lightning) on such a shell meets only the shell where it lands and the members there,Resistance.Framed: on a member (Resistance.Backedrolls it byMemberShare), arigidshell's holing with its lining, nothing for askin, plus the member'stoughnessacross its section; between two, both members, and askin's stretch across the gap until its pull breaks them, from a material's newtensileStrengthandelongation. The members' breaking brings the place to a split (HullModel.FrameBroken, a crack of 0.5), twice that stoves it in, and only what is left meetsimpactCapacityto break the hull up; a load that neither opens the shell nor breaks a member leaves the place whole. A shell without aframe, or a hull with noimpactCapacity, takes a broad load as before. -
Our coracle, bark canoe and currach carry a
frame, a 1 by 6 cm lath of their build's wood, and feel a knock from about 1.2 m/s with one aboard where they used to shrug off 2 m/s. A patch that removes theframegives them the whole-frame knock back. -
Resistance.LossandResistance.BreaksFrameare now the resistance's own, andBreaksFrametakes the blow's severity, and whether it landed on a member, rather than its loss.Resistance.Backedtakes the blow. -
While a vessel is built, a broad load meets only the frame members laid:
roughseas:framing's stages markedmemberslay them, andShell.Framedspaces them wider while some are missing.
New: a shell's frame (FrameMember), Resistance.Framed (FramedResistance), a material's tensileStrength and elongation, HullModel.FrameBroken, a framing stage's members.
A reed bundle keeps the plant it was bound from, and the boat each of its bundles. A world's reed boats and bundles from before load as cattail, through the engine's remap files.
- The bundle is
roughseas:reedbundle-{port}-{starboard}-{axis}, itscountgone:starboardisnonewhile it lies alone. Each plant is the code of the vanilla tops item it was bound from,cattailtops,papyrustopsorthatch, and the grid recipe makes the bundle of the tops it takes. - The boat is
roughseas:reedboat-{port}-{starboard}, its item the same; the creative inventory lists the three of one plant. Bound from two plants, each side is its own. Its wreckage is a handful of each side's tops,game:{port}andgame:{starboard}. - Its shape draws each bundle in its own texture,
portandstarboard, and its bound ends intips: the port plant's reed with the starboard plant's strands (reed-{plant}-strands) laid over it. The texturesroughseas:entity/vessel/reed-{plant}replacereed, and itsdamagemarks all three. - A W–E pair binds into a boat turned half round from before (
yaw3π/2, was π/2), so each bundle stays on the side it lay.
New: Reeds, the plants a vessel's bundles were bound from, and its name.
Vanilla's raft is paddled from its side, at its own size. A vessel of yours loads as it did.
- The raft's
Hullbox is its logs, 3.88 by 1.32 m, where it reached its rope wraps' corners, 4.25 by 1.88; the bamboo raft's is 4.19 by 1.32, where it was 4.19 by 1.63. Its drag, reach, the places a knock lands and its heave all read it, and through its beam so do the sea's pull on its mooring, the water it ships and its roll: a moored raft holds about ten times longer in a gale. -
roughseas:seaforces'sbeamMetresmay be left out: the hull then takes itsHullbox's width, so a vessel's beam lives in one place. The newcapsizeBreakerBeamsgives the capsizing breaker as a share of that beam. The raft carries neitherbeamMetresnorcapsizeBreakerMetresnow.EntityBehaviorSeaForces.BeamMetresreads the vessel's hull each time, andSeaworthiness.Fromtakes the beam. -
roughseas:propulsiontakes ahead and turning from the rower's keys, not from vanilla's motion: a paddled boat that carries it no longer goes astern while its rider looks astern. Vanilla's raft is one of them. - The raft's seats hold the body to its heading,
bodyYawLimit0.4, and its rower kneels,mountAnimations.idleroughseas-kneel. Its paddle strokes keyLowerTorsoandUpperTorsoas well: the paddler shifts toward the working side and bends the trunk to it. Its pole's stance stands the poler half a metre toward the side the pole works. - In
bin/lib/hulls,seatreads a seat where the game seats a rider, through the elements it hangs from, andpaddlingtakes a trunkbend, ashiftof the hips toward the working side and themiddleboth sides mirror about.
New: capsizeBreakerBeams, EntityBehaviorPropulsion.Asked.
bin/model build now writes every value it measures off a vessel's model into its own JSON, in metres with the voxels beside them (Measured from the model): our vessels' entity files, and for vanilla's raft and sailboat our patches. A vessel of yours loads as it did, unless it set one of the keys renamed below.
-
roughseas:vesselintegrity'shullBox, in the shape's voxels, is gone.hullBoxMetres,{ "from", "to" }in metres from the point the entity stands at, gives the hull box instead; without it the hull is measured on itsHullAPelement at runtime, as before. A vessel of yours that sethullBoxis now measured on that element. -
roughseas:covering'soverturnedPivot, a height in voxels, is nowoverturnedPivotVoxels, a point[x, y, z]on the shape that the line the vessel is turned about runs through. -
roughseas:bilgetakeslevelHeightsMetres, the height of each level of water its shape draws; the renderer no longer reads them from the shape, so a bilge of yours without it shows no water. -
roughseas:riggingtakesfloatLengthMetres, the float's length for the water it drags as the vessel heaves; before, the float's count of logs stood in for it. -
roughseas:seaforcestakescapsizeBreakerLengths, the capsizing breaker as a share of its hull box's length. The sailboat's is 0.55, from the Wolfson Unit's trials: 4.25 m on its 7.72 m, where it was 3.3. The dugout, the bark canoe and the outrigger givecapsizeBreakerBeams1 in place of a breaker in metres. Our vessels leavebeamMetresout, but for the outrigger, whose measured 2.57 m spans hull and float. - Our vessels'
hitboxSizeis their hull's width and height, and theircollisionBoxestheir hull box in pieces, with the outrigger's float. The raft's box is measured from vanilla's logs, 3.88 by 1.32 m, and the sailboat's from vanilla's planking, 7.72 by 2.5 m. - Measured values that changed: the sailboat's hold 1500 to 8209 litres, its deck 8 to 15.1 m², its waterplane 3 to 8.98 m² and its mast 6 to 7.0 m; windage, in m², the dugout 0.6 to 1.93, the currach 0.9 to 2.54, the bark canoe 0.5 to 1.41, the outrigger 4 to 2.76, the sailboat 6 to 11.46, the raft 1 to 0.35, the reed boat 0.3 to 0.18 and the coracle 0.5 to 0.35; the outrigger's
finSquareMetres0.38 to 0.15; the reed boat's depth 0.182 to 0.194 m and its seated poler's hands 0.72 to 0.49 m above the water;backedShareandbottomBackedSharethe coracle's 0.47 and 0.65 to 0.4 and 0.49, the currach's 0.4 and 0.31 to 0.39 and 0.4, the reed boat's 0.1 and 0.05 to 0.27 and 0.28, and the bark canoe's 1 to 0.48 and 0.98;seep.litresPerHourASeamthe coracle's 12 to 13, the currach's 15 to 12.6; the raft'sshell.spanMetres1.5 to 1.0.paddleAbeamMetresis measured from the vessel's middle. A gale's sea now pulls a moored sailboat about as hard as the gale's wind does, where it pulled twice as hard. A patch that sets one of these values sets it against the vessel's model, and on our own vessels the next build writes over it. - The drawn sea poses a vessel by its hull box's length and its beam; it took its collision box's longer side for both.
-
HullShape's members areHalfLengthMetres,HalfBeamMetres,DepthMetres,CentreAlongMetres,CentreAcrossMetresandKeelMetres, where they wereHalfLength,HalfBeam,Depth,CentreAlong,CentreAcrossandKeel.HullShape.FromBox(fromMetres, toMetres)takes a box in metres from the entity's origin, andHullShape.VoxelsPerBlockis gone.Seaworthiness.From(attributes, beamMetres, lengthMetres)takes the vessel's length too.
New: hullBoxMetres, overturnedPivotVoxels, levelHeightsMetres, floatLengthMetres, capsizeBreakerLengths, the voxel twin of every measured key, and RoughSeas.Units.Voxels, which converts voxels and metres from the one definition in RoughSeas/Units/voxel.json.
The dugout is built as the sources describe it: the bark comes off first, the fire is laid on bare wood, catches and smoulders down to embers, and every hewing is drawn the way the finished hull is (Built in place). A vessel of yours loads as it did.
- An axe Shift + right-clicked on the middle log lays the blank, in its bark; dry grass laid with Shift on a log does what vanilla does again, and our Harmony prefix on
ItemDryGrass.OnHeldInteractStartis gone. A blank no longer starts with its grass laid. -
roughseas:hewstrips the bark a stroke a piece before anything else goes on: clay, dry grass, firewood and a light are refused withshipyard-debark-firstuntil it is bare. - A burnt-out fire leaves the clay on the rim; the hewing takes it off. The first ball's kind is kept as
clayTypeinroughseas:build, and the bark stripped asbarkStripped. - The dugout's fire spawns vanilla's fire particles at their real quantities (they never showed before) and lights the ground round it,
LightHsvas a pit kiln's. - The dugout's shape:
Bark,Grass, the piecesWood{n}x{k},Fire{n}At{p}and the pieces ofClay{n}are new;Blank1toBlank5are hull boards like itsShell, with floors, where they were stacked bands. Its ends show end grain, the outrigger's too. Itschartexture is vanilla's burnt log.
New: barkPieces, hollowLengthMetres, shipyard-debark, shipyard-bark, shipyard-debark-first.
A hewing no longer changes the dugout at once: the inside is cut a section at a time, then the outside trimmed a section at a time, in the same strokes (Built in place).
-
roughseas:burnoutneedshewnSectionsMetres, and its shape drawn in those sections:Blank{n},Char{n}andShellhold a group per section and the dugout's ends, andHewn{n}is new. A burnout vessel of yours draws its levels as the dugout's do. -
IVesselHoldgrewDesignedLitres, the hold it is built to: a hewing's strokes are counted from it. -
roughseas:hewswings the player animationroughseas-hew, vanilla's felling chop with its chop at the blow, where it swung vanilla'saxechopwith a chop a stroke from the server. -
The one who last took an axe to it is kept as
hewerinroughseas:build: only that hull throws chips at their blows.
New: hewnSectionsMetres, roughseas-hew, hewer, IVesselHold.DesignedLitres.
A vessel that becomes an entity, bound, hewn, rigged or spawned, stays where it was put: it no longer slides sideways off a ledge, nor sinks a block into the ground. A vessel of yours loads as it did.
- Vanilla's
passivephysicsmultiboxturns only the middle of each collision box with its yaw, never its sides, so a box longer than it is wide reaches past the vessel's sides once the vessel lies across it, and vanilla pushes the vessel out of whatever it overlaps. Our vessels'collisionBoxesare now their hull box in squares as wide as the hull, spread from end to end and overlapping where its length isn't a whole number of them: the reed boat's nine, the bark canoe's six, the dugout's five, the currach's four and the coracle's two. The outrigger's hull keeps five and its float takes the other five of the ten vanilla's physics holds, 0.25 m squares spread along its 3 m float. - Every hull's boxes start at its origin. A box starting above it, as the reed boat's did by 9 mm, rests on the ground by float rounding, and the vessel sinks through the block under it a few ticks later.
- A vessel of yours on
passivephysicsmultiboxmeets both: cut its hull in squares, as vanilla's raft (1.5 by 1.5 m) and sailboat (2.8 by 2.8 m) are, fromy10.
Each wedge is driven on its own, a step a blow, and the row splits once every wedge in it is home (Recipes).
- The wedge's blocks are
roughseas:wedge-{we|ns}-{0..4}, the last part how far it is driven; it drops and is crafted asroughseas:wedge-we-0. ItssplitSecondsis nowsecondsPerBlow. - Every axe carries
roughseas:drive, which swings the player animationroughseas-drive(its butt brought down on the wedge, chop at the blow) while held on a wedge not yet home. The wedge's own hold and its progress bar are gone. -
roughseas:driveandroughseas:hewcount blows the same way, one a cycle of their animation, each on the server. - A pole's handbook page gives how it is split under "Created by", from
handbook.createdBy. - Poles and laths show one icon for every length: the collectible behaviour
roughseas:icondraws itsshapein place of the item's in inventory slots and the handbook, in the item's own textures. Their per-lengthguiTransformByTypeis oneguiTransform.
New: roughseas:drive, roughseas-drive, roughseas:icon, secondsPerBlow, shipyard-drive (was shipyard-split), handbook-createdby-pole.
A pole's shove, its reach and its drawing are one (Driving it). A vessel of yours loads as it did; one that takes a pole should read on.
- A pole drives the vessel only while its drawn shove is on the bed. A pole stroke's animation starts and ends halfway through its recovery, so its shove is the
driveShareof it that begins(1 − driveShare) / 2in.PoleStroke.Shovegives the force at the share of the animation the rider is at: in the shove, the stroke's mean times the stroke's seconds over the shove's, nothing in the rest.StrokeConfig.Phase,DrivingandLiftsay where a share of the animation falls. A vessel of yours whose pole strokes are drawn another way thrusts off their beat. -
PoleStroke.Thrustis the stroke's mean:pushNewtonsfor as long as the shove lasts, the drawn drive's seconds or the time the vessel takes to pass the shove's travel, whichever is shorter, over the shove and the recovery. The travel ispushMetresor, for a pole too short for the water, as far as its top reaches the upper hand (PoleConfig.Travel).PoleStroketakes thePoleitself, the water's depth, the hands' height over the water and the water's density. - The beat quickens with the vessel's speed, and the shove is drawn as quick:
Stroke.Paceis the drawn shove's seconds over the shove's at that speed while the animation is in its shove, and 1 in its recovery, which keeps its time;MountStrokes.Paceplays the rider's running stroke at that pace through a copy of itsAnimationMetaData.Stroke.LiftWattstakes the stroke's speed, since a quicker beat lifts the pole more often. That speed,Propulsor.StrokeSpeed, is the vessel's speed the way the pole drives it, or the sweep's when it only turns it, and none against its way; force, pace and lift all take it. - Bringing the pole up costs the work of lifting its foot from the bed to the surface less what the water bears of it, paid once a stroke whether it drives the vessel, turns it or both:
Stroke.LiftWatts, whichPropulsor.Pushtakes off before it shares the rest. -
roughseas:propulsion'spoletakesplantAheadMetres,plantAsternMetres,plantAcrossMetres,drawnPoleMetresanddrawnBedMetres, which our builds write. The bed is sounded where the foot lands, twice over a shelf's edge, which then takes the deeper. Without the plant keys it is sounded a pole's footing from the point the vessel stands at; withoutdrawnPoleMetresthe drawn pole doesn't slide. -
RowerStation.PropulsorandTool.Drivetake the way the stroke goes,EntityBehaviorPropulsion.Way: astern, or turning to starboard from rest, the pole is planted ahead of the hands.RowerStation's depth now comes from a point of the hull,EntityBehaviorSeaForces.WaterDepth(alongMetres, acrossMetres, maxBlocks). - On a client, a Harmony prefix on
EntityShapeRenderer.RenderItemslides the pole in a controlling rider's right hand along its length to the bed, never past its top in the upper hand and back to its drawn height as the recovery lifts it, through a copy of itstpHandTransform. A mod that draws held items another way sees the pole at its fitted place. - Every vessel's
pole-backwardstroke is its own animation: the pole planted ahead of the hands and shoved toward its bow. The ready pose holds the pole upright, halfway through the recovery, where both strokes start and end. - A pole that finds no bed shows its rider the in-game error
roughseas-pole-too-deep, the lang keyroughseas:propulsion-pole-too-deep.
New: Stroke.Shove, Stroke.Pace, Propulsor.StrokeSpeed, StrokeConfig.Phase, Driving and Lift, Stroke.LiftWatts, MountStrokes.Pace, Pole.LiftJoules, Pole.Travel, PoleConfig.Footing, PoleConfig.Travel, RowerStation.BedMetres, MountStrokes.DrawnShare, EntityBehaviorPropulsion.Way and PoleSlide, the pole keys above, propulsion-pole-too-deep.
A reed boat's rider poling in first person, and a bark canoe's poling standing, sees the water ahead past the arms. Everyone else, and the rider in third person, sees the stroke as before.
-
The reed boat's pole strokes have first-person twins,
roughseas-reedboat-pole-{ready|forward|backward}-fp, inpatches/player-reedboat.json. They are the strokes with both upper arms moved 7 voxels down and 3 toward the pole's side, so the hands keep the pole. Vanilla plays a mount animation's-fptwin on the rider's own first-person arms, as it does for its crude oar. -
A patch to one of those strokes patches its twin too, or the rider sees the old stroke in first person. A twin of yours plays beside its stroke, so give it the same frames, end and speed.
-
The bark canoe's standing pole strokes have twins of their own,
roughseas-barkcanoe-pole-{ready|forward|backward}-fp, inpatches/player-barkcanoe.json: both upper arms moved 1 voxel down and 3 outboard, so the arms stay in the bottom corner through the stroke, as the raft's do, and the view over the bow stays clear. The canoe is narrow and her pole is planted close beside her, so without them the left arm swings across the middle of the view on the drive. The dugout's standing pole has none, its arms already low.
New: roughseas-reedboat-pole-{ready|forward|backward}-fp, roughseas-barkcanoe-pole-{ready|forward|backward}-fp.
Poles and laths, wet or dry, go down on the ground with vanilla's ground storage, in a pile as long as they are (Recipes).
- Both carry vanilla's
GroundStorablein itsStackinglayout, with onestackingModela length,roughseas:block/pile/{pole|lath}pile-{2..5}, one at a time or a layer with Ctrl: 64 poles, 8 to a layer; 160 laths of 3 to 5 m, 16 to a layer, lengthwise as poles lie; 140 laths of 2 m, 14 to a layer, seven along and seven across as a coracle's lattice.upSolidis false, so nothing piles or stands on top of one.bin/model buildwrites the lath piles' shapes (bin/lib/hulls/piles.py, fromcoracle.py): the 2 m pile's first layer is the coracle's flat lattice, of whole 2 m laths. - A Harmony prefix and postfix on
BlockGroundStorage.CreateStorage, for an item that carries our collectible behaviourroughseas:longpile: a new pile starts only where every block of its footprint has room, ground and the player's leave to build, or the player sees vanilla'splacefailure-notenoughspace; then vanilla's fillers,multiblock-monolithic-*, hold the blocks beside it, so a click or a break on any of them reaches the pile. Its footprint is the blocks of its length, or the behaviour's optionalfootprintproperty, the blocks it reaches over as[x, z]offsets from its own block in the pile's frame (the 2 m lath's: the block and its four neighbours). A mod that starts ground storage another way starts a pile of ours one block long.roughseas:pilefootprint, patched ontogame:groundstorageahead of itsUnstableFalling, takes the fillers up with the pile. It also holds a long pile up while ground lies under any block of its length; with none left, the pile breaks and drops its pieces instead of falling. A mod that sets a block beside a pile of ours finds a filler there. - A pole stacks to 32 (it was 8), and a split drops its 64 in stacks of the pole's
maxstacksize. - A row of N logs splits into 64 poles that burn as long as the logs' firewood, four of 24 s a log (three of kapok, purpleheart or ebony): a pole N logs long burns 1.5 × N s, 1.125 × N s of those three. A dry lath burns a sixteenth of its pole; a wet one has no
combustiblePropsand doesn't burn. - The lath's item shape,
shapes/item/lath.json, is one lath in place of the tied bundle, and the lath no longer carriesroughseas:icon. - Every vanilla wood in
config/vessels/materials.jsonhas atoughnessnow: kapok, koa (wood-acacia), bald cypress, larch, redwood, walnut, ebony, purpleheart and aged wood are new, each with its source.
New: roughseas:longpile, roughseas:pilefootprint, the pile shapes.
A coracle and a currach start from one pile of wet laths, and every build and mend is held work (Laid out on the ground, The hull). A vessel of yours loads as it did, unless it set layout.
- The lath bed is gone: the block
roughseas:lathbed, the collectible behaviourroughseas:lathbedand the shapeblock/laidlath. Wet laths pile in vanilla's ground storage as dry ones do, and a 2 m pile lies as a coracle's lattice over its block and its four neighbours, throughroughseas:longpile's newfootprint. -
roughseas:covering'slayoutis replaced bystart,{ "laths", "metres" }: the count and length of the laths in the one pile that starts the vessel, written by our builders. Rope on a pile of exactly that many wet laths binds it into the blank where it lies and uses the pile up; a Harmony prefix onBlockEntityGroundStorage.OnPlayerInteractStarthands rope's click to the binding, since vanilla's rope is ground-storable. - Wet laths have no
combustibleProps. - Mending is held: each
repairsentry takesseconds, how long a patch is held on the hull. The vessel'sOnInteractno longer mends; every material arepairsentry names carries our collectible behaviourroughseas:framing, which holds the patch as it holds a build's piece, through the interfaceIMendedHull. - While a build's or a mend's hold does work, the holder plays vanilla's
knifescrape, and stops on letting go or a refusal. - Every cooking pot carries
roughseas:framingtoo, as liquid containers do: apitchstage takes hot pitch from the pot it was cooked in, and empties it with the last portion. - Every build answers its interaction help, its look line and a right-click that does no work from its next step in
EntityBehaviorBuild, which raises the in-game errorroughseas-build-step. The lang keygame:cantride-roughseas-unfinishedand the errorroughseas-unfinishedare gone. Shift + right-click picks up a vessel being built, with an empty hand or holding a piece of its build. - The bark canoe's
Lashingstage holds a rope 3 seconds, where it held it 15.
New: roughseas:covering's start, roughseas:longpile's footprint, repairs[].seconds, IMendedHull, roughseas-build-step.
The dugout runs the whole length of its log row, and its hollow ends round inside (Dugout). A dugout of yours loads at its new size.
- The dugout is 5 m long, the five logs' whole length, where it was 4.5 m: its bottom rakes up under each end, and the log's sawn end stays its end face. In oak it is 304 kg with a 1436-litre hold, where it was 252 kg and 1298 litres, and 3114 litres are hewn away (
unhewnLitres). ItscollisionBoxesare six overlapping squares. - In its shape the boards of each end run on in the first and last sections,
Blank{n}x1andx3, whoseInsideholds the hollow's end, half a bowl of staves (Bowl{j}x{k});Hewn{n}x1andx3hold the bowl the next hewing leaves, and the first hewing's trench,Hewn0, closes round in bowls of its own.Blank{n}Stern,Blank{n}Bow,ShellSternandShellBowhold the top of each end in strips (Rim) and the log's end grain (Cap), where they held stepped blocks. Every level keeps the row's length; its hull box only loses height. -
Clay{n}lies along the ends in strips round the bowl's mouth, so the fires take 19, 13, 13, 12, 11 and 11 balls. - The outrigger is built on the same hull: in oak 515 kg, 547 with its washstrakes. These add 479 litres, where they added 422, and are twelve planks, a board along each side five long and one across each end at the bowl's far rim, sewn with 132 stitches.
- A build saved under an older version of its data is brought up to date once, on the server, as it loads:
EntityBehaviorBuild.Upgrade(version, upgrade). The dugout'sroughseas:burnoutis at version 2: a rim clayed to the last ball by its old size,rimVoxelsBefore, stays clayed, and a hewing keeps its share of the strokes it took then,strokesPerHewingBefore. - A framed build's stage counts as done once a later stage is begun (
Framing.Laid), so a save whose stage took fewer pieces then still reads as built: an outrigger sewn up with her ten old washstrake planks is finished. -
Burnout.Unclayedsays which of a level's clay pieces aren't on the rim yet, from their exact areas.
New: rimVoxelsBefore, strokesPerHewingBefore, EntityBehaviorBuild.Upgrade, Burnout.Unclayed, Burnout.KeepProgress.
The outrigger's washstrakes run its hull's whole length, the dugout's five logs, where they stopped at the ends of its hollow (Outrigger canoe).
- Each side is five planks of a metre from one log end to the other, and the end boards
StrakeSternandStrakeBowstand across the log's sawn ends. Still twelve planks. - Sewn, they add 573.5 litres (
raisesLitres), where they added 479.3: the hold they raise is the plan inside them, over the hollow and the solid ends alike. In oak the outrigger is 551 kg with them, where it was 547. - Sewing them takes 146 stitches, five ropes, where it took 132 and four, so the
Seamsstage has five pieces. - A framing stage may name
piecesBefore, the pieces it took in an older release.roughseas:framing, and with itroughseas:riggingandroughseas:covering, is at data version 2: a save's count of such a stage keeps its share of the work, rounded up (Framing.KeepProgress). An outrigger sewn up with four ropes stays sewn up.
New: piecesBefore, Framing.KeepProgress.
Laths soak on the bottom of any water as well as in the barrel, whose recipe stays (Recipes).
- The item
roughseas:lathbundle-{wood}-{length}-{dry|soaked}, classroughseas:ItemLathBundle, is made in the grid from 32 dry laths of one length and wood andgame:stone-*: 26, 38, 51 or 64 stones for 2 to 5 m (recipes/grid/lathbundles.json). The stack attributeweightholds the stones, whichOnConsumedByCraftinggives back when the bundle is untied in the grid. Untied, a-soakedbundle gives-wetlaths and a-dryone-drylaths. A soaked bundle dries back to-dryby a vanillaDrytransition of 48 hours and keeps itsweight. - Right-clicked on water or a block, it lays the entity
roughseas:lathbundle-{wood}-{length}, classroughseas:EntityLathBundle: vanilla's passive physics at its default entity density, so it sinks, held byroughseas:restingphysics(EntityBehaviorRestingPhysics, apassivephysicsthat keeps an entity on the ground from moving sideways), so once on the bottom the push of flowing water doesn't move it. It has nodespawnand noroughseas:currentdrift. Its watched treeroughseas:soak(hours,soaked,checkedAt) holds its water as hours of soaking on the sea clock: they rise while its block is water and fall at the same rate out of it, between 0 and itssoakHoursattribute, 48, the barrel'ssealHours(Soaking). It is soaked once they reachsoakHours, and stays soaked until they are back to 0, so a soaked bundle laid ashore dries in two days as its laths do. A right-click lifts it into the item of its state, a soaked one with the hours of wetness it has left as itsDrytransition's, and laying a soaked item gives them back. It draws its stones in the texture of the rock they are. -
bin/model build coraclewrites the shapesshapes/entity/lathbundle-{2..5}.json(bin/lib/hulls/piles.py), its stones as many as the recipe takes.
New: roughseas:lathbundle (item and entity), ItemLathBundle, EntityLathBundle, roughseas:restingphysics, the icon shapes/item/lathbundle-icon.json.
The drawn waves now move every EntityBoat with roughseas:seaforces, steered or not (A ship that rides our swell).
-
IDrawnSeagainedHullVelocityAt. A class of yours that implementsIDrawnSeahas to add it. Code that only readsIDrawnSeais unaffected.
A current now carries a steered vessel too, and pulls on a moored one. See Building a vessel.
-
roughseas:currentdriftgoes on both sides: list it inclient.behaviorstoo, or a steered vessel of yours ignores the current as before. Its class is nowRoughSeas.Storms.EntityBehaviorCurrentDrift, and it acts only on anEntityBoat. - The wind no longer moves a vessel nobody steers:
currents.stokesDriftPerMpsis gone fromseaweather.json. -
HullDraggainedAcross,Pull,Settle,Swing,KilogramsandAcrossKg. - A vessel's motion carries the set: read
IHull.Velocityfor her speed over the ground, as before.
New: IHullWay, LiveDrag, HullSet, and the optional keys bowDrag, sideDrag and finSquareMetres under roughseas:currentdrift.
A stake rope and an anchor's rode now hold a vessel at their own length and part by the pull on them (Mooring, Anchoring, Building a vessel).
-
roughseas:mooringgoes on both sides: list it inclient.behaviorstoo, or a steered vessel of yours isn't held. - A vessel takes one rope: our postfix on vanilla's
EntityBehaviorRopeTieable.CanAttachrefuses a second on an entity withroughseas:mooring. While it ties the vessel to a post, our mooring takes vanilla's pull and tear off that rope, and gives them back once it doesn't. - The anchor's
holdingNewtonsattribute is nowkilograms, its stone's mass; what it holds comes from the seabed under it. Our anchor's state moved to the watched treeroughseas:anchor. - Gone from
storms.json:mooring.stakeReachMetres,mooring.anchorDragMetres,waves.airDensity,waves.windageDragCoefficientandwaves.waveDriftCoefficient. New undermooring:sandHold,rockHoldandanchorStoneDensity.rope-flaxinmaterials.jsongainedelongation. - Gone:
Waves.Force,Waves.ChanceToExceedandEntityBehaviorSeaForces.Force.AnchortakesKilogramsandBedHoldin place ofHoldingNewtons. - Vanilla's rope-id counter: our patches on
ClothManagerstore it on save and read it on load, underroughseas:nextClothIdin the save, andRegisterClothskips an id a loaded rope holds. A world saved before starts its counter at 1048576.
New: MooringLine, MooringLoad, VesselRope, MooringReport, and MaterialTable.StretchAtBreak.
The drawn waves reach the shore, over water we put under it (Water under the beach). A vessel of yours loads as it did; a mod that reads water from the fluid layer should read on.
-
Under the full blocks of a shore at its still-water level, sea or lake, rock included, the fluid layer holds vanilla's still water, salt or fresh, as far as the waves run up. It is there only so the surface is drawn over it. How far it reaches is worked out again, never recorded: when a chunk loads, when a block in or beside the band changes, and when its shore's sea changes, so it widens in a storm and drains after. The water itself is vanilla's and is saved with the chunks: removing the mod leaves it under the shores, hidden, and vanilla then reads it as water there (a bucket fills from beach sand at sea level). Each chunk's band logs a
[shore]line in the server's debug log. -
Open water. A position holding a full solid block is land, whatever its fluid layer holds. Ask
RoughSeas.Water.OpenWater, never the fluid layer alone:OpenWater.At(blocks, pos)(orAt(blocks, x, y, z)) gives the fluid there, and air where a full solid block stands;OpenWater.Land(blocks, pos)says whether one does. A waterlogged partial block, a post, a fence or a slab, stays water around it. Every reader of ours asks it: the ocean's calibration, the fetch and depth, breath, the camera, a hull's draft and sea forces, sounds and the shipyard. -
Vanilla's
waterandsaltwatercarry our block behaviourroughseas:groundwater(patches/shore-water.json), which asks the band to be worked out again when a block beside the water changes; the band itself lays the water. Vanilla's spreading leaves the water there alone; break the block over it and it is ordinary water again, so a hole dug down to it fills. -
Harmony keeps vanilla's readers on land there: a random tick at such a position goes to its solid block, so the water under it doesn't freeze; liquid containers neither fill from it nor select it (
BlockLiquidContainerBase.TryFillFromBlock,GameMain.GetBlockIntersectionBoxes);IBlockAccessor.SearchFluidBlocks, which farmland searches with, finds air there; and a bobber's pond (EntityBobber.getPondSize) doesn't count it. A mod that reads the fluid layer some other way sees the water: askOpenWater. -
The drawn sea reads the seabed around the player. Near the shore
IDrawnSea.HeightAt,PoseOfandHullVelocityAtgive the waves grown, turned and broken by the depth, and nothing over land; the sheet that runs up the beach is drawn by the shader alone.IDrawnSeagainedWaveHere(x, z), the one answer to how high the waves stand at a point, where they run, how deep they feel the water and whether they break (Reading it); a class of yours that implementsIDrawnSeahas to add it. A hull takes the waves at its own place, over its bed, on the side they come from, no longer the open sea's by the wind. The water's physics is one module,RoughSeas.Water. -
Gone:
EntityBehaviorSeaForces.Wave(Tookstays) andWaves.BreaksAt(askWaveHere); from the configswaves.maxDepthBlocks,waves.bedSlopeBlocks,surface.surfFoamand the shore sound'smaxDepthBlocks;seafoam.fsh's depth bands.seaFoamis avec3. -
The liquid shader takes eight more samplers,
seaBed,seaBedAux,seaLagA,seaLagB,seaFace,seaGainA,seaGainBandseaSurf, on the eight units belowseaHeightMap's and out of the engine's numbering as it is (SheyderMod);chunkopaqueandchunktopsoilreadseaBedandseaBedAuxto darken wet ground. -
On the server,
/shore herereads the ground under the player at still-water level and how far the nearest shore's sea runs up it, and/shore budgetthe time the shore's water has taken since the last report. On a client,.surface shore offdraws the sea as if it were deep everywhere andonbrings the shore back, and.surface bed Nreads the seabed and the swash under the player and N blocks along X. -
config/shore.jsonholds the run-up (runUp: Stockdon's and EurOtop's factors,wallSlope, steeper than which a shore is a wall, andslopeSearchBlocks, how far inland the slope is read), the sheet (sheet: the uprush's bed friction and the lens's depth), each bed by its block material (beds:conductivity,roughness, andsandyfor Stockdon's beach run-up; a material it lacks counts asstone) and the band (band:haloBlocks,highestRiseBlocks,refreshMinutes,tickBudgetMilliseconds).config/storms.json'ssurface.shoreholds the seabed map's size and refresh, wet sand'swetReflectanceand the water'swaterAttenuation. The physics and every source: The science of the waves. -
Faces. The waves reflect off every side of a full block the sea meets. A breaking wave throws spray and foam at a face higher than its crest, and a sheet stopped at a step throws spray there.
IDrawnSea.HeightAtandPoseOfinclude the reflection;HullVelocityAtdoesn't, so a hull rides the standing wave but is not pushed by it. The shared sea decides each strike from the world's clock, so two clients see the same one; the particles themselves are each client's own, spawned through vanilla'sRegisterAsyncParticleSpawner.shore.json'sfacesholds the reflection and overtopping formulas, the jet's speed, the foam's decay and the budget of spray per metre of face..surface bedreports the nearest face, and the client's debug log carries a[storms] strikesline of what the faces around the player did in the last 5 s. -
The finer surface. Near the player vanilla's water is divided on the GPU (OpenGL 4.0 and up), and waves between 8 m and half a metre long lie on the swell.
IDrawnSea.HeightAtincludes them;PoseOfdoesn't, since a hull averages out what is shorter than itself. Over our sea vanilla's own height noise on the water is off.config/storms.json'ssurface.tessellationandsurface.shortWaveshold the mesh's reach and division and the short waves' bands..surface colours truepaints the water by height, over a fixed range with.surface colours true LOW HIGHin metres above still water,.surface map sheetby which wave's swash stands over the beach,.surface tessellation|reflection|lag|energy falseleaves one thing out,.surface probe X Zreports the sea at a point, and.surface watch X Z SECONDSlogs what the swash reads there ten times a second.
New: OpenWater, IDrawnSea.WaveHere, the block behaviour roughseas:groundwater, config/shore.json, surface.shore in config/storms.json, /shore, .surface shore and .surface bed.
A player floats by what the body displaces (Swimming), and what a player weighs has one answer, in the new module RoughSeas.Person. A vessel of yours loads as it did; a mod that weighs a rider or moves a swimmer reads on.
-
api.ModLoader.GetModSystem<PersonModSystem>().Personis anIPerson, on both sides:Body, the one reference body (MassKg, and what it displaces by height), andCarriedBy(entity), a player's armour and the tools and weapons in their hotbar, aCarriedin kilograms and litres. The backpack and materials weigh nothing. - Vessels weigh riders through it: a rider in no armour with nothing in the hotbar weighs 75 kg, all of it body, so a flooded hull no longer counts 10 kg of everyday gear as sinking. Armour weighs 83.3 kg to the unit of walk-speed penalty, where it weighed 60.
- Gone from
config/vessels/mass.json:playerGearKg,armorKgPerWalkSpeedandcrewKg. A patch to them goes toconfig/person.json:body.massKgandcarried(armourKgPerWalkSpeed,toolKgbyEnumTool,densityKgPerLitre). Gone fromVesselMass:PlayerGearKgandArmorKgPerWalkSpeed;CrewKgnow reads the body. -
RoughSeas.Vessels.HeaveAddedMassisRoughSeas.Water.AddedMass, and its methods take the water's density:OfPlate(halfLength, halfBeam, kgPerCubicMetre),OfWaterplane(squareMetres, halfBeam, kgPerCubicMetre). New beside them,OfSpheroid(length, cubicMetres, kgPerCubicMetre). -
IDrawnSeagainedRiseVelocityAt(x, z, below)andRiseAccelerationAt(x, z, below), the water's vertical motion under the drawn surface (Reading it). A class of yours that implementsIDrawnSeahas to add them. -
RoughSeas.Storms.PassingWavesis the one rule for the waves that reach a thing, a vessel or a swimmer: one a dominant period of the world's clock, each with its height, whether it breaks, in surf or as a whitecap, and its breaker's speed.SeaClock.LaplostLivedSeconds: a lap is the world's clock for everything at sea, the hours/time addmoves on included, so a mechanic that counted its events by it takesSeconds.RoughSeas.SeaAndWeather.WaterDraggainedCarried, which puts the water's velocity into an entity's motion through vanilla's water drag, for a hull and a swimmer alike. -
BodyAfloatpatches vanilla'sPModuleGravity.DoApplyandPModuleMotionDrag.DoApplyfor a player in the water, on the client that moves them;BodyUnderSurfacesetsSwimmingandFeetInLiquidafterEntityBehaviorControlledPhysics.ApplyTestsfrom the drawn surface on both sides, near water, and swaps the depthPModulePlayerInLiquid.HandleSwimmingtakes. A mod that patches those for a player meets ours. - The world setting
swimmerBreakers(World settings). Floating and breath have none. -
config/storms.jsongainedwaves.freshWaterDensity. A crest that breaks over a swimmer is logged by the server as a[person]line and sent to that player's client overroughseas:person.
New: IPerson, PersonModSystem, config/person.json, AddedMass.OfSpheroid, IDrawnSea.RiseVelocityAt and RiseAccelerationAt, PassingWaves, WaterDrag.Carried, the world setting swimmerBreakers.
A mod that replaces vanilla's shaders no longer breaks one of vanilla's programs by meeting our text in it.
- Our text goes into a shader program only when everything it reads is there: the anchor lines it is set at,
void main()for the sea surface, and each declaration it uses, of that type, as a variable rather than a function's parameter. Wet sand's own functions go at the top of the source, after#versionand#extension, so its anchor may sit in any function of yours. Wet sand readsvec3 normal,vec4 worldPosandvec4 texColor(inchunkopaque) orvec4 outColor(inchunktopsoil); the sea surface readsvec4 worldPos,vec3 playerposandint renderFlagsinchunkliquid.vsh, andvec4 texColor,bool isLava,vec3 fragNormal,float brightandfloat shadowBrightinchunkliquid.fsh. The tessellation needsvoid main(void),vec3 xyzandint waterFlagsIninchunkliquid.vshandchunkliquiddepth.vsh. - One of vanilla's programs that fails to compile with our text in it is rebuilt without it, on every shader reload. A tessellation stage that fails turns tessellation off for the water. A program a mod registers itself is compiled after vanilla's, and gets no second try.
- What is left out, and why, is a warning in
client-main.log:Rough Seas leaves wet sand out of shader program chunkopaque: its source has no 'void main()'. The program then draws as your mod wrote it.
A hull moves by the sum of the forces on it, the waves' among them, so one running near a wave's speed is carried on its face; a mooring line holds by its tension; a swimmer strokes with a force, and a current carries a swimmer (How the waves move a hull). A vessel of yours with our behaviours loads as it did; a mod that reads or moves a hull or a swimmer reads on.
-
IDrawnSeagainedHullGradientAt(x, z, lift, draft, yaw, length, beam), aFlowGradient(Reading it);SeaSurfacehas it too. A class of yours that implementsIDrawnSeahas to add it. - The waves no longer move a hull from a postfix on
EntityBoat.updateBoatAngleAndMotion:WaveCarryis gone, androughseas:currentdriftmoves the hull by the current, the waves and its lines in one step.WaveRide.CarrybecameWaveRide.Water, which reads the waves under the hull as aWaterOnHull;WaveRide.WaterAccelerationandEntityBehaviorSeaForces.Drivenare gone.HullRidergainedGradient. -
HullSetholds the hull's velocity beside the waves' water,Own, which forces change:Addadds a velocity to it,Settle(drag, water, yaw, seconds)andRelax(water, yaw, share, seconds)move the hull by the water and return the water's acceleration of it besides its drag, andPushedis the waves' last push.HullSetandFloatingBodyboth derive from the newBodyInWater, which holdsVelocity,OwnandPushed.Hold,SlowandPivotMotionare gone, andPullandSwingtake aWaterOnHull. The watched treeroughseas:setcarriesOwn, without the waves' water.EntityBehaviorCurrentDriftlostHeld,PivotMotion,HoldandSlow, and gainedLoad,VelocityandImpulse(in newton-seconds). While a hull is steered, its rider's client sends the server itsOwn(HullSetReport, taken byEntityBehaviorCurrentDrift.ReportedandHullSet.Reported).EntityBehaviorCurrentDrift.Pullis now the drag beyond what the hull's own way meets.HullDrag.Pulltakes the hull's own way along it, andSettlethat way and a push; newNewtons,AccelerationandKilogramsToward. -
roughseas:mooringholds by its lines' tension, a force on the hull:MooringLine.Oversolves a line over a tick and replacesTension, andMooringLine.Draggingis an anchor sliding at its holding. Nothing of the mooring runs on the physics thread any more (EntityBehaviorMooring.Restrainis gone). -
VanillaSwim.RealizedandCommandedare gone. A rowed boat moves on its rower's client, where vanilla's swim drag never acts, so itsForwardSpeedis its way; a hull's way through the water isHullSet.Way, measured from vanilla's moves. - A swimmer's stroke is ours:
BodyAfloattakes back the motionPModulePlayerInLiquid.HandleSwimmingadds for a player afloat, on the client that moves them, and strokes bySwimStrokefrom the controls;BodyUnderSurfaceno longer transpiles it.config/person.json'sbodygainedstrokeNewtonsanddragAreaSwimming.FloatingBody.Steptakes the stroke and the current, which now carries a swimmer, by theoceanCurrentssetting.
New: IDrawnSea.HullGradientAt, FlowGradient, WaterOnHull, SwimStroke, MooringLine.Over and Dragging, LineStep, BodyInWater, HullSet.Add and Way, HullSetReport, HullRider.Gradient, Body.AddedAlongKg.
At its true size no container fits inside the hull of a vessel of ours with sides, so the dugout, the outrigger, the bark canoe and the currach carry their cargo in holds instead: inventories of their own, opened by a click on the hold, whose largest stacks lie on the floor as vanilla's ground piles. The reed boat keeps its basket, at its true size. A vessel of yours loads as it did; one of ours from an earlier version stows its containers in its holds as it loads.
-
roughseas:cargogives a vessel its holds.holdslists each one'sselectionBoxandquantitySlots;placesgives the middles of each hold's piles in the shape's frame, by the hold's box (metres, the twinvoxels);pileScaleis a pile's size against vanilla's ground pile of one block;dropContentsOnDeathempties the holds when the vessel breaks. Put it beforerideableaccessoriesin both lists, and give each hold's box an empty slot at its index inwearableSlots. For our vesselsbin/model buildwritesplacesandpileScalefrom the model (bin/lib/hulls/cargo.py), with the box as an element of its own (MidHold,AftHold,ForeHoldorHold);holdsstays hand-written. - A hold's stacks are drawn by size, the largest nearest the middle of its places, each as a ground pile of its kind (
CollectibleBehaviorGroundStorable's layout, stacking model andgroundStorageTransform) as high as the whole hold is full. A stack vanilla can't lay on the ground isn't drawn, and the next largest takes its place. - Each hold keeps its inventory in the vessel's watched attributes,
roughseas:hold0,roughseas:hold1and on, and takes its client packets at an offset clear ofrideableaccessories's held bags. Vanilla's/giveitemand/giveblockfill it from the console:TryGiveItemStackstows into the holds with room, and passes on what none takes. - A vessel's own modules see the holds through
IHeldCargo(Vessels): a vessel isn't picked up while one has anything in it, and one rebuilt into another (rigged, or its float come away) drops what they carry, as it drops its accessories. - On loading, a stack in an accessory slot that no longer takes it moves to the slot that does, and a container goes to the holds, its contents and then the container emptied.
- The reed boat's
Cargois unscaled and lies behind the rider; the cellsForeCargo,MidCargo,AftCargo,BackCargoandFrontCargoare gone, with the slots that stepped into them.
New: roughseas:cargo, IHeldCargo, EntityBehaviorCargo, Hold, HoldInventory, GroundPile, CargoRenderer, Stowage, StrayContainers, the elements MidHold, AftHold, ForeHold and Hold, the attachment points MidHoldAP, AftHoldAP, ForeHoldAP and HoldAP.
A row split with wedges sounds the crack that opens vanilla's effect/treefell, and not the tree falling after it.
- The wedge's
crackattribute is aSoundCut,{ "location", "untilSeconds", "range" }: every client withinrangeof the split playslocationfrom its start and stops it atuntilSeconds. Vanilla's file is played as it ships, nothing of it copied. -
SoundscapeModSystem.Play(SoundCut, Vec3d)does this from the server for any module, over the new channelroughseas:sounds.
New: crack, SoundCut, SoundscapeModSystem.Play, roughseas:sounds.
The open sea's beds, the surf and the whitecaps' hiss are switched off until they are redone from real recordings. Every sound of an event still plays: a hull's knocks and cracks, the slaps and splashes of the waves, a breaker's slam, water over the gunwale, a leak, the bilge's slosh, a plunging crest.
-
config/soundscape.jsongainedbackground, false. With it off we patch neitherBlockWater.GetAmbientSoundStrengthnorBlock.GetSounds, so vanilla'swaterwaveslaps along every edge, breaking or not, and a mod that changes water's sounds sees vanilla's. Vanilla's rowing (ModSystemBoatingSoundAndRatlineStamina.NowInMotion) plays at its own volume too:vanillaRowingVolumeapplies only withbackgroundon. - A patch that sets
backgroundto true brings all of them back as they were,beds,shoreandcrests.hissunchanged.
Rope, cord and a hide sewn on go into a vessel with both hands tying knots, in third and first person (Framed in place). A vessel of yours with our behaviours loads as it did; a mod that adds a kind of work reads on.
-
HullWorkandMendWorkgainedHands, the player animation their hold plays,knifescrapeunless the work says otherwise. A stage's comes fromLaying.Hands:RopeLayingandHideLayingtie. A mend's comes fromIMendable.Hands:LashedHull, a raft's lashings and the outrigger float's, ties.WorkHandsholds the two codes.CollectibleBehaviorFraming.WorkAnimationis gone. - The player animation
roughseas-tieand its first-person twinroughseas-tie-fpare added to the seraph bypatches/player-tying.json, whichbin/model build tyingwrites.
New: HullWork.Hands, MendWork.Hands, Laying.Hands, IMendable.Hands, WorkHands, the player animations roughseas-tie and roughseas-tie-fp.
The wind blows on every vessel, and the outrigger and the sailboat sail by it, a force on the hull as the water's is (The wind). A vessel of yours takes the wind only if you give it roughseas:windage; without it, it moves as before.
- The new behaviour
roughseas:windage, in the new moduleRoughSeas.Wind, pushes a vessel by the apparent wind on what stands above the water. The new behaviourroughseas:sail, in the new moduleRoughSeas.Sailing, gives it a sail that drives it as a wing of its cloth's outline as the wind meets it, its force from that geometry; the windage takes the sail as one more surface throughIRiggedandIAloft. Its load enters the hull's set throughroughseas:currentdrift, steered or not, and its moment turns a hull no line holds by the bow. - Under sail, a postfix on
EntityBoat.SeatsToMotion(SailedByWind) takes vanilla's drive out for a vessel with a sail of ours: the wind drives it, and only its rider's turn stays vanilla's. OurEntityVesselturns under sail whatever its rider holds,requiresPaddlingToolor not. A vessel withoutroughseas:sailsails at vanilla's pace as before;roughseas:sailneedsroughseas:windagebeside it, and fails to load without it. - Vanilla's sailboat gets
roughseas:windageandroughseas:sailbypatches/wind-vessels.json; the sail'sdrawntakesSailUnfurled,SailHalf,SparORIGINandSailFurledout of its own drawing: its cloth is drawn by our renderer, its yard and furled bundle are its own elements turned with the brace, all in the boat's frame, and the foliage warp is gone from them. The elements stay in the shape. - The outrigger's rig is the shunting canoes': its mast moved to the float's side and rakes toward the tack, its shape lost
SailUnfurledandSailHalf,roughseas:rigginglostrigged(a sail of ours waits for its build inroughseas:sail), and its rig stages are drawn by the renderer once it is built. Its mast step moved fromMastintoFittings, beside the sail steps. ItsMaststage takes four poles (mast, shore, yard, boom; the spars 4 m),SailFurledthree cloths andStaysfive ropes. Its selection boxes gainedBowStepAPandSternStepAPafterOarAP, with empty slots inrideableaccessories; a right-click on the far one shunts it, and which end its tack is at is the watched introughseas:tacked. - Every vessel's
windageSquareMetresmoved fromroughseas:seaforcestoroughseas:windage, beside the newfrontSquareMetres,windageCentreMetresandlateralCentreMetres, all measured bybin/model build: ours, vanilla's raft and sailboat, and Shipwright's boats each carryroughseas:windagenow. A vessel without it moves as before. - A hull's physics afloat left
RoughSeas.Stormsfor its own namespace,RoughSeas.Floating:BodyInWater,WaterOnHull,HullSet,HullSetReport,DriftPhysics,EntityBehaviorCurrentDrift,EntityBehaviorSeaForces,Seaworthiness,Heave,HullResponsewithResponseConfig,HullRiderwithRiddenHull,WaveRide,DrawnHull,VesselMotionandVesselDraught.FlowGradientstays inRoughSeas.StormsbesideIDrawnSea, andHullPointis inRoughSeas.Vessels. Their behaviour codes are unchanged. -
MooringLineisRoughSeas.Lines.Line, a rope's physics in a module of its own, apart from mooring:Line.Oversolves it over a tick andLine.Partssays whether it parts.MooringLine.Draggingmoved toAnchor.Dragging. -
HullSet.SettleandRelaxtake a steady push in m/s², andEntityBehaviorCurrentDrift.Loadincludes the wind's.IHullFormgainedFinished. - The world setting
sailWind(a dropdown, 1 to 3) multiplies the true wind a sail feels, before her own velocity is taken off; nothing else sees it.BodyInWind.Loadtakes it, and aWindSurfacethatSailsgets it. -
config/wind.jsonholds the air, the wind's growth with height, a bluff body's drag and the air's viscosity;config/sailing.jsona sail's camber and cloth, its lines, the crew's pace, and underflowthe drag of a plate across the wind and where a sail's flow breaks, each number with its source. A sail names no polar:sail.polaris gone, and its rig'skindpicks the measurements. A[wind]line logs the wind and its push every few seconds where the vessel's physics runs,[sail]lines the sail and its rig's tensions, and each shunt on the server.
New: the behaviours roughseas:windage and roughseas:sail with their keys, IWindOnHull, IAloft, IRigged, BodyInWind, VesselInWind, WindSurface, Sail, SailForm, Wing, Lattice, RigShape (the rig's state, which whoever runs her physics publishes: the server in the watched bytes roughseas:rig, the steering client to the server on the channel roughseas-sail; every other side draws it), RigRopes, RoughSeas.Lines.VanillaRopes, Rig, Rigging, CrabClaw, SquareRig, RigRenderer, WindModSystem, SailingModSystem, SailedByWind, RoughSeas.Lines.Line, Anchor.Dragging, config/wind.json, config/sailing.json, patches/wind-vessels.json, the watched int roughseas:tacked.
| Name | What it is |
|---|---|
roughseas:seamap |
the map region moddata, and the network channel that carries the map to clients |
roughseas:oceancalibration |
save data: what the world's ocean map means |
roughseas:vessels |
the network channel a rider's client reports its vessel's knocks over |
roughseas:storms |
the network channel a rider's client reports a parted mooring over |
roughseas:anchor |
a vessel's watched tree: where its anchor lies and what holds it |
roughseas:hold0, roughseas:hold1… |
a vessel's watched trees: what each of its holds carries |
roughseas:tacked |
a vessel's watched int: which end its sail's tack stands at |
roughseas:person |
the network channel the server tells a swimmer's client of a crest breaking over them on |
roughseas:nextClothId |
save data: vanilla's next rope id, which vanilla itself loses |
roughseas-force* |
our wind patterns, which our model sets; to hold a region's wind, set a pattern of your own (Wind patterns) |
The mod can join an existing world, and leave one. Without it the world opens cleanly: each region keeps the strength of the wind we last set for up to a game hour, then vanilla rolls its own pattern.
Getting started
The sea
Your vessel
Leaving it
Rivers and lakes
At sea