Regalis
9281795866
Null reference fixes
2017-05-29 18:41:56 +03:00
Regalis
44349b97b0
Fixed a null exception when a dragged character is removed
2017-05-25 17:05:28 +03:00
Regalis
6223861f7a
Fixed clients' characters deselecting items when a status networkevent is received from the server
2017-05-24 19:27:51 +03:00
Regalis
e3b595b9e0
Cleanup (removing unused variables & other redundancies, rethrowing exceptions instead of wrapping them in a new exception instance)
2017-05-20 15:35:13 +03:00
Regalis
c2d918073e
Serverlog message types (which atm only determine the color of the message)
2017-05-09 19:56:12 +03:00
Regalis
7df4bff249
Fixed exceptions if a character is removed when an AI character is attacking it
2017-04-17 17:59:22 +03:00
Regalis
fac31b4892
- Fixed railgun sounds not playing at the clients' end
...
- Server sends updates for batteries when their charge changes (not strictly necessary assuming the rest of the electrical grid stays in sync, but just in case)
- Reactor state is synced with clients if modified through the debug console
- Increased maximum item velocity to 64 units/s, all item are clamped to the max vel
2017-04-10 20:13:33 +03:00
Regalis
f863eb331d
Moved stun from AnimController to the character class, server notifies clients when the stun ends, husk infection included in character status messages
2017-04-07 19:56:25 +03:00
Regalis
0f8e6440ef
Clients can access the inventories of incapacitated characters (e.g. put handcuffs on a stunned player, grab stuff from a dead character's inventory)
2017-04-04 21:18:03 +03:00
Regalis
2582680445
Fixed physics bodies staying active when a character is disabled in the constructor
2017-03-29 23:12:03 +03:00
Regalis
1a3c18c727
EntitySpawner sends spawn/removal messages to clients using EntityEvents.
...
EntityEvents and EntitySpawner used to work independently of each other, with separate IDs, and there was no guarantee that spawning and events would happen in the correct order. For example, a client could fail to read events during midround syncing because the entity has been removed, or read an event for an incorrect entity because the entity has been removed and the ID taken by some other entity.
2017-03-27 21:05:32 +03:00
Regalis
6a6486e270
Server doesn't create an entityevent if the health of a character changes very little, husk infection isn't updated after the infected character dies, clients can't create a "huskified" human NPC until the server says so
2017-03-26 22:47:08 +03:00
Regalis
aca85c2708
All characters start disabled in the multiplayer mode, and are enabled when the client starts receiving position updates for the character, OR when the server starts receiving inputs from the client controlling the character, OR if the character is controlled locally. (-> no more floating, frozen characters at the start of a round)
...
+ the server disables AICharacters that are far away from all players
2017-03-25 20:10:47 +02:00
Regalis
d4db37f8dd
CPR syncing + some refactoring
...
Clients send an entityevent to the server when they start/stop doing CPR, and server includes the animation state in messages when character is dragging some other character
2017-03-22 20:05:50 +02:00
Regalis
823ad12058
Some refactoring: made PosInfo a class and moved character-specific fields to a "CharacterStateInfo" subclass
2017-03-21 19:36:28 +02:00
Regalis
dde0160956
Fixed items that aren't selected with the default select key being impossible to interact with, unconscious characters CanBeSelected
2017-03-19 18:29:53 +02:00
Regalis
4285cdde27
ID of the entity a character is interacting with is also sent to the client controlling the character (should fix characters dragging someone at the server's end but not at the client's, or vice versa)
2017-03-15 23:07:33 +02:00
Regalis
5bdb57b98a
Merge branch 'master' into new-netcode
...
Conflicts:
Subsurface/Properties/AssemblyInfo.cs
Subsurface/Source/Characters/AICharacter.cs
Subsurface/Source/Characters/Animation/HumanoidAnimController.cs
Subsurface/Source/Characters/Character.cs
Subsurface/Source/GameMain.cs
Subsurface/Source/Items/Components/Signal/Connection.cs
Subsurface/Source/Items/Item.cs
Subsurface/Source/Networking/GameServer.cs
Subsurface/Source/Networking/GameServerLogin.cs
Subsurface/Source/Physics/PhysicsBody.cs
2017-03-11 13:24:09 +02:00
juanjp600
c55c1b6d0e
Vastly improved item syncing + Crouch syncing
...
Using SetTransform instead of TargetPosition + a larger margin seems to make the item syncing near-perfect.
2017-03-09 20:18:19 -03:00
juanjp600
d6c292a2cc
SharpFont + ScalableFont implementation
...
https://github.com/Robmaister/SharpFont
TODO: replace Code Bold.otf with the full version, fix any bugs, build on Linux, possibly move ToolBox string wrapping and limiting logic to ScalableFont class for better results.
2017-03-07 13:44:42 -03:00
Regalis
65625777e5
Monster syncing fixes:
...
- clients freeze and disable AI characters if no updates have been received in a while (due to the monster being far away from player-controlled characters at the servers side for example)
- server disables AI characters that are too far for updates to be sent to clients (-> targets of monster missions can't swim away from the spawnpos and cause the clients' sonars to point to an incorrect position)
2017-03-01 23:14:15 +02:00
Regalis
871c3bc93c
Character colliders are disabled when the character is disabled (-> monsters won't automatically drop into abyss in monster missions)
2017-03-01 19:15:50 +02:00
Regalis
c9f09031de
Re-enabled anchoring main limb to the collider when a remote player is unconscious (otherwise only the position of the collider will be synced, and the ragdoll won't follow it)
...
+ stunned characters can't send position updates
2017-02-25 18:06:43 +02:00
Regalis
7f7ac76484
Merge branch 'master' into new-netcode
...
Conflicts:
Subsurface/Source/Characters/Character.cs
Subsurface/Source/GUI/GUI.cs
Subsurface/Source/GUI/LoadingScreen.cs
2017-02-13 22:04:28 +02:00
Regalis
bfc22c7b33
Enabling characters when switching control to them (when switching to a disabled far-away monster for example)
2017-02-13 21:58:27 +02:00
Regalis
5871faa2dd
Added a few new console commands: disablehud, lockx & locky (disables submarine movement on the respective axis), followsub (toggles whether the camera moves with the subs)
2017-02-13 16:23:28 +02:00
Regalis
52bf73722f
ServerEntityEventManager doesn't process received events until the character inputs of the client for the corresponding frame have been processed (fixes character movement lagging behind EntityEvents at the servers side)
...
+ split character networking logic into a separate file, characters drop items at the position of their collider instead of hands
2017-02-09 23:09:42 +02:00
Regalis
d46207916f
Server doesn't send character position updates to far-away clients, clients disable characters if they haven't received position updates in a while
2017-02-07 18:59:25 +02:00
Regalis
462a8b5da8
Changed character update IDs from uint to ushort
2017-02-06 16:24:11 +02:00
Regalis
9bda79036a
- server doesn't send the STARTGAME message to all clients when someone joins mid-round
...
- team ID is included in character spawn messages even if no-one is controlling the character anymore
- living characters are taken into account when assigning jobs for respawned characters (e.g. there can't be two captains alive at the same time)
2017-02-05 21:58:31 +02:00
Regalis
89e881cb57
Readded voting (submarine, mode, end round & kick)
2017-02-04 18:30:40 +02:00
Regalis
b5bac67c4a
WIP item position syncing
2017-02-02 20:40:58 +02:00
Regalis
39f977535d
Fixed ragdolls colliding with stairs when swimming even if not steering upwards, AI steering fixes
2017-02-02 20:39:51 +02:00
Regalis
32d7be07ee
ClosestCharacter is saved into NetInputMem (clients can drag characters again)
2017-02-02 19:24:59 +02:00
Regalis
b87e22409a
Fixed server setting character LastNetworkUpdateIDs to UInt32.MaxValue
2017-02-01 18:09:31 +02:00
Regalis
5a4201c3f2
Character status syncing fix, less frequent stun update messages
2017-01-31 20:50:40 +02:00
Regalis
15b3dd31a8
Merge branch 'master' into new-netcode
2017-01-25 20:30:26 +02:00
Regalis
e27fa1c7ee
Readded team assignment logic
2017-01-15 20:39:06 +02:00
Regalis
bd7766d3e7
Server clears EntityEventManager before starting a new round, not just when ending it (fixes events breaking during the next round if an item created an event when unloading the previous sub) + some additional error checks
2017-01-14 20:26:41 +02:00
Regalis
fdbdf9638f
Fixed railgun aiming, fixed EntityEvent not being sent if a character is killed by something else than health dropping to zero
2017-01-14 14:45:19 +02:00
Regalis
fecb7bee9a
Syncing attack input
2017-01-13 17:53:40 +02:00
Regalis
037bd09c2c
- clients ignore lobby updates if they already received a more up-to-date one
...
- server tells clients their ID in the first lobby update
- clients take control of a spawned character if their ID matches the ownerID of the character (-> respawning works now)
2017-01-11 21:31:19 +02:00
Regalis
dc3885a2da
Server doesn't un-freezes characters that are stunned, unconscious or dead, or controlled by the host
2017-01-11 21:24:03 +02:00
Regalis
df59f0d089
Fixed speech bubbles, server sends the ID of a speaking character instead of the name
2017-01-10 18:40:12 +02:00
Regalis
81c3641d97
Optimized mouse position syncing from server to clients, removed a redundant WritePadBits from Character.ServerWrite
2017-01-10 00:10:11 +02:00
Regalis
72eb2aa769
Tiny optimization
2017-01-09 21:39:39 +02:00
juanjp600
b35b683cd8
Removed Select debug code
2017-01-09 15:09:26 -03:00
juanjp600
34c2ccf932
Merge branch 'new-netcode' of https://gitlab.com/poe.regalis/barotrauma into new-netcode
2017-01-09 15:06:32 -03:00
juanjp600
cfeb720836
Fixed IsKeyHit (ladder climbing being inconsistent) + optimized interaction syncing
...
Instead of sending over mouse position as two floats (8 bytes total), the game will send the aim angle represented as a short (0 to 65535, so it's fairly precise) and the selected item ID (up to 4 bytes total, 2 bytes if it's only one of the inputs).
The problem with IsKeyHit is that it checked when the player started a key press, when it should've been checking for the key being released.
2017-01-09 15:06:19 -03:00
Regalis
ff96f152ce
Resetting EntityEvent & EntitySpawner IDs when starting a new round, LOS effect is enabled when a client takes control of a character
2017-01-09 18:22:37 +02:00