Register for your free account! | Forgot your password?

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

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

Advertisement



vb.net benco emulator updated!

Discussion on vb.net benco emulator updated! within the SRO Coding Corner forum part of the Silkroad Online category.

Reply
 
Old 05/20/2011, 20:13   #31
 
CrystalCoder's Avatar
 
elite*gold: 0
Join Date: Mar 2008
Posts: 1,106
Received Thanks: 226
look if i changed the line called
Client.Send(cv_StringFromHex("000000000") realy dont remember what was in it but thet the line and i changed all the opcode to new isro 1.304
from what i understand if thet line didnt changed you got on loginserver Worng Version and ingame you get Disconnect From Server on the intro so must changed it my question is what opcode its shold be my guess its 600D but i will be happy to hear you opinion.

EDIT: this line founded in Server.vb
CrystalCoder is offline  
Old 05/20/2011, 21:42   #32
 
kevin_owner's Avatar
 
elite*gold: 0
Join Date: Jan 2010
Posts: 1,484
Received Thanks: 809
Hmm well I haven't got enough time yet to take a look at anything new but I will tonight which is in about 3 or 4 hours.

Btw a little recommendation from my side is to use enough comments. you can never have enough of them.(oke too much isn't also good) but it makes things a lot easier since you're working with code which isn't yours and you have to figure out WHY and HOW benco did things. so if you figured some stuff out just write some comments so you know what it was.

programming isn't just writing tons and tons of code but it's about the whole picture of documentation, commenting, knowing why and how you did things.

Oke while I was writing this post I tested the patch packed and it works fine for me.

Code:
		StartPacket(0x600D);		// For patch info and news info
		writer.appendByte(0);
		writer.appendByte(1);         // Error Code. 1 = no error?
		SendPacket();
I hope you can understand this kind of code
so the data is just 2 bytes.

I hope this helps since I have no more time right now to explain this in detail
kevin_owner is offline  
Thanks
1 User
Old 05/21/2011, 10:00   #33
 
CrystalCoder's Avatar
 
elite*gold: 0
Join Date: Mar 2008
Posts: 1,106
Received Thanks: 226
Wink

Quote:
Originally Posted by kevin_owner View Post
Hmm well I haven't got enough time yet to take a look at anything new but I will tonight which is in about 3 or 4 hours.

Btw a little recommendation from my side is to use enough comments. you can never have enough of them.(oke too much isn't also good) but it makes things a lot easier since you're working with code which isn't yours and you have to figure out WHY and HOW benco did things. so if you figured some stuff out just write some comments so you know what it was.

programming isn't just writing tons and tons of code but it's about the whole picture of documentation, commenting, knowing why and how you did things.

Oke while I was writing this post I tested the patch packed and it works fine for me.

Code:
		StartPacket(0x600D);		// For patch info and news info
		writer.appendByte(0);
		writer.appendByte(1);         // Error Code. 1 = no error?
		SendPacket();
I hope you can understand this kind of code
so the data is just 2 bytes.

I hope this helps since I have no more time right now to explain this in detail
1st kevin its a vb.net not c#
second i very appricite your help
look i used now manu source but the version is latest csro 1.179
i realy dont understand why game crash since windrius has help manu change the version
and i break my head about it
when game enter to intro without server sometime in the hit intro game crash "sro_client has stopped work" i ask for your advice about thet problem.
CrystalCoder is offline  
Old 05/21/2011, 12:41   #34
 
elite*gold: 0
Join Date: Sep 2010
Posts: 1,003
Received Thanks: 652
U must fill in Database and update .inis!
x*Manu*x is offline  
Old 05/21/2011, 12:49   #35
 
CrystalCoder's Avatar
 
elite*gold: 0
Join Date: Mar 2008
Posts: 1,106
Received Thanks: 226
again manu everything are update in the db have server named SEE(DEV)
if you want i will post you in pm the ini of login i guess its port problem cuz not problem with packet

UPDATE: ok i found the worng opcode and i changed the opcode to new csro
then i start client and its crash as i sayed with the the next packet code in the analyzer:
this opcode and packet from newest csro client
Code:
ServerList
[S -> C][A106]
05                                                ................
03                                                ................
DE 49 A6 8E                                       .I..............
10                                                ................
7D 40 62 22                                       }@b"............
11                                                ................
3B AD 0C 20                                       ;...............
28                                                (...............
DE 49 A6 A3                                       .I..............
3B                                                ;...............
DA 1F 4A AE                                       ..J.............
this is SEE Emulator Created(Edited) By Manu
Code:
[S -> C][0FF1]
01 00 00 00                                       ................
00 00 00 00                                       ................

[S -> C][A106]
50                                                P...............
03                                                ................
12 00 53 52                                       ..SR............
4F                                                O...............
5F 47 6C 6F                                       _Glo............
62                                                b...............
61 6C 5F 54                                       al_T............
65                                                e...............
73 74 42 65                                       stBe............
64                                                d...............
00 01 10 30                                       ...0............
06                                                ................
86 B6 70 00                                       ..p.............
0F                                                ................
A0 00 0A 00                                       ................

[S -> C][A106]
50 03 12 00 53 52 4F 5F 47 6C 6F 62 61 6C 5F 54   P...SRO_Global_T
65 73 74 42 65 64 00 01 10 30 06 86 B6 70 00 0F   estBed...0...p..
A0 00 0A 00                                       ................
if anybody know why sro_client crash or just found something leave comment happy end week from SEE Team

P.S sorry for bed english xD
CrystalCoder is offline  
Old 05/21/2011, 15:00   #36
 
kevin_owner's Avatar
 
elite*gold: 0
Join Date: Jan 2010
Posts: 1,484
Received Thanks: 809
Well I guess that the first thing which you have to do is get a clear understanding of how to build packet for example how do I add a word or a dword to a packet. how do I create a new one. and how do I sniff new packets. Well right now it's getting more difficult since edxSilkroadLoader doesn't work for 1.304 so you can't use that analyzer right now.

But I recommand you to learn how things work in the source. I mean using someone's source is easy but improving it and figuring out how he did things is kinda difficult with hardly any comment.

And I'm not giving you the correct code i'm just posting the correct patch packet. Cause if you're working on an emulator you have to know how you can build packets by yourself and not to let someone else update the packets for you so you can edit some stuff. That way you don't learn anything.

btw do you use any packet logger? because it helps a lot in the development cause you can check if a packet is send and more important correct and complete.

Oke well the final thing why don't you post the packet which causes this problem. You can post the source and the packet format. for example:
Code:
		StartPacket(0x600D);		// For patch info and news info
		writer.appendByte(0);
		writer.appendByte(1);         // Error Code. 1 = no error?
		SendPacket();
Code:
WORD Size
WORD Opcode
WORD Security
BYTE News/Patch Flag // 1 in the first patch packet. 0 in second patch packet. same for news??
BYTE Error flag // 1 no error, 2 means error??
As you can see the first piece of code is from my C++ project which isn't really portable but if you take a look at the second one you can use it in any language since this is the structure of the packet. the only difference is the implementation in your emulator.
kevin_owner is offline  
Thanks
1 User
Old 05/21/2011, 16:08   #37
 
CrystalCoder's Avatar
 
elite*gold: 0
Join Date: Mar 2008
Posts: 1,106
Received Thanks: 226
thank you i think i understand
CrystalCoder is offline  
Reply


Similar Threads Similar Threads
PSF WallHack Updated With GG Emulator Bypasser + Complete video Tutorial.
03/15/2011 - Soldier Front Philippines - 3 Replies
removvvvvvvvv
Updated GG Emulator
03/14/2009 - Soldier Front - 8 Replies
Now i'll release it! heres the link #removed. this is useless



All times are GMT +2. The time now is 16:59.


Powered by vBulletin®
Copyright ©2000 - 2024, 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 ©2024 elitepvpers All Rights Reserved.