CognitiveSystems/Project

HomePage | CognitiveSystems | RecentChanges | Preferences

CSE494 | Cognitive Systems and Intelligent Agents | Spring 2007 Class Project

First, read the instructions: http://icaria.dhcp.asu.edu/cogsys/project.html

NOTE: The instructions have changed, the info below may not be relevant.

Install clisp

Download clisp-2.39-win32-with-readline-and-gettext.zip from http://sourceforge.net/project/showfiles.php?group_id=1355

(Scroll down and expand the "2.39" section. I chose this one because it had the most downloads... I imagine clisp-2.39-win32-mingw-no-readline.zip would also work.)

Unzip this file to c:\ so that you have a c:\clisp-2.39 directory.

Optional: add c:\clisp-2.39 to your PATH environment variable so that 'clisp' will Just Work at a command prompt.

Install clocc

Download clocc-02-05-07.tzg from here: http://clocc.sourceforge.net/snapshot/

Unzip and extract this file to c:\gnu so that you have a c:\gnu\clocc directory.

Open a command window and navigate to the c:\gnu\clocc directory.

Read the c:\gnu\clocc\INSTALL document

Type 'clisp' to get a lisp prompt. (If you did not add it to PATH, then supply the full path: c:\clisp-2.39\clisp )

Paste or type the lisp commands in Section 4 of the INSTALL document.

(One per line, press enter after each command -- see below for example output.)

Install 7-Zip

Optional if you already have something that understands .rar files

Download and install 7z442.exe from here: http://www.7-zip.org/

Wikipedia page on RAR format: http://en.wikipedia.org/wiki/RAR

Install newdriving

Download the NewDriving.rar file.

Right-click on NewDriving.rar, choose 7-Zip -> Extract -> type c:\newdriving

You must supply the directory name, this archive does not contain a top-level 'newdriving' directory.

(Attempting to open the archive and then extract it did not work.)

Start the Torque Game Engine

Navigate to the c:\newdriving\ directory and execute run.bat

Enter a player name, and choose 'city-small' from the list.

Click the 'Launch Mission!' button

Once it has started, it "takes over" the keyboard. Use alt-tab to switch to another window. Use alt-f4 to close it.

Press tab to switch to a wider/third-party view.

Check the lisp window that should have opened along with the game. If you see:

*** - nonexistent directory: #P"C:\\Torque\\SDK\\example\\driving\\"
The following restarts are available:
SKIP           :R1      skip (COMPILE-FILE C:/Torque/SDK/example/driving/inter.lisp)

then type "SKIP" (and press enter):

Break 1 [5]> SKIP
;;  Loading file E:\newdriving\driving\inter.fas ...
;;  Loaded file E:\newdriving\driving\inter.fas
The only legal settings are on and off.
The only legal settings are on and off.
The only legal settings are on and off.
;; Loaded file gak.l

Alternately, you can "fix" this permanently by copying c:/newdriving/driving to c:/Torque/SDK/example so that it can find the file it wants.

Use the Torque Game Engine

Try typing (*gas 10) in the lisp window, then switch back to the Torque Game Engine window and "steer" with the mouse.

Pressing letters such as 's' and 'v' also seem to have some effect.

