Skip to content

Commit

Permalink
Removed unused config option 'Map' from [Game-Server].
Browse files Browse the repository at this point in the history
Updated GameClient.cs unhandled incoming message text.
  • Loading branch information
raistlinthewiz committed Oct 1, 2011
1 parent 79f5a1d commit 9727bb6
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 25 deletions.
23 changes: 0 additions & 23 deletions assets/config.ini
Expand Up @@ -13,50 +13,27 @@
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;




; Persistent storage settings

[Storage]

AssetsRoot=.



; Settings for Bnet server

[MooNet-Server]

BindIP = 0.0.0.0

Port = 1345



; Settings for game server

[Game-Server]

BindIP = 0.0.0.0

Port = 1999

Map = Assets/Maps/001.txt



; Network address translation settings

; You only need to change this if you're running behind a dsl router or so.

; Important: If you enable NAT, LAN-clients will not able to connect in gs.

; (Will be fixed later with a proper implementation similar to one in pvpgn).

[NAT]

Enabled = false

PublicIP = 0.0.0.0 ; You need to change this to your router's public interface IP if you'd like to use NAT.


1 change: 0 additions & 1 deletion src/Mooege/Net/GS/Config.cs
Expand Up @@ -22,7 +22,6 @@ public sealed class Config: Common.Config.Config
{
public string BindIP { get { return this.GetString("BindIP", "0.0.0.0"); } set { this.Set("BindIP", value); } }
public int Port { get { return this.GetInt("Port", 1345); } set { this.Set("Port", value); } }
public string Map { get { return this.GetString("Map", "Assets/Maps/001.txt"); } set { this.Set("Map", value); } }

private static readonly Config _instance = new Config();
public static Config Instance { get { return _instance; } }
Expand Down
2 changes: 1 addition & 1 deletion src/Mooege/Net/GS/GameClient.cs
Expand Up @@ -71,7 +71,7 @@ public void Parse(ConnectionDataEventArgs e)
{
if (message.Consumer != Consumers.None) this.Universe.Route(this, message);
else if (message is ISelfHandler) (message as ISelfHandler).Handle(this); // if message is able to handle itself, let it do so.
else Logger.Warn("Got an incoming message that has no consumer or self-handler: {0}", message.GetType());
else Logger.Debug("{0} has no consumer or self-handler.", message.GetType());

//Logger.LogIncoming(message);
}
Expand Down

0 comments on commit 9727bb6

Please sign in to comment.