Commit bf4d8518 authored by Neoony's avatar Neoony
Browse files

v0.1 WIP21 -Changed Europires fast refresh for main lobby to a different local IP

parent 6c590614
Pipeline #4706 passed with stages
......@@ -21,7 +21,7 @@
//#include <emputils>
#include <socket>
#define PluginVer "v0.1 WIP20"
#define PluginVer "v0.1 WIP21"
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,12 +180,11 @@ public void OnPluginStart()
{
VanillaLocal = true;
}
/*
if (StrEqual(hostname, "Empires Lobby") == true)
{
EuropiresLocal = true;
}
*/
if (GetConVarInt(l_debug) == 1)
{
if (VanillaLocal == true)
......@@ -196,7 +195,6 @@ public void OnPluginStart()
{
PrintToServer("[L]VanillaLocal = false");
}
/*
if (EuropiresLocal == true)
{
PrintToServer("[L]EuropiresLocal = true");
......@@ -205,7 +203,7 @@ public void OnPluginStart()
{
PrintToServer("[L]EuropiresLocal = false");
}
*/
}
//Create or load config files
......@@ -1202,15 +1200,14 @@ 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)
{
Format(RSaddrx[ServerIndex], 256, "192.168.1.111:17701");
Format(RSaddrx[ServerIndex], 256, "192.168.1.3:17701");
}
}
*/
char IPPort[2][64];
ExplodeString(RSaddrx[ServerIndex], ":", IPPort, sizeof(IPPort), sizeof(IPPort[]));
......@@ -1420,15 +1417,14 @@ 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)
if (StrEqual(RSaddrx[ServerIndexx], "192.168.1.3:17701") == true)
{
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]);
......@@ -1450,15 +1446,13 @@ 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)
if (StrEqual(RSaddrx[ServerIndexx], "192.168.1.3:17701") == true)
{
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 WIP20"
"Latest" "v0.1 WIP21"
}
"Notes" "First release"
......@@ -37,6 +37,7 @@
"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"
"Notes" "WIP21: Changed Europires fast refresh for main lobby to a different local 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