Author Topic: A custom master server  (Read 18106 times)

I understand perfectly, i was expressing how repulsive to me it is, for someone coming to insult me for discussing on my own thread
that's adorable

that's adorable
At least don't embarrass yourself by grasping straws for something to throw back

I was just giving you a tip thats all

Possible, yes. Easy? No.

It can be done but likely never will be. The only person who had enough motivation to actually figure out how auth requests are sent and processed was Dotdotcircle, and he's been gone for a while now.
The auth system has nothing to do with this. It's simply an extra list of servers.

The auth system has nothing to do with this. It's simply an extra list of servers.
Well, two things. One, I misunderstood the OP. The authentication server is frequently referred to as the master server. Second, even if I hadn't misunderstood the OP, the term 'authentication' is still valid for use there. The posting of a server to the master server is technically an authentication handshake -- just a different one than the BLID auth system.

Well, two things. One, I misunderstood the OP. The authentication server is frequently referred to as the master server. Second, even if I hadn't misunderstood the OP, the term 'authentication' is still valid for use there. The posting of a server to the master server is technically an authentication handshake -- just a different one than the BLID auth system.
I realize that, but the custom master server could use a completely different communication method than the default master server. These two "authentication" systems would work completely independent of each other.

Assuming you wanted a fat client mod, sure. There's no reason whatsoever you'd do that though, the server posting system is a simple PHP query. Modify the address you're connecting to and write a quick PHP script to insert the server into a database with the provided plaintext data and a timestamp of when the server was posted. Every time the request page is loaded, load all the servers from the database and prune the records.

Then write a quick client mod:

Code: [Select]
package enableCustomMS {
    function postServerTCPObj::connect(%this, %addr) {
        %addr = "blockland-master.com:80";
        parent::connect(%this, %addr);
    }

    function queryMasterTCPObj::connect(%this, %addr) {
        %addr = "blockland-master.com:80";
        parent::connect(%this, %addr);
    }
};

function toggleCustomMS() {
    $customMSActive = !$customMSActive;
    if($customMSActive)
        activatePackage(enableCustomMS);
    else
        deactivatePackage(enableCustomMS);
}

Maybe I'll post the PHP code later today too so one of you can just throw it up on a site.
« Last Edit: September 15, 2014, 03:42:18 PM by $trinick »

Now, keep i mind, i know nothing of webservers and hosting websites, but i do have a as of now unused VPS. Maybe suitable for testing

Now, keep i mind, i know nothing of webservers and hosting websites, but i do have a as of now unused VPS. Maybe suitable for testing
Trinick's solution requires either modifying or reverse engineering blockland.exe. Unless he's going to do that himself, not really gonna work out.

Someone comes to the forums every six months to a year crying about how they don't have maps. Get over it, the game has moved on and unless you are willing to put in the work yourself it's not going to happen.

Trinick's solution requires either modifying or reverse engineering blockland.exe. Unless he's going to do that himself, not really gonna work out.
No it doesn't?? I literally posted the Blockland client code to make it work.

Much appreciated! It seems to be even simpler than I thought. Now, how about that PHP script?


Trinick's solution requires either modifying or reverse engineering blockland.exe. Unless he's going to do that himself, not really gonna work out.
??

No it doesn't?? I literally posted the Blockland client code to make it work.
Y'know what, nevermind. I think I was misinformed about how the master server list actually functioned.