Post Pacific

Post Pacific (https://postpacific.mmorpg-game.online/index.php)
-   Lineage 2 Server Modifications ONLY! (https://postpacific.mmorpg-game.online/forumdisplay.php?f=28)
-   -   [Share - C4] Black name fix (https://postpacific.mmorpg-game.online/showthread.php?t=3317)

testdude 11.02.2006 07:52

[Share - C4] Black name fix
 
Code:

004FEA59    -E9 449D1B00    JMP L2Server.006B87A2

004FECEB    68 B6876B00    PUSH L2Server.006B87B6                  ;  ASCII "cdddddSdddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddffffddddSdddddcccddhbcdcddddddddhhdhddddcdddddd"

004FECF9  . 81C4 10020000  ADD ESP,210

006B87A2: 33 C9 68 FF FF FF 00 51 51 51 51 51 E9 12 FA FF FF 90 90 90 63 64 64 64 64 64 53 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 66 66 66 66 64 64 64 64 53 64 64 64 64 64 63 63 63 64 64 68 62 63 64 63 64 64 64 64 64 64 64 64 68 68 64 68 64 64 64 64 63 64 64 64 64 64 64

i made this with help of eliots post( https://postpacific.mmorpg-game.onli...ic.php?p=32301 ) and it fixes the black name on only your char, for everyone else char you should be able to do it urself with the help of eliots post, and this share as an example, i was not 100% sure if i could fit the added d's on the end of the packet in its normal location so i relocated it aswell just cos...
i dont know if there is any side affects to this fix as ive only tested it so far in a 1 man server...

ps.
i dont know 100% if i copied it right so do tell me if it doesnt work and ill double check :x


oops made a mistake in it >.< fixed now :p

Domzelan 11.02.2006 09:52

Oooo - good. Can we use only this: 006B87A2: 33 C9 68 FF FF FF 00 51 51 51 51 51 E9 D0 F9 FF FF 90 90 90 63 64 64 64 64 64 53 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 66 66 66 66 64 64 64 64 53 64 64 64 64 64 63 63 63 64 64 68 62 63 64 63 64 64 64 64 64 64 64 64 68 68 64 68 64 64 64 64 63 64 64 64 64 64 64
to add this in l2server using l2scriptmaker or we should use all this code? :) sory - my hex man - working and cant help me :)

testdude 11.02.2006 09:54

Quote:

Originally Posted by Domzelan
Oooo - good. Can we use only this: 006B87A2: 33 C9 68 FF FF FF 00 51 51 51 51 51 E9 D0 F9 FF FF 90 90 90 63 64 64 64 64 64 53 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 66 66 66 66 64 64 64 64 53 64 64 64 64 64 63 63 63 64 64 68 62 63 64 63 64 64 64 64 64 64 64 64 68 68 64 68 64 64 64 64 63 64 64 64 64 64 64
to add this in l2server using l2scriptmaker or we should use all this code? :) sory - my hex man - working and cant help me :)

ur post confuses the hell out of me O.o? i have no idea what ur talking about >.>

Domzelan 11.02.2006 10:28

:) Ill do this by my hands:
004FEA59 -E9 449D1B00 JMP L2Server.006B87A2

004FECEB 68 B6876B00 PUSH L2Server.006B87B6 ; ASCII "cdddddSdddddddddddddddddddddddddddddddddddddddddd dddddddddddddddddddddddddddddffffddddSdddddcccddhb cdcddddddddhhdhddddcdddddd"

004FECF9 . 81C4 10020000 ADD ESP,210

