Some notes for os x and a request:

Eliezer Flores <[email protected]> Tue, 27 Dec 2005 23:44:34 -0500
Newsgroups gmane.comp.games.mud.client.lyntin
Message-ID <[email protected]>
I compiled lyntin for OS X and am mightily intrigued. I'd compiled for 
textui. I ended up hacking the runlyntin script to force it use the 
tkui. I get this type of error:

DaWoyah:~/Downloads/lyntin-4.1.1/build/scripts-2.4 eliezerflores$ 
./runlyntin
Cannot start 'tk': bad event type or keysym "KP_Right"
Traceback (most recent call last):
  File 
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/lyntin/engine.py", 
line 994, in main
    uiinstance = base.get_ui(modulename)
  File 
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/lyntin/ui/base.py", 
line 35, in get_ui
    return _module.get_ui_instance()
  File 
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/lyntin/ui/tkui.py", 
line 106, in get_ui_instance
    myui = Tkui()
  File 
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/lyntin/ui/tkui.py", 
line 180, in __init__
    insertwidth='2')
  File 
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/lyntin/ui/tkui.py", 
line 539, in __init__
    self.bind("<KeyPress-KP_Right>", self.callKP6)
  File 
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/lib-tk/Tkinter.py", 
line 933, in bind
    return self._bind(('bind', self._w), sequence, func, add)
  File 
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/lib-tk/Tkinter.py", 
line 888, in _bind
    self.tk.call(what + (sequence, cmd))
TclError: bad event type or keysym "KP_Right"

however when I comment out lines 538-546 in tkui.py, it starts right 
up... dunno really how to fix it. I just taught myself python a coupla 
days ago (i managed to write the script I really wanted: an 
implementation of A* using traveling scripts stored in a MySQL DB so I'm 
not a total neophyte)

Running through the source code, i feel fairly confident I can I add 
commands but I have run into one thing I can't understand. I've been 
playing around with the optional wbgmapper module and I can't understand 
why the #look command doesn't work.  I've narrowed it down to this line 
in wbgmapper.py

ln 440:  ses.writeSocket("look\n", lookprocesser())

The writeSocket method basically passes it on using this line
ln 267:       exported.hook_spam("to_mud_hook", {"session": self, 
"data": line, "tag": tag})

and basically, my understanding falls apart there. If someone has some 
words of advice on how to get the #look command up'n'running, it would 
help me get started.


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click