(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

View File

@@ -51,7 +51,7 @@ namespace Barotrauma
{
itemInUseWarning = new GUITextBlock(new RectTransform(new Point(10), GUI.Canvas), "",
textColor: Color.Orange, color: Color.Black,
textAlignment: Alignment.Center, style: "OuterGlow");
textAlignment:Alignment.Center, style: "OuterGlow");
}
return itemInUseWarning;
}
@@ -662,7 +662,7 @@ namespace Barotrauma
new Rectangle(
20, 20,
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)
{
@@ -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)
{
if (otherCharacter != character &&

View File

@@ -712,11 +712,8 @@ namespace Barotrauma
" -ownerkey " + ownerKey.ToString();
string filename = "DedicatedServer.exe";
#if LINUX
#if LINUX || OSX
filename = "./DedicatedServer";
#elif OSX
filename = "mono";
arguments = "./DedicatedServer.exe " + arguments;
#endif
var processInfo = new ProcessStartInfo
{

View File

@@ -159,8 +159,14 @@ namespace Barotrauma
public void StartRound(Level level, bool reloadSub = true, bool loadSecondSub = false, bool mirrorLevel = false)
{
#if CLIENT
GameMain.LightManager.LosEnabled = GameMain.Client == null || GameMain.Client.CharacterInfo != null;
if (GameMain.Client == null) GameMain.LightManager.LosMode = GameMain.Config.LosMode;
if (GameMain.Client == null)
{
GameMain.LightManager.LosMode = GameMain.Config.LosMode;
}
else
{
GameMain.LightManager.LosEnabled = GameMain.Client.CharacterInfo != null;
}
#endif
this.Level = level;

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
---------------------------------------------------------------------------------------------------------