How to guess Entity Spawn (10014) packet?

07/05/2014 01:36 pintinho12#1
Hyia, thats me again xD
Well, ive been using ExodusBinaries, been upgrading it and gotta say that ive been learning alot too, hope i can make something good out of it, or maybe when i feel ready, re-build it with better structure..
Didnt make much progress depending on who sees, but i think im going well...
But ive been working on respawns and its almost done, except the fact that i cant see the target infos.. Example, name;;;
[Only registered and activated users can see links. Click Here To Register...]
I can see my name, i can see NPCs names :v I still not working on mobs lol idk why, but i guess its gonna be harder...
but i cant see other players name.. ><
am i missing something?
It's version 5180...
The Server>Client Packet (Not bidirectional), how can i guess its values? The client gives any signal?

====Off thread=====
I fixed the logout issue *-*
Now the characters can logout and they disappear from other players screen :D gotta thank the guy that helped me with that.. but i forgot his name lol
07/05/2014 01:55 KraHen#2
On this patch - Korvacs` wiki, other sources, trial and error, or RE. I would advise you the first one.
07/05/2014 05:16 pintinho12#3
Quote:
Originally Posted by KraHen View Post
On this patch - Korvacs` wiki, other sources, trial and error, or RE. I would advise you the first one.
The wiki has the 5165, i tried to follow it.. but didnt work :(
My name started to disappear hah
Ive tried Phoenix Source from Spirited... the 10014 isnt complete, only shows the character name also :/ lets try out guessing it alone hahah
07/05/2014 06:43 Smallxmac#4
at offset 218 name length then the name. That is for 5500 though, not sure if it changed before that. But hey one step closer to solving :P
07/05/2014 08:33 Spirited#5
Well, I still have the original Trinity-Co source from 5187 (before it was actually leaked). According to Alex's old work on the source, string count is at offset 155, name length at 156, name bytes at 157, hairstyle at 62, x at 64, y at 66, direction at 68, and action at 69 (haha). I don't expect people to guess random offsets on old patches - that's why we have somewhat complete packet wikis.
07/05/2014 18:28 _DreadNought_#6
Quote:
Originally Posted by Spirited View Post
Well, I still have the original Trinity-Co source from 5187 (before it was actually leaked). According to Alex's old work on the source, string count is at offset 155, name length at 156, name bytes at 157, hairstyle at 62, x at 64, y at 66, direction at 68, and action at 69 (haha). I don't expect people to guess random offsets on old patches - that's why we have somewhat complete packet wikis.
He's right ya'know; according to the 5187 source I was working on during the anyway;

UInt16(160 + Name.Length);//Offset 0
UInt16(10014); //Packet Type - Offset 2
UInt32(Body); //Offset 4
UInt32(UID);//Offset 8

Byte(Level); //Offset 75 for players, 60 for everything else.

Byte(1); //String Count - Offset 155
Byte(Name.Length); //Offset 156
String(Name);//Offset 157
07/05/2014 18:44 pintinho12#7
Well, this is what ive got..
I added somethings and edited others... If i change the name packet and lenght offsets it will the name disappears (My name) and the target name stills dont appear.. i wont work on this today haha, i finished my relationship this week and im gonna party tonight :3
Spirited, can you show me the offsets?
Because the 5165 offsets are sooo different and the 5250 also :(

===========================
Ignore the UpdateDatabase things, because ill change the way it will work.. looks like it will take so much resources with many players lol updating every step
===========================
I think ive got whats wrong... -_______-
I will try out and then ill come back to report xd
Anyway if there is somewhere i can get the offsets <3 <3 <3
otherwise tomorrow i start guessing
===========================
Failed D:
07/07/2014 04:28 pintinho12#8
Ive been trying to rebuild this spawn packet... btw, i made my packet logger and i noticed that MY packet, with my account informations is sent with the right lenght, and when i request other players infos, it is coming with +11 lenght, i am trying to figure it out... if someone can help me :D btw, when Armor and Garment offsets has changed?
I checked a 5517 and i noticed they switch places, Garment goes to 40 and armor to 44...
07/07/2014 05:41 Spirited#9
Wait, my spawn packet from Project Phoenix doesn't work?
07/07/2014 06:51 pintinho12#10
Yep, It has the same offsets '-'
I can see my Character infos, i actually fixed the Metempsychosis offset, now i have the 2 rb effect around my character, am trying to guess how to show notibility icon and ranking on the character.. guess i need to load the entiry table to make it... idk
Tried to spawn the items by using their ids, but i think most wont work if i dont set up the colors, which will imply on a biiig waste of time switching offsets, anyway, ill have to do it...
But...
I dont know what is being inserted on it, but the EntitySpawn packet when i send it to another screen, after i change a few things, is sending the 10014 with +7 Lenght
and no... its not because of the na... fuck it, its because of the name (yep, noticed now, it was +11 before, so i fixed the extra 4 bytes)..
then i dont know whats wrong..
07/07/2014 07:04 Spirited#11
Again, according to the old Trinity source I have that was later leaked, nobility is 95, head is 30 and 103, garment is 34, armor is 38 and 99, right weapon is 46, Left Weapon is 42 and 101, steed is 20, 109 (plus), and 115 (lineage).
07/07/2014 07:29 pintinho12#12
Thanks Fang, ill test it now :D :D :D
I am so happy now, because i fixed the Name issue..
found out that it was missing the String Amount... Damn, stupid error...
I read byte after byte on both packets

Quote:
a7 00 1e 27 d1 07 00 00 48 42 0f 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 6b c4 02 00 00 00 00 00 e3 42 06 00 00 00 00 00 00 00 00 00 46 01 66 01 54 01 00 64 00 01 00 02 00 6e 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0c 00 00 00 00 00 00 00 00 00 be 03 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 07 53 68 65 6d 61 6c 65 00 00 00 00 00 00 00 00 00 00 00

ae 00 1e 27 eb 03 00 00 4a 42 0f 00 00 00 00 00 00 00 00 00 00 00 00 00 d9 7a 33 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 6b c4 02 00 00 00 00 00 e3 42 06 00 00 00 00 00 00 00 00 00 00 00 6a 01 52 01 00 00 00 01 00 00 00 8c 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0c 00 00 00 00 00 00 00 00 00 20 03 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0e 4f 75 74 72 6f 4e 69 6e 6a 61 5b 47 4d 5d 00 00 00 00 00 00 00 00 00 00 00
Then i saw those 00 :|
And ill try those now...
btw, 104 is quiz points
103 isnt too close? or Color just take 1 byte? and RWeapon doesnt have a color byte? o.O

[Only registered and activated users can see links. Click Here To Register...]
this :D Thanks thanks thanks, been learning alot *-*


and by the way, the items packet... i send their itemtype id? "410339"
07/07/2014 07:38 Spirited#13
You send the item's static id (the mesh of the item, whatever you want to call it). Also, your character meshes are off. The mesh offset in the spawn packet and character info packet isn't just the body; it also includes the avatar and transformation.

mesh = body + (avatar * 10000) + (transformation * 10000000)
07/07/2014 07:46 pintinho12#14
Quote:
Originally Posted by Spirited View Post
You send the item's static id (the mesh of the item, whatever you want to call it). Also, your character meshes are off. The mesh offset in the spawn packet and character info packet isn't just the body; it also includes the avatar and transformation.

mesh = body + (avatar * 10000) + (transformation * 10000000)
Working on it right now, ill check other bases to see how they do it also
Hahah, just used the wrong ID on the lookface, but seems working :'D
Its fine *-*
[Only registered and activated users can see links. Click Here To Register...]
Progress... :D