Packet Modification Question
So I recently made a simple gameⓘ and was going to implement a multiplayer mode. I've been reading a lot on the subject of game networking and I'm hoping someone with game networking experience could answer this for me.
Now, what I've seen a few basic games do is assign a client (you, the player,) an ID and then whenever an action is preformed (up key pressed, etc.) a packet of data is sent to the server in the form of "ID, KEYPRESSED". Now, keep in mind this is just a really dumbed down example, but I'm sure many games implement this type of structure, albeit more advanced.
So, my idea is this: What if I made a custom client which let me send out fake packets for another player? More specifically, WASD would control your character and send packets with "MYID, DIRECTION" and the arrow keys would send out "YOURID, DIRECTION".
Now, taking a step away from my simple game example, how do games like League of Legends work? A player clicks on the map and their player is moved. I'm assuming that the client is just sending a more complicated version of what I described above, but dumbing it down I imagine the packet would look like "UNIQUEID, MOUSEX, MOUSEY". There has to be some way that the server identifies between you and another player, so isn't it possible that you could send spoofed packets to the LoL server for another player? I couldn't really find information on the LoL packet structure, but I just want to know if this would be possible and if not, why?
Also, if I wanted to learn about packet spoofing/modification, could someone point me to a good tutorial? I would like to see the LoL packets firsthand and try and see how they're structured.
Now, what I've seen a few basic games do is assign a client (you, the player,) an ID and then whenever an action is preformed (up key pressed, etc.) a packet of data is sent to the server in the form of "ID, KEYPRESSED". Now, keep in mind this is just a really dumbed down example, but I'm sure many games implement this type of structure, albeit more advanced.
So, my idea is this: What if I made a custom client which let me send out fake packets for another player? More specifically, WASD would control your character and send packets with "MYID, DIRECTION" and the arrow keys would send out "YOURID, DIRECTION".
Now, taking a step away from my simple game example, how do games like League of Legends work? A player clicks on the map and their player is moved. I'm assuming that the client is just sending a more complicated version of what I described above, but dumbing it down I imagine the packet would look like "UNIQUEID, MOUSEX, MOUSEY". There has to be some way that the server identifies between you and another player, so isn't it possible that you could send spoofed packets to the LoL server for another player? I couldn't really find information on the LoL packet structure, but I just want to know if this would be possible and if not, why?
Also, if I wanted to learn about packet spoofing/modification, could someone point me to a good tutorial? I would like to see the LoL packets firsthand and try and see how they're structured.


Luckily it's just one day that was wasted instead of one week (or worse!)