PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

PPC Deathmatch Host Success! (yay) - fix attached

Hi,

Short version:
PocketQuake can host network games. Attached is a patched version (ARM) and the modified source file.

Instructions: Download/copy to device/start new multiplayer/join the game from your desktop PC.


Long story:
In net_wins.c, the function WINS_CheckNewConnections(void), there is a call to the socket receive data function 'recvfrom' with the parameter MSG_PEEK (i.e. peek, but don't remove any data from the buffer).

This isn't supported on Windows CE/Mobile, and was silently failing. Incoming net data was never getting into the Quake internals.

I have replaced it with a call to ioctlsocket to read the quantity of available data instead.

Ack. It's 3am, and I've been tracing through Quake's networking internals for getting on for 5 hours - since I first sniffed the packets with Ethereal and found that the PPC wasn't making any attempt to answer client requests (Yay Ethereal for decoding the Quake protocol!) - but where was the incoming code that should answer?

Not surprisingly, the PPC hosting isn't incredibly fast (but then, this isn't the fastest PPC, so you might get better results). I haven't any way to try 2-PPCs.

Anyway, please test it. :)

[
ID Software: Thank you.
Dan East: Thank you.
Inventor of prinf-debugging: Thank you a lot.
]
Attachments:
sfbPocketQuake-NetFix-ARM.zip (242 KB)
It's posts like this that make me glad we haven't entirely disabled guest posts yet. Stickied.
Wow it actually hosts and plays games! ^_^ it works with the PC version though the pc tends to have a rather massive advantage.
i love quake · 28 Mar 2006, 17:38 UTC
Hello

sorry for my ridiculous question but I am a rookie I got quake one week ago and I loved the game . Thank you Dan East !!!!!!!
can I host a game via bluetooth or wi-fi with my i-mate PDA2k (600mhz overclocked) ???


Thanks
tenjeangosi · 28 May 2006, 15:32 UTC
Hello,
I would like to point out that the attatchment does not work... Does anyone have a copy ofthe patch?
Thanks,
Joseph
Also, sorry for bumping the thread :( ...
Is this version the xscale optimized version or the original?