Skip to content
Programmable pseudo AI KAWARI 8 on JavaScript
Makefile
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
kawari @ dca9500
.bzrignore
.gitmodules
.npmignore
Makefile
Readme.md
bower.json
gcc.mak.patch
kawari.js
package.json

Readme.md

kawari.js

Programmable pseudo AI KAWARI 8 on JavaScript

Original SHIORI module

KAWARI by KAWARI Development Team

Caution: This module is maintained by Narazaka and not officially supported by KAWARI Development Team. Do not report bugs or something that is caused by kawari.js to KAWARI Development Team.

Installation

bower install kawari.js

or download zip archive and get kawari.js

Usage

This module has only low level API, that is provided by emscripten.

So use the wrapper module, nativeshiori, and do like below.

<script src="encoding.min.js"></script>
<script src="nativeshiori.js"></script>
<script src="kawari.js"></script>
<script>

var kawarirc_str = 'System.Callback.OnGET: test\r\n';
var kawarirc = Encoding.convert(Encoding.stringToCode(kawarirc_str), 'SJIS', 'UNICODE');
var storage = {
  'kawarirc.kis': new Uint8Array(kawarirc) // filename: ArrayBufferView
};

// Shiori instance and optional storage (/path/to/ghost/master/*)
var nativeshiori = new NativeShiori(new Kawari(), storage);

// write files in storage to FS then load() if storage exists, else load()
var load_code = nativeshiori.load('/path/to/ghost/master'); 

// request()
var response = nativeshiori.request('GET SHIORI/3.0\r\nCharset: Shift_JIS\r\nID: OnBoot\r\n\r\n');

// unload()
var unload_code = nativeshiori.unload();

</script>

Build

make -R

LICENSE

(C) 2014 Narazaka : Licensed under The BSD 3-Clause License

Something went wrong with that request. Please try again.