The on-stream graphics used during Awesome Games Done Quick 2016.
This is a NodeCG 0.7 bundle. You will need to have NodeCG 0.7 installed to run it.
A ten-part video series explaining the structure and function of this NodeCG bundle.
- Install to
nodecg/bundles/agdq16-layouts
. - Install
bower
if you have not already (npm install -g bower
) - WINDOWS: Follow these instructions to set up a build chain to compile
agdq16-layouts
' dependencies. - LINUX: Install
build-essential
and Python 2.7, which are needed to compileagdq16-layouts
' dependencies. cd nodecg/bundles/agdq16-layouts
and runnpm install
, thenbower install
- Run
node ./download_boxart.js
to populate the boxart. - Create the configuration file (see the configuration section below for more details)
- Run the nodecg server:
nodecg start
(ornode index.js
if you don't have nodecg-cli) from thenodecg
root directory. - Run the electron window:
- For Windows:
- Create a shortcut in the
bundles/agdq16-layouts
folder with the location set toC:\path\to\nodecg\bundles\agdq16-layouts\node_modules\electron-prebuilt\dist\electron.exe
called Electron. - Next, edit the properties of the link you created, add
electron.js --remote-debugging-port=9222
to the end of theTarget
value, and change theStart in
folder to beC:\path\to\nodecg\bundles\agdq16-layouts\
.
- Create a shortcut in the
- For Linux/Mac:
cd
to thebundles/agdq16-bundles
directory, then run./node_modules/electron-prebuild/dist/electron electron.js --remote-debugging-port=9222
- For Windows:
Please note that you must manually run npm install
for this bundle. NodeCG currently cannot reliably
compile this bundle's npm dependencies. This is an issue we hope to address in the future.
This bundle is not intended to be used verbatim. Many of the assets have been replaced with placeholders, and most of the data sources are hardcoded. We are open-sourcing this bundle in hopes that people will use it as a learning tool and base to build from, rather than just taking and using it wholesale in their own productions.
To reiterate, please don't just download and use this bundle as-is. Build something new from it.
To configure this bundle, create and edit nodecg/cfg/agdq16-layouts.json
.
Refer to [configschema.json][] for the structure of this file.
[configschema.json]: configschema.json
Example config:
{
"enableRestApi": true,
"x32": {
"address": "192.168.1.10",
"gameAudioChannels": [
{
"sd": 17,
"hd": 25
},
{
"sd": 19,
"hd": 27
},
{
"sd": 21,
"hd": null
},
{
"sd": 23,
"hd": null
}
]
},
"twitter": {
"userId": "1234",
"consumerKey": "aaa",
"consumerSecret": "bbb",
"accessTokenKey": "ccc",
"accessTokenSecret": "ddd"
},
"lastfm": {
"apiKey": "eee",
"secret": "fff",
"targetAccount": "youraccount"
},
"debug": true
}
There is a REST API to integrate with the footpedal that @TestRunnerSRL built for the runners to start and stop the timer themselves. This REST API is completely unsecured and anyone will be able to manipulate the timers. As such, it is not safe to run on the public internet. Only activate the REST API on a secure local network.
To activate the Timer REST API, create nodecg/cfg/agdq16-layouts.json
with the following content:
{
"enableRestApi": true
}
Returns a JSON array containing all 4 stopwatches.
Starts (or resumes, if paused/finished) one of the four stopwatches. Index is zero-based. If index is 'all', starts all stopwatches. Responds with the current status of the affected stopwatch(es).
Pauses one of the four stopwatches. Index is zero-based. If index is 'all', pauses all stopwatches. Paused stopwatches have a gray background in the layouts. Responds with the current status of the affected stopwatch(es).
Finishes one of the four stopwatches. Index is zero-based. If index is 'all', finishes all stopwatches. Finished stopwatches have a green background in the layouts. Responds with the current status of the affected stopwatch(es).
Resets one of the four stopwatches to 00:00:00 and stops it. Index is zero-based. If index is 'all', resets all stopwatches. Responds with the current status of the affected stopwatch(es).
If the stopwatch is not running, this starts it. If the stopwatch is running, this sets it to "finished". Index is zero-based. If index is 'all', resets all stopwatches. Responds with the current status of the affected stopwatch(es).
agdq16-layouts relies on the following TypeKit fonts and weights:
- Proxima Nova
- Semibold
- Bold
- Extrabold
- Black
If you wish to access agdq16-layouts from anything other than localhost
,
you will need to make your own TypeKit with these fonts and whitelist the appropriate addresses.
agdq16-layouts is provided under the Apache v2 license, which is available to read in the [LICENSE][] file. [license]: LICENSE
Developed by Support Class
- Alex "Lange" Van Camp, developer
- Chris Hanel, designer