BUT i cant add all this: 33 C9 68 FF FF FF 00 51 51 51 51 51 E9 D0 F9 FF FF 90 90 90 63 64 64 64 64 64 53 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 66 66 66 66 64 64 64 64 53 64 64 64 64 64 63 63 63 64 64 68 62 63 64 63 64 64 64 64 64 64 64 64 68 68 64 68 64 64 64 64 63 64 64 64 64 64 64
in this adress 006B87A2 :(

testdude 11.02.2006 12:09

just found a mistake in that code... i updated it, it works 100% now i just tested it

toolpunk 11.02.2006 12:10

hmm...
nice share but im trying to understand how you made it...
see
Code:

004FEA59    -E9 449D1B00    JMP L2Server.006B87A2

004FECEB    68 B6876B00    PUSH L2Server.006B87B6                  ;  ASCII "cdddddSdddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddffffddddSdddddcccddhbcdcddddddddhhdhddddcdddddd"

004FECF9  . 81C4 10020000  ADD ESP,210

006B87A2: 33 C9 68 FF FF FF 00 51 51 51 51 51 E9 D0 F9 FF FF 90 90 90 63 64 64 64 64 64 53 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 66 66 66 66 64 64 64 64 53 64 64 64 64 64 63 63 63 64 64 68 62 63 64 63 64 64 64 64 64 64 64 64 68 68 64 68 64 64 64 64 63 64 64 64 64 64 64

ok the part ranging from the first 63 to the end represents all those c, d, S and h chars...
the 00bla thingy at the first column of each line is the address...
but what is the rest used for?
you know i know hex now, but have absolutely no idea about asm.
would be great if you could help me/us out...

Domzelan 11.02.2006 12:20

Ill do this - now a restart server and ill see the result juse wait 10-15 minutes.

testdude 11.02.2006 12:23

it does look kinda confusing, thats how ollydebug shows it as when u copy it... basically its like this...

004FEA59
Address

-E9 449D1B00
Hex

JMP L2Server.006B87A2
Assembly

and with the one with cddddd.... thats the text string...
really all u need to pay attention to is the first 2 bits, the address, and hex :p thats all u need ^_^

Domzelan 11.02.2006 12:30

Quote:

Originally Posted by testdude
just found a mistake in that code... i updated it, it works 100% now i just tested it

You do error? :) or it works ?

testdude 11.02.2006 12:38

the code works fine now im using it on my server, working on charinfo atm, the code will only work with pp release AVE cos with other versions the loc of the start of the code differes by like 2 bytes...

toolpunk 11.02.2006 12:42

nah...
i was talking about those hex values that correspond to the ascii ;) (theres something in front of it that i dont really understand...)
thanks anyway :)

testdude 11.02.2006 12:49

ahhh i know what you mean... let me show u...
Code:

006B87A2  33C9            XOR ECX,ECX
006B87A4  68 FFFFFF00      PUSH L2Server.00FFFFFF
006B87A9  51              PUSH ECX
006B87AA  51              PUSH ECX
006B87AB  51              PUSH ECX
006B87AC  51              PUSH ECX
006B87AD  51              PUSH ECX
006B87AE  ^E9 12FAFFFF      JMP L2Server.006B81C5
006B87B3  90              NOP
006B87B4  90              NOP
006B87B5  90              NOP

then starts the ascii for the packet, that code is what pushes the missing packet info, 006B87A4 being the color, you can change it to what ever color u want :P

Domzelan 11.02.2006 12:54

HEHEHE thx - i try add this only in 006B87A2 :)))

testdude 11.02.2006 13:16

k, now either i screwed up REAL bad or there is a major side affect to this code....
this is for charinfo...
Code:

004FF93F  .-E9 098F1B00    JMP L2Server.006B884D
004FFAB2  . 68 69886B00    PUSH L2Server.006B8869                  ;  ASCII "cdddddSddddddddddddddddddddddddddddffffdddSdddddccccccchbcdchdddccdcccdddd"
004FFAC0  . 81C4 48010000  ADD ESP,148

004FF3A5  .-E9 19951B00    JMP L2Server.006B88C3
004FF515  . 68 69886B00    PUSH L2Server.006B8869                  ;  ASCII "cdddddSddddddddddddddddddddddddddddffffdddSdddddccccccchbcdchdddccdcccdddd"
004FF520  . 81C4 48010000  ADD ESP,148


