GithubHelp home page GithubHelp logo

biffbish / demo-viewer Goto Github PK

View Code? Open in Web Editor NEW

This project forked from robidasdavid/demo-viewer

0.0 1.0 0.0 1.92 GB

Game data capturer and 3D Replayer for Echo Arena Games

License: GNU General Public License v3.0

Mathematica 0.39% C# 93.02% ShaderLab 1.69% HLSL 0.36% ASP.NET 4.54%

demo-viewer's Introduction

Replay Viewer Logo

DESCRIPTION

The EchoVR Replay Viewer is able to play back data from an EchoVR Arena game that was saved through the public API into a replay file by presenting it in a 3D replaying software. The Replay Viewer can read files saved in the .echoreplay format. A description of how to create files in this format is below.

INSTALLATION

Oculus Store Version (preferred)

The Oculus Store version will get automatic updates and has a consistent installation location, making file association easier. The app is not public, but can be "bought" by getting an Oculus Store product key and redeeming it through the Oculus App. The Oculus Store version supports both 2D and VR modes.

  1. Head to https://sneakyevil.github.io/Demo-Viewer/key/ to get a product key.
  2. In your Oculus app, go to Settings > Account > Redeem Code
  3. Input the code you received and download within your Oculus Library.

How to launch in 2D mode Oculus Store

GitHub Release

We will try to keep the latest GitHub release up-to-date for people that may not have access to the Oculus desktop app (Quest users). To install, extract the zip to a folder and run the .exe file. To run in VR mode, run the .exe with the -useVR command-line argument.

Capturer (legacy)

  1. Download the Game-Capturer.zip in builds/ to your computer and unzip to a folder.
  2. Edit file path and file name as well as execution arguments. Click start and stop capture to start and stop capture respectively.

USAGE

Loading Files

To load a file, click on the menu icon on the right side of the screen (shortcut: tilde). This menu contains a list of .echoreplay files in the folder that Spark saves files to by default (C:\Users\[USERNAME]\Documents\Spark\replays\). At the top of this menu, there is an input field, where any file path can be entered if the replay is stored somewhere else on your computer.

To save your own replays, download Spark!

File Association:

File association is supported with the replay viewer, to make it easier for you to load downloaded files, you can associate .echoreplay files with ReplayViewer.exe by double clicking a .echoreplay file. When Windows brings up the "How do you want to echoreplay files from now on?" window, click "More apps", scroll down and select "Look for another app on this PC". Navigate to where you unzipped the application (GitHub Release), or to C:\Program Files\Oculus\Software\Software\franzco-echodata\Replay Viewer.exe (Oculus Store), and select "ReplayViewer.exe". Once you have done this, you can open .echoreplay files just by opening a file directly from File Explorer.

If you do not do this and you want to open files downloaded from the internet, you will have to copy the entire file location and file name of the file you want to view, and paste it into the field after launching the app. Files recorded with Spark will save to a folder readable by the Replay Viewer and will not require this process to view.

Controls:

Keyboard

  • WASD - camera movement
  • Q/E - descend/ascend
  • Shift - camera speed boost
  • Mouse Wheel - adjust camera movement speed

XBOX Controller:

  • Left Stick - camera forward/back movement
  • Right Stick - camera pitch/yaw
  • Left Bumper/Right Bumper - descend/ascend
  • A Button - Play/Pause, resets back to 1x play if rewinding/fast forwarding
  • B Button - Clear drawings on screen
  • Y Button - Show last score details
  • Select/Left Action Button - Enable/disable goal animations (default is enabled)
  • DPad Left - Rewind (1x - 10x)
  • DPad Right - Fast forward (1x - 10x)
  • Left Trigger - Quick Scrub/Slow-Mo backwards, analog controlled on the trigger to adjust speed (less trigger pull = slower, full pull = 1.5x). Will revert to playing if replay was playing before trigger was used, can toggle whether to play or pause while scrubbing/slow-mo playing with A
  • Right Trigger - Quick Scrub/Slow-Mo forwards, analog controlled on the trigger to adjust speed (less trigger pull = slower, full pull = 1.5x). Will revert to playing if replay was playing before trigger was used, can toggle whether to play or pause while scrubbing/slow-mo playing with A

.echoreplay File Format

To record .echoreplay files without writing your own software, you can use Spark (download)

The .echoreplay file format is a complete storage format for time-series EchoVR API request data. There are two versions of this format - compressed and uncompressed, both with the same file extension. The compressed version is simple the uncompressed file in a renamed .zip file.

The format for the uncompressed file is as follows:

  • One line per API request.
  • Each line contains the a timestamp, the tab character, and the full JSON data from the game's API

Due to the high efficiency of zip compression, binary formats such as .milk (once modified to include all the data necessary for replays) provide only marginal or no benefits over the compressed .echoreplay. These formats also require modification for every API change from the game, unlike .echoreplay.

QUESTIONS

If you have questions, DM sneakyevil#1967 on discord, or join the discord server for this project at https://discord.gg/srWMCnD

demo-viewer's People

Contributors

antonfranzluebbers avatar farrerz avatar gitzzenith avatar ntsfranz avatar robidasdavid avatar sneakyegg avatar

Watchers

 avatar

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.