openmw-tes3coop/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.
2018-07-21 05:20:26 +03:00
..
bsa http to https for supported urls (#1625) 2018-03-08 21:23:24 +01:00
compiler Resolve merge conflicts 2018-06-13 08:22:37 +02:00
config Make hasMaster() behavior consistent with isGameFile() (fixes #3618) 2018-03-28 15:43:51 +03:00
contentselector Merged pull request #1623 2018-06-09 10:49:04 +02:00
crashcatcher [General] Temporarily disable the new OpenMW crash catcher 2018-07-14 19:46:47 +01:00
esm Merge pull request #456 from OpenMW/master while resolving conflicts 2018-07-04 01:52:29 +03:00
esmterrain Initialize some missing fields in constructors 2018-06-25 09:35:42 +04:00
fallback Revert log spam 2018-04-22 15:41:25 +00:00
files Removed escape_hash_filter::mPrevious, removed usage of boost::replace_all 2017-11-11 22:58:02 +00:00
fontloader [Fix] Some PVS-Studio and cppcheck fixes 2018-04-18 12:36:10 +00:00
interpreter More consistent wording of errors/warnings 2017-03-04 21:48:31 +01:00
loadinglistener use loading screen to freeze the screen 2017-11-16 22:08:33 +01:00
misc Revert "Don't force DDS file usage (fixes #1392)" 2018-06-04 17:08:09 +02:00
myguiplatform purge unnecessary imports 2017-06-09 19:08:53 +02:00
nif Refactor NifStream class (eliminate LNK4221 MSVC warning) 2018-07-10 13:32:52 +04:00
nifbullet Put check for nif file name into separate function 2018-07-10 23:46:06 +03:00
nifosg Improve MRK NiStringExtraData handling (bug #4419) 2018-06-08 15:44:35 +04:00
openmw-mp [General] Reimplement weather synchronization to allow soft transitions 2018-07-21 05:20:26 +03:00
process OSX build fix 2014-11-20 18:14:49 +01:00
resource Use the DejaVuLGCSansMono.ttf in profilier output 2018-07-11 14:41:49 +04:00
sceneutil Add an empty compileGLObjects implementation to Rig/MorphGeometry to avoid unnecessary creation of display list done by osg 2018-04-18 12:36:08 +00:00
sdlutil Force software decompression if OPENMW_DECOMPRESS_TEXTURES is set 2018-06-16 12:38:16 +02:00
settings http to https for supported urls (#1625) 2018-03-08 21:23:24 +01:00
shader Reduce error spam 2017-11-08 00:24:03 +00:00
terrain Initialize some missing fields in constructors 2018-06-25 09:35:42 +04:00
to_utf8 Fix typo in a comment 2015-12-10 00:15:55 +01:00
translation Merge pull request #228 from OpenMW/master while resolving conflicts 2017-06-18 18:16:10 +03:00
version Allow getting available version information even when clone is shallow 2017-03-07 21:53:49 +01:00
vfs Ignore duplicate data directories to work around the fallout of (Fixes #3557) 2018-01-14 00:25:20 +00:00
widgets Initialize some missing fields in constructors 2018-06-25 09:35:42 +04:00
CMakeLists.txt [General] Turn PlayerRegionAuthority into WorldRegionAuthority 2018-07-17 09:21:13 +03:00
doc.hpp second set of additional doxygen comments 2010-09-25 20:15:05 +02:00