006B884D:
33 C9 51 68 FF FF FF 00 51 51 51 51 51 51 51 52 E9 F9 F9 FF FF 90 90 90 90 90 90 90 63 64 64 64 64 64 53 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 66 66 66 66 64 64 64 53 64 64 64 64 64 63 63 63 63 63 63 63 68 62 63 64 63 68 64 64 64 63 63 64 63 63 63 64 64 64 64 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 33 C9 51 68 FF FF FF 00 51 51 51 51 51 51 51 52 E9 A4 F9 FF FF

if you enable 2 toggle skills, with another player around you, or a player around you enables 2 toggle skills, boom, bye bye server... gonna play with it a bit and see if i can get it working... some help would be nice :p

testdude 11.02.2006 13:40

hmmm seems i found out why... the c4 char info packet, or atleast the one posted bt eliot has 9 extra thingies on it, yet the code that pushes the params, pushes 10... :|

testdude 11.02.2006 13:54

k i fixed it woot woot
CharInfo(see first page for userinfo)
Code:

004FF93F  .-E9 098F1B00    JMP L2Server.006B884D
004FFAB2  . 68 69886B00    PUSH L2Server.006B8869                  ;  ASCII "cdddddSddddddddddddddddddddddddddddffffdddSdddddccccccchbcdchdddccdcccdddd"
004FFAC0  . 81C4 48010000  ADD ESP,148

004FF3A5  .-E9 19951B00    JMP L2Server.006B88C3
004FF515  . 68 69886B00    PUSH L2Server.006B8869                  ;  ASCII "cdddddSddddddddddddddddddddddddddddffffdddSdddddccccccchbcdchdddccdcccdddd"
004FF520  . 81C4 48010000  ADD ESP,148


006B884D:
33 C9 51 68 FF FF FF 00 51 51 51 51 51 51 51 90 E9 F9 F9 FF FF 90 90 90 90 90 90 90 63 64 64 64 64 64 53 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 66 66 66 66 64 64 64 53 64 64 64 64 64 63 63 63 63 63 63 63 68 62 63 64 63 68 64 64 64 63 63 64 63 63 63 64 64 64 64 00 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 33 C9 51 68 FF FF FF 00 51 51 51 51 51 51 51 90 E9 A4 F9 FF FF

not found anything that will crash it, fixed the toggle skill thingy so... but im sure anything that is supposed to go on the end of this packet will either cause crit error, wrong result, or just crash the server, but either way, it works for now...
first bug overcome, lets see the rest ! :P

Domzelan 11.02.2006 14:15

This is work with johnsmith2 patch?

testdude 11.02.2006 14:23

no idea, but considering his has the name patch in it, i doubt it ;p

Domzelan 11.02.2006 14:36

Yea - all name look normal. Paty multisell privete buy/sell skills - now working :)

kgptzac 11.02.2006 16:15

this is server side fix?

Mayii 11.02.2006 16:17

lol? what else?

Eliot 11.02.2006 16:23

testdude, impressive. Most impressive :)

Mayii 11.02.2006 16:31

yup, great work, really. you won't find many posts of me saying something like this :P

lamnh 11.02.2006 17:06

Re: [Share - C4] Black name fix
 
Quote:

Originally Posted by testdude
Code:

004FEA59    -E9 449D1B00    JMP L2Server.006B87A2

004FECEB    68 B6876B00    PUSH L2Server.006B87B6                  ;  ASCII "cdddddSdddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddffffddddSdddddcccddhbcdcddddddddhhdhddddcdddddd"

004FECF9  . 81C4 10020000  ADD ESP,210

006B87A2: 33 C9 68 FF FF FF 00 51 51 51 51 51 E9 12 FA FF FF 90 90 90 63 64 64 64 64 64 53 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 66 66 66 66 64 64 64 64 53 64 64 64 64 64 63 63 63 64 64 68 62 63 64 63 64 64 64 64 64 64 64 64 68 68 64 68 64 64 64 64 63 64 64 64 64 64 64


I used Hiew710 to add this code , when I login to game , select my char , my l2server crash , someone can help me solve that? THX

testdude 11.02.2006 17:21

this fix is very very picky due to the ave, if ur not using the ave of the ppl2c release then this most likely wont work...

Sundh 11.02.2006 18:38

