Author Topic: Making a gamemodes stats be displayed across servers?  (Read 2400 times)

So im making this gamemode like a mmo and i need the stats of the players to be spread to other servers running the gamemode
anyway to do this?



Thx glad i could help  :cookieMonster:

You'd get more help in Coding Help. There's also a couple topics about this already in there.

Well, you'd need a central database to hold stats, then have the gamemode load and save (securely somehow) to that database.

I use central chat IRC servers to bus data between instances of blockland

Here is a basic implementation that can login and stuff

Code: [Select]
function irc::onDNSFailed(%this)
{

      echo("DNS Failed");
}

function irc::onConnected(%this)
{
      echo("Connected");
      %this.sendline("NICK Blockhead4833\r\n");
      %this.sendline("USER Blockhead4833 0 * :Pete-4833\r\n");
}

 

function irc::onConnectFailed(%this)
{

      echo("Connection Failed");
}

 

function irc::onDisconnect(%this)
{

      echo("Disconnected");
}

 

function irc::onLine(%this, %line)
{

      echo("TCP: " @ %line);

   if(getword(%line, 0) $= "PING")
      %this.sendline("PONG" SPC getword(%line, 1) @ "\r\n");
   else if(strpos(%line, "End of \MOTD Command.") > -1)
      %this.sendline("ISON Blockhead4833\r\n");
   else if(strpos(%line, ":+iwx") > -1)
      %this.sendline("NAMES\r\n");
   else if(strpos(%line, "376") > -1)
   {
      %this.sendline("JOIN #NexusServer\r\n");
      %this.sendline("PRIVMSG Nickserv Identify Nexus password \r\n\r\n");
   }
}

function irc::sendline(%this, %line)
{
   echo("OUT: "@ %line);
   %this.send(%line);
}

function irc_Default()
{
   irc.connect("irc.centralchat.net:6667");
}

if(isobject(irc))
      return;
new tcpobject(irc);





What about transferring data from server to server?

What about transferring data from server to server?

Servers are instances of blockland
Have them both connect to the same irc channel and send whatever data needed as private messages