A downloadable lisp map editor

Download NowName your own price

NicCLIM is a map editor application made with Common Lisp Interface Manager!

NicCLIM map editor general user interface

A window with two large panes on the left and right, and five small panes across the bottom. The left window starts with "Command: " and the right side shows a grid of outlined boxes, the current state of the map. The five lower panes have a lot of whitespace, but they show x=, y=, cur=, cur1=, cur2=.

It's a prototype! A text file (well, sexp file) is loaded and sits in the top right. Menus or hotkeys are used to modify the grid, commands being written on the left.

Starting that

As well as the map editor, there are some functions for creating, modifying and extracting rectangles from files.

NicCLIM map text file tools

A 2x2 region of a larger text file is replaced by a smaller (2x2) text file (in emacs).

Instructions

1. Download nicclim.lisp from here.

2. Have lisp / emacs / slime / eev set up like my introduction here

3. Install quicklisp from https://quicklisp.org

4. In nicclim.lisp tap F8 (eev-mode) on these lines at the top of the file:

#|
;; emacs eepitch lines.
• (setq inferior-lisp-program "ecl")
• (slime)
• (setq eepitch-buffer-name "*slime-repl ECL*")
(ql:quickload :McCLIM)
(in-package :clim-user)
(compile-file "~/Downloads/nicclim.lisp" :load t)
;; Trying it.  
(nic:rect-file "test.txt" 3 8 '(te st))  
"test.txt"  
(nic:cat *)  
(nic:horizontal-cat ** ** "hcat.txt")  
(nic:cat "hcat.txt")  
(nic:enclose-map "hcat.txt")
|#

Making a file, and horizontally catting it.

nicclim example from nicclim.lisp pt 1

The right half of the buffer is nicclim.lisp; the left half is an 8 row, 3 column rectangle repeating (TE ST) followed by an 8 row, 6 column rectangle of the same.

Opening it in the editor and inserting a ! somewhere

Nicclim.lisp example useage pt 2

In the NicCLIM GUI, the cur1 was set to !, then the user went j j l l and inserted a cursor.

Overwriting the file

nicclim.lisp example pt the third

After closing the gui, the file is printed and the user is asked if they want to overwrite the file with the changed version.

Help

You can reach out here butthe mastodon is probably better.

Both to seek help and to offer it!

Download

Download NowName your own price

Click download now to get access to the following files:

nicclim.lisp 21 kB