nice work testdude

FidoW 11.02.2006 19:32

Re: [Share - C4] Black name fix
 
Quote:

Originally Posted by lamnh
Quote:

Originally Posted by testdude
Code:

004FEA59    -E9 449D1B00    JMP L2Server.006B87A2

004FECEB    68 B6876B00    PUSH L2Server.006B87B6                  ;  ASCII "cdddddSdddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddffffddddSdddddcccddhbcdcddddddddhhdhddddcdddddd"

004FECF9  . 81C4 10020000  ADD ESP,210

006B87A2: 33 C9 68 FF FF FF 00 51 51 51 51 51 E9 12 FA FF FF 90 90 90 63 64 64 64 64 64 53 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 66 66 66 66 64 64 64 64 53 64 64 64 64 64 63 63 63 64 64 68 62 63 64 63 64 64 64 64 64 64 64 64 68 68 64 68 64 64 64 64 63 64 64 64 64 64 64


I used Hiew710 to add this code , when I login to game , select my char , my l2server crash , someone can help me solve that? THX

i have same problem... i add with l2scripmaker... this...

Code:

000FF93F: E9 09 8F 1B 00
000FFAB2: 68 69 88 6B 00
000FFAC0: 81 C4 48 01 00 00
000FF3A5: E9 19 95 1B 00
000FF515: 68 69 88 6B 00
000FF520: 81 C4 48 01 00 00
002B884D: 33 C9 51 68 FF FF FF 00 51 51 51 51 51 51 51 90 E9 F9 F9 FF FF 90 90 90 90 90 90 90 63 64 64 64 64 64 53 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 66 66 66 66 64 64 64 53 64 64 64 64 64 63 63 63 63 63 63 63 68 62 63 64 63 68 64 64 64 63 63 64 63 63 63 64 64 64 64 00 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 33 C9 51 68 FF FF FF 00 51 51 51 51 51 51 51 90 E9 A4 F9 FF FF

000FEA59: E9 44 9D 1B 00 87 A2
000FECEB: 68 B6 87 6B 00
000FECF9: 81 C4 10 02 00 00
002B87A2: 33 C9 68 FF FF FF 00 51 51 51 51 51 E9 12 FA FF FF 90 90 90 63 64 64 64 64 64 53 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 66 66 66 66 64 64 64 64 53 64 64 64 64 64 63 63 63 64 64 68 62 63 64 63 64 64 64 64 64 64 64 64 68 68 64 68 64 64 64 64 63 64 64 64 64 64 64

i select char... and l2server crash... why ?
i need a clean l2server.exe ? from pp release ?

without this mod i can join the game... move char... but when i try to use private sell l2server crash again...

nitromaxboi 11.02.2006 22:22

does the charinfo hexing fix mutisell and party and pri sell? cause i can't get it to work

Mayii 12.02.2006 03:11

yup yup, seems to crash when trying to login.

nitromaxboi 14.02.2006 08:55

does the charinfo hexing fix mutisell and party and pri sell? cause i can't get it to work

testdude 14.02.2006 11:08

no it doesnt... all it does is fix ur black name... read the topic title....
so far ive got warehouse and skillaquirelist working, and im working on private stores...
Quote:

Originally Posted by johnsmith2
Quote:

Originally Posted by testdude
only 1 slight problem for me, i have no idea how to locate the client -> server packets... never mind how to change them around...

set break point at onCallBack or something i forgot, there is a whole table for all functions in the l2server.

something like this

const DWORD dwFunctionList[] =
{
(DWORD)Userinfo,
(DWORD)Charinfo1,
(DWORD)Charinfo2
};

if anyone can tell me either how to do this, or the locs server side for the packets client -> server for party/private store then i will share all of my work, and try to get the rest of the problem packets sorted, i already know how exactly to make private store: sell work, and i have an idea on the buy... so far ive asked 4 people about the locs and the breakpoint thing that johnsmith2 mentioned, no one seems to want to help me.

Domzelan 14.02.2006 11:18

