Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(serve): WIP detect inconsistent random usage #1258

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

xnv
Copy link
Member

@xnv xnv commented Jul 26, 2023

DO NOT MERGE: 作業中です。マージしないでください。

概要

複数インスタンス間での乱数生成系列のずれを検出する仕組みを追加します。

  • クライアント・サーバ両インスタンスの g.game.randomProxy を差し込み、呼び出しログを記録
  • g.game.tick を奪って呼び出しログやエンティティの生成数情報を毎フレームサーバ側に送信。
  • サーバインスタンスの記録を正として照合。ミスマッチの時に警告

残件

  • 何をミスったのかわかりにくいので、乱数の生成回数ダンプを別途作る
  • ミスマッチ通知の表示系を RantimeWarning と統合する
  • 起動オプション --no-debug-telemetry で無効化したい

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant