Skip to content

Commit

Permalink
Merge branch 'main' into feat-logger
Browse files Browse the repository at this point in the history
  • Loading branch information
kamronbatman authored Dec 31, 2024
2 parents 665cc36 + 333b408 commit 1a8bcb7
Show file tree
Hide file tree
Showing 11 changed files with 30 additions and 20 deletions.
2 changes: 1 addition & 1 deletion .config/dotnet-tools.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"isRoot": true,
"tools": {
"modernuoschemagenerator": {
"version": "2.12.13",
"version": "2.12.18",
"commands": [
"ModernUOSchemaGenerator"
]
Expand Down
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
<PackageReference Include="Serilog.Sinks.Async" Version="2.1.0" />
<PackageReference Include="Serilog.Sinks.Console" Version="6.0.0" />
<PackageReference Include="Nerdbank.GitVersioning" Condition="!Exists('packages.config')">
<Version>3.6.146</Version>
<Version>3.7.112</Version>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<AdditionalFiles Include="..\..\Rules.ruleset" />
Expand Down
7 changes: 7 additions & 0 deletions Distribution/Data/Decoration/Felucca/VesperGraveyard.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Iron Gate right
IronGateShort 0x0856 (Facing=NorthCCW)
2783 867 0

# Iron Gate left
IronGateShort 0x0854 (Facing=SouthCW)
2783 868 0
7 changes: 7 additions & 0 deletions Distribution/Data/Decoration/Trammel/VesperGraveyard.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Iron Gate right
IronGateShort 0x0856 (Facing=NorthCCW)
2783 867 0

# Iron Gate left
IronGateShort 0x0854 (Facing=SouthCW)
2783 868 0
2 changes: 1 addition & 1 deletion Projects/Server.Tests/Server.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.12.0" />
<PackageReference Include="xunit" Version="2.9.2" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.8.2">
<PackageReference Include="xunit.runner.visualstudio" Version="3.0.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
Expand Down
12 changes: 6 additions & 6 deletions Projects/Server/Network/TcpServer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ public static class TcpServer

public static void Start()
{
HashSet<IPEndPoint> listeningAddresses = new HashSet<IPEndPoint>();
List<Socket> listeners = new List<Socket>();
HashSet<IPEndPoint> listeningAddresses = [];
List<Socket> listeners = [];
foreach (var ipep in ServerConfiguration.Listeners)
{
var listener = CreateListener(ipep);
Expand All @@ -62,7 +62,7 @@ public static void Start()

foreach (var ipep in listeningAddresses)
{
logger.Information("Listening: {Address}:{Port}", ipep.Address, ipep.Port);
logger.Information("Listening: {Address}", ipep);
}

ListeningAddresses = listeningAddresses.ToArray();
Expand Down Expand Up @@ -107,16 +107,16 @@ public static Socket CreateListener(IPEndPoint ipep)
// WSAEADDRINUSE
if (se.ErrorCode == 10048)
{
logger.Warning("Listener: {Address}:{Port}: Failed (In Use)", ipep.Address, ipep.Port);
logger.Warning("Listener: {Address} Exception: {Reason}", ipep, "Currently in use");
}
// WSAEADDRNOTAVAIL
else if (se.ErrorCode == 10049)
{
logger.Warning("Listener {Address}:{Port}: Failed (Unavailable)", ipep.Address, ipep.Port);
logger.Warning("Listener {Address} Exception: {Reason}", ipep, "Unavailable");
}
else
{
logger.Warning(se, "Listener Exception:");
logger.Warning(se, "Listener {Address} Exception: {Reason}", ipep, se.Message);
}
}

Expand Down
4 changes: 2 additions & 2 deletions Projects/Server/Server.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@
</Target>
<ItemGroup>
<ProjectReference Include="..\Logger\Logger.csproj" />
<PackageReference Include="CommunityToolkit.HighPerformance" Version="8.3.2" />
<PackageReference Include="CommunityToolkit.HighPerformance" Version="8.4.0" />
<PackageReference Include="LibDeflate.Bindings" Version="1.0.2.120" />
<PackageReference Include="PollGroup" Version="1.6.1" />
<PackageReference Include="System.IO.Hashing" Version="9.0.0" />

<PackageReference Include="ModernUO.Serialization.Annotations" Version="2.9.1" />
<PackageReference Include="ModernUO.Serialization.Generator" Version="2.12.13" />
<PackageReference Include="ModernUO.Serialization.Generator" Version="2.12.18" />
</ItemGroup>
<ItemGroup>
<AdditionalFiles Include="Migrations/*.v*.json" />
Expand Down
2 changes: 1 addition & 1 deletion Projects/UOContent.Tests/UOContent.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.12.0" />
<PackageReference Include="xunit" Version="2.9.2" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.8.2">
<PackageReference Include="xunit.runner.visualstudio" Version="3.0.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
Expand Down
2 changes: 1 addition & 1 deletion Projects/UOContent/Items/Guilds/GuildTeleporter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public override void OnDoubleClick(Mobile from)
{
from.SendLocalizedMessage(501141); // You can only place a guildstone in a house you own!
}
else if (house.FindGuildstone() != null)
else if (house.FindGuildstone() != null && house.FindGuildstone() != _stone)
{
from.SendLocalizedMessage(501142); // Only one guildstone may reside in a given house.
}
Expand Down
4 changes: 0 additions & 4 deletions Projects/UOContent/Mobiles/PlayerMobile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,9 @@
using Server.SkillHandlers;
using Server.Spells;
using Server.Spells.Bushido;
using Server.Spells.Fifth;
using Server.Spells.First;
using Server.Spells.Fourth;
using Server.Spells.Mysticism;
using Server.Spells.Necromancy;
using Server.Spells.Ninjitsu;
using Server.Spells.Second;
using Server.Spells.Sixth;
using Server.Spells.Spellweaving;
using Server.Targeting;
Expand Down
6 changes: 3 additions & 3 deletions Projects/UOContent/UOContent.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,16 @@
<IncludeInPackage>false</IncludeInPackage>
</ProjectReference>
<PackageReference Include="LibDeflate.Bindings" Version="1.0.2.120" />
<PackageReference Include="MailKit" Version="4.8.0" />
<PackageReference Include="MailKit" Version="4.9.0" />
<PackageReference Include="Microsoft.Extensions.FileSystemGlobbing" Version="9.0.0" />
<PackageReference Include="CommunityToolkit.HighPerformance" Version="8.3.2" />
<PackageReference Include="CommunityToolkit.HighPerformance" Version="8.4.0" />
<PackageReference Include="Argon2.Bindings" Version="1.16.1" />
<PackageReference Include="ModernUO.CodeGeneratedEvents.Annotations" Version="1.0.0" />
<PackageReference Include="ModernUO.CodeGeneratedEvents.Generator" Version="1.0.3.2" PrivateAssets="all" />
<PackageReference Include="Zstd.Binaries" Version="1.6.0" />

<PackageReference Include="ModernUO.Serialization.Annotations" Version="2.9.1" />
<PackageReference Include="ModernUO.Serialization.Generator" Version="2.12.13" />
<PackageReference Include="ModernUO.Serialization.Generator" Version="2.12.18" />
</ItemGroup>
<ItemGroup>
<AdditionalFiles Include="Migrations/*.v*.json" />
Expand Down

0 comments on commit 1a8bcb7

Please sign in to comment.