Skip to content

Commit ab3908d

Browse files
committed
[COTLMPSERVER] Initial implementation of the dedicated server command line parser
1 parent ebf21b5 commit ab3908d

8 files changed

Lines changed: 192 additions & 3 deletions

File tree

COTLMP.sln

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11

22
Microsoft Visual Studio Solution File, Format Version 12.00
3-
# Visual Studio Version 17
4-
VisualStudioVersion = 17.14.36310.24
3+
# Visual Studio Version 18
4+
VisualStudioVersion = 18.5.11723.231
55
MinimumVisualStudioVersion = 10.0.40219.1
66
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "COTLMP", "COTLMP\COTLMP.csproj", "{75CAB2D0-F823-DEFE-5EF0-A25BC117280F}"
77
EndProject
88
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "COTLMPServer", "COTLMPServer\COTLMPServer.csproj", "{9476AA40-C94F-43C7-BF81-9427F4329E8F}"
99
EndProject
10+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ServerParser", "COTLMPServer\ServerParser\ServerParser.csproj", "{F1A8FDC3-4919-466D-927C-7F1FD8626A89}"
11+
EndProject
1012
Global
1113
GlobalSection(SolutionConfigurationPlatforms) = preSolution
1214
Debug|Any CPU = Debug|Any CPU
@@ -21,6 +23,10 @@ Global
2123
{9476AA40-C94F-43C7-BF81-9427F4329E8F}.Debug|Any CPU.Build.0 = Debug|Any CPU
2224
{9476AA40-C94F-43C7-BF81-9427F4329E8F}.Release|Any CPU.ActiveCfg = Release|Any CPU
2325
{9476AA40-C94F-43C7-BF81-9427F4329E8F}.Release|Any CPU.Build.0 = Release|Any CPU
26+
{F1A8FDC3-4919-466D-927C-7F1FD8626A89}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
27+
{F1A8FDC3-4919-466D-927C-7F1FD8626A89}.Debug|Any CPU.Build.0 = Debug|Any CPU
28+
{F1A8FDC3-4919-466D-927C-7F1FD8626A89}.Release|Any CPU.ActiveCfg = Release|Any CPU
29+
{F1A8FDC3-4919-466D-927C-7F1FD8626A89}.Release|Any CPU.Build.0 = Release|Any CPU
2430
EndGlobalSection
2531
GlobalSection(SolutionProperties) = preSolution
2632
HideSolutionNode = FALSE

COTLMP/COTLMP.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
https://nuget.samboy.dev/v3/index.json
1414
</RestoreAdditionalProjectSources>
1515
<RootNamespace>COTLMP</RootNamespace>
16+
<GenerateTargetFrameworkAttribute>false</GenerateTargetFrameworkAttribute>
1617
</PropertyGroup>
1718

1819
<ItemGroup>

