Hello guys ... i am trying to downgrade Trinity Source v 5220 to 5017 and i started with auth and game sockets then with connect , receive and disconnect auth server [ that`s includes BlowFish, GameKey etc ] .. then i moved to game [incoming] new connection after then i moved to receive ...
when its move to this part
Code:
int Len = BitConverter.ToInt32(arg1, position); position += 4;
of
Code:
public static void GameServer_AnnounceReceive(byte[] arg1, Interfaces.ISocketWrapper arg2)
{
try
{
Client.GameState Client = arg2.Connector as Client.GameState;
try
{
Client.Cryptography.Decrypt(arg1);
}
catch (Exception e) { Console.WriteLine(e); }
if (Client != null)
{
if (Client.Exchange)
{
try
{
Client.Exchange = false;
Client.Action = 1;
ushort position = 7;
uint PacketLen = BitConverter.ToUInt32(arg1, position); position += 4;
int JunkLen = BitConverter.ToInt32(arg1, position); position += 4; position += (ushort)JunkLen;
int Len = BitConverter.ToInt32(arg1, position); position += 4;
byte[] pubKey = new byte[Len];
for (int x = 0; x < Len; x++)
pubKey[x] = arg1[x + position];
string PubKey = System.Text.ASCIIEncoding.ASCII.GetString(pubKey);
Client.Cryptography = Client.DHKeyExchance.HandleClientKeyPacket(PubKey, Client.Cryptography);
}
catch (Exception e) { Console.WriteLine(e); Client.Socket.Disconnect(false); }
}
else
{
if (!Client.Exchange && Client.Action != 0)
Network.PacketHandler.HandleBuffer(arg1, Client);
}
}
}
catch (Exception e) { Console.WriteLine(e); }
}
i get this error message :
and this error kills the client .. and i have no idea what shall i do in this case ..
I got another better idea, why you don't just remove new things like NPC of Soul to make them can't make soul.. Remove all 140 items.. make it least 130.. Last level to be as you like and ....etc, i made that in my source it's 5530 but with the whole system like 5095, and better because it got Arena and New GUI and i can control it better than 5095! (Also 5095 i think it's better, but i don't know how to change anything in it, so it's better for me to make the source like i said).
I got another better idea, why you don't just remove new things like NPC of Soul to make them can't make soul.. Remove all 140 items.. make it least 130.. Last level to be as you like and ....etc, i made that in my source it's 5530 but with the whole system like 5095, and better because it got Arena and New GUI and i can control it better than 5095! (Also 5095 i think it's better, but i don't know how to change anything in it, so it's better for me to make the source like i said).
is this thread for better source`s for you ?
omg or for what you can do or what you can't ?
Thanks for reply ... O.o
Quote:
Originally Posted by Fang
thank you Fang ..
but now i am getting the client being killed if i use
This should be the order the handle things, Client sends login details, use the password cipher from another 5017 and compare the password if they match and then you send the packet with the gameserver information(forgot the ID) you get the client id from the packet it sends back and then you check if there is an account with that id and character if there is not send the Message packet (1004 i think) with the message "NEW_ROLE" in tone 2101(Dialog) I think... The the client will then bring up the character creation window thing once you make the character on the client it will send the packet with all the information you need to make the account after that you save it to some kind of database and then disconnect the client and let them login again. Make sure you add checks on the information the character sends.
This should be the order the handle things, Client sends login details, use the password cipher from another 5017 and compare the password if they match and then you send the packet with the gameserver information(forgot the ID) you get the client id from the packet it sends back and then you check if there is an account with that id and character if there is not send the Message packet (1004 i think) with the message "NEW_ROLE" in tone 2101(Dialog) I think... The the client will then bring up the character creation window thing once you make the character on the client it will send the packet with all the information you need to make the account after that you save it to some kind of database and then disconnect the client and let them login again. Make sure you add checks on the information the character sends.
To add on this at login you send ANSWER_OK, characterinfo and the datetime packet within the 1052 packet @ the gameserver.
After that the client will request a lot of subtypes in generaldata for request things such as items, skills etc. (Not sure about the ID at 5017, because I know it changed at some point.)
The last subtype is for requesting guilds which you can also use to tell whether the client has been fully logged in.
To add on this at login you send ANSWER_OK, characterinfo and the datetime packet within the 1052 packet @ the gameserver.
After that the client will request a lot of subtypes in generaldata for request things such as items, skills etc. (Not sure about the ID at 5017, because I know it changed at some point.)
The last subtype is for requesting guilds which you can also use to tell whether the client has been fully logged in.
Quote:
Originally Posted by Smallxmac
This should be the order the handle things, Client sends login details, use the password cipher from another 5017 and compare the password if they match and then you send the packet with the gameserver information(forgot the ID) you get the client id from the packet it sends back and then you check if there is an account with that id and character if there is not send the Message packet (1004 i think) with the message "NEW_ROLE" in tone 2101(Dialog) I think... The the client will then bring up the character creation window thing once you make the character on the client it will send the packet with all the information you need to make the account after that you save it to some kind of database and then disconnect the client and let them login again. Make sure you add checks on the information the character sends.
Ight and that's what i am working on it right now .. you know it's not easy .. but i am still trying and trying with it ... and i am not going to post ev problem i meet .. i can look into other versions of co source and learn how its works then i can edit mine .. that's all
client is killing it self .. i thought its shall go to packet 1010 and to set-location data id .. but its wont go there .. its stops at this point and kills the client ... any idea ???
How to Convert 5520 Source into 5017 ? 05/11/2012 - CO2 Private Server - 10 Replies How to Convert 5520 Source into 5017 ?
any idea ?
also i am looking for Original 5017 client download link .
help for charg for source 5520 09/10/2011 - CO2 Private Server - 1 Replies ples all look for pictuer for titleIt brings not name Riborn get question marks ?-?-? i need help ples fast my server is offline
http://imageshack.us/photo/my-images/193/45636898 .jpg