Commit Graph

61 Commits

Author SHA1 Message Date
Joonas Rikkonen
c8cdc5d58c Fixed console errors when entering '\' or '\n' 2018-07-23 16:59:09 +03:00
Joonas Rikkonen
9e69216c52 Server validates the cursor positions clients send for a console command before using them! 2018-07-20 01:09:55 +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
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
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
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
Blue
a0b3fe7b46 Locky typo fixed
"loxky" to "locky"
2018-05-23 21:25:55 +02:00
Joonas Rikkonen
e61dc5ae5f Option to log debug console output to a file. Closes #318 2018-04-20 20:11:01 +03:00
Joonas Rikkonen
fe064b2170 Added a debug command for mirroring the main sub horizontally 2018-04-09 10:59:56 +03:00
Joonas Rikkonen
e1f96480e1 Added console commands for giving the clients ranks, showing their current permissions and giving/revoking the permission to use specific console commands. Closes #327 2018-03-08 20:52:42 +02:00
Joonas Rikkonen
a43b8dc278 Added a console command for changing the server password. Closes #325 2018-03-07 17:26:42 +02:00
Joonas Rikkonen
b4e5aad2ce Added "electromagnetic pulse strength" parameter to explosions. EMPs damage repairable power items (e.g. junction boxes) and discharge power containers (e.g. batteries and supercapacitors). 2018-02-02 15:15:46 +02:00
Joonas Rikkonen
d05ed6c54b Fixed banip command only kicking the matching client out of the server without banning, + the command now kickbans all clients with a matching ip. Closes #227 2018-01-12 10:56:56 +02:00
Joonas Rikkonen
343895d776 Console command arguments can be autocompleted by hitting tab. Closes #162 2017-12-30 18:30:55 +02:00
juanjp600
07626a1989 Merge branch 'master' of https://github.com/Regalis11/Barotrauma
Barotrauma/BarotraumaShared/Source/Items/Components/ItemComponent.cs
2017-12-20 19:46:53 -03:00
juanjp600
7a413aee93 Optimized GameScreen.DrawMap
- Downscaled lightmap, since blurring will make this unnoticeable anyway
(TODO: make this optional)
- Render LOS in fewer passes by using a shader
- Use light volume to calculate LOS
- This also means we can use the override texture to render the diving
suit obstruct effect
- Don't render bunks and labels onto LOS background (TODO: add the
option to render back into the LOS background, i.e. just use
multiplicative blending as if it was the lightmap)
- Prefer SpriteSortMode.Deferred over all others, prefer
SamplerState.LinearClamp/PointClamp over all others
- Remove shader blur in favor of geometry blur (TODO: improve on this
further, right now it has a few artifacts)
- Trim light volumes
- Do some weird shit with the background particles (use DrawTiled
instead of relying on SamplerState.LinearWrap, because that's faster
somehow :/ )
- Pressing up/down in the console only returns a typed command now
2017-12-20 19:41:23 -03:00
Joonas Rikkonen
ce37411a29 Merge branch 'permission-overhaul'. Closes #49
Conflicts:
	Barotrauma/BarotraumaShared/Source/DebugConsole.cs
	Barotrauma/BarotraumaShared/Source/Networking/ChatMessage.cs
