Post Pacific

Post Pacific (https://postpacific.loc-online.com/index.php)
-   Темы без сохранившегося раздела (https://postpacific.loc-online.com/forumdisplay.php?f=10001)
-   -   [PROJECT] C5 Packet Fixing (https://postpacific.loc-online.com/showthread.php?t=5895)

mcrabben7 29.09.2006 19:36

[PROJECT] C5 Packet Fixing
 
I am going to begin working on some C5 packet fixes, since Nevyn and I already found out how to fix the protocol revision and connect with a C5 client.

I know there is packet errors at the log in screen. Once those are fixed, we'll have to fix all the rest. Anyone who can post any information about *changed* packet structures (like 'cddd' to 'cdddS' for example) and packet headers (if the packet header is different, TELL ME!) would be helping a lot.

Also, bringing me changed packets from C4->C5 using L2J revisions from before and after is ok too. I will be using some L2J changes to help me out probably as I go through this process.

I hope to see this thread be productive.

Protocol Revision and How to Change it:

Quote:

009BA9A8 aRevision656 db '$Revision: 656 $',0 ; DATA XREF: GetProtocolRevision__+1B
The L2Server does String to Int conversion on the numeric part of that ASCII string. Change 656 to 693 and you will change the Protocol Revision. Tested with a C5 client already. Nevyn made a link, he can post it here...I'm too lazy :P

Nevyn 29.09.2006 19:46

Since, My friend mcrabben7 wanted to go big with this. I'll post the url here instead.

http://rapidshare.de/files/34880648/L2Server693.7z

The explanation from mcraben7 is clear enough how to change it yourself.

Cheers.

hel 29.09.2006 20:14

http://www.l2jserver.com/svn/trunk/L...serverpackets/

Nevyn 29.09.2006 20:38

Nice, hel. I'll check it out along with the engine.dll structure.

mcrabben7 29.09.2006 22:23

Interesting, NcSoft has introduced a 'Q' packet variable, meaning that now we have to rewrite Assemble(), and also store Exp and other 'Q' variables as 8 bytes instead of 4. Going to be a headache, heh.

Stazis 30.09.2006 03:36

means client also moves to 64 bit slowly =)

mcrabben7 01.10.2006 00:29

Quote:

Originally Posted by Stazis (Post 68980)
means client also moves to 64 bit slowly =)

Nah, if NcSoft wasn't lazy they could just write a custom Long class that would extend two 32-bit integers into one 64-bit integer, and use that number. I've seen them done before.

I think I will, for now, change the 'Q' into 'dd' and send the variable in the correct spot. Should work, but first I got to understand this packet function I found today.

There is no call to Assemble(), and it sends it to the user using a buffer, rather than the cdSdSdddd... packet we'd expect.

Fun :P

demon 02.10.2006 14:20

u miss the point.. why u want a c4 retail server with C5 client without fixing the rest.

client isnt the problem

these are

http://pc.gamedaily.com/game/feature...d=2435&id=1120

DukeGr 02.10.2006 18:44

Quote:

Originally Posted by demon (Post 69140)
u miss the point.. why u want a c4 retail server with C5 client without fixing the rest.

client isnt the problem

these are

http://pc.gamedaily.com/game/feature...d=2435&id=1120

well he needs to start from somewhere :p

Nevyn 02.10.2006 20:29

Quote:

Originally Posted by demon (Post 69140)
u miss the point.. why u want a c4 retail server with C5 client without fixing the rest.

client isnt the problem

these are

http://pc.gamedaily.com/game/feature...d=2435&id=1120

I love people who don't understand.
This project is to turn the c4 l2server into supporting c5 clients.
Who said it would end there? Once that is done, Server owners themselves can add c5items, npcs and geodata.
What will be missing is the c5 functions such as clan,zariche,m.m.

Why we want to turn the l2server c4 into supporting c5 clients. I think you can think that one out for yourself.
Much likly we will work on adding the rest of the functions aswell. But for now, People are just looking on being able having c5clients play on their server. They do aswell need to contribute some work.

But you're more than welcome to contribute to this project demon. We could always need a extra hand figuring the functions out.

testdude 02.10.2006 21:46

demon... contribute?.... ill leave it at that...

once again im disapointed at the ammount of interest of this project...

drugolo 02.10.2006 22:39

i will like to support this project.
clientside or serverside we will work on?

mcrabben7 03.10.2006 06:31

Finally found some time to try a method of fixing the login packet, as well as take some screenshots of what's broken.

Here are the screenshots:
http://img97.imageshack.us/img97/240...0000yt1.th.jpg http://img177.imageshack.us/img177/3...0001jy4.th.jpg http://img177.imageshack.us/img177/9...0002vk5.th.jpg http://img201.imageshack.us/img201/9...0003bx7.th.jpg

I will be looking into fixing the UserInfo, CharInfo, SkillList, Shortcut, and Clan packets, as well as anything else I find bugged.

Also, as you can see in the screens, my +15 duals don't glow... =( Must be part of UserInfo and CharInfo packets, which is why the name is 'black' instead of white/blue.

Domzelan 03.10.2006 07:05

mcrabben7 - good results...

mcrabben7 03.10.2006 10:34

Some packet changes I have noted down so far. Problem now will be the conversion.

SkillList:
cd ddd -> cd dddc

PledgeShowMemberListAll:
cdSSdddddddddSddd Sddddd -> cdddSSdddddddddSddd Sdddddd

UserInfo:
a bunch, don't feel like writing it...

CharInfo:
same...

Anyways, back to work!

Lockbete 03.10.2006 19:47

I got another problem for you :) when u move on to c5 client clan privilegies don't work 100% (there is a guy thats working on this he got pretty far tested his server)

