thebaz / webhud

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

R3E


Preview

Web Hud

This is a sample showing how to create a web hud using the shared memory API for RaceRoom Racing Experience (R3E).

For discussions or support go here.

Quick start

  • Extract public/dash.zip
  • Run dash.exe
  • Add -webdev -webHudUrl=https://sector3studios.github.io/webhud/dist/ to the game launch arguments
  • Start the game

Development

  • Development requires node/npm
  • For this to work you need to be running public/dash.zip/dash.exe. It is the source of all the data being used.
  • Start development by running npm start and opening http://localhost:4000/
  • Add -webdev -webHudUrl=http://localhost:4000/ to the game launch arguments
  • When you are happy with your changes run npm run build and the final files will be put in the dist/ folder.

Tips

  • Look at src/types/r3eTypes.ts to see what data is exposed
  • Press Shift+i to view the current game state (search takes regex)
  • Press Shift+Space to freeze the current game state
  • Press Shift+d to dump current game state as JSON into clipboard
  • Press Ctrl+v to insert dumped JSON game state into current session

License

See LICENSE.

About

License:The Unlicense


Languages

Language:TypeScript 85.6%Language:CSS 14.3%Language:HTML 0.1%