[#clocc-compile]

Output from compiling clocc


C:\gnu\clocc>clisp
  i i i i i i i       ooooo    o        ooooooo   ooooo   ooooo
  I I I I I I I      8     8   8           8     8     o  8    8
  I  \ `+' /  I      8         8           8     8        8    8
   \  `-+-'  /       8         8           8      ooooo   8oooo
    `-__|__-'        8         8           8           8  8
        |            8     o   8           8     o     8  8
  ------+------       ooooo    8oooooo  ooo8ooo   ooooo   8

Copyright (c) Bruno Haible, Michael Stoll 1992, 1993
Copyright (c) Bruno Haible, Marcus Daniels 1994-1997
Copyright (c) Bruno Haible, Pierpaolo Bernardi, Sam Steingold 1998
Copyright (c) Bruno Haible, Sam Steingold 1999-2000
Copyright (c) Sam Steingold, Bruno Haible 2001-2006

[1]> (in-package :cl-user)
#<PACKAGE COMMON-LISP-USER>
[2]> (setq *clocc-root* "c:/gnu/clocc/")
"c:/gnu/clocc/"
[3]> (compile-file (concatenate 'string *clocc-root* "clocc"))
;; Compiling file C:\gnu\clocc\clocc.lisp ...
;; Wrote file C:\gnu\clocc\clocc.fas
0 errors, 0 warnings
#P"C:\\gnu\\clocc\\clocc.fas" ;
NIL ;
NIL
[4]> (load *)
;; Loading file C:\gnu\clocc\clocc.fas ...
;; Loaded file C:\gnu\clocc\clocc.fas
T
[5]> (compile-file (translate-logical-pathname "clocc:src;defsystem;defsystem"))

;; Compiling file C:\gnu\clocc\src\defsystem-3.x\defsystem.lisp ...
WARNING in RUN-SHELL-COMMAND in lines 4569..4623 :
variable OUTPUT is not used.
Misspelled or missing IGNORE declaration?
;; Wrote file C:\gnu\clocc\src\defsystem-3.x\defsystem.fas
0 errors, 1 warning
#P"C:\\gnu\\clocc\\src\\defsystem-3.x\\defsystem.fas" ;
1 ;
NIL
[6]> (load *)
;; Loading file C:\gnu\clocc\src\defsystem-3.x\defsystem.fas ...
;; Loaded file C:\gnu\clocc\src\defsystem-3.x\defsystem.fas
T
[7]> (dolist (l '("clocc:src;port;" "clocc:src;cllib;" "clocc:src;ext;queues;"
 "clocc:src;port;configuration;" "clocc:src;port;environment;"              "clo
cc:src;ext;union-find;" "clocc:src;tools;metering;"             "clocc:src;f2cl;
" "clocc:src;f2cl;packages;"))  (mk:add-registry-location (translate-logical-pat
hname l)))
NIL
[8]> (mk:oos "cllib" :compile)

... output not shown... 

[9]> (mk:oos "f2cl" :compile)

... output not shown ...

[10]> (quit)
Bye.

c:\gnu\clocc>

[#skip-error]

Getting past the initial error

If you see this error, type SKIP and press enter.

  i i i i i i i       ooooo    o        ooooooo   ooooo   ooooo
  I I I I I I I      8     8   8           8     8     o  8    8
  I  \ `+' /  I      8         8           8     8        8    8
   \  `-+-'  /       8         8           8      ooooo   8oooo
    `-__|__-'        8         8           8           8  8
        |            8     o   8           8     o     8  8
  ------+------       ooooo    8oooooo  ooo8ooo   ooooo   8

Copyright (c) Bruno Haible, Michael Stoll 1992, 1993
Copyright (c) Bruno Haible, Marcus Daniels 1994-1997
Copyright (c) Bruno Haible, Pierpaolo Bernardi, Sam Steingold 1998
Copyright (c) Bruno Haible, Sam Steingold 1999-2000
Copyright (c) Sam Steingold, Bruno Haible 2001-2006

;; Loading file gak.l ...
;;  Loading file E:\newdriving\driving\load.lisp ...
;;   Loading file C:\gnu\clocc\clocc.fas ...
;;   Loaded file C:\gnu\clocc\clocc.fas
;;   Loading file C:\gnu\clocc\src\cllib\base.fas ...
;;    Loading file C:\gnu\clocc\src\port\ext.fas ...
;;    Loaded file C:\gnu\clocc\src\port\ext.fas
;;    Loading file C:\gnu\clocc\src\port\sys.fas ...
;;     Loading file C:\gnu\clocc\src\port\path.fas ...
;;     Loaded file C:\gnu\clocc\src\port\path.fas
;;    Loaded file C:\gnu\clocc\src\port\sys.fas
;;   Loaded file C:\gnu\clocc\src\cllib\base.fas
;;   Loading file C:\gnu\clocc\src\port\net.fas ...
;;   Loaded file C:\gnu\clocc\src\port\net.fas
;;  Loaded file E:\newdriving\driving\load.lisp
;;  Loading file E:\newdriving\driving\icarus.lisp ...
;;  Loaded file E:\newdriving\driving\icarus.lisp
*** - nonexistent directory: #P"C:\\Torque\\SDK\\example\\driving\\"
The following restarts are available:
SKIP           :R1      skip (COMPILE-FILE C:/Torque/SDK/example/driving/inter.l
isp)
STOP           :R2      stop loading file E:\newdriving\driving\gak.l
ABORT          :R3      ABORT
ABORT          :R4      ABORT
ABORT          :R5      ABORT
ABORT          :R6      ABORT
Break 1 [5]> SKIP
;;  Loading file E:\newdriving\driving\inter.fas ...
;;  Loaded file E:\newdriving\driving\inter.fas
The only legal settings are on and off.
The only legal settings are on and off.
The only legal settings are on and off.
;; Loaded file gak.l
[1]>


HomePage | CognitiveSystems | RecentChanges | Preferences
This page is read-only | View other revisions
Last edited April 4, 2007 7:38 pm by ip68-110-100-131.ph.ph.cox.net (diff)
Search: