RubyPlaces - Darkplaces dedicated server frontend

Discuss anything to do with Nexuiz here.

Moderators: Nexuiz Moderators, Moderators


  • Currently in development: a Ruby frontend for Darkplaces consoles that has the following features (note: most probably it will not run on Windows, but should run well on Linux, FreeBSD and OS X):
    • multiple local consoles (standard input/output, log files)
    • socket consoles (Q3A compatible rcon (but this feature will be in Nexuiz 1.5.1), Telnet connection, UNIX socket - especially: reading the console of a running server)
    • random map selection for Nexuiz, building maplists of wildcard expressions
    • currently in progress: IRC spam (Nexuiz game results written to an IRC channel - of course only into your OWN channel)
    • (the plugin example) outputting the current date when a player says "d"
    It should be easily possible to add further features to the script, like
    • chat functions
    • posting game results on a website
    • perhaps running AS a special IRC server and having the console in a channel, in a window of your favorite IRC client (bitlbee does a similar thing for instant messaging services)

    You can get the current version and its docs at http://mensa.ath.cx/~polzer/rubyplaces/

    Have fun!
    User avatar
    divVerent
    Site admin and keyboard killer
     
    Posts: 3809
    Joined: Thu Mar 02, 2006 4:46 pm
    Location: BRLOGENSHFEGLE

Thu Mar 02, 2006 7:07 pm

Thu Mar 02, 2006 8:19 pm

  • Nice one, gonna play with it as soon as i got some sparetime :)
    User avatar
    Ctrl+Alt+Del
    Member
     
    Posts: 20
    Joined: Tue Feb 28, 2006 9:34 pm

Thu Mar 02, 2006 8:58 pm

  • As you probably have noticed, the "rubyplaces_ircspam" code is just an example at the moment... but already running at one IRC channel.

    I should perhaps write here how to instantiate it...

    Code: Select all
    require 'rubyplaces_ircspam'
    # [...]
    s.add_handler(irch = RubyPlaces::Nexuiz::IRCSpam.new(
      "ircserveraddress", 6667,
      "Nickname", '#channelname',
      [
        "PRIVMSG NickServ :IDENTIFY nspasswd",
        "PRIVMSG ChanServ :OP #channelname"
      ]
    ))
    s.add_handler(RubyPlaces::ReaddOnException.new(irch))


    ReaddOnException basically reinstates a handler if it has been removed due to an exception on every map change (that means, not THAT often). Might be useful since it can always happen that the IRC connection drops.

    But notethat not all IRC networks allow running such bots.
    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.
    User avatar
    divVerent
    Site admin and keyboard killer
     
    Posts: 3809
    Joined: Thu Mar 02, 2006 4:46 pm
    Location: BRLOGENSHFEGLE



Return to Nexuiz - General Discussion




Information
  • Who is online
  • Users browsing this forum: No registered users and 0 guests