Author Topic: (linux) a small ncurses style shell utility to query/connect/autojoin MG games  (Read 702 times)

FreshDumbledore

  • Guard
  • ***
  • Posts: 61
    • View Profile
Hi,

i've set up this tiny script to query and join MG games for my personal use;
if you happen to like it feel free to use it aswell.

I might also add features or change things if im in the mood, so dont hesistate to post a reply.

Current version: http://pastie.org/9332494
Features (as requested, cc alket and titi):
* join a game out of a list of games
* autojoin the next game with >0 network players
   (this will start a loop; press q to exit as also written there)
      * rejoin the autojoin queue after quitting a game previously joined with it (optional; yes no dialog)
* information on running games
* refresh
* quit
Just save it somewhere and run it with '/bin/bash name'
Line 3 needs to be adjusted to your local mg binary path!
Edit line 4 if you want to increase the interval between checks in the autojoin option

Technical verbiage: it actually reads the play.mg html source (yes i know there is a csv version out there but never change a running system and stuff).
It requires a shell with dialog function but i think thats standard.
for ubuntu / debian install 'dialog (universe )'

It can also easily be adjusted to autojoin the first game it finds without any interface. and so on.

regards
« Last Edit: 27 June 2014, 22:36:45 by FreshDumbledore »