Onepex 03.10.2006 20:25

Quote:

Originally Posted by Lockbete (Post 69251)
I got another problem for you :) when u move on to c5 client clan privilegies don't work 100% (there is a guy thats working on this he got pretty far tested his server)

Hello World!
That's old news. Ezme has had his server up for weeks now.

HongK 03.10.2006 20:33

well we don't really care about ezme now do we lol

mcrabben7 03.10.2006 21:18

Quote:

Originally Posted by Lockbete (Post 69251)
I got another problem for you :) when u move on to c5 client clan privilegies don't work 100% (there is a guy thats working on this he got pretty far tested his server)

I know the location of the ClanPrivs variable in the User class, all I need to know is how privs have changed in C5, and I can fix them up. That's probably one of the easier fixes, it just needs good data from official packets ^^

Nevyn 04.10.2006 00:04

You know mcrabben7, I'll work my best on getting the stuff you havn't done ;)
If you'd let me you workaholic.

mcrabben7 04.10.2006 03:15

http://img382.imageshack.us/img382/2...0004jr9.th.jpg http://img245.imageshack.us/img245/2...0005zv2.th.jpg

Making more progress. Login screen had errors on all characters after the first one, but I fixed it. Also got skills to list and work properly. Next step is ShortcutList, UserInfo, and finally Pledge packets. After that I'll test Pets, SUmmons, and make sure SkillEnchanting isn't broken.

Anyways, that's all for now. I am going to bed soon.

For laughs, this is what Login looked like before:
http://img384.imageshack.us/img384/3...0000cw2.th.jpg

Domzelan 04.10.2006 06:19

Good job AGAIN! :)

TheOrder 04.10.2006 07:24

GJ Bud !
GJ Indeed !

LORd_RiVE 04.10.2006 15:04

i don't know how is it possible, but if you have some little free time, then please look out why the party searcher button why not working...its a big fun in the game, and its working nowhere...

Unfortunately i don't know how to hex, or anything...i'm just a php scripter...

testdude 04.10.2006 17:14

ha! i fixed shortcut bar! in ur face mcrabben! :p

mcrabben7 04.10.2006 18:15

Quote:

Originally Posted by testdude (Post 69334)
ha! i fixed shortcut bar! in ur face mcrabben! :p

Yea, I fixed it too :P MSN nubcakes, MSN xD Damn you making fixes when I am asleep :P

mcrabben7 04.10.2006 18:17

Quote:

Originally Posted by LORd_RiVE (Post 69328)
i don't know how is it possible, but if you have some little free time, then please look out why the party searcher button why not working...its a big fun in the game, and its working nowhere...

Unfortunately i don't know how to hex, or anything...i'm just a php scripter...

I am 99% sure they changed the packets for it...so we just have to change ours :o

