You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
openmw-tes3mp/components
David Cernat 892d71ce71 [General] Reimplement weather synchronization to allow soft transitions
Although weather sync was added by Koncord to the rewrite in fd721143e2 in a way that used surprisingly few lines of code, it relied on the server requesting weather states every second from authority players and sending them to non-authority players, while also allowing only very sudden weather transitions across regions, i.e. if there was one player in the Ascadian Isles who had stormy weather, and another player with clear weather in the Bitter Coast Region walked across to the Ascadian Isles, that player was instantly made to have stormy weather with no kind of transition at all.

My approach solves both of those problems. It solves the packet spam by only sending weather updates to the server when weather changes happen or when there are new arrivals to a weather authority's region, and it allows for both sudden weather transitions when players teleport to a region and for soft, gradual transitions when players walk across to a region. It is inspired by my previous actor sync, and uses a WorldRegionAuthority packet to set players as region authorities in a similar way to how ActorAuthority sets players as cell AI authorities. Weather changes are created only by the region authority for a given region, and weather packets are also only sent by that authority.

However, it should be noted that gradual weather transitions are used by default in this implementation. To use sudden weather transitions, the serverside Lua scripts need to forward WorldWeather packets with the forceWeather boolean set to true. That is, however, already handled by our default Lua scripts in situations where it makes sense.
7 years ago
..
bsa http to https for supported urls (#1625) 7 years ago
compiler Resolve merge conflicts 7 years ago
config Make hasMaster() behavior consistent with isGameFile() (fixes #3618) 7 years ago
contentselector Merged pull request #1623 7 years ago
crashcatcher [General] Temporarily disable the new OpenMW crash catcher 7 years ago
esm Merge pull request #456 from OpenMW/master while resolving conflicts 7 years ago
esmterrain Initialize some missing fields in constructors 7 years ago
fallback Revert log spam 7 years ago
files Removed escape_hash_filter::mPrevious, removed usage of boost::replace_all 7 years ago
fontloader [Fix] Some PVS-Studio and cppcheck fixes 7 years ago
interpreter More consistent wording of errors/warnings 8 years ago
loadinglistener use loading screen to freeze the screen 7 years ago
misc Revert "Don't force DDS file usage (fixes #1392)" 7 years ago
myguiplatform purge unnecessary imports 8 years ago
nif Refactor NifStream class (eliminate LNK4221 MSVC warning) 7 years ago
nifbullet Put check for nif file name into separate function 7 years ago
nifosg Improve MRK NiStringExtraData handling (bug #4419) 7 years ago
openmw-mp [General] Reimplement weather synchronization to allow soft transitions 7 years ago
process
resource Use the DejaVuLGCSansMono.ttf in profilier output 7 years ago
sceneutil Add an empty compileGLObjects implementation to Rig/MorphGeometry to avoid unnecessary creation of display list done by osg 7 years ago
sdlutil Force software decompression if OPENMW_DECOMPRESS_TEXTURES is set 7 years ago
settings http to https for supported urls (#1625) 7 years ago
shader Reduce error spam 7 years ago
terrain Initialize some missing fields in constructors 7 years ago
to_utf8 Fix typo in a comment 9 years ago
translation Merge pull request #228 from OpenMW/master while resolving conflicts 8 years ago
version Allow getting available version information even when clone is shallow 8 years ago
vfs Ignore duplicate data directories to work around the fallout of (Fixes #3557) 7 years ago
widgets Initialize some missing fields in constructors 7 years ago
CMakeLists.txt [General] Turn PlayerRegionAuthority into WorldRegionAuthority 7 years ago
doc.hpp