Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Silkroad Online > SRO Coding Corner
You last visited: Today at 09:20

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[C#] Packet based login...Client doesnt show chars

Discussion on [C#] Packet based login...Client doesnt show chars within the SRO Coding Corner forum part of the Silkroad Online category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Feb 2008
Posts: 34
Received Thanks: 20
Question [C#] Packet based login...Client doesnt show chars [FIXED]

hey there!!
It's just a little mistake that is not that important but would be nice to be solved...
The packet based login works but when i come to the "Char Scene" there is no character even though i can read the names of them in the B007 packet...and i also forward that packet to client so i don't know why it doesn't show them up in client...

btw i use that code to select the char and start and that really works!:
Code:
Packet p = new Packet(0x7001);
            p.WriteAscii(char_Box.Text);//Listbox with all chars from packet, works great
            Program.ag_remote_security.Send(p);
lukas2abc is offline  
Old 09/27/2012, 14:49   #2
 
elite*gold: 0
Join Date: Jan 2009
Posts: 314
Received Thanks: 686
You're probably using rSRO.
You have to use the Cyrillic code page for your strings to read them correctly.
Drew's API uses West European Latin codepage (1252) as default what works great for iSRO, so you have to change it to 1251 — Cyrillic.

Code:
//Read Cyrillic.
name = packet.ReadAscii(1251);

//Write Cyrillic
response.WriteAscii(name, 1251);
DaxterSoul is offline  
Old 09/27/2012, 16:01   #3
 
elite*gold: 0
Join Date: Feb 2008
Posts: 34
Received Thanks: 20
well, i can read the names and can add them to listbox and log in , and spawn my player via my gui login application, but the player models dont show up in client at the Character Selection Screen....it is the original client for that server(phSro) and when i login without my proxy i can see them with the same client
so its not the codepage because i forward the B007 packet 1:1
Any other suggestions?
lukas2abc is offline  
Old 09/27/2012, 16:15   #4
 
elite*gold: 0
Join Date: Nov 2007
Posts: 959
Received Thanks: 602
you probably modify the packet somehow before redirecting it to the client,and it just cannot read it correctly
vorosmihaly is offline  
Old 09/27/2012, 17:23   #5
 
elite*gold: 0
Join Date: Feb 2008
Posts: 34
Received Thanks: 20
no its not edited....the byte that i receive is exactly the same as the client receives, so client get original packet from silkroad server...that is soo strange..-.-
lukas2abc is offline  
Old 09/28/2012, 17:59   #6
 
elite*gold: 0
Join Date: Feb 2008
Posts: 34
Received Thanks: 20
fixed...i didn't let the 2001 packet with the string "AgentServer" through to client and got the 6103 packet from client and dont let it through to server and editet the id and pw bacause sro client doesnt know them because i sent login data by my proxy. Then i send the fixed 6103 packet to server
That was the mistake. Now i can login select char and do everything as without proxy
thanks for help though!!!!

SOLUTION
how i got the wrong 6103 packet and send the right 6103:
Code:
if (packet.Opcode == 0x6103)
                            {
                                Packet p = new Packet(0x6103);
                                p.WriteUInt32(Globals.session_id);
                                p.WriteAscii(Globals.login_id);
                                p.WriteAscii(Globals.login_pw);
                                p.WriteUInt8(Globals.locale);
                                p.WriteUInt8(00);
                                p.WriteUInt8(00);
                                p.WriteUInt8(00);
                                p.WriteUInt8(00);
                                p.WriteUInt8(00);
                                p.WriteUInt8(00);
                                ag_remote_security.Send(p);
                                continue;//important so it doesnt send the original 6103 Packet with no id and no pw!!!!
                            }

ag_remote_security.Send(packet);//the  original 6103 doesnt get here because of continue
lukas2abc is offline  
Thanks
1 User
Old 04/01/2014, 21:51   #7
 
elite*gold: 0
Join Date: Nov 2013
Posts: 9
Received Thanks: 0
Hello... I know its pretty old post, but I don't know where do I get session_id... I always get C9 error and I believe its because of wrong session_id...
FireBlow is offline  
Old 04/01/2014, 23:43   #8
 
elite*gold: 0
Join Date: May 2013
Posts: 38
Received Thanks: 10
Hello. its 0xA102
Code:
sessionID = packet.ReadUInt32();
ip = packet.ReadAscii();
port = packet.ReadUInt16();
amra85 is offline  
Old 04/02/2014, 00:10   #9
 
elite*gold: 0
Join Date: Nov 2013
Posts: 9
Received Thanks: 0
Thank you...
FireBlow is offline  
Reply


Similar Threads Similar Threads
[Guide] Client Based Packet Injection in Silkroad
08/01/2013 - SRO Coding Corner - 29 Replies
This article is a special one! Thanks to clockwork for letting me share some knowledge I learned from him in the past. This information is still relevant and useful for Silkroad, but as I will write about, might be too much work for the benefits. Client Based Packet Injection in Silkroad I. Purpose Welcome to the fourth guide in my series! I would like to take this time to thank clockwork for allowing me to write a guide based on his approach for performing client based packet...
New Login Packet for Client 5089+
10/31/2010 - CO2 Programming - 6 Replies
Does anybody have the new login packet structure for client 5089+? For example, if I use an older client and send the following login information using the CO client: username : test password : test I receive the following encrypted packet (packet length is 52 bytes): 0x17 0x84 0x04 0x65 0xD7 0x13 0xC4 0xA5 0xDF 0x0F 0x33 0xA5 0x14 0xCB 0x75 0x6F 0x5F 0x89 0xB0 0x22 0xD5 0x64 0x7A 0x36



All times are GMT +1. The time now is 09:20.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.