COTLMPServer/COTLMPServer.csproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
<PropertyGroup>
44
<TargetFramework>netstandard2.0</TargetFramework>
5+
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
6+
<GenerateTargetFrameworkAttribute>false</GenerateTargetFrameworkAttribute>
57
</PropertyGroup>
6-
78
</Project>
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.0" encoding="utf-8" ?>
2+
<configuration>
3+
<startup>
4+
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
5+
</startup>
6+
</configuration>
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
/*
2+
* PROJECT: Cult of the Lamb Multiplayer Mod
3+
* LICENSE: MIT (https://spdx.org/licenses/MIT)
4+
* PURPOSE: Main command line launcher
5+
* COPYRIGHT: Copyright 2026 GeoB99 <geobman1999@gmail.com>
6+
*/
7+
8+
/* IMPORTS ********************************************************************/
9+
10+
using System;
11+
12+
/* CLASSES & CODE *************************************************************/
13+
14+
namespace COTLMPServer
15+
{
16+
internal static class Launcher
17+
{
18+
public static void Main(string[] args)
19+
{
20+
COTLMPServer.ServerParser.ParseArgs(args);
21+
}
22+
}
23+
}
24+
25+
/* EOF */
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
using System.Reflection;
2+
using System.Runtime.CompilerServices;
3+
using System.Runtime.InteropServices;
4+
5+
// General Information about an assembly is controlled through the following
6+
// set of attributes. Change these attribute values to modify the information
7+
// associated with an assembly.
8+
[assembly: AssemblyTitle("CultOfTheLambServer")]
9+
[assembly: AssemblyDescription("Cult of The Lamb Dedicated Server")]
10+
[assembly: AssemblyConfiguration("")]
11+
[assembly: AssemblyCompany("")]
12+
[assembly: AssemblyProduct("CultOfTheLambServer")]
13+
[assembly: AssemblyCopyright("Copyright © 2026")]
14+
[assembly: AssemblyTrademark("")]
15+
[assembly: AssemblyCulture("")]
16+
17+
// Setting ComVisible to false makes the types in this assembly not visible
18+
// to COM components. If you need to access a type in this assembly from
19+
// COM, set the ComVisible attribute to true on that type.
20+
[assembly: ComVisible(false)]
21+
22+
// The following GUID is for the ID of the typelib if this project is exposed to COM
23+
[assembly: Guid("f1a8fdc3-4919-466d-927c-7f1fd8626a89")]
24+
25+
// Version information for an assembly consists of the following four values:
26+
//
27+
// Major Version
28+
// Minor Version
29+
// Build Number
30+
// Revision
31+
//
32+
[assembly: AssemblyVersion("1.0.0.0")]
33+
[assembly: AssemblyFileVersion("1.0.0.0")]
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
/*
2+
* PROJECT: Cult of the Lamb Multiplayer Mod
3+
* LICENSE: MIT (https://spdx.org/licenses/MIT)
4+
* PURPOSE: Dedicated server command line parser
5+
* COPYRIGHT: Copyright 2026 GeoB99 <geobman1999@gmail.com>
6+
*/
7+
8+
/* IMPORTS ********************************************************************/
9+
10+
using System;
11+
12+
/* CLASSES & CODE *************************************************************/
13+
14+
namespace COTLMPServer
15+
{
16+
internal static class ServerParser
17+
{
18+
public static void ParseArgs(string[] Arguments)
19+
{
20+
Console.WriteLine(Arguments);
21+
}
22+
}
23+
}
24+
25+
/* EOF */
Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
4+
<PropertyGroup>
5+
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
6+
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
7+
<ProjectGuid>{F1A8FDC3-4919-466D-927C-7F1FD8626A89}</ProjectGuid>
8+
<OutputType>Exe</OutputType>
9+
<RootNamespace>COTLMPServer</RootNamespace>
10+
<AssemblyName>CultOfTheLambServer</AssemblyName>
11+
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
12+
<FileAlignment>512</FileAlignment>
13+
<AutoGenerateBindingRedirects>false</AutoGenerateBindingRedirects>
14+
<Deterministic>true</Deterministic>
15+
<PublishUrl>publish\</PublishUrl>
16+
<Install>true</Install>
17+
<InstallFrom>Disk</InstallFrom>
18+
<UpdateEnabled>false</UpdateEnabled>
19+
<UpdateMode>Foreground</UpdateMode>
20+
<UpdateInterval>7</UpdateInterval>
21+
<UpdateIntervalUnits>Days</UpdateIntervalUnits>
22+
<UpdatePeriodically>false</UpdatePeriodically>
23+
<UpdateRequired>false</UpdateRequired>
24+
<MapFileExtensions>true</MapFileExtensions>
25+
<ApplicationRevision>0</ApplicationRevision>
26+
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
27+
<IsWebBootstrapper>false</IsWebBootstrapper>
28+
<UseApplicationTrust>false</UseApplicationTrust>
29+
<BootstrapperEnabled>true</BootstrapperEnabled>
30+
</PropertyGroup>
31+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
32+
<PlatformTarget>AnyCPU</PlatformTarget>
33+
<DebugSymbols>true</DebugSymbols>
34+
<DebugType>full</DebugType>
35+
<Optimize>false</Optimize>
36+
<OutputPath>bin\Debug\</OutputPath>
37+
<DefineConstants>DEBUG;TRACE</DefineConstants>
38+
<ErrorReport>prompt</ErrorReport>
39+
<WarningLevel>0</WarningLevel>
40+
<Prefer32Bit>true</Prefer32Bit>
41+
</PropertyGroup>
42+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
43+
<PlatformTarget>AnyCPU</PlatformTarget>
44+
<DebugType>pdbonly</DebugType>
45+
<Optimize>false</Optimize>
46+
<OutputPath>bin\Debug\</OutputPath>
47+
<DefineConstants>DEBUG;TRACE</DefineConstants>
48+
<ErrorReport>prompt</ErrorReport>
49+
<WarningLevel>4</WarningLevel>
50+
</PropertyGroup>
51+
<PropertyGroup>
52+
<StartupObject>
53+
</StartupObject>
54+
</PropertyGroup>
55+
<ItemGroup>
56+
<Reference Include="System" />
57+
<Reference Include="System.Core" />
58+
<Reference Include="System.Xml.Linq" />
59+
<Reference Include="System.Data.DataSetExtensions" />
60+
<Reference Include="Microsoft.CSharp" />
61+
<Reference Include="System.Data" />
62+
<Reference Include="System.Net.Http" />
63+
<Reference Include="System.Xml" />
64+
</ItemGroup>
65+
<ItemGroup>
66+
<Compile Include="Launcher.cs" />
67+
<Compile Include="Properties\AssemblyInfo.cs" />
68+
<Compile Include="ServerParser.cs" />
69+
</ItemGroup>
70+
<ItemGroup>
71+
<None Include="App.config" />
72+
</ItemGroup>
73+
<ItemGroup>
74+
<ProjectReference Include="..\COTLMPServer.csproj">
75+
<Project>{9476aa40-c94f-43c7-bf81-9427f4329e8f}</Project>
76+
<Name>COTLMPServer</Name>
77+
</ProjectReference>
78+
</ItemGroup>
79+
<ItemGroup>
80+
<BootstrapperPackage Include=".NETFramework,Version=v4.7.2">
81+
<Visible>False</Visible>
82+
<ProductName>Microsoft .NET Framework 4.7.2 %28x86 and x64%29</ProductName>
83+
<Install>true</Install>
84+
</BootstrapperPackage>
85+
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
86+
<Visible>False</Visible>
87+
<ProductName>.NET Framework 3.5 SP1</ProductName>
88+
<Install>false</Install>
89+
</BootstrapperPackage>
90+
</ItemGroup>
91+
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
92+
</Project>

0 commit comments

Comments
 (0)