mcrabben7 05.10.2006 01:37

Anyone curious about learning a bit of x64 architecture changes, x64 Visual Studio 2005, and how to call .asm files from C++, read up.

MSDN x64 Primer:
http://msdn.microsoft.com/msdnmag/is...4/default.aspx
Intel C++/ASM example
http://www3.intel.com/cd/ids/develop...eng/257129.htm

Rest of you, ignore this post :P

Nevyn 05.10.2006 03:28

New adventures :3

humordwarf 27.10.2006 12:34

yes! yeah! good job! common! yes! excellent! we all awaiting for results! bla-bla...
%)

mcrabben7 27.10.2006 12:59

Quote:

Originally Posted by humordwarf (Post 70795)
yes! yeah! good job! common! yes! excellent! we all awaiting for results! bla-bla...
%)

Hahahah, HD lives :D

LORd_RiVE 28.10.2006 07:48

Quote:

Originally Posted by mcrabben7 (Post 70798)
Hahahah, HD lives :D

how's this project going? =/

Remolus 04.11.2006 03:46

fine fine if i would have a 64 bit pc now i wont mind to start :)

mcrabben7 04.11.2006 10:10

I work on some things in my free time, but between school and other things it's not my first priority.

I started out doing client-side fixes but those resulted in buggy results, lots of odd issues, and some packets are too annoying to fix client-side without a full-scale DLL and all.

Started doing some stuff server-side. I's a project of mine. I work on it for fun, when I have time. Not like I get paid to do it.

Since only Nevyn, testdude, HD, Alien003, and maybe someone else, of all the people on PP, have ever helped me in coding or in some big way, I'm not going to be giving anything out to the public anytime soon. It's not done anyways, so almost no one would care to leech a DLL they couldn't go start a C5 server with and get players.

Maybe I'll share some progress someday, but its still just a side-project. School comes first.

testdude 04.11.2006 17:27

omg he said my name in 2 of his posts! im famous!

Lithrian 05.11.2006 22:29

guys one short question...what do i have to know to make such fixes? got way too much free time and dont know how to spend it...so i wanna learn somthing useful :D

mcrabben7 06.11.2006 01:20

Quote:

Originally Posted by Lithrian (Post 71566)
guys one short question...what do i have to know to make such fixes? got way too much free time and dont know how to spend it...so i wanna learn somthing useful :D

C++, Assembly for 64-bit, how to use tools like OllyDbg and IDA Pro to reverse engineer files, programming talent, and *lots* and *lots* of patience.

Look earlier in the thread for a few links on x64 programming compared to x86-32 programming.

mcrabben7 07.11.2006 05:24

Here is a client-side engine.dll that fixes some of these things. This is my last build of it, before I finally started doing it for real server-side.

This engine will have bugs. Don't complain to me about them. This was an engine I made while goofing off in ultraedit to learn packet formats and how to fix them. The only way to do this for real is server-side.

This has client-side fixes for:
- CharacterSelectInfo
- UserInfo (partial)
- CharInfo (partial)
- Pledge
- SkillList
- ShortCutInit
- ShortCutReg
- PetInfo
- PetStatusUpdate
- Other packets I might have forgot.

This engine has bugs, since doing client-side fixes like this is *not* perfect and will have some strange side effects. Use at your own risk :)

http://files.filefront.com/engine_c5.../fileinfo.html

Enjoy the share. You can use this with ezme's c5 l2auth.dll and system. I won't share my custom client pack for C5 since it was both Nevyn's and I's work. Maybe in the future :)


Oh, I forgot to attach this L2Server with Protocol Revision 694 hexed in. You'll need it.
http://files.filefront.com/L2Server6.../fileinfo.html

Remolus 07.11.2006 05:48

Ok for all who download this. to Not destroy your dreams about making maybe a live server with it :)

McRabben7 made some mistakes about his list what is fixed :). the pledge doesnt work :)

mcrabben7 07.11.2006 06:11

Ok, since I bet people will need it, here is a launch C5 system folder:
http://files.filefront.com/system_re.../fileinfo.html

Here is ezme/x64's l2auth.dll system patch:
http://files.filefront.com/system_c5.../fileinfo.html


All times are GMT. The time now is 16:23.