Skip to content

Instantly share code, notes, and snippets.

View gwaland's full-sized avatar

Bobby Walker gwaland

View GitHub Profile
-- This is a simple example of streaming live score data to a file.
-- It is meant to be loaded as an actor in the out transition layer of
-- ScreenGameplay.
-- Save it to Graphics/live_score_report.lua in a theme and edit
-- BGAnimations/ScreenGameplay decorations.lua to load it.
-- If BGAnimations/ScreenGameplay decorations.lua doesn't exist, here is an
-- example:
-- return Def.ActorFrame{
-- LoadActor(THEME:GetPathG("", "live_score_report.lua")),
-- }
require 'sinatra'
require 'socket'
server = TCPServer.new 35666 # Server bound to port 35666, just like EE
set :port, 8080
hull = 42
shields = 80
--[[
ExportScoreForIRC is something that AJ made for fun. It requires an
understanding of how StepMania views your filesystem, as well as knowledge
on how to make your IRC client play from a script file.
Since this was made for a limited purpose, it assumes you play as a single player
in non-course modes.
It spits out a string like this:
last played: $SONG by $ARTIST ($SONGGROUP) [$MODE $DIFFICULTY] $PERCENT | $W1 / $W2 / $W3 / $W4 / $W5 / $MISS | Holds: ($HELD/DROPPED) Max Combo: $MAXCOMBO