Skip to content

Instantly share code, notes, and snippets.

@iirelu
Last active August 29, 2015 14:06
Show Gist options
  • Save iirelu/e1479b13c755c1ede00a to your computer and use it in GitHub Desktop.
Save iirelu/e1479b13c755c1ede00a to your computer and use it in GitHub Desktop.
revbuild
# I'll try to keep this up to date but holla at me if it's lagging behind.
COORDS = {
"Lab Facility Number 493" => "000",
"The Lab" => "001",
"The Rusty Pit" => "002",
"The Stone Loop" => "006",
"The Tri-Gem Room" => "010",
"The Clockwork Corridor" => "011",
"Second Tomb" => "043",
"The Ouroboros Tunnel" => "051",
"The Road Room" => "076",
"The Sub-Bot Research Room" => "100",
"Ancient Ruins" => "103",
"The Ancient Section" => "104",
"The Defense Network (second area)" => "128",
"Laser Room" => "157",
"The Paired Gem Room" => "185",
"Stone Room" => "192",
"The Church" => "218",
"The Kent Falls Room" => "232",
"The Searchlight Room" => "241",
"Cake loop" => "245",
"The Nazca Room" => "258",
"The Radio Lab" => "277",
"The Sanctuary" => "291",
"Lighthouse basement" => "304",
"The Pi Room" => "314",
"Winter Room" => "316",
"The Mover Room" => "317",
"Murtaugh's Communication Room" => "355",
"The Ziggurat" => "378",
"The Stalagmite Room" => "399",
"The Error Room" => "404",
"The Escher Room" => "411",
"The Pit" => "442",
"The Statue" => "452",
"The Sewers" => "461",
"Lighthouse digouts" => "462",
"The Listeners Room" => "472",
"The Twins Room" => "523",
"Basement section" => "529",
"Observation center" => "541",
"Lighthouse dungeon" => "550",
"Brick room" => "551",
"The Root" => "552",
"The Root (second area)" => "553",
"The Loop (SNEE)|The Loop" => "555",
"The End Ruins" => "580",
"Exit" => "596",
"The Zero Depths" => "601",
"The Void" => "613",
"The Void (second area)" => "614",
"The Study" => "628",
"The Clockwork Room" => "642",
"Hell" => "666",
"New Basement" => "672",
"Looping traps" => "690",
"The Watch Station" => "712",
"Lucky Room" => "728",
"Escape from Jay Is Games Room" => "731",
"The Corridor" => "747",
"The Defense Network" => "757",
"Tomb trap" => "770",
"The Barracks" => "777",
"The Ship" => "800",
"The Cliffs" => "806",
"The Lost Plane" => "815",
"UVB-76 room" => "837",
"The Collector's Room" => "859",
"The Prison Cells" => "875",
"Cube Loop" => "888",
"The Vista" => "902",
"The Looping Sphere" => "917",
"Solitary Confinement" => "923",
"The Gem Harvester" => "947",
"The Altar" => "966",
"The Broken Clock Room" => "987",
"The Excavation Site" => "992"
}
#!/usr/bin/env ruby
require_relative 'coords.rb'
def revget(coord)
# This magical line gets only the first 8 bytes of a file and extracts the file size from that.
# I had to read through the bloody flash specs for this.
`curl http://www.mateuszskutnik.com/submachine/subnet_data/#{coord}.swf -sr 4-8`.unpack("L<")[0]
end
output = '{| class="article-table sortable"
!Name
!data-sort-type="text"|Coords
!data-sort-type="number"|REV size
|-
'
COORDS.each do |name,coord|
output += "|[[#{name}]]\n"
output += "|#{coord}\n"
output += "|#{revget(coord)}\n"
output += "|-\n"
end
output += "|}"
puts output
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment