Commit Graph

2252 Commits

Author SHA1 Message Date
Joonas Rikkonen
e4e610b35e Added exception handling to GameSettings saving 2018-07-19 22:13:09 +03:00
Joonas Rikkonen
f1c4bd3c67 - Some of the non-game-crashing error messages are sent to GameAnalytics.
- Changed crash severity from Error to Critical.
- Exception handling when loading submarine preview images.
- Checking if position is valid in Ragdoll.SetPosition.
2018-07-19 22:12:50 +03:00
Joonas Rikkonen
7756cc0908 Merge branch 'master' of https://github.com/Regalis11/Barotrauma 2018-07-19 17:42:12 +03:00
Joonas Rikkonen
8cd7919009 Removed unused BanClient method 2018-07-19 17:42:03 +03:00
Joonas Rikkonen
c901b75ff1 Fixed round ending tickbox not being visible client-side if the client is not controlling character (despite servers now allowing votes from players who've spawned at least once during the round). Closes #500 2018-07-19 10:47:39 +03:00
Joonas Rikkonen
30a453191f Added "VulnerableToEMP" property to Powered. Can be edited in sub editor. Reactors and relays are not affected by EMP by default. Closes #495 2018-07-18 15:07:21 +03:00
Joonas Rikkonen
d6ec1bc339 Merge branch 'master' of https://github.com/Regalis11/Barotrauma 2018-07-18 14:36:22 +03:00
Joonas Rikkonen
f25fe6b504 Added some error checking & debug logging to Door.PushCharactersAway to diagnose why Math.Sign is throwing ArithmeticExceptions (see #497). 2018-07-18 14:36:00 +03:00
Joonas Rikkonen
a83cd64dbc Merge pull request #496 from NilanthAnimosus/vanillawork
Minor vanilla tweaks
2018-07-18 14:32:28 +03:00
Joonas Rikkonen
568cf1a02f Fixed memory leak caused by submarine preview images, changed Submarine.SavedSubmarines to a property that prevents removing submarines from outside the class without disposing the preview image. Closes #498 2018-07-18 14:23:43 +03:00
Nilanth Animosus
2df7d6a464 Tweak item spawning to combine item names without quotes
Retains ability to spawn items to characters, its unlikely that player names will match at the last half of an item - and the item must also not exist for this to be an issue.
2018-07-18 11:06:49 +01:00
Joonas Rikkonen
af4d60db1d Fixed GameMain.Server.Character not being set to null when the character is removed. Closes #488 2018-07-18 13:05:58 +03:00
Nilanth Animosus
ad681d5a26 Chatbox removes from the first entry instead of the second
Removes for clients "playername has joined" staying at the top of the chat history, as this feels unnecessary for both server and client.
2018-07-18 11:03:04 +01:00
Nilanth Animosus
adb63adbb1 Update Homoglyphs
Updated the list of Homoglyphs from https://github.com/codebox/homoglyph/
2018-07-18 11:01:53 +01:00
Joonas Rikkonen
cbb207dbca Cleanbuild console command resets the user statistics setting 2018-07-18 12:59:59 +03:00
Joonas Rikkonen
7799e05369 GameAnalyticsManager sends the name and MD5 hash of the currently running exe (can be used to recognize code modifications that use the vanilla content package) 2018-07-18 12:59:17 +03:00
Joonas Rikkonen
d00b52882f Added UpdateUseItem method from d253863 2018-07-18 12:14:09 +03:00
Joonas Rikkonen
41800aff77 Cherry-picked d0b61b3 from dev. 2018-07-18 11:50:09 +03:00
Joonas Rikkonen
e0455caaaa Cherry-picked 869b725 from dev 2018-07-18 11:49:36 +03:00
Joonas Rikkonen
982f1ba6f1 Merge branch 'master' of https://github.com/Regalis11/Barotrauma 2018-07-18 11:41:55 +03:00
Joonas Rikkonen
afb420810e Fixed dedicated server stopping GameAnalytics and never restarting it when the "restart" console command is used. + Fixed typo in GameAnalyticsManager. Closes #492 2018-07-18 11:41:39 +03:00
Joonas Rikkonen
1ef2cb7500 Fixed crashing if the Use method of a wire is triggered by a StatusEffect 2018-07-18 11:24:56 +03:00
Joonas Rikkonen
e0fd39fa57 v0.8.1.5 2018-07-17 21:37:59 +03:00
Joonas Rikkonen
d831654690 Fixed linux build 2018-07-17 21:37:44 +03:00
Joonas Rikkonen
23e0a76f37 Character head & gender settings are saved. Closes #474 2018-07-17 13:38:21 +03:00
Joonas Rikkonen
88abbe28e3 Fixed entity IDs getting messed up and causing desync because of purchased items in multiplayer campaign. The server created cargo items first and then mission-related entities, while the clients only spawned mission entities and relied on the server to spawn the cargo, which caused mission entities to have wrong IDs. Closes #484 2018-07-17 12:50:04 +03:00
Joonas Rikkonen
dcb48e56d4 Added the DebugConsole.SpawnItem command from the dev branch (spawning items in the inventory of a character other than the controlled one works now). 2018-07-16 21:38:34 +03:00
Joonas Rikkonen
b61898b16f Fixed clients assigning a wrong name to submarines with dots in their name (e.g. Sub Mk.Iv), because the part after the dots was considered a file extension and stripped out in the submarine constructor. Closes #472 2018-07-16 21:09:01 +03:00
Joonas Rikkonen
5d342e24ef Clients are allowed to vote to end the round if they have spawned at some point during the round, even if the character they controlled doesn't exist anymore (huskified or eaten). Closes #483 2018-07-16 16:27:13 +03:00
Joonas Rikkonen
89b26008a6 Projectile damage range is set to the radius of the item's collider if the range is not given in the xml. Structure.AddDamage uses the edges of the sections to calculate the distance to a damage source, i.e. the damage area only has to "touch" the section to do damage. Closes #479 2018-07-16 15:44:26 +03:00
Joonas Rikkonen
01c3d20a0c Fire can only explode oxygen tanks that are >25% full (otherwise the condition of the tank just drops to 0). Prevents infinite explosions when an oxygen generator is on fire with oxygen tanks inside. Closes #470
+ Made oxygen generators fill oxygen tanks faster.
2018-07-16 14:59:01 +03:00
Joonas Rikkonen
a436eb27c1 Fixed explosion with an EMP value only damaging reactors (when they should only ignore reactors). Closes #473 2018-07-16 13:50:31 +03:00
Joonas Rikkonen
10ad78d607 Console command fixes. Closes #482
- Banip, banid & kickid can be used by clients.
- "Spawnitem x inventory" spawns the item in the inventory of the client using the command instead of the host's inventory.
- Ragdoll and kill commands target the character of the client using the command when the name parameter is omitted.
- Added SpawnItem changes from the dev branch (items can be spawned in the inventory of a specific/random character).
2018-07-16 13:43:29 +03:00
Joonas Rikkonen
ac5bad3011 Dedicated server can give clients the permission to use commands that only exist in the client project (los, lights, control, etc). Closes #476 2018-07-16 11:43:50 +03:00
Joonas Rikkonen
734b86bfba Fixed clients being unable to give non-permanent or range bans. Closes #481 2018-07-16 11:24:24 +03:00
Joonas Rikkonen
ceae0bf94e Fixed oddities in traitor ratio/assignment logic. The TraitorUseRatio setting is used to determine the number of traitors, the minimum number of traitors is 1 instead of 2, the host is taken into account when determining the number of traitors. Closes #477 2018-07-16 11:05:10 +03:00
Joonas Rikkonen
015eacbcb0 Fixed GameAnalytics thread becoming active despite user statistics being disabled, causing the game to stay active in the background when quitting. 2018-07-13 11:29:11 +03:00
Joonas Rikkonen
4f874a276b Fixed crashes caused by characters with no AI config due to missing SteeringManagers. Closes #469 2018-07-13 11:01:42 +03:00
Joonas Rikkonen
ce88519c13 Pump components with a physics body updates it hull when active (-> possible to make portable pump items). Closes #463 2018-07-11 10:59:40 +03:00
Joonas Rikkonen
1c358fc4c0 Disabled GameAnalytics debug logging in release builds 2018-07-11 10:57:59 +03:00
Joonas Rikkonen
809fc74ddd Merge branch 'analytics' 2018-07-11 10:37:33 +03:00
Joonas Rikkonen
b01826e4f8 Fixed crashing if LightManager.UpdateObstructVision is called before ViewTarget has been set. Closes #466 2018-07-11 10:34:53 +03:00
Joonas Rikkonen
04b420fc79 Dedicated server sends user stats when quitting 2018-07-10 16:14:21 +03:00
Joonas Rikkonen
c7e220d222 Collecting some more usage statistics: selected game mode, mission, submarine, content package, traitors on/off, kills 2018-07-10 15:49:08 +03:00
Joonas Rikkonen
51f2455ada Added GameAnalytics framework which can be used to collect usage statistics. When starting the game for the first time, the player can select whether they want to send usage data or not. Atm only used to collect crash reports. 2018-07-10 13:40:54 +03:00
Joonas Rikkonen
846291ff54 Sprites for some of the new logic components in #392, added a description to the adder component. 2018-07-09 15:46:39 +03:00
Roni Kovaniemi
c1cbde4288 Adder Signal Component
Added a Adder signal component, which adds values inputted together and outputs a sum.
2018-07-09 14:42:07 +03:00
Joonas Rikkonen
847078f1ec Added a filename case check to sprite loading 2018-07-08 19:48:47 +03:00
Joonas Rikkonen
59cfec90b6 v0.8.1.4 2018-07-08 19:32:32 +03:00
Joonas Rikkonen
86c4cd17d2 Fixed clients getting assigned random jobs regardless of job preferences. 2018-07-08 19:32:23 +03:00