fortnite-replay-analysis 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +56 -1
- package/package.json +5 -1
package/README.md
CHANGED
|
@@ -1 +1,56 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Fortnite Replay Analysis
|
|
2
|
+
|
|
3
|
+
Fortniteの `.replay` ファイルを解析して、試合中のプレイヤー情報やパーティごとの統計データを取得できるNode.jsモジュールです。
|
|
4
|
+
|
|
5
|
+
## 特徴
|
|
6
|
+
|
|
7
|
+
* クロスプラットフォーム対応(Windows / Linux)
|
|
8
|
+
* .NET製CLIバイナリとNode.jsで連携
|
|
9
|
+
* Decimal.jsで高精度な生存時間計算
|
|
10
|
+
* スコア集計、C6S3公式準拠の並び替え機能付き
|
|
11
|
+
|
|
12
|
+
## インストール
|
|
13
|
+
|
|
14
|
+
```bash
|
|
15
|
+
npm install fortnite-replay-analysis
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## 使用例
|
|
19
|
+
|
|
20
|
+
```js
|
|
21
|
+
const { ReplayAnalysis, sortScores, mergeScores } = require('fortnite-replay-analysis');
|
|
22
|
+
|
|
23
|
+
// リプレイファイルのパスを指定して解析
|
|
24
|
+
ReplayAnalysis('./match1.replay').then(({ processedPlayerInfo }) => {
|
|
25
|
+
console.log(processedPlayerInfo);
|
|
26
|
+
});
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## 関数一覧
|
|
30
|
+
|
|
31
|
+
### `ReplayAnalysis(replayFilePath: string, options?: { bot?: boolean, sort?: boolean }): Promise<{ rawPlayerData, processedPlayerInfo }>`
|
|
32
|
+
|
|
33
|
+
* `.replay` ファイルを解析して、プレイヤーごとの詳細情報を取得
|
|
34
|
+
* `bot`: Botプレイヤーを含めるかどうか(デフォルト: `false`)
|
|
35
|
+
* `sort`: 順位でソートするか(デフォルト: `true`)
|
|
36
|
+
|
|
37
|
+
### `mergeScores(scoreArrays: ProcessedMatch[][]): MergedPartyResult[]`
|
|
38
|
+
|
|
39
|
+
* 複数のマッチを統合してパーティ単位の統計を作成
|
|
40
|
+
|
|
41
|
+
### `sortScores(partyResults: MergedPartyResult[]): MergedPartyResult[]`
|
|
42
|
+
|
|
43
|
+
* Fortnite公式基準でスコア順にソート(スコア → VictoryRoyale数 → 平均キル → 平均順位 → 生存時間)
|
|
44
|
+
|
|
45
|
+
## 開発者向け
|
|
46
|
+
|
|
47
|
+
* このパッケージは自己完結型の.NETバイナリを含みます(OSにより異なる)
|
|
48
|
+
* 実行にはNode.js v22以上を推奨
|
|
49
|
+
|
|
50
|
+
## ライセンス
|
|
51
|
+
|
|
52
|
+
MIT License
|
|
53
|
+
|
|
54
|
+
## リポジトリ
|
|
55
|
+
|
|
56
|
+
[https://github.com/yuyutti/Fortnite_Replay_Analysis](https://github.com/yuyutti/Fortnite_Replay_Analysis)
|
package/package.json
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fortnite-replay-analysis",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "Fortniteのリプレイ解析をNode.jsから呼べる自己完結型C#バイナリラッパー",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "https://github.com/yuyutti/Fortnite_Replay_Analysis"
|
|
8
|
+
},
|
|
5
9
|
"main": "index.js",
|
|
6
10
|
"scripts": {
|
|
7
11
|
"test": "node test.js"
|