nexuiz netcode

Post anything to do with editing Nexuiz here. Whether its problems you've had, questions, or if you just want to show off your work.

Moderators: Nexuiz Moderators, Moderators

nexuiz netcode

Postby Psychcf » Thu Jul 12, 2007 5:57 am

I've recently dove into python, and found a python module that lets you do stuff with quake 3 servers. Is the netcode in nexuiz for server variables, player listings, rcon, etc much different from quake 3?
Psychcf
Forum addon
 
Posts: 1554
Joined: Sun Dec 03, 2006 11:38 pm
Location: NY, USA

Postby KadaverJack » Thu Jul 12, 2007 7:16 am

Server status requests are the same as in q3 (afaik, i never had q3), but they don't include variables. Rcon is based on quake world, not q3, so q3 tools won't work. However both protocols are really simple, so it's just a matter of minutes to write such a python module from scratch ;)

Feel free to use those ruby scripts as reference:
http://kadaverjack.planetnexuiz.de/down ... exstat.tgz
http://kadaverjack.planetnexuiz.de/downloads/rcon.zip
KadaverJack
Site admin and forum addon
 
Posts: 1102
Joined: Tue Feb 28, 2006 9:42 pm

Postby divVerent » Thu Jul 12, 2007 8:17 am

Right, you send rcon commands as a

"\xFF\xFF\xFF\xFFrcon hackme whateveryouwanttodo"

packet (in DP SVN, you can separate multiple commands by a \0) and you get responses as packets of the form

"\xFF\xFF\xFF\xFFnUnknown command whateveryouwanttodo"

That's all you need to know about the rcon protocol...
1. Open Notepad
2. Paste: ÿþMSMSMS
3. Save
4. Open the file in Notepad again

You can vary the number of "MS", so you can clearly see it's MS which is causing it.
divVerent
Site admin and keyboard killer
 
Posts: 3809
Joined: Thu Mar 02, 2006 4:46 pm
Location: BRLOGENSHFEGLE

Postby Mr.Carlyle » Thu Jul 12, 2007 8:07 pm

That's all you need to know about the rcon protocol...


We're on a need to know basis...and damnit we don't need to know! :twisted: 8)
Mr.Carlyle
Alien
 
Posts: 148
Joined: Sat Jun 16, 2007 6:17 pm
Location: USA


Return to Nexuiz - Editing

Who is online

Users browsing this forum: No registered users and 1 guest

cron