testdude - i think we cant help you because our knowlage about client-server packet more then our. :( I whant to help you but i dont know how :((

I think johnsmith2 know how do this but he already give us a lot of fixes and help, he cant give us all.

testdude - thx for you work - I respect you.

testdude 14.02.2006 11:31

Quote:

Originally Posted by Domzelan
testdude - i think we cant help you because our knowlage about client-server packet more then our. :( I whant to help you but i dont know how :((

I think johnsmith2 know how do this but he already give us a lot of fixes and help, he cant give us all.

testdude - thx for you work - I respect you.

all i ask is a loc, nothing more, that i know johnsmith2 has, as his dll that he uses for his server has it, it is not as if im asking him to send me his entire source, all i need is an address...

Domzelan 14.02.2006 11:38

May be he dont see this? testdude pm him about address?

johnsmith2 if you seee this post - testdude need help plz help him...

wton 03.03.2006 19:21

somebody discovers something new?

GANSH 19.04.2006 15:38

I dont know in every topics people does the same thing? I dont want to learn how to fish in this subject. I just want the Fish :D

Please somebody attach here a working one. That will be SOOOOOOOOO HELPFUL. THX.

SoaPy 19.04.2006 15:50

Quote:

Originally Posted by GANSH
I dont know in every topics people does the same thing? I dont want to learn how to fish in this subject. I just want the Fish :D

Please somebody attach here a working one. That will be SOOOOOOOOO HELPFUL. THX.

mmmmm leecher ?

MuNLoK 19.04.2006 16:43

yes xD

toolpunk 19.04.2006 17:20

Quote:

Originally Posted by GANSH
I dont want to learn how to fish in this subject. I just want the Fish :D

try beef then... -_-

mcrabben7 25.04.2006 21:50

Hmmm, well I installed your patch and was very, very careful in installing it. Works fine for just me.

When I also installed a Party fix and logged in, as soon as the other character became visible to me it would cause the server to crash.

Reason: Because the name of the character was SEE THROUGH >.<

I hope I didn't accidentally hex it wrong, and so I might go check it one more time.


In the mean time, here is the exact line error as told to me by VS2005 Debugger:

Quote:

004FF8A1 push 18AA81D8h
004FF8A6 call 0053EEE0
004FF8AB add esp,14h
004FF8AE mov eax,dword ptr [ebp-1Ch]
004FF8B1 mov edi,dword ptr [ebp-30h]
004FF8B4 mov esi,dword ptr [ebp-38h]
004FF8B7 inc eax
004FF8B8 mov dword ptr [ebp-1Ch],eax
004FF8BB mov edx,eax
004FF8BD jmp 004FF830
004FF8C2 mov ecx,dword ptr [ebp-94h]
004FF8C8 shl eax,4
004FF8CB mov esi,dword ptr [eax+ecx+0Ch]
004FF8CF test esi,esi
004FF8D1 lea edi,[eax+ecx]
004FF8D4 mov dword ptr [ebp-2Ch],edi
004FF8D7 je 004FF8AE
004FF8D9 push esi
004FF8DA call 004011F0
004FF8DF add esp,4
004FF8E2 test eax,eax
004FF8E4 je 004FFAC6
004FF8EA cmp esi,ebx
004FF8EC je 004FFAC6
004FF8F2 push esi
004FF8F3 mov ecx,ebx
004FF8F5 call 004EC620
004FF8FA push eax
004FF8FB mov ecx,ebx
004FF8FD mov dword ptr [ebp-90h],eax
.Blah blah blah, Access violation reading location 0x0000d89d. Why so far away :(

Maybe it's adding beyond it's segment or something, really not sure.



Edit: I had the 33 hex digits overwritten by 64 on the 2nd packet structure...it works now, except only my player's name is white. I really wish i knew where to go from here.

Do I look for similar code between the 2 patches you made and mod it nearly the same way? Would help if I had a better idea of using something like IRA Pro.

Please, please, please, at least if someone can let me know the right direction to start hexing I would be very happy. I want to learn to be better at it, but I need a start on the hard stuff, heheh.

Again, thanks for the work. What does work works well.


All times are GMT. The time now is 22:58.