Skip to content

Commit

Permalink
First Commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Colin-Blankenburg committed Aug 28, 2023
0 parents commit 9aa60e6
Show file tree
Hide file tree
Showing 166 changed files with 27,737 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
root = true

[*]
indent_style = tab
indent_size = 4
end_of_line = crlf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules
config.json
7 changes: 7 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"printWidth": 80,
"useTabs": true,
"singleQuote": true,
"arrowParens": "always",
"semi": true
}
3 changes: 3 additions & 0 deletions .scaffs-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"scaffsPaths": ["./scaffolds"]
}
9 changes: 9 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"recommendations": [
"eg2.tslint",
"EditorConfig.editorconfig",
"esbenp.prettier-vscode",
"itslennysfault.scaffs-vscode",
"shinnn.stylelint"
]
}
12 changes: 12 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"version": "0.2.0",
"configurations": [
{
"type": "chrome",
"request": "launch",
"name": "Attach to Chrome",
"url": "http://localhost:4000/debug",
"webRoot": "${workspaceRoot}"
}
]
}
33 changes: 33 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"files.exclude": {
"**/scaffolds": true,
"**/node_modules": true,
"**/dist": true,
"package-lock.json": true
},
"search.exclude": {
"**/scaffolds": true,
"**/node_modules": true,
"**/dist": true,
"package-lock.json": true
},
"editor.rulers": [80],
"typescript.tsdk": "./node_modules/typescript/lib",
"typescript.format.enable": true,
"typescript.format.insertSpaceAfterCommaDelimiter": true,
"typescript.format.insertSpaceAfterConstructor": false,
"typescript.format.insertSpaceAfterFunctionKeywordForAnonymousFunctions": true,
"typescript.format.insertSpaceAfterKeywordsInControlFlowStatements": true,
"typescript.format.insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces": false,
"typescript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces": true,
"typescript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets": false,
"typescript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis": false,
"typescript.format.insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces": false,
"typescript.format.insertSpaceAfterSemicolonInForStatements": true,
"typescript.format.insertSpaceAfterTypeAssertion": false,
"typescript.format.insertSpaceBeforeAndAfterBinaryOperators": true,
"typescript.format.insertSpaceBeforeFunctionParenthesis": false,
"typescript.format.placeOpenBraceOnNewLineForControlBlocks": false,
"typescript.format.placeOpenBraceOnNewLineForFunctions": false,
"editor.tabSize": 4
}
35 changes: 35 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"version": "2.0.0",
"tasks": [
{
"type": "npm",
"script": "start",
"problemMatcher": [],
"group": "build"
},
{
"type": "npm",
"script": "build",
"problemMatcher": [],
"group": "build"
},
{
"type": "npm",
"script": "translations:extract",
"problemMatcher": [],
"group": "build"
},
{
"type": "npm",
"script": "translations:generate",
"problemMatcher": [],
"group": "build"
},
{
"type": "npm",
"script": "translations:update",
"problemMatcher": [],
"group": "build"
}
]
}
24 changes: 24 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
This is free and unencumbered software released into the public domain.

Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any
means.

In jurisdictions that recognize copyright laws, the author or authors
of this software dedicate any and all copyright interest in the
software to the public domain. We make this dedication for the benefit
of the public at large and to the detriment of our heirs and
successors. We intend this dedication to be an overt act of
relinquishment in perpetuity of all present and future rights to this
software under copyright law.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.

For more information, please refer to <http://unlicense.org>
45 changes: 45 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
![R3E](https://cloud.githubusercontent.com/assets/12783101/8024034/cd3c7c84-0d24-11e5-9e5f-3bf6fbab713f.png)

---

![Preview](https://raw.githubusercontent.com/sector3studios/webhud/master/src/img/preview.jpg)
# Placeholder

This needs to change -Colin

# Web Hud

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

For discussions or support go [here](https://forum.sector3studios.com/index.php?threads/in-gameplay-web-overlays.12947/).

## Quick start

- Extract [public/dash.zip](public/dash.zip)
- Run dash.exe
- Add `-webdev -webHudUrl=https://colin-blankenburg.github.io/BlueHUD/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.
- Run `npm install` to install all dependencies
- 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](LICENSE).

[r3e]: http://game.raceroom.com/

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/bundle.index.13dd3f399d406c9ec094.css

Large diffs are not rendered by default.

75 changes: 75 additions & 0 deletions dist/bundle.index.13dd3f399d406c9ec094.js

Large diffs are not rendered by default.

Binary file added dist/dash.zip
Binary file not shown.
Binary file added dist/favicon.ico
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions dist/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>Project name - index</title>
<link rel="shortcut icon" href="favicon.ico"><link href="bundle.index.13dd3f399d406c9ec094.css" rel="stylesheet"></head>
<body><script type="text/javascript" src="bundle.index.13dd3f399d406c9ec094.js"></script></body>
</html>
Loading

0 comments on commit 9aa60e6

Please sign in to comment.