2017-12-20 19:36:17 +02:00
Joonas Rikkonen
b3c3970209 Server responses to clients using console commands ("granted permissions to client", error messages, etc) are displayed in the client's debug console instead of the chat box. Client command usage is included in server logs. 2017-12-20 19:18:32 +02:00
Joonas Rikkonen
91699b26a6 Giveperm and revokeperm commands work correctly now when used by clients 2017-12-20 18:58:27 +02:00
Joonas Rikkonen
3e4d2c5a8a Fixed incorrect positioning of debug console question prompts. The ShowQuestionPrompt method used to take the last textblock in the console and consider that as the question prompt text, even though the text had only been queued and the actual GUITexblock hadn't been instantiated yet. 2017-12-20 18:57:42 +02:00
Joonas Rikkonen
62bb5119ab Merge branch 'master' into coolthings 2017-12-17 21:11:42 +02:00
Alex Noir
bdeb3a19fd Updated server logs so admins can see disguised persons
clientist should also display stuff
TODO: Log inventory interactions like putting item in slots (e.g. oxy mask equipped in Head slot or equipped in Any slot, etc.) so you can tell the exact moment someone decided to disguise themselves.
2017-12-16 20:24:24 +03:00
Juan Pablo Arce
ae344c89c5 Fixed indentation 2017-12-15 11:25:21 -03:00
Juan Pablo Arce
a68fd85ab0 Improved giveperm/revokeperm commands 2017-12-15 11:21:37 -03:00
Alex Noir
f34968be30 Tweaked visuals a bit
Added tiny bleeding and structure damage to the syringes
2017-12-11 12:33:59 +03:00
Alex Noir
a2a4225598 Added a fully functional syringe gun! Accepts syringes as ammo. Has custom sprite and sound.
Made syringes have a "projectile" component for syringe guns
Adds several missing signal components to the fabricator, as well as medical syringe to medical fabricator
Adds support for status effects applied to characters from onImpact
Removed "contained.Condition = 0.0f;" in Projectile.cs due to it limiting the possibilities of the .xml content creation
Added a couple null checks in StatusEffect.cs due to crashes caused by the new projectile changes - might need to debug further, perhaps there's a root cause?
Added itemlist console command
2017-12-10 22:17:14 +03:00
Joonas Rikkonen
9599137e83 Console command permissions can be changed in the client permission menu, permitted commands are displayed in the client-side permission popup 2017-12-07 18:25:08 +02:00
Joonas Rikkonen
9bc0931be5 Clients can execute permitted console commands server-side now. The console commands have three different actions: the default action, one that's executed client-side when a client uses it, and one that's executed server-side when a clients requests it. If the client-side action is omitted, the client relays the command to the server as-is. If the third action is omitted, the server executes the default action. 2017-12-06 19:53:05 +02:00
Juan Pablo Arce
3df2c20ee1 Merge pull request #81 from Crystalwarrior/ragdollbutton
Adds ragdoll button. Because why not.
2017-12-06 13:02:35 -03:00
Joonas Rikkonen
91a8e6d0c6 Saving & loading client console command permissions, the permissions are saved as an xml file 2017-12-06 14:04:35 +02:00
Alex Noir
ee8c4dfb3a Adds ragdoll button. Because why not.
Also adds admin ragdoll command to force people into ragdoll mode.
The networking/syncing wasn't yet tested for this but hopefully everything should work.
Updates config.xml to add default keybinds for radio chat and ragdoll
2017-12-05 20:50:24 +03:00
Joonas Rikkonen
90986751c3 Merge branch 'antagonists' 2017-12-05 19:05:39 +02:00
Joonas Rikkonen
6e78e945a7 Minor code style nitpicking :) 2017-12-05 19:05:21 +02:00
juanjp600
e69e316f6b Added the option to disable karma 2017-12-04 20:52:25 -03:00
Alex Noir
38815c3b69 Added code words to traitorlist console command 2017-12-05 00:30:21 +03:00
Alex Noir
eb82ed6092 Merge commit 'a19579088ffa87bb873bf6baf6cdc9a1ef60dbb1' into antagonists 2017-12-04 20:02:59 +03:00
Joonas Rikkonen
0840a29ff3 Started overhauling the client permission system to make it a bit more flexible. Now the clients can have the permission to use specific console commands (atm these commands are relayed to the server as-is).
TODO: make it possible to give clients console command permissions via the menus and the console, save command permissions, deal with commands that don't work as intended when simply relayed to the server and executed server-side, add "ranks" (preconfigured or custom sets of permissions, e.g. moderator, admin, etc).
2017-12-03 22:54:28 +02:00
Alex Noir
63f8760b86 Added traitor code words
Fixed host never being traitor
2017-12-03 19:39:31 +03:00
Joonas Rikkonen
8735dffd04 Added console command for killing characters 2017-12-03 15:36:20 +02:00
juanjp600
84ba36aa78 Added timestep accumulator to dedicated server, improved autorestart commands, added client permission commands 2017-12-01 14:25:10 -03:00
Joonas Rikkonen
e4664b3d27 The character spawning debug command doesn't require the config file of the character to be in the default character folder (as long as the character is included in the selected content package). 2017-11-29 19:16:31 +02:00
Joonas Rikkonen
1c09f757a2 Renaming fields in the Client class for consistency 2017-11-23 20:43:22 +02:00
Joonas Rikkonen
5f4bf48449 Replaced instances where MapEntityPrefabs are searched for based on the name with a static Find method that takes the aliases of the prefabs into account. 2017-11-14 21:40:43 +02:00
Joonas Rikkonen
e26600d088 Added MP campaign setup to the dedicated server & some console commands for managing the campaign 2017-09-17 20:03:18 +03:00
Joonas Rikkonen
a75fd12020 Started moving single player campaign logic to an abstract CampaignMode class to make it reusable in the eventual multiplayer campaign 2017-08-28 20:19:21 +03:00
Joonas Rikkonen
6faf658ae0 Fixed SetClientCharacter & Revive 2017-07-26 17:19:35 +03:00
Joonas Rikkonen
aaea8bc709 Dedicated servers can use autorestart 2017-07-24 21:21:00 +03:00
Joonas Rikkonen
d694c7efdc Fixed teleport command not working on other characters than the controlled one 2017-07-18 19:41:18 +03:00