Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - kagu

Pages: 1 [2]
26
If you install Megaglest 3.9.1 in Xubuntu 13.10 (maybe may affect all *buntu versions but didn't test) you have to manually do in terminal:
sudo apt-get install libopenal1

27
This works only for Ubuntu since it uses "notify-send", maybe there is a general notification system but I don't know.

Usage:
1. Copy code and save it somewhere as mgalert.py
2. In Hexchat: Menu > Window > Plugins and Scripts
3. In Plugins and Scripts: Load > mgalert.py

If you have installed megaglest in home directory it should display an icon.

Code: [Select]
#https://www.gnu.org/copyleft/gpl.html
__module_name__ = "MG Alert"
__module_version__ = "1.0"
__module_description__ = "Makes an alert when someone joins megaglest-lobby"

import hexchat, subprocess, getpass

def join_cb(word, word_eol, userdata):
channel = word_eol[2]
channel = channel[:16]
if channel == "#megaglest-lobby":
user = str.split(word[0] , "!")
user = user[0][1:len(user[0])]
prefix = user[:3]
if prefix == "MG_":
user = str.split(user, "_")
user = user[1]
subprocess.call(['notify-send', '-i', '/home/'+getpass.getuser()+'/megaglest/megaglest.ico','Megaglest',user+' has joined.'])

hexchat.hook_server("join", join_cb)

28
Alt+Enter doesn't work while in windows mode, it work only in Full Screen mode.

Ubuntu 13.10 Unity
Megaglest 3.9.0

29
Terminal Output:
Code: [Select]
    Fatal Error: Mismatch between the program and library build versions detected.
    The library used 2.8 (no debug,Unicode,compiler with C++ ABI 1002,wx containers,compatible with 2.6),
    and your program used 2.8 (no debug,Unicode,compiler with C++ ABI 1002,STL containers,compatible with 2.6).
    Aborted

MG Version: 3.9.0
Operating Syste: OpenSuse 13.1
Download Location: From OpenSuse Game Repos

Pages: 1 [2]