Git Product home page Git Product logo

nekotaku's Introduction

ねこ卓 (NekoTaku)

Build Status Coverage Status Dependencies DevDependencies

モバイルフレンドリーなオンラインセッション支援ツール

できること / Features

  • チャット
    • ダイスロール
      • どどんとふ互換
      • アニメーション表示(一部のみ対応)
    • チャットパレット
    • 立ち絵表示
  • キャラクター管理
  • マップ管理
    • グリッド
    • 背景画像
    • キャラクターコマ
    • 図形描画

スクリーンショット / Screen Shots

ss01.png ss02.png ss03.png ss04.png

素材 / Thanks

サンプルキャラクター画像はどぉるキャラメイカー様で作成しました。

更新履歴 / Changelog

CHANGELOG.md

All notable changes to this project will be documented in CHANGELOG.md. This project adheres to Semantic Versioning.

使い方 / How to Use

A. お試しサーバー / Trial Server

https://nekotaku.nekometer.info

B. UIプレビュー(データ保存・共有なし) / UI Preview (Without data saving and sharering)

  1. Requirements:
  • Node.js >= 6.11.3
  1. Install dependencies.
$ npm install
  1. Configure.
$ cp config/config.stub.json config/config.json
  1. Start dev-server.
$ npm start
  1. Open http://localhost:8080 with your browser.

C. Firebase

  1. Requirements:
  • Node.js >= 6.11.3
  1. Setup your Firebase project.
  2. Install dependencies.
$ npm install
  1. Configure.
$ cp config/config.firebase.json config/config.json
$ vi config/config.json
# Write your Firbase API tokens and save.
  1. Build. (or run locally to follow B-4, B-5)
$ NODE_ENV=production npm run build
  1. Deploy <your-nekotaku-directory>/dist into your server.

D. Standalone Server with MongoDB

  1. Requirements:
  • Node.js >= 6.11.3
  • MongoDB
  1. Install dependencies.
$ npm install
  1. Configure client.
$ cp config/config.server.json config/config.json
  1. Configure server.
$ cp config/server.mongodb.json config/server.json
$ vi config/server.json
# Edit config
  1. Build.
$ NODE_ENV=production npm run build
  1. Run.
$ node index.js

E. Docker

$ docker run -d --name nekotaku-db mongo
$ docker run -d --name nekotaku -p 8080:8080 --link nekotaku-db:db nekometer/nekotaku

F. Docker Compose

  1. Build Docker Image.
$ docker-compose build
  1. Run.
$ docker-compose up

設定 / Configuration

config/config.json

{
  "backend": { // Required
    "type": "stub", // "stub" or "firebase" or "socket"

    // Firebase Configuration
    "apiKey": "Your API Key",
    "authDomain": "Your Auth Domain",
    "databaseURL": "Your Database URL",
    "projectId": "Your Project Id",
    "storageBucket": "Your Storage Bucket",
    "messagingSenderId": "Your Messaging Sender Id"
  },
  "welcomeMessage": { // Optional
    "id": "201709130610", // Update to new id to visible message again
    "title": "「ねこ卓」へようこそ",
    "body": [
      "ご意見・ご要望・バグ報告歓迎です。詳細はメニューの「フィードバック」を御覧ください"
    ],
    "forceVisible": false
  },
  "feedbackFormURL": "http://url.to.your.form",
  "theme": { // Optional
    "primary": "blue.darken2", // or hex color code "#FF0000"
    "secondary": "grey.darken3",
    "accent": "blue.accent1",
    "error": "red.accent2",
    "info": "blue.base",
    "success": "green.base",
    "warning": "amber.base"
  },
  "googleAnalytics": { // Optional
    "id": "GOOGLE_ANALYTICS_ID"
  },
  "title": "ねこ卓" // Optional
}

config/server.json

{
  "datastore": { // Required
    "type": "mongodb",

    "url": "mongodb://localhost:27017/nekotaku"
  },
  "http": { // Required
    "host": "0.0.0.0",
    "port": 8080
  },
  "file": { // Required
    "path": "./data/files",
    "maxSize": "10MB"
  },
  "loglevel": "INFO" // Required
}

nekotaku's People

Contributors

daicyan avatar dependabot[bot] avatar esnya avatar raa0121 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

nekotaku's Issues

マップ上でキャラクター情報が表示されない

v1.7.0で追加されたはずのマップ上でのキャラクター情報が表示されない

確認日時: 2019年1月20日9時45分ごろ
ねこ卓お試し鯖、どどんとふ公式鯖にて確認
(2019年1月19日23時ごろのどどんとふ公式鯖では表示されてたように思えるのですが、記憶違いかもしれません)
Windows10+Chromeを使用

卓作成時パスワード欄入力後欄内削除して卓を作成すると問題発生

「卓作成」画面でパスワード欄に1文字でも入力後、欄内全削除を行い卓を作成すると
卓に推移せず新規卓ができ、当該卓に入室しようとするとパスワードが要求され、
空白でも入室できない。

PC(Chrome)にて現象を確認。
個人構築サーバ・最新版(firebase)とねこ卓お試しサーバーにて検証。
とどんとふ公式鯖では正常動作を確認。

パスワード付きの卓に参加できない

現象

  • パスワード付きの卓を新規作成すると卓に遷移しない
  • パスワード付きの卓に参加の際に、パスワードを入力してもパスワードを要求する画面に遷移して、卓に入れない
  • パスワード無しの部屋を新規作成して、卓に参加した後にパスワードを設定し一度卓から出た場合も、パスワードを入力しても卓に入れない

確認環境

チャットパレットからダイスロールができない

個人構築サーバ・最新版(firebase)とねこ卓お試しサーバーにて検証。
PC,Android(ともにChrome)から確認を行ったが動作せず。
とどんとふ公式鯖では正常動作を確認。
なお、通常チャットに関してはチャットパレットからも発言可能でした。

立ち絵がなくなる

時々起きる。条件不明。タブを切り替えて戻ってくると出てたりする。

ダイス未指定のときに卓参加後1回目の発言が送信されない

現象

  • 卓作成時に、「ダイスの種類」を未指定で作成したときに、チャットの発言が1回目だけ送信できない
  • 2回目以降は問題なく送信される。
  • 新しいウィンドウで開いたときや、一度卓から出て卓に参加したときにも、1回目のチャットが送信されない。
  • ブラウザのコンソールに以下のように表示される。
    image
  • ダイスの種類を指定すると正常に送信できる。

確認環境

確認日時: 2019年1月20日 9時ごろ
ねこ卓お試し鯖、どどんとふ公式鯖にて確認
クライアント: Windows10+Chrome、iOS12+Safariにて確認

1.9.1に更新後、nekotaku-toolsでupdatedAtが取得できなくなった

1.8.0まではnekotaklu-toolsからListRoomsで取得できていたjsonから、updateAtが消えています。部屋の定期削除で使用していましたが、設計上の制約や仕様変更であれば別の方法を検討します。

{
"_id": "5c5ecc2cf5370d2f54b4abfd",
"title": "公式鯖管理人のテスト部屋",
"dice": "StellarKnights",
"characterAttributes": [
"HP",
"SP",
"MP",
"SAN"
],
"password": null,
"roomId": "5c5ecc2cf5370d2f54b4abfd",
"channels": [
"メイン",
"サブ",
"おまけ",
"雑談",
"見学用",
"階層1",
"階層2",
"階層3",
"階層4",
"階層5",
"階層6",
"階層7",
"階層8",
"階層9",
"階層10",
"階層11"
],
"createdAt": 1549716667019,
"id": "5c5ecc2cf5370d2f54b4abfd"
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.