[c#] Epic gamer being epic (Emulating minecraft client with tcpclient)
#1

Like the title says i kind a... scripted the minecraft client protocols in a api i am going to release soon (not here though since it isnt SA-MP)

Preview:
[ame]http://www.youtube.com/watch?v=0F0XmCTcje8[/ame]

Would be pretty wicked to do this for sa-mp as well, although i think some people wont be very happy with this i guess...

UPDATE!
I decided to upload the alpha api after a few requests,
please note that this api can NOT receive any packets properly yet!

Also remember that this is the SA-MP forum! I do NOT provide any help/support for this and please do not post topics about this on the sa-mp forum, that is not where this topic was intended for! This topic was meant as "showoff" my api on the Everything/Nothing topic, i added the downloadlink as a extra for the interested people. So this is NOT a official release!.

So the only thing you can do with this is:
* Connect and Authenticate on non-protected servers
* Send commands and chat messages

How to use:
- Make a tcpclient and let it connect to a minecraft server
- Declare the api and use .setClient(yourclient) to define the client you used in the api
- Use .handshake(string username); to make the first connection attempts (returns true when succeed and false when failed)
- use .RequestLogin(string username) to make the login attempt (returns true when succeed and false when failed)

- Now the tricky/unfinished part:
Make a loop and let it check if there are packages received to read, use .update() when there are packages available, this function is unfinished, bugged and NOT able to receive/update any packages yet!, (this because it doesnt 'split' the packages properly yet, because java merges packages i will have to receive and split each package which i didnt found a proper method for!) but it is needed to avoid getting kicked due to timeouts!

Example:
pawn Code:
while (true)
                        {
                            if (client.Available > 0)
                            {
                                m.Update();
                            }
                            System.Threading.Thread.Sleep(100); //wait 100ms to avoid the app from freezing on slower machines
                        }

Extra functions:
.SendChatMessage(string message)

Download: http://solidfiles.com/d/3b3ca8f393/
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)