(f9330e2e0) Modified: MacOS to use the same monokickstart when launching server

This commit is contained in:
Joonas Rikkonen
2019-06-04 16:03:35 +03:00
parent 79d4f17c0e
commit babc87903b
5 changed files with 13 additions and 42 deletions
@@ -51,7 +51,7 @@ namespace Barotrauma
{ {
itemInUseWarning = new GUITextBlock(new RectTransform(new Point(10), GUI.Canvas), "", itemInUseWarning = new GUITextBlock(new RectTransform(new Point(10), GUI.Canvas), "",
textColor: Color.Orange, color: Color.Black, textColor: Color.Orange, color: Color.Black,
textAlignment: Alignment.Center, style: "OuterGlow"); textAlignment:Alignment.Center, style: "OuterGlow");
} }
return itemInUseWarning; return itemInUseWarning;
} }
@@ -662,7 +662,7 @@ namespace Barotrauma
new Rectangle( new Rectangle(
20, 20, 20, 20,
GameMain.GraphicsWidth - 40, GameMain.GraphicsWidth - 40,
HUDLayoutSettings.InventoryTopY > 0 ? HUDLayoutSettings.InventoryTopY - 40 : GameMain.GraphicsHeight - 80)); HUDLayoutSettings.InventoryTopY > 0 ? HUDLayoutSettings.InventoryTopY - 20 : GameMain.GraphicsHeight - 80));
foreach (ItemComponent ic in activeHUDs) foreach (ItemComponent ic in activeHUDs)
{ {
@@ -740,9 +740,9 @@ namespace Barotrauma
} }
} }
if (mergedHUDRect != Rectangle.Empty) if (itemInUseWarning != null && mergedHUDRect != Rectangle.Empty)
{ {
if (itemInUseWarning != null) { itemInUseWarning.Visible = false; } itemInUseWarning.Visible = false;
foreach (Character otherCharacter in Character.CharacterList) foreach (Character otherCharacter in Character.CharacterList)
{ {
if (otherCharacter != character && if (otherCharacter != character &&
@@ -712,11 +712,8 @@ namespace Barotrauma
" -ownerkey " + ownerKey.ToString(); " -ownerkey " + ownerKey.ToString();
string filename = "DedicatedServer.exe"; string filename = "DedicatedServer.exe";
#if LINUX #if LINUX || OSX
filename = "./DedicatedServer"; filename = "./DedicatedServer";
#elif OSX
filename = "mono";
arguments = "./DedicatedServer.exe " + arguments;
#endif #endif
var processInfo = new ProcessStartInfo var processInfo = new ProcessStartInfo
{ {
@@ -159,8 +159,14 @@ namespace Barotrauma
public void StartRound(Level level, bool reloadSub = true, bool loadSecondSub = false, bool mirrorLevel = false) public void StartRound(Level level, bool reloadSub = true, bool loadSecondSub = false, bool mirrorLevel = false)
{ {
#if CLIENT #if CLIENT
GameMain.LightManager.LosEnabled = GameMain.Client == null || GameMain.Client.CharacterInfo != null; if (GameMain.Client == null)
if (GameMain.Client == null) GameMain.LightManager.LosMode = GameMain.Config.LosMode; {
GameMain.LightManager.LosMode = GameMain.Config.LosMode;
}
else
{
GameMain.LightManager.LosEnabled = GameMain.Client.CharacterInfo != null;
}
#endif #endif
this.Level = level; this.Level = level;
Binary file not shown.
-32
View File
@@ -1,35 +1,3 @@
---------------------------------------------------------------------------------------------------------
v0.9.0.4
---------------------------------------------------------------------------------------------------------
- Fixed "Steam authentication failed" errors when trying to reconnect to a server after cancelling the
connection.
- Fixed clients occasionally failing to spawn items when playing using a different language than the server,
which caused them to get kicked.
- Fixed extra cargo failing to spawn in multiplayer when playing using a different language than the server.
- Fixed legacy items failing to load if a sub is saved with a language other than English and the language
then changed to something else.
- Fixed excessively small password input box when connecting to servers.
- Fixed a bug that occasionally caused items to drop from the inventory when moving items between
inventory slots in the multiplayer.
- Prevent junction boxes from getting damaged due to overvoltage in the engineering tutorial.
- Fixed structures getting scaled incorrectly when cloning a structure with a non-default scale in the
submarine editor.
- Fixed occasional crashes when leaving a multiplayer session while the "cinematic" at the end of the round
is still playing.
- Fixed items not being moved to the humanhusk's inventory when a huskified player dies (= clothes and
other gear seemed to magically disappear when the character "resurrected" as an AI husk).
- Fixed clients not seeing turrets rotating at their end when another client is operating the turret.
- Fixed hitscan projectiles (revolver rounds) going through walls if the weapon is fired while its
barrel is partially inside the wall.
- Fixed welding tools being able to weld doors and burn characters through walls.
- Fixed bots reporting leaks when there are holes in the interior walls.
- Fixes to the colliders of some of the shuttle wall pieces.
- Fixed Linux version crashing when attempting to browse for files in the Steam Workshop menu.
- Fixed credits not resizing when resolution is changed.
- Added an upper limit to impact damage done to ragdolls, preventing characters from getting instakilled if
a Moloch or another large monster smashes against the sub hard enough.
--------------------------------------------------------------------------------------------------------- ---------------------------------------------------------------------------------------------------------
v0.9.0.3 v0.9.0.3
--------------------------------------------------------------------------------------------------------- ---------------------------------------------------------------------------------------------------------