[quake3-bugzilla] [Bug 5099] Add support for dpmaster protocol

bugzilla-daemon at icculus.org bugzilla-daemon at icculus.org
Sat Jul 30 13:55:06 EDT 2011


https://bugzilla.icculus.org/show_bug.cgi?id=5099

--- Comment #32 from Simon McVittie <smcv-ioquake3 at pseudorandom.co.uk> 2011-07-30 13:55:04 EDT ---
(In reply to comment #30)
> The heartbeat properties are used when receiving a server request, and the
> protocol property when receiving a client request. I have no way with the
> current dpmaster code to say "heartbeat X *and* protocol Y", it's more
> "heartbeat X *or* protocol Y".

Here's a proof-of-concept patch series for dpmaster, with a regression test (I
was delighted to see that dpmaster has regression tests, they're definitely the
way forward!). When it receives a heartbeat that implies a particular game
name, it considers it to be a first guess; when it receives an infoResponse, it
re-evaluates the game based on the protocol.

It also adds OpenArena to the table of known games, calling it "openarena", so
that the getserversExt issued by OA 0.8.5 will retroactively start working :-)

Adding backwards-compat for a mod that uses the Q3 heartbeat and protocol 666,
and wants to use com_gamename=HypotheticalMod when upgrading to ioquake3 r2105,
would work like this:

    ./src/dpmaster -g HypotheticalMod lookslike=Quake3Arena protocols=666

hg repository (I hope I got this right, I haven't used hg before):

    https://bitbucket.org/smcv/dpmaster/

-- 
Configure bugmail: https://bugzilla.icculus.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the quake3-bugzilla mailing list