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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user