From 99475b822d7d5bf0aa380414ebf468d75b47e8a1 Mon Sep 17 00:00:00 2001 From: MarcEricMartel Date: Sat, 10 Jun 2023 15:02:04 -0400 Subject: [PATCH 1/5] Netwoorkin is woorkin --- menu/start_game_menu.cs | 4 ++-- project.godot | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/menu/start_game_menu.cs b/menu/start_game_menu.cs index f3640b7..7201aa2 100644 --- a/menu/start_game_menu.cs +++ b/menu/start_game_menu.cs @@ -145,7 +145,7 @@ public partial class start_game_menu : Control { const string ERR = "Invalid IP address."; if (isHost) { ENetMultiplayerPeer peer = new ENetMultiplayerPeer(); - peer.CreateServer(666, 2); + peer.CreateServer(6666); Multiplayer.MultiplayerPeer = peer; peer.PeerConnected += (long id) => startGame(_gameType.LAN, id); State = _state.HOST; @@ -169,7 +169,7 @@ public partial class start_game_menu : Control { } } ENetMultiplayerPeer peer = new ENetMultiplayerPeer(); - peer.CreateClient(ip, 666); + peer.CreateClient(ip, 6666); Multiplayer.MultiplayerPeer = peer; State = _state.JOIN; } diff --git a/project.godot b/project.godot index 78a01f3..ea44d9a 100644 --- a/project.godot +++ b/project.godot @@ -11,6 +11,7 @@ config_version=5 [application] config/name="Mad" +run/main_scene="res://menu/start_game_menu.tscn" config/features=PackedStringArray("4.0", "C#", "Forward Plus") config/icon="res://icon.svg" From cbe4523af4c0f36b6bbd1536a5e4e96e71ae5097 Mon Sep 17 00:00:00 2001 From: MarcEricMartel Date: Sat, 10 Jun 2023 15:08:42 -0400 Subject: [PATCH 2/5] Text => Line --- menu/start_game_menu.cs | 6 +++--- menu/start_game_menu.tscn | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/menu/start_game_menu.cs b/menu/start_game_menu.cs index 7201aa2..31b789f 100644 --- a/menu/start_game_menu.cs +++ b/menu/start_game_menu.cs @@ -9,7 +9,7 @@ public partial class start_game_menu : Control { private const string _path = "/root/StartGameMenu/"; private Button _localMulti, _single, _LANMulti, _join, _host, _cancel, _quit, _yes, _no; - private TextEdit _ip; + private LineEdit _ip; private Label _error, _lip; private string Error { set { _error.Set("text", value); } } @@ -112,7 +112,7 @@ public partial class start_game_menu : Control { _host = GetNode