Commit 6c590614 authored by Neoony's avatar Neoony
Browse files

v0.1 WIP20 -Revert Europires fast refresh for main lobby back to public IP

parent 332afef4
Pipeline #4701 passed with stages
in 4 minutes and 55 seconds
......@@ -21,7 +21,7 @@
//#include <emputils>
#include <socket>
#define PluginVer "v0.1 WIP19"
#define PluginVer "v0.1 WIP20"
public Plugin myinfo =
{
......@@ -113,7 +113,7 @@ char hostname[128];
//Vanilla server Local
bool VanillaLocal = false;
bool EuropiresLocal = false;
//bool EuropiresLocal = false;
public void OnPluginStart()
{
......@@ -180,10 +180,12 @@ public void OnPluginStart()
{
VanillaLocal = true;
}
/*
if (StrEqual(hostname, "Empires Lobby") == true)
{
EuropiresLocal = true;
}
*/
if (GetConVarInt(l_debug) == 1)
{
if (VanillaLocal == true)
......@@ -194,6 +196,7 @@ public void OnPluginStart()
{
PrintToServer("[L]VanillaLocal = false");
}
/*
if (EuropiresLocal == true)
{
PrintToServer("[L]EuropiresLocal = true");
......@@ -202,6 +205,7 @@ public void OnPluginStart()
{
PrintToServer("[L]EuropiresLocal = false");
}
*/
}
//Create or load config files
......@@ -1198,6 +1202,7 @@ public void RSInfoOfServer(Handle RShDriver, Handle RShResult, const char[] sErr
Format(RSaddrx[ServerIndex], 256, "192.168.200.81:27016");
}
}
/*
if (EuropiresLocal == true)
{
if (StrEqual(RSaddrx[ServerIndex], "185.165.242.40:17701") == true)
......@@ -1205,6 +1210,7 @@ public void RSInfoOfServer(Handle RShDriver, Handle RShResult, const char[] sErr
Format(RSaddrx[ServerIndex], 256, "192.168.1.111:17701");
}
}
*/
char IPPort[2][64];
ExplodeString(RSaddrx[ServerIndex], ":", IPPort, sizeof(IPPort), sizeof(IPPort[]));
......@@ -1414,6 +1420,7 @@ public Action UpdateSQL(int ServerIndexx)
Format(RSaddrx[ServerIndexx], 256, "80.112.155.100:27016");
}
}
/*
if (EuropiresLocal == true)
{
if (StrEqual(RSaddrx[ServerIndexx], "192.168.1.111:17701") == true)
......@@ -1421,6 +1428,7 @@ public Action UpdateSQL(int ServerIndexx)
Format(RSaddrx[ServerIndexx], 256, "185.165.242.40:17701");
}
}
*/
if (GetConVarInt(l_debug) == 1)
{
PrintToServer("Server[%i] NumplayersS : %i address: %s", ServerIndexx, numPlayersS[ServerIndexx], RSaddrx[ServerIndexx]);
......@@ -1442,6 +1450,7 @@ public Action UpdateSQLServerDown(int ServerIndexx)
Format(RSaddrx[ServerIndexx], 256, "80.112.155.100:27016");
}
}
/*
if (EuropiresLocal == true)
{
if (StrEqual(RSaddrx[ServerIndexx], "192.168.1.111:17701") == true)
......@@ -1449,6 +1458,7 @@ public Action UpdateSQLServerDown(int ServerIndexx)
Format(RSaddrx[ServerIndexx], 256, "185.165.242.40:17701");
}
}
*/
char UpdateServerDown[512];
Format(UpdateServerDown, sizeof(UpdateServerDown), "UPDATE `LobbyDB`.`servers` SET players = '0', maxplayers = '%i' WHERE addr = '%s';", maxPlayersS[ServerIndexx], RSaddrx[ServerIndexx]);
......
......@@ -4,7 +4,7 @@
{
"Version"
{
"Latest" "v0.1 WIP19"
"Latest" "v0.1 WIP20"
}
"Notes" "First release"
......@@ -36,6 +36,7 @@
"Notes" "WIP17: Added more messages showing in server console when l_debug is 1"
"Notes" "WIP18: Fix lobby trying to redirect sourceTV"
"Notes" "WIP19: Fixed fast refresh for Europires as it is a local server on main lobby"
"Notes" "WIP20: Revert Europires fast refresh for main lobby back to public IP"
}
"Files"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment