Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Time passing bug?

A topic by ppitm created Dec 23, 2020 Views: 191 Replies: 1
Viewing posts 1 to 2

I just reinstalled after a while and discovered an apparent bug:

When you skip time several months and teleport somewhere in the world, time stops passing. e.g., I changed the date from January in the afternoon to December at 7:20am, and sailed for a few hours but time never progressed from 7:20am. Only travel acceleration could make the time change (not physics speed) and nothing I could would make it 'un-stuck'. This makes longer passages fairly pointless. When just pressing 'World' to start a new game, all works as intended.

I do like the new behavior in high winds, but noticed two things that might need tweaking:

Are the courses weaker than the topsails? With no reefs in either and 50 kts of wind, I lost both courses but not the topsails.

What is the angle of vanishing stability for the ship? I think I was heeled over around 70 degrees but came up again. It happened fast though, so maybe I just couldn't judge it well.

Developer

Thanks. I can reproduce the time bug. It's weird. If I narrow down when it stops working, I get that time passes on May 7th, but not May 8th. Perhaps it's something to do with numerical precision - maybe I'm using integer time inappropriately somewhere.

On the sails - I tried this a few times, and didn't see any consistent pattern. It should depend on the force of the wind (so more for topsails) times some factor varying with the size of the sail, and some randomization. (I've upgraded my system recently and haven't installed unity yet, so it's difficult to check some of this.)

Stability, I'm afraid, is something that is not modelled well. I didn't think about it until rather late, after I had the buoyancy and hydrodynamics tuned for the simplified hull form I was using. When I realized it was too unstable/stable (I don't remember), I tried a simple fix by moving the centre of gravity up and down when the ship heels, until the behaviour seemed plausible (I did look at some stability diagrams).