4fb2439...4d2bcb1
commit 4d2bcb1ad79f552c5c79a6b93a483c0410cf8531 Author: Joonas Rikkonen <poe.regalis@gmail.com> Date: Thu Mar 21 20:39:14 2019 +0200 Changelog additions commit 5339b414bef868639641e5a92697d1eea4de9f5c Merge: e07db1ab1 69a6cdb6a Author: Joonas Rikkonen <poe.regalis@gmail.com> Date: Thu Mar 21 20:17:01 2019 +0200 Merge branch 'dev' of https://github.com/Regalis11/Barotrauma-development into dev commit e07db1ab1d4c2627a74b1318822b79fcfd69e072 Author: Joonas Rikkonen <poe.regalis@gmail.com> Date: Thu Mar 21 20:16:44 2019 +0200 Fixed dedicated server crashing when typing in more text than can fit on one line. Closes #1321 commit 69a6cdb6a7d1b8f2f2e819145ced9ae4fcc38f28 Author: Joonas Rikkonen <poe.regalis@gmail.com> Date: Thu Mar 21 16:46:32 2019 +0200 Made crafting materials combinable
This commit is contained in:
@@ -81,11 +81,12 @@ namespace Barotrauma
|
|||||||
//dequeue messages
|
//dequeue messages
|
||||||
lock (queuedMessages)
|
lock (queuedMessages)
|
||||||
{
|
{
|
||||||
if (queuedMessages.Count>0)
|
if (queuedMessages.Count > 0)
|
||||||
{
|
{
|
||||||
|
int inputLines = Math.Max((int)Math.Ceiling(input.Length / (float)Console.WindowWidth), 1);
|
||||||
Console.CursorLeft = 0;
|
Console.CursorLeft = 0;
|
||||||
Console.Write(new string(' ', consoleWidth));
|
Console.Write(new string(' ', consoleWidth));
|
||||||
Console.CursorTop--; Console.CursorLeft = 0;
|
Console.CursorTop -= inputLines; Console.CursorLeft = 0;
|
||||||
while (queuedMessages.Count > 0)
|
while (queuedMessages.Count > 0)
|
||||||
{
|
{
|
||||||
ColoredText msg = queuedMessages.Dequeue();
|
ColoredText msg = queuedMessages.Dequeue();
|
||||||
@@ -177,11 +178,11 @@ namespace Barotrauma
|
|||||||
|
|
||||||
private static void RewriteInputToCommandLine(string input)
|
private static void RewriteInputToCommandLine(string input)
|
||||||
{
|
{
|
||||||
Console.WriteLine(""); Console.CursorTop--;
|
int consoleWidth = Math.Max(Console.WindowWidth, 5);
|
||||||
int consoleWidth = Console.WindowWidth;
|
int inputLines = Math.Max((int)Math.Ceiling(input.Length / (float)consoleWidth), 1);
|
||||||
if (consoleWidth < 5) consoleWidth = 5;
|
int cursorLine = Math.Max((int)Math.Ceiling((input.Length + 1) / (float)consoleWidth), 1);
|
||||||
int consoleHeight = Console.WindowHeight;
|
|
||||||
if (consoleHeight < 5) consoleHeight = 5;
|
Console.WriteLine(""); Console.CursorTop -= inputLines;
|
||||||
|
|
||||||
string ln = input.Length > 0 ? AutoComplete(input, 0) : "";
|
string ln = input.Length > 0 ? AutoComplete(input, 0) : "";
|
||||||
ln += new string(' ', consoleWidth - (ln.Length % consoleWidth));
|
ln += new string(' ', consoleWidth - (ln.Length % consoleWidth));
|
||||||
@@ -190,9 +191,9 @@ namespace Barotrauma
|
|||||||
Console.Write(ln);
|
Console.Write(ln);
|
||||||
Console.ForegroundColor = ConsoleColor.White;
|
Console.ForegroundColor = ConsoleColor.White;
|
||||||
Console.CursorLeft = 0;
|
Console.CursorLeft = 0;
|
||||||
Console.CursorTop--;
|
Console.CursorTop -= cursorLine;
|
||||||
Console.Write(input);
|
Console.Write(input);
|
||||||
Console.CursorLeft = input.Length;
|
Console.CursorLeft = input.Length % Console.WindowWidth;
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void AssignOnClientRequestExecute(string names, Action<Client, Vector2, string[]> onClientRequestExecute)
|
private static void AssignOnClientRequestExecute(string names, Action<Client, Vector2, string[]> onClientRequestExecute)
|
||||||
|
|||||||
@@ -1,3 +1,46 @@
|
|||||||
|
---------------------------------------------------------------------------------------------------------
|
||||||
|
v0.8.9.7
|
||||||
|
---------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
Additions and changes:
|
||||||
|
- The fission rate gauge on the reactor now visualizes the amount of fuel available.
|
||||||
|
- Doors and hatches can now also be repaired with wrenches.
|
||||||
|
- Changed default StatusEffect conditional comparison type back to OR.
|
||||||
|
- Clients communicate syncing errors to the server, and the server logs a more descriptive error about
|
||||||
|
what went wrong. Should make it easier to diagnose disconnection issues from now on.
|
||||||
|
- Ending a multiplayer campaign round by talking to watchman doesn't require any special permissions.
|
||||||
|
- Added a button for resetting an entity's properties to the default values to the sub editor.
|
||||||
|
- Updated handheld sonar UI graphics.
|
||||||
|
|
||||||
|
Bugfixes:
|
||||||
|
- Fixed non-radio chat/VOIP having an unlimited distance.
|
||||||
|
- Fixed a networking bug that caused the server to send item state changes to the clients before sending
|
||||||
|
a message about the item being spawned. For example, spawning any item with a LightComponent would always
|
||||||
|
cause clients to get disconnected.
|
||||||
|
- Changes to the way the clients are put in sync with the server when joining mid-round. Should make it
|
||||||
|
less likely for clients to get disconnected immediately after starting a round.
|
||||||
|
- StatusEffects only apply non-limb-specific afflictions to one limb even if targeting the whole character.
|
||||||
|
Fixes drugs like fentanyl and morphine being way too harmful due to the oxygen loss affliction being
|
||||||
|
applied once per every limb.
|
||||||
|
- Fixed TargetItemComponentName not working in StatusEffect conditionals (making it impossible to create
|
||||||
|
conditionals that target a specific component of an item).
|
||||||
|
- Made all of the new medical items combinable and usable in a syringe gun (assuming the drug is in a syringe).
|
||||||
|
- Fixed inability to throw anything in the multiplayer.
|
||||||
|
- Fixed multiplayer campaign setup UI showing the client's subs instead of the server's.
|
||||||
|
- Fixed campaign view button overlapping with the "ready to start" tickbox in the server lobby.
|
||||||
|
- Fixed sub/mode voting not being enabled when changing the setting after the server has been started.
|
||||||
|
- Fixed character inventories occasionally being saved incorrectly in the multiplayer campaign when an
|
||||||
|
- Fixed flares not activating by left clicking.
|
||||||
|
- Fixed affliction icons flickering rapidly in the health interface and above the health bar if their
|
||||||
|
strength is fluctuating around the threshold where the icon becomes visible.
|
||||||
|
- Fixed dedicated server crashing when typing in more text than can fit on one line.
|
||||||
|
- Fixed enemies "fleeing" after they have been shot. There was a steering issue when they targeted characters
|
||||||
|
inside the sub while being outside.
|
||||||
|
- Fixed Hammerhead attack causing warping.
|
||||||
|
- Fixed incorrect submarine and level seed in server logs when playing campaign mode.
|
||||||
|
- Hide the start button from the campaign UI if the client doesn't have the permission to manage
|
||||||
|
the campaign or rounds.
|
||||||
|
|
||||||
---------------------------------------------------------------------------------------------------------
|
---------------------------------------------------------------------------------------------------------
|
||||||
v0.8.9.6
|
v0.8.9.6
|
||||||
---------------------------------------------------------------------------------------------------------
|
---------------------------------------------------------------------------------------------------------
|
||||||
|
|||||||
Reference in New Issue
Block a user