正月頃にマイミクが一名いきなり消えた。ちょとショックで他のことやろうと Second Life に参加してみた。 Second Life は仮想世界で生活し、その中で自ら 3D オブジェクトを作りそれをスクリプト(LSL)で拡張でき更にそれを売買できるというクリエーターにとって非常に面白いシステムだ。もちろん俺も興味たっぷり。
LSL は Second Life 上のエディタで編集、コンパイル、実行されるのだがコーディングは外部のエディタ+lslint という構文チェッカで行う人も多いらしく、各種エディタでそのスクリプト編集モードが用意されている。Emacs も例に漏れずあることはあるのだが色づけとインデント機能程度(しかも完璧ではない)しかない。それでは LSL の学習がはかどらないと思われるのでカスタマイズしてみた。 http://forums.secondlife.com/showthread.php?p=886077#post886077
#!/bin/perl #----------------------------------------------------------------------------- # Title : ptkbiff # Project : Biff #----------------------------------------------------------------------------- # File : ptkbiff.pl # Author : Tatsuro Satoh # Created : 10.02.2007 # Last modified : 10.02.2007 #----------------------------------------------------------------------------- # Description : # # Animation activated by signal # # HUP(kill -1) activates normal animation(default) # INT(kill -2) activates alart animation # # You have to put configuration file ptkbiff.conf into the same # directory of this script. # # This scripts PID is saved at /var/tmp/ptkbiff.${USER} # #----------------------------------------------------------------------------- # License : # This script file is distributed under BSD licese. # http://www.opensource.org/licenses/bsd-license.php #----------------------------------------------------------------------------- # Copyright (c) 2007 by Tatsuro Satoh #----------------------------------------------------------------------------- # Modification history : # 10.02.2007 : add clear #-----------------------------------------------------------------------------