Sunday, May 1, 2011

Red Dead while PSN is Dead, Part 2

Continuing my testing, I found that upon receiving responses from the server, the client then switched to a different port for both sending and receiving, 3658. A quick fix in the script to handle this, and voila LAN game activated.

So now I present to you 2 Python script files that will bridge 2 LANs and allow for 1v1 multiplayer in Red Dead Redemption on the PS3. Currently the scripts have been tested with one Linux and one Windows machine. Turns out there are some gotcha's between the two platforms when it comes to UDP broadcast traffic. In Windows, broadcast UDP packets will be received by a socket listening on a specific IP, whereas Linux required listening on ANY. This results in a weird scenario where the Linux box could not send from the proper socket. To host the source, I created a Google Code project, GPL-v2 licensed.

This only supports one other user, there is no voice chat (as that is carried over the PSN), and has only been rudimentary tested. Hope this helps someone while the PSN is down.

No comments:

Post a Comment