I hadn't thought of it, but you're right, it could be useful, especially for scarabs. I thought they were smaller but they're not that small, 5x5. Terrans still don't have that much choice but zergs and protosses can potentially wall-off their mineral lines almost completely, or at least partially using certain buildings, to make reaver harass less efficient.
Larvae are somewhat underground (elevation level 2, units and buildings are all at level 4) so it doesn't really matter what size they have.. unless you want to like, block it with other larva.
Scanner Sweep has a sight range of 10 matrices if anyone cares. Idk how sight ranges work exactly.
Here's the updated list with everything but heroes and dummy/unused/unimportant (in my judgement) units. I notice some units have weird gaps but that's not my fault, it's a discrepancy between the StarEdit placement box and it's real dimensions. If you're looking at a unit (not a building) just ignore the gaps, look at the last column which is what counts. If anyone spots something wrong I can fix it of course...
+ Show Spoiler +===Unit Gaps and Dimensions==== top, <-, ->,bottom (box) (real size) _________________Terran Marine: 0, 0, 0, 0 ( 17x20 ) ( 17x20 ) __________________Terran Ghost: 0, 0, 0, 0 ( 15x22 ) ( 15x22 ) ________________Terran Vulture: 0, 0, 0, 0 ( 32x32 ) ( 32x32 ) ________________Terran Goliath: 0, 0, 0, 0 ( 32x32 ) ( 32x32 ) _Terran Siege Tank (Tank Mode): 0, 0, 0, 0 ( 32x32 ) ( 32x32 ) ____________________Terran Scv: 0, 0, 0, 0 ( 23x23 ) ( 23x23 ) _________________Terran Wraith: 0, 0, 0, 0 ( 38x30 ) ( 38x30 ) _________Terran Science Vessel: 0, 0, 0, 0 ( 65x50 ) ( 65x50 ) _______________Terran Dropship: 0, 0, 0, 0 ( 49x37 ) ( 49x37 ) __________Terran Battlecruiser: 3, 3, 2, 2 ( 80x64 ) ( 75x59 ) ___________________Spider Mine: 1, 1, 0, 0 ( 16x16 ) ( 15x15 ) ________________Nuclear Missle: 2, 9, 8, 1 ( 32x32 ) ( 15x29 ) _______________Terran Civilian: 0, 0, 0, 0 ( 17x20 ) ( 17x20 ) Terran Siege Tank (Siege Mode): 0, 0, 0, 0 ( 32x32 ) ( 32x32 ) ________________Terran Firebat: 7, 0, 0, -1 ( 23x28 ) ( 23x22 ) _________________Scanner Sweep: 0, 0, 0, 0 ( 27x31 ) ( 27x31 ) __________________Terran Medic: 0, 0, 0, 0 ( 17x20 ) ( 17x20 ) ____________________Zerg Larva: 0, 0, 0, 0 ( 16x16 ) ( 16x16 ) ______________________Zerg Egg: 0, 0, 0, 0 ( 32x32 ) ( 32x32 ) _________________Zerg Zergling: 0, 0, 0, 0 ( 16x16 ) ( 16x16 ) ________________Zerg Hydralisk: 0, 0, 0, 0 ( 21x23 ) ( 21x23 ) ________________Zerg Ultralisk: 0, 0, 0, 0 ( 38x32 ) ( 38x32 ) ________________Zerg Broodling: 0, 0, 0, 0 ( 19x19 ) ( 19x19 ) ____________________Zerg Drone: 0, 0, 0, 0 ( 23x23 ) ( 23x23 ) _________________Zerg Overlord: 0, 0, 0, 0 ( 50x50 ) ( 50x50 ) _________________Zerg Mutalisk: 0, 0, 0, 0 ( 44x44 ) ( 44x44 ) _________________Zerg Guardian: 0, 0, 0, 0 ( 44x44 ) ( 44x44 ) ____________________Zerg Queen: 0, 0, 0, 0 ( 48x48 ) ( 48x48 ) __________________Zerg Defiler: 0, 0, 0, 0 ( 27x25 ) ( 27x25 ) __________________Zerg Scourge: 0, 0, 0, 0 ( 24x24 ) ( 24x24 ) _______________Infested Terran: 0, 0, 0, 0 ( 17x20 ) ( 17x20 ) _____________Infested Kerrigan: 0, 0, 0, 0 ( 15x22 ) ( 15x22 ) _______________Terran Valkyrie: 9, 1, 0, 4 ( 50x50 ) ( 49x37 ) _______________Mutalisk Cocoon: 0, 0, 0, 0 ( 32x32 ) ( 32x32 ) _______________Protoss Corsair: 0, 0, 0, 0 ( 36x32 ) ( 36x32 ) ___Protoss Dark Templar (Unit): 9, 0, 0, -5 ( 24x30 ) ( 24x26 ) _________________Zerg Devourer: 0, 0, 0, 0 ( 44x44 ) ( 44x44 ) ___________Protoss Dark Archon: 0, 0, 0, 0 ( 32x32 ) ( 32x32 ) _________________Protoss Probe: 0, 0, 0, 0 ( 23x23 ) ( 23x23 ) ________________Protoss Zealot: 8, 0, 0, 0 ( 23x27 ) ( 23x19 ) _______________Protoss Dragoon: 0, 0, 0, 0 ( 32x32 ) ( 32x32 ) __________Protoss High Templar: 4, 0, 0, 0 ( 24x28 ) ( 24x24 ) ________________Protoss Archon: 0, 0, 0, 0 ( 32x32 ) ( 32x32 ) _______________Protoss Shuttle: 0, 0, 0, 0 ( 40x32 ) ( 40x32 ) _________________Protoss Scout: 0, 0, 0, 0 ( 36x32 ) ( 36x32 ) _______________Protoss Arbiter: 0, 0, 0, 0 ( 44x44 ) ( 44x44 ) _______________Protoss Carrier: 0, 0, 0, 0 ( 64x64 ) ( 64x64 ) ___________Protoss Interceptor: 0, 0, 0, 0 ( 16x16 ) ( 16x16 ) ________________Protoss Reaver: 0, 0, 0, 0 ( 32x32 ) ( 32x32 ) ______________Protoss Observer: 0, 0, 0, 0 ( 32x32 ) ( 32x32 ) ________________Protoss Scarab: 0, 0, 0, 0 ( 5x5 ) ( 5x5 ) ___Rhynadon (Badlands Critter): 0, 0, 0, 0 ( 32x32 ) ( 32x32 ) ____Bengalaas (Jungle Critter): 0, 0, 0, 0 ( 32x32 ) ( 32x32 ) ______Scantid (Desert Critter): 0, 0, 0, 0 ( 32x32 ) ( 32x32 ) _____Kakaru (Twilight Critter): 0, 0, 0, 0 ( 32x32 ) ( 32x32 ) __Ragnasaur (Ashworld Critter): 0, 0, 0, 0 ( 32x32 ) ( 32x32 ) ___Ursadon (Ice World Critter): 0, 0, 0, 0 ( 32x32 ) ( 32x32 ) ____________________Lurker Egg: 0, 0, 0, 0 ( 32x32 ) ( 32x32 ) __________________Map Revealer: 0, 0, 0, 0 ( 27x31 ) ( 27x31 ) ___________________Zerg Lurker: 0, 0, 0, 0 ( 32x32 ) ( 32x32 ) ________________Disruption Web: 10, 10, 10, 10 (140x100) (120x80 ) _________Terran Command Center: 7, 6, 5, 6 (128x96 ) (117x83 ) _________Terran Comsat Station: 16, -5, 0, 6 ( 64x64 ) ( 69x42 ) ___________Terran Nuclear Silo: 16, -5, 0, 6 ( 64x64 ) ( 69x42 ) ___________Terran Supply Depot: 10, 10, 9, 5 ( 96x64 ) ( 77x49 ) _______________Terran Refinery: 0, 8, 7, 0 (128x64 ) (113x64 ) _______________Terran Barracks: 8, 16, 7, 15 (128x96 ) (105x73 ) ________________Terran Academy: 0, 8, 3, 7 ( 96x64 ) ( 85x57 ) ________________Terran Factory: 8, 8, 7, 7 (128x96 ) (113x81 ) _______________Terran Starport: 8, 16, 15, 9 (128x96 ) ( 97x79 ) __________Terran Control Tower: 8,-15, 3, 9 ( 64x64 ) ( 76x47 ) _______Terran Science Facility: 10, 16, 15, 9 (128x96 ) ( 97x77 ) _____________Terran Covert Ops: 8,-15, 3, 9 ( 64x64 ) ( 76x47 ) ____________Terran Physics Lab: 8,-15, 3, 9 ( 64x64 ) ( 76x47 ) ___________Terran Machine Shop: 8, -7, 0, 7 ( 64x64 ) ( 71x49 ) ________Terran Engineering Bay: 16, 16, 15, 19 (128x96 ) ( 97x61 ) _________________Terran Armory: 0, 0, 0, 9 ( 96x64 ) ( 96x55 ) __________Terran Missle Turret: 0, 16, 15, 15 ( 64x64 ) ( 33x49 ) _________________Terran Bunker: 8, 16, 15, 15 ( 96x64 ) ( 65x41 ) ____________Norad II (Crashed): 0, 0, 0, 0 ( 96x64 ) ( 96x64 ) ____________________Ion Cannon: 0, 0, 0, 0 ( 96x64 ) ( 96x64 ) __________________Uraj Crystal: 0, 0, 0, 0 ( 32x32 ) ( 32x32 ) ________________Khalis Crystal: 0, 0, 0, 0 ( 32x32 ) ( 32x32 ) _______Infested Command Center: 7, 6, 5, 6 (128x96 ) (117x83 ) _________________Zerg Hatchery: 16, 15, 14, 15 (128x96 ) ( 99x65 ) _____________________Zerg Lair: 16, 15, 14, 15 (128x96 ) ( 99x65 ) _____________________Zerg Hive: 16, 15, 14, 15 (128x96 ) ( 99x65 ) ______________Zerg Nydus Canal: 0, 0, 0, 0 ( 64x64 ) ( 64x64 ) ____________Zerg Hydralisk Den: 0, 8, 7, 7 ( 96x64 ) ( 81x57 ) ____________Zerg Defiler Mound: 0, 16, 15, 27 (128x64 ) ( 97x37 ) ____________Zerg Greater Spire: 0, 4, 3, 7 ( 64x64 ) ( 57x57 ) _____________Zerg Queen's Nest: 4, 10, 15, 3 ( 96x64 ) ( 71x57 ) ________Zerg Evolution Chamber: 0, 4, 15, 11 ( 96x64 ) ( 77x53 ) _________Zerg Ultralisk Cavern: 0, 8, 15, 0 ( 96x64 ) ( 73x64 ) ____________________Zerg Spire: 0, 4, 3, 7 ( 64x64 ) ( 57x57 ) ____________Zerg Spawning Pool: 4, 12, 7, 13 ( 96x64 ) ( 77x47 ) _____________Zerg Creep Colony: 8, 8, 8, 8 ( 64x64 ) ( 48x48 ) _____________Zerg Spore Colony: 8, 8, 8, 8 ( 64x64 ) ( 48x48 ) ____________Zerg Sunken Colony: 8, 8, 8, 8 ( 64x64 ) ( 48x48 ) ____Zerg Overmind (With Shell): 16, 0, 0, 7 (160x96 ) (160x73 ) _________________Zerg Overmind: 16, 0, 0, 7 (160x96 ) (160x73 ) ________________Zerg Extractor: 0, 0, 0, 0 (128x64 ) (128x64 ) ______________Mature Chrysalis: 0, 0, 0, 0 ( 64x64 ) ( 64x64 ) ________________Zerg Cerebrate: 0, 8, 15, 0 ( 96x64 ) ( 73x64 ) ________Zerg Cerebrate Daggoth: 0, 8, 15, 0 ( 96x64 ) ( 73x64 ) _________________Protoss Nexus: 9, 8, 7, 8 (128x96 ) (113x79 ) _____Protoss Robotics Facility: 16, 12, 7, 11 ( 96x64 ) ( 77x37 ) _________________Protoss Pylon: 20, 16, 15, 11 ( 64x64 ) ( 33x33 ) ___________Protoss Assimilator: 0, 16, 15, 7 (128x64 ) ( 97x57 ) ___________Protoss Observatory: 16, 4, 3, 3 ( 96x64 ) ( 89x45 ) _______________Protoss Gateway: 16, 16, 15, 7 (128x96 ) ( 97x73 ) _________Protoss Photon Cannon: 16, 12, 11, 15 ( 64x64 ) ( 41x33 ) _______Protoss Citadel of Adun: 8, 24, 7, 7 ( 96x64 ) ( 65x49 ) ______Protoss Cybernetics Core: 8, 8, 7, 7 ( 96x64 ) ( 81x49 ) ______Protoss Templar Archives: 8, 16, 15, 7 ( 96x64 ) ( 65x49 ) _________________Protoss Forge: 8, 12, 11, 11 ( 96x64 ) ( 73x45 ) ______________Protoss Stargate: 8, 16, 15, 15 (128x96 ) ( 97x73 ) ____________Stasis Cell/Prison: 0, 0, 0, 0 (128x96 ) (128x96 ) __________Protoss Fleet Beacon: 0, 8, 0, 7 ( 96x64 ) ( 88x57 ) ______Protoss Arbiter Tribunal: 4, 4, 3, 3 ( 96x64 ) ( 89x57 ) __Protoss Robotics Support Bay: 0, 16, 15, 11 ( 96x64 ) ( 65x53 ) ________Protoss Shield Battery: 16, 16, 15, 15 ( 96x64 ) ( 65x33 ) ___Khaydarin Crystal Formation: 0, 0, 0, 0 (128x96 ) (128x96 ) ________________Protoss Temple: 0, 0, 0, 0 (224x96 ) (224x96 ) _______________Xel`Naga Temple: 30, 0, 0, 0 (160x128) (160x98 ) ________Mineral Field (Type 1): 0, 0, 0, 0 ( 64x32 ) ( 64x32 ) ________Mineral Field (Type 2): 0, 0, 0, 0 ( 64x32 ) ( 64x32 ) ________Mineral Field (Type 3): 0, 0, 0, 0 ( 64x32 ) ( 64x32 ) ________________Vespene Geyser: 0, 0, 0, 0 (128x64 ) (128x64 ) _____________________Warp Gate: 0, 0, 0, 0 ( 96x64 ) ( 96x64 ) _________________Psi Disrupter: 10, 0, 10, 0 (160x96 ) (150x86 ) ___________________Zerg Beacon: 0, 0, 0, 0 ( 96x64 ) ( 96x64 ) _________________Terran Beacon: 0, 0, 0, 0 ( 96x64 ) ( 96x64 ) ________________Protoss Beacon: 0, 0, 0, 0 ( 96x64 ) ( 96x64 ) ______________Zerg Flag Beacon: 0, 0, 0, 0 ( 96x64 ) ( 96x64 ) ____________Terran Flag Beacon: 0, 0, 0, 0 ( 96x64 ) ( 96x64 ) ___________Protoss Flag Beacon: 0, 0, 0, 0 ( 96x64 ) ( 96x64 ) _______________Power Generator: 20, 8, 0, 4 (128x96 ) (120x72 ) _______________Overmind Cocoon: 0, 0, 0, 0 ( 96x64 ) ( 96x64 ) ____________________Dark Swarm: 0, 0, 0, 0 (160x160) (160x160) _____________Floor Missle Trap: 0, 0, 0, 0 ( 64x64 ) ( 64x64 ) _________Left Upper Level Door: 51, 43, 23, 47 (136x136) ( 70x38 ) ________Right Upper Level Door: 51, 24, 42, 47 (136x136) ( 70x38 ) _________________Left Pit Door: 33, 33, 45, 29 (148x100) ( 70x38 ) ________________Right Pit Door: 33, 46, 32, 29 (148x100) ( 70x38 ) ________________Floor Gun Trap: 0, 0, 0, 0 ( 64x64 ) ( 64x64 ) _________Left Wall Missle Trap: 16, 16, 16, 16 ( 64x64 ) ( 32x32 ) __________Left Wall Flame Trap: 16, 16, 16, 16 ( 64x64 ) ( 32x32 ) ________Right Wall Missle Trap: 16, 16, 16, 16 ( 64x64 ) ( 32x32 ) _________Right Wall Flame Trap: 16, 16, 16, 16 ( 64x64 ) ( 32x32 ) ________________Start Location: 16, 16, 15, 15 (128x96 ) ( 97x65 ) __________________________Flag: 0, 0, 0, 0 ( 32x32 ) ( 32x32 ) _______________Young Chrysalis: 0, 0, 0, 0 ( 32x32 ) ( 32x32 ) ___________________Psi Emitter: 0, 0, 0, 0 ( 32x32 ) ( 32x32 ) _____________________Data Disc: 0, 0, 0, 0 ( 32x32 ) ( 32x32 ) _____________Khaydarin Crystal: 0, 0, 0, 0 ( 32x32 ) ( 32x32 ) ________Mineral Cluster Type 1: 0, 0, 0, 0 ( 32x32 ) ( 32x32 ) ________Mineral Cluster Type 2: 0, 0, 0, 0 ( 32x32 ) ( 32x32 ) Protoss Vespene Gas Orb Type 1: 0, 0, 0, 0 ( 32x32 ) ( 32x32 ) Protoss Vespene Gas Orb Type 2: 0, 0, 0, 0 ( 32x32 ) ( 32x32 ) ___Zerg Vespene Gas Sac Type 1: 0, 0, 0, 0 ( 32x32 ) ( 32x32 ) ___Zerg Vespene Gas Sac Type 2: 0, 0, 0, 0 ( 32x32 ) ( 32x32 ) Terran Vespene Gas Tank Type 1: 0, 0, 0, 0 ( 32x32 ) ( 32x32 ) Terran Vespene Gas Tank Type 2: 0, 0, 0, 0 ( 32x32 ) ( 32x32 )
code (python) w/o indent: + Show Spoiler +# unitsizes.py - Starcraft building and unit sizes parser
def unit_output (name, left_gap, right_gap, top_gap, bottom_gap, box_width, box_height, real_width, real_height, dimensions0,dimensions1,dimensions2,dimensions3): #idented_name= name #while len(idented_name)<30 : # idented_name = "_" + idented_name #output = '%s: %s,%s,%s,%s (%sx%s)' % (idented_name, left_gap, right_gap, top_gap, bottom_gap, width, height) #output = "{0:>30}: {3:>3},{1:>3},{2:>3},{4:>3} ({5:>1}x{6})".format(name,left_gap,right_gap,top_gap,bottom_gap,width,height) #remove underline imo... w/e output="{0:_>30}: {3:>3},{1:>3},{2:>3},{4:>3} ({5:>3}x{6:<3}) ({7:>3}x{8:<3})"\ .format(name,left_gap,right_gap,top_gap,bottom_gap,box_width, box_height,real_width,real_height) outputd= ' %s %s %s %s' % (dimensions0,dimensions1,dimensions2,dimensions3) #output = output + outputd return output
units_database = [ #['',[,,,],None,[,]], ['Terran Marine',[8,8,9,10],None,[20,17]], ['Terran Ghost',[7,7,10,11],None,[22,15]], ['Terran Vulture',[16,15,16,15],None,[32,32]], ['Terran Goliath',[16,15,16,15],None,[32,32]], ['Terran Siege Tank (Tank Mode)',[16,15,16,15],None,[32,32]], ['Terran Scv',[11,11,11,11],None,[23,23]], ['Terran Wraith',[19,18,15,14],None,[30,38]], ['Terran Science Vessel',[32,32,33,16],None,[50,65]], ['Terran Dropship',[24,24,16,20],None,[37,49]], ['Terran Battlecruiser',[37,37,29,29],None,[64,80]], ['Spider Mine',[7,7,7,7],None,[16,16]], ['Nuclear Missle',[7,7,14,14],None,[32,32]], ['Terran Civilian',[8,8,9,10],None,[20,17]], ['Terran Siege Tank (Siege Mode)',[16,15,16,15],None,[32,32]], ['Terran Firebat',[11,11,7,14],None,[28,23]], ['Scanner Sweep',[13,13,13,17],None,[31,27]], ['Terran Medic',[8,8,9,10],None,[20,17]], ['Zerg Larva',[8,7,8,7],None,[16,16]], ['Zerg Egg',[16,15,16,15],None,[32,32]], ['Zerg Zergling',[8,7,4,11],None,[16,16]], ['Zerg Hydralisk',[10,10,10,12],None,[23,21]], ['Zerg Ultralisk',[19,18,16,15],None,[32,38]], ['Zerg Broodling',[9,9,9,9],None,[19,19]], ['Zerg Drone',[11,11,11,11],None,[23,23]], ['Zerg Overlord',[25,24,25,24],None,[50,50]], ['Zerg Mutalisk',[22,21,22,21],None,[44,44]], ['Zerg Guardian',[22,21,22,21],None,[44,44]], ['Zerg Queen',[24,23,24,23],None,[48,48]], ['Zerg Defiler',[13,13,12,12],None,[25,27]], ['Zerg Scourge',[12,11,12,11],None,[24,24]], ['Infested Terran',[8,8,9,10],None,[20,17]], ['Infested Kerrigan',[7,7,10,11],None,[22,15]], ['Terran Valkyrie',[24,24,16,20],None,[50,50]], ['Mutalisk Cocoon',[16,15,16,15],None,[32,32]], ['Protoss Corsair',[18,17,16,15],None,[32,36]], ['Protoss Dark Templar (Unit)',[12,11,6,19],None,[30,24]], ['Zerg Devourer',[22,21,22,21],None,[44,44]], ['Protoss Dark Archon',[16,15,16,15],None,[32,32]], ['Protoss Probe',[11,11,11,11],None,[23,23]], ['Protoss Zealot',[11,11,5,13],None,[27,23]], ['Protoss Dragoon',[15,16,15,16],None,[32,32]], ['Protoss High Templar',[12,11,10,13],None,[28,24]], ['Protoss Archon',[16,15,16,15],None,[32,32]], ['Protoss Shuttle',[20,19,16,15],None,[32,40]], ['Protoss Scout',[18,17,16,15],None,[32,36]], ['Protoss Arbiter',[22,21,22,21],None,[44,44]], ['Protoss Carrier',[32,31,32,31],None,[64,64]], ['Protoss Interceptor',[8,7,8,7],None,[16,16]], ['Protoss Reaver',[16,15,16,15],None,[32,32]], ['Protoss Observer',[16,15,16,15],None,[32,32]], ['Protoss Scarab',[2,2,2,2],None,[5,5]],
['Rhynadon (Badlands Critter)',[16,15,16,15],None,[32,32]], ['Bengalaas (Jungle Critter)',[16,15,16,15],None,[32,32]], ['Scantid (Desert Critter)',[16,15,16,15],None,[32,32]], ['Kakaru (Twilight Critter)',[16,15,16,15],None,[32,32]], ['Ragnasaur (Ashworld Critter)',[16,15,16,15],None,[32,32]], ['Ursadon (Ice World Critter)',[16,15,16,15],None,[32,32]],
['Lurker Egg',[15,16,15,16],None,[32,32]], ['Map Revealer',[13,13,13,17],None,[31,27]],
['Zerg Lurker',[15,16,15,16],None,[32,32]], ['Disruption Web',[60,59,40,39],None,[100,140]],
['Terran Command Center',[58, 58, 41, 41],None,[96, 128]], ['Terran Comsat Station',[37,31,16,25],[128,32],[64,64]], ['Terran Nuclear Silo',[37,31,16,25],[128,32],[64,64]], ['Terran Supply Depot',[38,38,22,26],None,[64,96]], ['Terran Refinery',[56,56,32,31],None,[64,128]], ['Terran Barracks',[48,56,40,32],None,[96,128]], ['Terran Academy',[40,44,32,24],None,[64,96]], ['Terran Factory',[56,56,40,40],None,[96,128]], ['Terran Starport',[48,48,40,38],None,[96,128]], ['Terran Control Tower',[47,28,24,22],[128,32],[64,64]], ['Terran Science Facility',[48,48,38,38],None,[96,128]], ['Terran Covert Ops',[47,28,24,22],[128,32],[64,64]], ['Terran Physics Lab',[47,28,24,22],[128,32],[64,64]], ['Terran Machine Shop',[39,31,24,24],[128,32],[64,64]], ['Terran Engineering Bay',[48,48,32,28],None,[96,128]], ['Terran Armory',[48,47,32,22],None,[64,96]], ['Terran Missle Turret',[16,16,32,16],None,[64,64]], ['Terran Bunker',[32,32,24,16],None,[64,96]],
['Norad II (Crashed)',[48,47,32,31],None,[64,96]], ['Ion Cannon',[48,47,32,31],None,[64,96]], ['Uraj Crystal',[16,15,16,15],[0,0],[32,32]], ['Khalis Crystal',[16,15,16,15],None,[32,32]],
['Infested Command Center',[58,58,41,41],None,[96,128]], ['Zerg Hatchery',[49,49,32,32],None,[96,128]], ['Zerg Lair',[49,49,32,32],None,[96,128]], ['Zerg Hive',[49,49,32,32],None,[96,128]], ['Zerg Nydus Canal',[32,31,32,31],None,[64,64]], ['Zerg Hydralisk Den',[40,40,32,24],None,[64,96]], ['Zerg Defiler Mound',[48,48,32,4],None,[64,128]], ['Zerg Greater Spire',[28,28,32,24],None,[64,64]], ['Zerg Queen\'s Nest',[38,32,28,28],None,[64,96]], ['Zerg Evolution Chamber',[44,32,32,20],None,[64,96]], ['Zerg Ultralisk Cavern',[40,32,32,31],None,[64,96]], ['Zerg Spire',[28,28,32,24],None,[64,64]], ['Zerg Spawning Pool',[36,40,28,18],None,[64,96]], ['Zerg Creep Colony',[24,23,24,23],None,[64,64]], ['Zerg Spore Colony',[24,23,24,23],None,[64,64]], ['Zerg Sunken Colony',[24,23,24,23],None,[64,64]], ['Zerg Overmind (With Shell)',[80,79,32,40],None,[96,160]], ['Zerg Overmind',[80,79,32,40],None,[96,160]], ['Zerg Extractor',[64,63,32,31],None,[64,128]],
['Mature Chrysalis',[32,31,32,31],None,[64,64]], ['Zerg Cerebrate',[40,32,32,31],None,[64,96]], ['Zerg Cerebrate Daggoth',[40,32,32,31],None,[64,96]],
['Protoss Nexus',[56,56,39,39],None,[96,128]], ['Protoss Robotics Facility',[36,40,16,20],None,[64,96]], ['Protoss Pylon',[16,16,12,20],None,[64,64]], ['Protoss Assimilator',[48,48,32,24],None,[64,128]], ['Protoss Observatory',[44,44,16,28],None,[64,96]], ['Protoss Gateway',[48,48,32,40],None,[96,128]], ['Protoss Photon Cannon',[20,20,16,16],None,[64,64]], ['Protoss Citadel of Adun',[24,40,24,24],None,[64,96]], ['Protoss Cybernetics Core',[40,40,24,24],None,[64,96]], ['Protoss Templar Archives',[32,32,24,24],None,[64,96]], ['Protoss Forge',[36,36,24,20],None,[64,96]], ['Protoss Stargate',[48,48,40,32],None,[96,128]], ['Stasis Cell/Prison',[64,63,48,47],None,[96,128]], ['Protoss Fleet Beacon',[40,47,32,24],None,[64,96]], ['Protoss Arbiter Tribunal',[44,44,28,28],None,[64,96]], ['Protoss Robotics Support Bay',[32,32,32,20],None,[64,96]], ['Protoss Shield Battery',[32,32,16,16],None,[64,96]],
['Khaydarin Crystal Formation',[64,63,48,47],None,[96,128]], ['Protoss Temple',[112,111,48,47],None,[96,224]], ['Xel`Naga Temple',[80,79,34,63],None,[128,160]], ['Mineral Field (Type 1)',[32,31,16,15],None,[32,64]], ['Mineral Field (Type 2)',[32,31,16,15],None,[32,64]], ['Mineral Field (Type 3)',[32,31,16,15],None,[32,64]], ['Vespene Geyser',[64,63,32,31],None,[64,128]], ['Warp Gate',[48,47,32,31],None,[64,96]], ['Psi Disrupter',[80,69,38,47],None,[96,160]], ['Zerg Beacon',[48,47,32,31],None,[64,96]], ['Terran Beacon',[48,47,32,31],None,[64,96]], ['Protoss Beacon',[48,47,32,31],None,[64,96]], ['Zerg Flag Beacon',[48,47,32,31],None,[64,96]], ['Terran Flag Beacon',[48,47,32,31],None,[64,96]], ['Protoss Flag Beacon',[48,47,32,31],None,[64,96]], ['Power Generator',[56,63,28,43],None,[96,128]], ['Overmind Cocoon',[48,47,32,31],None,[64,96]], ['Dark Swarm',[80,79,80,79],None,[160,160]],
['Floor Missle Trap',[32,31,32,31],None,[64,64]], ['Left Upper Level Door',[25,44,17,20],None,[136,136]], ['Right Upper Level Door',[44,25,17,20],None,[136,136]], ['Left Pit Door',[41,28,17,20],None,[100,148]], ['Right Pit Door',[28,41,17,20],None,[100,148]], ['Floor Gun Trap',[32,31,32,31],None,[64,64]], ['Left Wall Missle Trap',[16,15,16,15],None,[64,64]], ['Left Wall Flame Trap',[16,15,16,15],None,[64,64]], ['Right Wall Missle Trap',[16,15,16,15],None,[64,64]], ['Right Wall Flame Trap',[16,15,16,15],None,[64,64]], ['Start Location',[48,48,32,32],None,[96,128]], ['Flag',[16,15,16,15],None,[32,32]], ['Young Chrysalis',[16,15,16,15],None,[32,32]], ['Psi Emitter',[16,15,16,15],None,[32,32]], ['Data Disc',[16,15,16,15],None,[32,32]], ['Khaydarin Crystal',[16,15,16,15],None,[32,32]], ['Mineral Cluster Type 1',[16,15,16,15],None,[32,32]], ['Mineral Cluster Type 2',[16,15,16,15],None,[32,32]], ['Protoss Vespene Gas Orb Type 1',[16,15,16,15],None,[32,32]], ['Protoss Vespene Gas Orb Type 2',[16,15,16,15],None,[32,32]], ['Zerg Vespene Gas Sac Type 1',[16,15,16,15],None,[32,32]], ['Zerg Vespene Gas Sac Type 2',[16,15,16,15],None,[32,32]], ['Terran Vespene Gas Tank Type 1',[16,15,16,15],None,[32,32]], ['Terran Vespene Gas Tank Type 2',[16,15,16,15],None,[32,32]],
#['',[,,,],None,[,]], ]
#heading print "{0:=^31} top, <-, ->,bottom (box) (real size)".format('Unit Gaps and Dimensions')
for unit in units_database: unit_name = unit[0]
box_data = unit[3] box_height = box_data[0] box_width = box_data[1] #matrix_width = box_width/32 #matrix_height = box_height/32
dimensions = unit[1] # +1x1 right/bottom pixel center fix, dimensions[1] += 1 dimensions[3] += 1
#Gaps, w\ noob rounding fix, worst way possible #these are odds if box_width%2==1: left_gap = box_width/2 - dimensions[0] right_gap = box_width/2 +1 - dimensions[1] if box_height%2==1: top_gap = box_height/2 - dimensions[2] bottom_gap = box_height/2 +1 - dimensions[3] #these.. arent if box_width%2==0: left_gap = box_width/2 - dimensions[0] right_gap = box_width/2 - dimensions[1] if box_height%2==0: top_gap = box_height/2 - dimensions[2] bottom_gap = box_height/2 - dimensions[3] #shifting fix #I could just leave it but meh if top_gap == -bottom_gap: top_gap,bottom_gap = 0,0 if left_gap == -right_gap: left_gap,right_gap = 0,0
real_width = dimensions[0] + dimensions[1] real_height= dimensions[2] + dimensions[3] print unit_output(unit_name, left_gap, right_gap, top_gap, bottom_gap, box_width, box_height, real_width, real_height, dimensions[0],dimensions[1],dimensions[2],dimensions[3],) also @ http://www.sendspace.com/file/0shrsw
|