Dedicated server actually works to some extent
Clients can connect and use chat, the sub list isn't synced properly and there's no way to start a game yet
This commit is contained in:
@@ -710,6 +710,9 @@
|
||||
<Content Include="$(MSBuildThisFileDirectory)README.txt">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="$(MSBuildThisFileDirectory)serverconfig.xml">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="$(MSBuildThisFileDirectory)Content\blurshader.xnb">
|
||||
|
||||
@@ -497,6 +497,10 @@ namespace Barotrauma
|
||||
if (String.IsNullOrEmpty((msg))) return;
|
||||
|
||||
Messages.Add(new ColoredText(msg, color));
|
||||
#if SERVER
|
||||
//TODO: REMOVE
|
||||
Console.WriteLine(msg);
|
||||
#endif
|
||||
|
||||
if (Messages.Count > MaxMessages)
|
||||
{
|
||||
|
||||
@@ -119,7 +119,17 @@ namespace Barotrauma.Networking
|
||||
|
||||
config.EnableMessageType(NetIncomingMessageType.ConnectionApproval);
|
||||
|
||||
log = new ServerLog(name);
|
||||
|
||||
InitProjSpecific();
|
||||
|
||||
entityEventManager = new ServerEntityEventManager(this);
|
||||
|
||||
whitelist = new WhiteList();
|
||||
banList = new BanList();
|
||||
|
||||
LoadSettings();
|
||||
LoadClientPermissions();
|
||||
|
||||
CoroutineManager.StartCoroutine(StartServer(isPublic));
|
||||
}
|
||||
@@ -341,7 +351,7 @@ namespace Barotrauma.Networking
|
||||
#endif
|
||||
|
||||
if (!started) return;
|
||||
|
||||
|
||||
base.Update(deltaTime);
|
||||
|
||||
foreach (UnauthenticatedClient unauthClient in unauthenticatedClients)
|
||||
|
||||
@@ -80,6 +80,10 @@ namespace Barotrauma.Networking
|
||||
{
|
||||
//string logLine = "[" + DateTime.Now.ToLongTimeString() + "] " + line;
|
||||
|
||||
#if SERVER
|
||||
DebugConsole.NewMessage(line, Color.White); //TODO: REMOVE
|
||||
#endif
|
||||
|
||||
var newText = new LogMessage(line, messageType);
|
||||
|
||||
lines.Enqueue(newText);
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<config masterserverurl="http://www.undertowgames.com/baromaster" autocheckupdates="true" verboselogging="true">
|
||||
<contentpackage path="Data/ContentPackages/Vanilla 0.3.xml" />
|
||||
</config>
|
||||
Reference in New Issue
Block a user