Build 0.19.11.0
This commit is contained in:
@@ -71,6 +71,7 @@ namespace Barotrauma.Steam
|
|||||||
|
|
||||||
return (await Task.WhenAll(outOfDatePackages.Where(p => !p.IsUpToDate)
|
return (await Task.WhenAll(outOfDatePackages.Where(p => !p.IsUpToDate)
|
||||||
.Select(p => p.Package.UgcId)
|
.Select(p => p.Package.UgcId)
|
||||||
|
.NotNone()
|
||||||
.OfType<SteamWorkshopId>()
|
.OfType<SteamWorkshopId>()
|
||||||
.Select(async id => await SteamManager.Workshop.GetItem(id.Value))))
|
.Select(async id => await SteamManager.Workshop.GetItem(id.Value))))
|
||||||
.Where(p => p.HasValue).Select(p => p ?? default).ToArray();
|
.Where(p => p.HasValue).Select(p => p ?? default).ToArray();
|
||||||
|
|||||||
@@ -113,7 +113,10 @@ namespace Barotrauma
|
|||||||
{
|
{
|
||||||
case ModType.Workshop:
|
case ModType.Workshop:
|
||||||
pkgElem.SetAttributeValue("name", pkg.Name);
|
pkgElem.SetAttributeValue("name", pkg.Name);
|
||||||
pkgElem.SetAttributeValue("id", pkg.UgcId.ToString());
|
if (pkg.UgcId.TryUnwrap(out ContentPackageId ugcId))
|
||||||
|
{
|
||||||
|
pkgElem.SetAttributeValue("id", ugcId.ToString());
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case ModType.Local:
|
case ModType.Local:
|
||||||
pkgElem.SetAttributeValue("name", pkg.Name);
|
pkgElem.SetAttributeValue("name", pkg.Name);
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
<RootNamespace>Barotrauma</RootNamespace>
|
<RootNamespace>Barotrauma</RootNamespace>
|
||||||
<Authors>FakeFish, Undertow Games</Authors>
|
<Authors>FakeFish, Undertow Games</Authors>
|
||||||
<Product>Barotrauma</Product>
|
<Product>Barotrauma</Product>
|
||||||
<Version>0.19.10.0</Version>
|
<Version>0.19.11.0</Version>
|
||||||
<Copyright>Copyright © FakeFish 2018-2022</Copyright>
|
<Copyright>Copyright © FakeFish 2018-2022</Copyright>
|
||||||
<Platforms>AnyCPU;x64</Platforms>
|
<Platforms>AnyCPU;x64</Platforms>
|
||||||
<AssemblyName>Barotrauma</AssemblyName>
|
<AssemblyName>Barotrauma</AssemblyName>
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
<RootNamespace>Barotrauma</RootNamespace>
|
<RootNamespace>Barotrauma</RootNamespace>
|
||||||
<Authors>FakeFish, Undertow Games</Authors>
|
<Authors>FakeFish, Undertow Games</Authors>
|
||||||
<Product>Barotrauma</Product>
|
<Product>Barotrauma</Product>
|
||||||
<Version>0.19.10.0</Version>
|
<Version>0.19.11.0</Version>
|
||||||
<Copyright>Copyright © FakeFish 2018-2022</Copyright>
|
<Copyright>Copyright © FakeFish 2018-2022</Copyright>
|
||||||
<Platforms>AnyCPU;x64</Platforms>
|
<Platforms>AnyCPU;x64</Platforms>
|
||||||
<AssemblyName>Barotrauma</AssemblyName>
|
<AssemblyName>Barotrauma</AssemblyName>
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
<RootNamespace>Barotrauma</RootNamespace>
|
<RootNamespace>Barotrauma</RootNamespace>
|
||||||
<Authors>FakeFish, Undertow Games</Authors>
|
<Authors>FakeFish, Undertow Games</Authors>
|
||||||
<Product>Barotrauma</Product>
|
<Product>Barotrauma</Product>
|
||||||
<Version>0.19.10.0</Version>
|
<Version>0.19.11.0</Version>
|
||||||
<Copyright>Copyright © FakeFish 2018-2022</Copyright>
|
<Copyright>Copyright © FakeFish 2018-2022</Copyright>
|
||||||
<Platforms>AnyCPU;x64</Platforms>
|
<Platforms>AnyCPU;x64</Platforms>
|
||||||
<AssemblyName>Barotrauma</AssemblyName>
|
<AssemblyName>Barotrauma</AssemblyName>
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
<RootNamespace>Barotrauma</RootNamespace>
|
<RootNamespace>Barotrauma</RootNamespace>
|
||||||
<Authors>FakeFish, Undertow Games</Authors>
|
<Authors>FakeFish, Undertow Games</Authors>
|
||||||
<Product>Barotrauma Dedicated Server</Product>
|
<Product>Barotrauma Dedicated Server</Product>
|
||||||
<Version>0.19.10.0</Version>
|
<Version>0.19.11.0</Version>
|
||||||
<Copyright>Copyright © FakeFish 2018-2022</Copyright>
|
<Copyright>Copyright © FakeFish 2018-2022</Copyright>
|
||||||
<Platforms>AnyCPU;x64</Platforms>
|
<Platforms>AnyCPU;x64</Platforms>
|
||||||
<AssemblyName>DedicatedServer</AssemblyName>
|
<AssemblyName>DedicatedServer</AssemblyName>
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
<RootNamespace>Barotrauma</RootNamespace>
|
<RootNamespace>Barotrauma</RootNamespace>
|
||||||
<Authors>FakeFish, Undertow Games</Authors>
|
<Authors>FakeFish, Undertow Games</Authors>
|
||||||
<Product>Barotrauma Dedicated Server</Product>
|
<Product>Barotrauma Dedicated Server</Product>
|
||||||
<Version>0.19.10.0</Version>
|
<Version>0.19.11.0</Version>
|
||||||
<Copyright>Copyright © FakeFish 2018-2022</Copyright>
|
<Copyright>Copyright © FakeFish 2018-2022</Copyright>
|
||||||
<Platforms>AnyCPU;x64</Platforms>
|
<Platforms>AnyCPU;x64</Platforms>
|
||||||
<AssemblyName>DedicatedServer</AssemblyName>
|
<AssemblyName>DedicatedServer</AssemblyName>
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
<RootNamespace>Barotrauma</RootNamespace>
|
<RootNamespace>Barotrauma</RootNamespace>
|
||||||
<Authors>FakeFish, Undertow Games</Authors>
|
<Authors>FakeFish, Undertow Games</Authors>
|
||||||
<Product>Barotrauma Dedicated Server</Product>
|
<Product>Barotrauma Dedicated Server</Product>
|
||||||
<Version>0.19.10.0</Version>
|
<Version>0.19.11.0</Version>
|
||||||
<Copyright>Copyright © FakeFish 2018-2022</Copyright>
|
<Copyright>Copyright © FakeFish 2018-2022</Copyright>
|
||||||
<Platforms>AnyCPU;x64</Platforms>
|
<Platforms>AnyCPU;x64</Platforms>
|
||||||
<AssemblyName>DedicatedServer</AssemblyName>
|
<AssemblyName>DedicatedServer</AssemblyName>
|
||||||
|
|||||||
@@ -269,6 +269,9 @@ namespace Barotrauma
|
|||||||
|
|
||||||
public const float DefaultRealWorldCrushDepth = 3500.0f;
|
public const float DefaultRealWorldCrushDepth = 3500.0f;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The crush depth of a non-upgraded submarine in in-game coordinates. Note that this can be above the top of the level!
|
||||||
|
/// </summary>
|
||||||
public float CrushDepth
|
public float CrushDepth
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
@@ -277,6 +280,9 @@ namespace Barotrauma
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The crush depth of a non-upgraded submarine in "real world units" (meters from the surface of Europa). Note that this can be above the top of the level!
|
||||||
|
/// </summary>
|
||||||
public float RealWorldCrushDepth
|
public float RealWorldCrushDepth
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
|
|||||||
@@ -47,6 +47,9 @@ namespace Barotrauma
|
|||||||
|
|
||||||
public readonly Point Size;
|
public readonly Point Size;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The depth at which the level starts at, in in-game coordinates. E.g. if this was set to 100 000 (= 1000 m), the nav terminal would display the depth as 1000 meters at the top of the level.
|
||||||
|
/// </summary>
|
||||||
public readonly int InitialDepth;
|
public readonly int InitialDepth;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -59,6 +62,9 @@ namespace Barotrauma
|
|||||||
|
|
||||||
public bool EventsExhausted { get; set; }
|
public bool EventsExhausted { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The crush depth of a non-upgraded submarine in in-game coordinates. Note that this can be above the top of the level!
|
||||||
|
/// </summary>
|
||||||
public float CrushDepth
|
public float CrushDepth
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
@@ -66,6 +72,10 @@ namespace Barotrauma
|
|||||||
return Math.Max(Size.Y, Level.DefaultRealWorldCrushDepth / Physics.DisplayToRealWorldRatio) - InitialDepth;
|
return Math.Max(Size.Y, Level.DefaultRealWorldCrushDepth / Physics.DisplayToRealWorldRatio) - InitialDepth;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The crush depth of a non-upgraded submarine in "real world units" (meters from the surface of Europa). Note that this can be above the top of the level!
|
||||||
|
/// </summary>
|
||||||
public float RealWorldCrushDepth
|
public float RealWorldCrushDepth
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
|
|||||||
@@ -1433,6 +1433,13 @@ namespace Barotrauma
|
|||||||
if (submarine?.Info.GameVersion != null)
|
if (submarine?.Info.GameVersion != null)
|
||||||
{
|
{
|
||||||
SerializableProperty.UpgradeGameVersion(s, s.Prefab.ConfigElement, submarine.Info.GameVersion);
|
SerializableProperty.UpgradeGameVersion(s, s.Prefab.ConfigElement, submarine.Info.GameVersion);
|
||||||
|
//tier-based upgrade restrictions were added in 0.19.10.0, potentially soft-locking campaigns if you're
|
||||||
|
//far enough on the map on a submarine that can no longer have as many levels of hull upgrades.
|
||||||
|
// -> let's ensure that won't happen
|
||||||
|
if (submarine.Info.GameVersion < new Version(0, 19, 10) && GameMain.GameSession?.LevelData != null)
|
||||||
|
{
|
||||||
|
s.CrushDepth = Math.Max(s.CrushDepth, GameMain.GameSession.LevelData.InitialDepth * Physics.DisplayToRealWorldRatio + 500);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bool hasDamage = false;
|
bool hasDamage = false;
|
||||||
|
|||||||
@@ -1,3 +1,11 @@
|
|||||||
|
---------------------------------------------------------------------------------------------------------
|
||||||
|
v0.19.11.0
|
||||||
|
---------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
- Fixed some old campaign saves being impossible to continue due to the new submarine upgrade restricions.
|
||||||
|
- Fixed "update all mods" button doing nothing in the Workshop menu.
|
||||||
|
- Fixed inability to create mod lists that include Workshop mods.
|
||||||
|
|
||||||
---------------------------------------------------------------------------------------------------------
|
---------------------------------------------------------------------------------------------------------
|
||||||
v0.19.10.0
|
v0.19.10.0
|
||||||
---------------------------------------------------------------------------------------------------------
|
---------------------------------------------------------------------------------------------------------
|
||||||
|
|||||||
0
Deploy/DeployAll.sh
Normal file → Executable file
0
Deploy/DeployAll.sh
Normal file → Executable file
Reference in New Issue
Block a user