/vrc_log_viewer

Primary LanguagePythonMIT LicenseMIT

vrc_log_viewer

Zuwaii Edit~ I made a small modification in the code to allow saving/append to one file ("alllog.txt") everytime when you start up the program, aswell drop files onto the exe file will open the dropped log file. Current VRChat 1048 has garbled log files for strings like Player, Network etc.. the modified config only checks now for the strings after [x].

Also add "--enable-sdk-log-levels" in your launch options if it does not show player joins, and also extract video URL's that's being played in UDONWorld. As a extra bonus, I have been playing PyPy Justdance for a while, it will also show which player selected a song.

The exe file is created with Pyinstaller using commandline "pyinstaller --onefile --runtime-tmpdir %TEMP% vrc_log_viewer.py" #Binary https://github.com/ZuwaiiVR/vrc_log_viewer/releases #----------------

これは何

  • VRCのログを見たいときに使うやつ

バイナリ

依存パッケージ

  • pyyaml
$ pip install pyyaml

実行方法

pythonで実行

  • vrc_log_viewer.pyと同じ階層に設定ファイルconfig.ymlを配置して以下のコマンドを実行
$ python vrc_log_viewer.py

実行ファイル生成

$ pyinstaller.exe vrc_log_viewer.py [-F -w]
  オプションはお好みで
  -F : ファイルを1つにまとめる
  -w : 実行時にウィンドウを表示しない(タスクマネージャーからkill)

dist以下に実行ファイルが生成されるのでexeファイルと同じ階層に設定ファイルconfig.ymlを配置してexeファイルを実行

設定ファイル

# 見るログファイルの名前(指定無しの場合作成日時が一番新しいファイルを開く)
logfile: ""
# trueの場合起動する前に書き込まれたログも出力
past: true
# 出力するログを正規表現で表記(グループ化してある部分を出力)
# 2019.08.28 23:06:46 Log        -  [NetworkManager] OnPlayerJoined 27Cobalter が
# 2019.08.28 23:06:46 OnPlayerJoined 27Cobalter のように出力される
reg:
  - '([0-9]{4}\.[0-9]{2}\.[0-9]{2} [0-9]{2}:[0-9]{2}:[0-9]{2}).*?\[NetworkManager\] (OnPlayerJoined .*)'
  - '([0-9]{4}\.[0-9]{2}\.[0-9]{2} [0-9]{2}:[0-9]{2}:[0-9]{2}).*?\[NetworkManager\] (OnPlayerLeft .*)'
  - '([0-9]{4}\.[0-9]{2}\.[0-9]{2} [0-9]{2}:[0-9]{2}:[0-9]{2}).*?\[RoomManager\] (Joining wrld.*)'