This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- 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")), | |
-- } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'sinatra' | |
require 'socket' | |
server = TCPServer.new 35666 # Server bound to port 35666, just like EE | |
set :port, 8080 | |
hull = 42 | |
shields = 80 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--[[ | |
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 |