robocup2flashでゲームログをFLASHに変換する入手方法RoboLogのプロジェクトページからLinuxバイナリをダウンロードしてくる。 http://sourceforge.net/projects/robolog/ robocup2flash-i386.tar.gz というファイルを落としてくれば良い。 ソースも公開されているが、コンパイルには Macromedia Flash 5 File Format (SWF) SDK というライブラリが必要になる。現在はこれが非公開であるため、ライブラリのコピーを持っていなければビルドできなくなってしまっているらしい。 使用方法$ robocup2flash [options] <logfile> [<swffile>] オプションプログラムに引数を与えずに起動すると使用方法が表示される。 $ robocup2flash robocup2flash by Thilo Girmann ( thilo@robolog.org ), version 0.3 This program converts Robocup log files to Macromedia Flash (SWF) files. Copy policy: GPL-2 (see www.gnu.org). Use at your own risk, no warranty of any kind is given. Usage: robocup2flash [options] <logfile> [<swffile>] <logfile> must be a version 3 log file generated by the Robocup Soccer Server. <swffile> is the output file's name. If missing its name will be <logfile>.swf options: --nohead deactivates head direction display. --frames 12 34 limits conversion to frames 12 (inclusive) thru 34 (exclusive) --nomoveopt turns off movement optimization (debugging opt, no real use) --chunkids dumps log file chunk IDs to console (skipping messages) --10cycles updates frame counter each 10 frames (default: each frame) --label "foo" 8 creates a button which jumps to frame 8 (can be repeated) --goallabels 80 creates a label 80 frames before goal kicks (incl. attempts) --autolabels 80 creates a label each 80 frames even if there's no special need
使用例というわけで、通常はこんな感じで良いだろうか? $ robocup2flash --goallabels 80 rcssserver.rcg 出力ファイル名を省略すると、拡張子swfが追加されたファイルが生成される。上の例だと、 rcssserver.rcg.swf というファイルが出来る。 残念ながら圧縮ファイルの読み込みはサポートされていない。標準入力も受け付けてくれないので、圧縮状態のログファイルはいちいち解凍しなければならない。まあこの辺は適当なスクリプトを書けば解決する問題なのでどうとでもなるでしょう。 |