Mods / xrowboat

Category: #Crafting #Utility
Author: xeth
Side: Both
Created: Jan 7th at 6:12 AM
Last modified: Jan 11th at 1:13 AM
Downloads: 1344

likely still unstable :^)

Basic rowboat that fits two players, WASD controls like Mineman:
- `W`/`S`: accelerate forward/reverse
- `A`/`D`: turn left/right

By default option `RequireOar = true` so players need a `Rowboat oar`
item **in both hands** to actually use the boat.
This can be disabled in mod config.
Both front and rear seat can also control the boat.
When two players row boat together, they can move faster than
just a single player (can adjust in mod config).

Boats should be able to move up/down water using default ingame 
entity water physics.

Client rowboat just sends movement control packets to server.
Server handles actual rowboat movement. 

`>but the rowing is wrong and boat backwards`  
yes I've rowed b4 & know the animations r incorrect, but its
shitty gameplay to row backwards even if correct irl.
deal with it :^)  
if someone sends me better anims ill add 

Config Options
=====================================
| Basic config                 | Description                       | Default |
|:-----------------------------|:----------------------------------|:-------:|
| RequireOar                   | Reqire oar item to control boat   |   true  |
| AllowFrontSeatToControlBoat  | Allow front seat to control       |   true  |
| AllowRearSeatToControlBoat   | Allow rear seat to control        |   true  |

To make it a mineman style boat, set:
- `RequireOar=false`
- `AllowFrontSeatToControlBoat=true`
- `AllowRearSeatToControlBoat=false`

| Boat mechanics config        | Description                       | Default |
|:-----------------------------|:----------------------------------|:-------:|
| MaxForwardSpeedSingle        | Max forward speed, 1 player row   |   0.15  |
| MaxReverseSpeedSingle        | Max reverse speed, 1 player row   |  -0.05  |
| MaxForwardSpeedDouble        | Max forward speed, 2 players row  |   0.18  |
| MaxReverseSpeedDouble        | Max reverse speed, 2 players row  |  -0.1   |
| MaxForwardSpeedOnLand        | Max forward speed on land         |   0.02  |
| MaxReverseSpeedOnLand        | Max reverse speed on land         |  -0.02  |
| ForwardAcceleration          | Forward acceleration per player   |   0.005 |
| ReverseAcceleration          | Reverse acceleration per player   |   0.005 |
| DragDecelerationFactor       | Multiplicative deceleration       |   0.8   |
| ClampSpeedToZeroThreshold    | Min speed before clamping to 0    |   0.1   |
| TurnAcceleration             | Turning acceleration per player   |   0.002 |
| DragTurningFactor            | Turning deceleration              |   0.6   |
| MaxAngularVelocitySingle     | Max turning speed, 1 player row   |   0.05  |
| MaxAngularVelocityDouble     | Max turning speed, 2 player row   |   0.08  |

| Advanced                     | Description                             | Default |
|:-----------------------------|:----------------------------------------|:-------:|
| OarIdleAnimation             | Animation when not using oar            |  "..."  |
| OarRowForwardAnimation       | Animation when moving forward           |  "..."  |
| OarRowReverseAnimation       | Animation when moving backward          |  "..."  |
| MaxMountDistance             | Max distance away that player can mount |   2.5   |


Issues
=====================================
- Non-player passenger entity jitter, client-server sync issue?
- Player yaw is locked to boat orientation, so player can't use
  tools or interact with things around it while in boat

Badly done benchmarks (v0.0.1, vs 1.16-rc.8)
=====================================
- 300 idle rowboats brought me down from ~70 to ~60 fps on a GTX 1060
- 300 idle rowboats added ~5ms/tick on a shitty $20 aws lightsail vps

 

image

Version For Game version Downloads Release date Changelog Download
v0.0.2 1119 Jan 11th at 1:13 AM Show xrowboat_0.0.2.zip
v0.0.1 225 Jan 10th at 12:27 AM Show xrowboat_0.0.1.zip

7 Comments (oldest first | newest first)

WickedSchnitzel, 21 hours ago

Yeah. Can't place the boat at all. Also, theres no config file in the modConfig folder. Trying to use it on a multiplayer server. xeth

Nebux, 2 days ago

may be stupid, but how do you place the boat?

WickedSchnitzel, 3 days ago

[xrowboat] Exception thrown when attempting to retrieve all types of the assembly xrowboat, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null: System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module)
at System.Reflection.Assembly.GetTypes()
at Vintagestory.Common.ModContainer.GetModSystems(Assembly assembly), InnerException: . Will ignore asssembly. Loader exceptions:
24.1.2022 09:34:33 [Error] [xrowboat] System.TypeLoadException: Method 'get_MountSupplier' in type 'XRowboat.EntityRowboatSeat' from assembly 'xrowboat, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' does not have an implementation. xeth

Cendar, Jan 19th at 4:39 AM

Hi! I made a french translation for your mod, feel free to add it if you want. 😊

fr.json - xrowboat 0.0.2

Vinter_Nacht, Jan 12th at 5:10 PM

Two things:
Any way we could get two wood variants?
Would it be a mountain of work to allow a server configurable option for making the operator face the 'correct' direction? 
"shitty gameplay to row backwards even if correct irl." is clearly subjective.

actuallyasriel, Jan 10th at 5:39 AM

dude, you MIGHT be a genius.

just putting that out there

Feroxious, Jan 10th at 2:12 AM

omg :D am i sleeping? boats in vintage story...this is just wow :D

 

delete edit