The stangest PK problem i have ever seen

09/23/2014 17:31 Paristôn#1
Well, now i found a very very strange problem in PK modes.

That, if players in the same map, let's assume it TwinCity .. and i was one of those players :D .. then, i opened my PK.

The problem is that, when i open my PK, the whole Players in my map AUTOMATICALLY open their PK mode "Just the same as me".

lol i have never seen such as this problem, it looks like they "all players" are linked somehow?!
09/23/2014 18:04 Spirited#2
Could you post your PK change method? It's packet type 10010, subtype 96.
09/23/2014 19:30 Paristôn#3
Sorry i couldn't find it?
can u give me a specific code that i can search with it?
09/23/2014 19:53 abdoumatrix#4
xD weird :D

anyway post the ChangePkMode codes


PS:
u should mention what source u use
09/23/2014 20:05 Paristôn#5
I wanna search for it first, i'm not the coder of that code.
09/23/2014 20:56 pintinho12#6
Look on PacketHandler.cs ... usually thats the name of the file.
09/23/2014 21:38 Paristôn#7
yeah wut code should i search for?
09/23/2014 22:01 pintinho12#8
On my Source it is Execute(byte[] Args, SocketClient Client)
So on the switch you look for DataPacket (10010)
And then inside, you look for the Subtype 96 or ChangePKMode
09/24/2014 02:30 OverKillasdwqe#9
you open pk mode (client send that to server)
then server send a confirmation to the client
instead your server send a confirmation for every single client in that map

so let the spoon feeding start
so you search for 96 or it's hex equivalent and if you are lucky you will only find few matches
which one of them will most likely drop at an enum for datapacket subtypes or will just get you to a switch within a switch (data packet subtypes switch within the packets type switch)
add a break point and open the pk on your client, then trace in and on till you find what's the hell is wrong or just get the codes and post them here
09/24/2014 14:08 abdoumatrix#10
u tried "ChangePKMode" ??
09/24/2014 17:15 pintinho12#11
Should check if it isnt set to .Transmit()
09/25/2014 09:32 Paristôn#12
Sorry for late, i cannot really find any of your codes :(
i tried my hard to find that code but i need help .

i can just found*
Enums.PKMode.Jiang
Enums.PKMode.PK
Enums.PKMode.Team

... etc.
09/25/2014 12:31 Aceking#13
So right click on Enums.PKMode.PK and click Find All References.
It should give you a list, then just go through the list.

One of them should be the packet handler.
09/25/2014 15:17 KraHen#14
Please do not run a server, and don`t cosider this as an insult. You need way more preparation, study C# for a bit more time.