remote control

Developer discussion of experimental fixes, changes, and improvements.

Moderators: Nexuiz Moderators, Moderators

Wed Feb 21, 2007 3:51 pm

  • hello!

    I want to control my nexuiz server remotely, preferably using a perl script. Is that possible? Attach to the server console via UDP?
    Cinquero
    Advanced member
     
    Posts: 91
    Joined: Wed Jul 19, 2006 11:13 pm

Wed Feb 21, 2007 3:55 pm

Wed Feb 21, 2007 5:20 pm

Wed Feb 21, 2007 6:17 pm

  • [TSA] Psychiccyberfreak wrote:xqf? webmin plugin?


    Not really. I need at least to control my server from the command line. Unfortunately, the CPAN rcon module does not seem to work with nexuiz.
    Cinquero
    Advanced member
     
    Posts: 91
    Joined: Wed Jul 19, 2006 11:13 pm

Wed Feb 21, 2007 8:44 pm

  • Cinquero wrote:Not really. I need at least to control my server from the command line. Unfortunately, the CPAN rcon module does not seem to work with nexuiz.

    Probably because Nexuiz uses qw-style rcno, not the q3 protocoll.
    However divVerent wrote a wrapper in ruby, that enables other applications to connect via unix socket amongst other things.
    If you want to code something yourself in ruby, here's a quick'n'dirty sample how rcon works in Nexuiz: http://kadaverjack.planetnexuiz.de/tmp/rcon.zip
    Last edited by KadaverJack on Sat Jul 07, 2007 1:35 am, edited 2 times in total.
    User avatar
    KadaverJack
    Site admin and forum addon
     
    Posts: 1102
    Joined: Tue Feb 28, 2006 9:42 pm

Thu Feb 22, 2007 1:13 am

  • thx!
    Cinquero
    Advanced member
     
    Posts: 91
    Joined: Wed Jul 19, 2006 11:13 pm

Thu Feb 22, 2007 12:50 pm

  • is it possible that one cannot pipe the entire result of "cvarlist" though rcon? Is that a server-side issue? Possibly related to MTU/UDP?
    Cinquero
    Advanced member
     
    Posts: 91
    Joined: Wed Jul 19, 2006 11:13 pm

Thu Feb 22, 2007 6:19 pm

Thu Feb 22, 2007 6:55 pm

  • Cinquero wrote:is it possible that one cannot pipe the entire result of "cvarlist" though rcon? Is that a server-side issue? Possibly related to MTU/UDP?

    rcon works with single UDP packets, which may not exceed 65.527 bytes. When I save the output of cvarlist to a file, it's about 81kb, so so it clearly won't fit into an UDP package...
    User avatar
    KadaverJack
    Site admin and forum addon
     
    Posts: 1102
    Joined: Tue Feb 28, 2006 9:42 pm

Thu Feb 22, 2007 7:09 pm

Thu Feb 22, 2007 8:25 pm

  • esteel wrote:Well if you are the only one administering that server (and if its running on linux) you can also just use the program 'screen' for this. Its like vnc for text mode programs.

    doesn't the Linux kernel have built in support for text mode VNC now?
    User avatar
    Psychcf
    Forum addon
     
    Posts: 1554
    Joined: Sun Dec 03, 2006 11:38 pm
    Location: NY, USA

Thu Feb 22, 2007 8:41 pm

  • [TSA] Psychiccyberfreak wrote:doesn't the Linux kernel have built in support for text mode VNC now?

    Why would you need that when there is ssh?
    User avatar
    KadaverJack
    Site admin and forum addon
     
    Posts: 1102
    Joined: Tue Feb 28, 2006 9:42 pm

Thu Feb 22, 2007 9:15 pm

  • [TSA] Psychiccyberfreak wrote:doesn't the Linux kernel have built in support for text mode VNC now?

    Not that i know of.. and as KadaverJack said.. there is no need for it.
    Maybe you mean the switching between consoles with Alt-f1 to alt-f12 but thats a totally other thing.
    User avatar
    esteel
    Site admin and forum addon
     
    Posts: 3924
    Joined: Wed Mar 01, 2006 8:27 am

Fri Feb 23, 2007 10:15 am

  • esteel wrote:Well if you are the only one administering that server (and if its running on linux) you can also just use the program 'screen' for this. Its like vnc for text mode programs.


    No, I want to reconfigure and control it during operation. rcon is quite nice for that, but I'm missing a feature that can tell me about the current game state (running or finished etc.)
    Cinquero
    Advanced member
     
    Posts: 91
    Joined: Wed Jul 19, 2006 11:13 pm

Fri Feb 23, 2007 11:36 am



Return to Nexuiz - Development




Information
  • Who is online
  • Users browsing this forum: No registered users and 1 guest