Skip to content

Instantly share code, notes, and snippets.

@dolpen
Last active February 8, 2016 18:59
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dolpen/e80b99c22d9984109060 to your computer and use it in GitHub Desktop.
Save dolpen/e80b99c22d9984109060 to your computer and use it in GitHub Desktop.
裏イカ研究所

イカの情報をなんとかしてゲーム外から参照したい

  • イカの情報は、公式サイトへの情報反映用に一部がS3にjson形式で置いてあって、人間ががんばれば読めるようになっている
  • S3のベースURLは http://s3-ap-northeast-1.amazonaws.com/splatoon-data.nintendo.net/ である

現在分かっているもの

以下について、現ターム(4時間のアレ)と過去2ターム前までの情報が参照可能

  • そのタームのレギュラーバトルのステージ
  • そのタームでのチョーシランキング
  {
    "type": "array",
    "description": "ターム情報の配列、前から現在、1ターム前、2ターム前",
    "items": {
      "description": "ターム情報のroot要素",
      "type": "object",
      "properties": {
        "datetime_term_begin": {
          "type": "string",
          "description": "タームの開始時刻 yyyy-MM-dd hh:mm"
        },
        "datetime_term_end": {
          "type": "string",
          "description": "タームの終了時刻 yyyy-MM-dd hh:mm"
        },
        "stages": {
          "type": "array",
          "description": "ステージ情報",
          "properties": {
            "id": {
              "type": "string",
              "description": "画像情報などを取るための識別子"
            },
            "name": {
              "type": "string",
              "description": "ステージ名"
            }
          }
        },
        "ranking": {
          "type": "array",
          "description": "チョーシランキング情報。前から順に1位から10位まで",
          "properties": {
            "mii_name": {
              "type": "string",
              "description": "Miiアカウントの名前(not スクリーン名)"
            },
            "weapon_id": {
              "type": "string",
              "description": "画像情報などを取るための識別子(ブキ、1位から3位まで)"
            },
            "gear_shoes_id": {
              "type": "string",
              "description": "画像情報などを取るための識別子(クツ、1位から3位まで)"
            },
            "gear_clothes_id": {
              "type": "string",
              "description": "画像情報などを取るための識別子(フク、1位から3位まで)"
            },
            "gear_head_id": {
              "type": "string",
              "description": "画像情報などを取るための識別子(アタマ、1位から3位まで)"
            }
          }
        }
      }
    }
  }

直近のフェスの内容について参照できる

  {
    "description": "root要素",
    "type": "object",
    "properties": {
      "fes_state": {
        "type": "number",
        "description": "開催状態。-1は非開催、0は告知済み開催前、1は開催中"
      },
      "fes_stages": {
        "type": "array",
        "description": "ステージ情報。開催中にしか参照できない",
        "properties": {
          "id": {
            "type": "string",
            "description": "画像情報などを取るための識別子"
          },
          "name": {
            "type": "string",
            "description": "ステージ名"
          }
        }
      },
      "fes_id": {
        "type": "string",
        "description": "画像情報などを取るための識別子(お題画像。パンvsごはんとか)"
      },
      "datetime_fes_begin": {
        "type": "string",
        "description": "フェスの開始時刻 yyyy-MM-dd hh:mm"
      },
      "datetime_fes_end": {
        "type": "string",
        "description": "フェスの開始時刻 yyyy-MM-dd hh:mm"
      },
      "team_alpha_name": {
        "type": "string",
        "description": "アオリちゃん側の選択肢(例:ごはん)"
      },
      "team_bravo_name": {
        "type": "string",
        "description": "ホタルちゃん側の選択肢(例:パン)"
      }
    }
  }

直近のフェスの結果について参照できる。シンプル フェス集計終了から、次回フェスの告知前まで参照可能

  {
    "description": "root要素",
    "type": "object",
    "properties": {
      "win_team_name" : {
        "type": "string",
        "description": "勝利したチーム名(例:ごはん)ここからではどっち派が勝ったのかは分からない"
      }
    }
  }
@dolpen
Copy link
Author

dolpen commented Jul 21, 2015

Hubotハイカラニュース、移しました https://gist.github.com/dolpen/04b41397e28e69447621

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment