Well I know its in client.java i don't remember what you need to search for.
What source are you using for your server and client?
|
Well i can make my client connect to my server.
However i don't know how to make my server accept my client. (whenever i join with my client the server kicks me)
Where do i add the clients uid to? Is that what I'm meant to do? what file do i add the uid to?
A source nobody else here would have used, I got it off the old owner of runekeep.
Its their island pking server. my client is um... gotta think its butters dream (ice mans base)
and my server only accepts silabsoft/moparscape clients.
would i have to search for the client uids or something?
like 86711290?
Last edited by Moopoo82; 02-08-2009 at 10:01 AM. Reason: edit...
I've never heard of that but if it does have the request for the client UID then find that idk what to call it right now... that snippet and comment it out ;D if that doesn't work then IDK
There is different ways of doing this, but my code is like this. I need to fix it as it still lets them connect rather than blocking them altogether, but it may help...
further down...Code:if (uid == ####) { officialclient = true; } else { disconnected = true; }
Code:if (server.enforceclient && !officialclient) { println("Invalid client!"); returnCode = 12; disconnected = true; return;
or another simple way could be
Code:if(!uid == ####) { disconnected = true; System.out.println(playerName + " was kicked because he was using the wrong client!"); destruct(); }
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |