From: rpd <richard@dickinson350.freeserve.co.uk>
To: Help-gnu-emacs@gnu.org
Subject: Emacs chess.el help again to connect to FICS
Date: Sat, 25 Jul 2009 15:38:21 -0700 (PDT) [thread overview]
Message-ID: <24662344.post@talk.nabble.com> (raw)
Hi
I have been unsuccessfully trying to get my emacs chess module to connect to
FICS chess server.
I would be very grateful if someone could help me get the right .emacs code
to get this to work.
Presently with my .emacs code I get this error after I C-u M-x chess REt ics
RET:
Debugger entered--Lisp error: (error "Unknown host
\"irc.openprojects.net\"")
make-network-process(:name "*chess-irc*" :buffer #<buffer *chess-irc*<2>>
:host "irc.openprojects.net" :service 6667)
open-network-stream("*chess-irc*" #<buffer *chess-irc*<2>>
"irc.openprojects.net" 6667)
(setq chess-irc-engine engine proc (open-network-stream "*chess-irc*"
(current-buffer) chess-irc-server chess-irc-port))
(save-current-buffer (set-buffer (generate-new-buffer " *chess-irc*"))
(setq chess-irc-engine engine proc (open-network-stream "*chess-irc*" ...
chess-irc-server chess-irc-port)) (chess-message (quote irc-logging-in)
chess-irc-nick) (when (and proc ... ...) (process-send-string proc ...)
(process-send-string proc ...) (set-process-filter proc ...)
(set-process-buffer proc ...) (set-marker ... ...) (chess-message ...)))
(with-current-buffer (generate-new-buffer " *chess-irc*") (setq
chess-irc-engine engine proc (open-network-stream "*chess-irc*" ...
chess-irc-server chess-irc-port)) (chess-message (quote irc-logging-in)
chess-irc-nick) (when (and proc ... ...) (process-send-string proc ...)
(process-send-string proc ...) (set-process-filter proc ...)
(set-process-buffer proc ...) (set-marker ... ...) (chess-message ...)))
(let ((engine ...) proc) (with-current-buffer (generate-new-buffer "
*chess-irc*") (setq chess-irc-engine engine proc ...) (chess-message ...
chess-irc-nick) (when ... ... ... ... ... ... ...)) (setq chess-irc-process
proc))
(cond ((eq event ...) (chess-message ... chess-irc-server chess-irc-port)
(let ... ... ...) t) ((eq event ...) (setq chess-irc-opponent ...)
(chess-network-handler ... chess-irc-opponent)) ((eq event ...)
(chess-engine-send nil "quit") (process-send-string chess-irc-process "QUIT
:Goodbye\n") (kill-buffer ...)) ((eq event ...) (process-send-string
chess-irc-process ...)) (t (apply ... game event args)))
(if chess-engine-handling-event nil (cond (... ... ... t) (... ... ...)
(... ... ... ...) (... ...) (t ...)))
++++ a whole load more!
My .emacs chess.el code is a mess but it does let me play chess against
GNUchess or Crafty engines (& displays the board/pieces-see my earlier post
for help with this!). I also still need to get chess-puzzle mode working.
Here is my chess .emacs code:
;;;;=========
;;;Play CHESS with chess.el module-load directories & files:
(add-to-list 'load-path "C:\\Users\\Dad\\Emacs\\chess")
(add-to-list 'load-path "C:\\Users\\Dad\\Emacs")
(add-to-list 'load-path "C:\\Users\\Dad\\Emacs\\xboard .xpm pieces size
grouped\\xboard pieces size29 emacs")
(add-to-list 'load-path "C:\\Users\\Dad\\Emacs\\xboard-4.2.7\\pixmaps")
(add-to-list 'load-path "C:\\Users\\Dad\\Emacs\\1001bwtc.pgn")
(add-to-list 'load-path "C:\\Users\\Dad\\Emacs\\pieces small")
(autoload 'chess "C:\\Users\\Dad\\Emacs\\chess\\chess.el" "Play a game of
chess" t)
(autoload 'chess-puzzle "C:\\Users\\Dad\\Emacs\\chess\\chess-puzzle.el"
"Pick a random puzzle from FILE, and solve it against the default engine."
t)
(autoload 'chess-ics "C:\\Users\\Dad\\Emacs\\chess\\chess-ics.el" "Connect
to an Internet Chess Server." t)
(autoload 'chess-images "C:\\Users\\Dad\\Emacs\\chess" "chess-images." t)
;;(require 'chess-puzzle)
;========
;;;;=========================================
;;; From EmacsWikiChess.el:
;;;The chess.el project also contains an unrelated implementation of ICS
communication,
;;;called chess-ics.el. To startup chess.el against a ICS server, use C-u
M-x chess RET ics RET
;============================
;;;;============================
;;From Lennart Bergmann Nabble/Gnuforum reply to my help chess.el error
chess-create error in Emacs
;suggest M-:(require 'cl)- I try this in .emacs file & it works (it is
needed)!
(require 'cl)
;===============================================
;;;;==============================================
;;;Code to set chess engine & display parameters-this is needed!
(setq
;;chess-images-default-size 40
;;chess-ics-server-list '(("freechess.org" 5000 "themoveR"))
chess-default-engine 'chess-gnuchess
;;chess-default-engine 'chess-Numpty_0.4pr
chess-images-separate-frame nil)
;;chess-images-highlight-color "blue"
;;chess-display-highlight)
;; chess-display-popup nil)
;; chess-display-highlight-legal nil)
;===================
;;;;=====================================================
;;;Some code I tried but didn't work -but I have left here for some reason!
;;(setq
;;chess-default-display
;;)
;;(custom-set-variables
;;'(chess-images-directory
"C:\\Users\\Dad\\xboard-redmarble\\xboard\\alpha\\redmarble"))
;======================================
;;;;=================================
;;;;Code from somewhere that seems to work & is needed to display board &
pieces & use sounds!
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(chess-ics-server-list ("freechess.org" 5000 "themoveR"))
'(chess-images-directory "C:\\Users\\Dad\\Emacs\\xboard .xpm pieces size
grouped\\xboard pieces size29 emacs")
'(chess-sound-directory "C:\\Users\\Dad\\Emacs\\sounds\\sounds"))
;;'chess-ics-server-list ("freechess.org" 5000 "themoveR")
;;'chess-puzzle-directory ("C:\\Users\\Dad\\Emacs\\chess\\1001bwtc.pgn")
;;;;======================
;;;From Ed O'Connor .emacs-I have not tried this code!
;;;(when (locate-library "chess-auto")
;;;(load-library "chess-auto"))
;=================
;;;;===============================
;;;Code from Mario Lang .emacs (I have tried this code but unsuccessfully):
;;(setq chess-sound-directory (concat chessdir "/sounds"))))
;;(setq
;;chess-ics-server-list '("freechess.org" 5000 "themoveR"))
;======================
I am most grateful if anyone can help me further with getting this emacs
chess.el module configured more fully. I look forward to some help, thanks
--
View this message in context: http://www.nabble.com/Emacs-chess.el-help-again-to-connect-to-FICS-tp24662344p24662344.html
Sent from the Emacs - Help mailing list archive at Nabble.com.
next reply other threads:[~2009-07-25 22:38 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-25 22:38 rpd [this message]
2009-07-26 14:40 ` Emacs chess.el help again to connect to FICS rpd
2009-07-26 17:37 ` Emacs chess.el help again to use chess-puzzle mode rpd
[not found] ` <mailman.3172.1248629837.2239.help-gnu-emacs@gnu.org>
2009-07-26 20:19 ` Helmut Eller
2009-07-26 21:01 ` rpd
[not found] ` <mailman.3194.1248642134.2239.help-gnu-emacs@gnu.org>
2009-07-26 21:38 ` Helmut Eller
2009-07-26 22:13 ` rpd
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=24662344.post@talk.nabble.com \
--to=richard@dickinson350.freeserve.co.uk \
--cc=Help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).