-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
266 lines (251 loc) · 16.5 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
<html>
<head>
<title>Dyson Sphere Program Dependency Graph</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="simple.css">
<link rel="stylesheet" type="text/css" href="index.css" />
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-79649328-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-79649328-1');
</script>
</head>
<body>
<main>
<section id="intro">
<h1>Dyson Sphere Program Dependency Graph</h1>
<details open>
<summary>
<b>Details</b>
</summary>
<p>
This page renders a dependency graph for the complete set of
resources and buildings in the game
<a href="https://store.steampowered.com/app/1366540/Dyson_Sphere_Program/">Dyson Sphere Program</a>.
</p>
<p>
This was built using <a href="https://github.com/mdaines/viz.js">viz.js</a>
which is a <a href="http://www.graphviz.org/">Graphviz</a> Javascript port using
<a href="http://kripken.github.io/emscripten-site/">Emscripten</a>. The panning
and zooming is supported by
<a href="https://github.com/bumbu/svg-pan-zoom">svg-pan-zoom</a>.
</p>
</details>
<details open>
<summary>
<b>Usage Guide</b>
</summary>
<p>
<b>Pan:</b> hold left-click and drag
<br />
<b>Zoom:</b> scroll or double-click
<br />
<b>Filter:</b> remove nodes using the "Filter" regex input below
</details>
<details open>
<summary>
<b>Filters</b>
</summary>
<p>
Nodes matching "Filter" are removed. Lines NOT matching "Select" are also removed.
</p>
<p>
If a node gets past all filters it will make adjacent nodes visible too.
</p>
<p>
A number of #tags can also be used including #raw, #rare, #junk, #logistics, #building, #t1 - #t7, #bt1 - #bt4
</p>
<p>
<label for="filter_out">Filter:</label>
<input type="text" id="filter_out" value="#junk|#rare|#raw|#building" />
</p>
<p>
<label for="filter_in">Select:</label>
<input type="text" id="filter_in" value=".*" />
</p>
</details>
<footer>
<a href="https://olivercardoza.com" class="footer-link">
<span class="icon">
<img src="favicon.ico" />
</span>
<span>olivercardoza.com</span>
</a>
<a href="https://twitter.com/OliverCardoza" class="footer-link">
<span class="icon">
<svg viewBox="0 0 16 16"><path fill="#828282" d="M15.969,3.058c-0.586,0.26-1.217,0.436-1.878,0.515c0.675-0.405,1.194-1.045,1.438-1.809 c-0.632,0.375-1.332,0.647-2.076,0.793c-0.596-0.636-1.446-1.033-2.387-1.033c-1.806,0-3.27,1.464-3.27,3.27 c0,0.256,0.029,0.506,0.085,0.745C5.163,5.404,2.753,4.102,1.14,2.124C0.859,2.607,0.698,3.168,0.698,3.767 c0,1.134,0.577,2.135,1.455,2.722C1.616,6.472,1.112,6.325,0.671,6.08c0,0.014,0,0.027,0,0.041c0,1.584,1.127,2.906,2.623,3.206 C3.02,9.402,2.731,9.442,2.433,9.442c-0.211,0-0.416-0.021-0.615-0.059c0.416,1.299,1.624,2.245,3.055,2.271 c-1.119,0.877-2.529,1.4-4.061,1.4c-0.264,0-0.524-0.015-0.78-0.046c1.447,0.928,3.166,1.469,5.013,1.469 c6.015,0,9.304-4.983,9.304-9.304c0-0.142-0.003-0.283-0.009-0.423C14.976,4.29,15.531,3.714,15.969,3.058z"></path></svg>
</span>
<span>OliverCardoza</span>
</a>
<a href="https://github.com/OliverCardoza" class="footer-link">
<span class="icon">
<svg viewBox="0 0 16 16" height="16px"><path fill="#828282" d="M7.999,0.431c-4.285,0-7.76,3.474-7.76,7.761 c0,3.428,2.223,6.337,5.307,7.363c0.388,0.071,0.53-0.168,0.53-0.374c0-0.184-0.007-0.672-0.01-1.32 c-2.159,0.469-2.614-1.04-2.614-1.04c-0.353-0.896-0.862-1.135-0.862-1.135c-0.705-0.481,0.053-0.472,0.053-0.472 c0.779,0.055,1.189,0.8,1.189,0.8c0.692,1.186,1.816,0.843,2.258,0.645c0.071-0.502,0.271-0.843,0.493-1.037 C4.86,11.425,3.049,10.76,3.049,7.786c0-0.847,0.302-1.54,0.799-2.082C3.768,5.507,3.501,4.718,3.924,3.65 c0,0,0.652-0.209,2.134,0.796C6.677,4.273,7.34,4.187,8,4.184c0.659,0.003,1.323,0.089,1.943,0.261 c1.482-1.004,2.132-0.796,2.132-0.796c0.423,1.068,0.157,1.857,0.077,2.054c0.497,0.542,0.798,1.235,0.798,2.082 c0,2.981-1.814,3.637-3.543,3.829c0.279,0.24,0.527,0.713,0.527,1.437c0,1.037-0.01,1.874-0.01,2.129 c0,0.208,0.14,0.449,0.534,0.373c3.081-1.028,5.302-3.935,5.302-7.362C15.76,3.906,12.285,0.431,7.999,0.431z"></path></svg>
</span>
<span>OliverCardoza</span>
</a>
</footer>
</section>
<section id="svg">
<div id="output"></div>
</section>
</main>
<a href="https://github.com/OliverCardoza/dyson-sphere-graphviz" class="github-corner" aria-label="View source on GitHub">
<svg width="80" height="80" viewBox="0 0 250 250" style="fill:#151513; color:#fff; position: absolute; top: 0; border: 0; right: 0;" aria-hidden="true">
<path d="M0,0 L115,115 L130,115 L142,142 L250,250 L250,0 Z"></path>
<path d="M128.3,109.0 C113.8,99.7 119.0,89.6 119.0,89.6 C122.0,82.7 120.5,78.6 120.5,78.6 C119.2,72.0 123.4,76.3 123.4,76.3 C127.3,80.9 125.5,87.3 125.5,87.3 C122.9,97.6 130.6,101.9 134.4,103.2" fill="currentColor" style="transform-origin: 130px 106px;" class="octo-arm"></path>
<path d="M115.0,115.0 C114.9,115.1 118.7,116.5 119.8,115.4 L133.7,101.6 C136.9,99.2 139.9,98.4 142.2,98.6 C133.8,88.0 127.5,74.4 143.8,58.0 C148.5,53.4 154.0,51.2 159.7,51.0 C160.3,49.4 163.2,43.6 171.4,40.1 C171.4,40.1 176.1,42.5 178.8,56.2 C183.1,58.6 187.2,61.8 190.9,65.4 C194.5,69.0 197.7,73.2 200.1,77.6 C213.8,80.2 216.3,84.9 216.3,84.9 C212.7,93.1 206.9,96.0 205.4,96.6 C205.1,102.4 203.0,107.8 198.3,112.5 C181.9,128.9 168.3,122.5 157.7,114.1 C157.9,116.9 156.7,120.9 152.7,124.9 L141.0,136.5 C139.8,137.7 141.6,141.9 141.8,141.8 Z" fill="currentColor" class="octo-body"></path>
</svg>
</a>
<script id="raw_graphviz" type="text/plain">
// Make components in tier 1
stone -> silicon_ore; // #raw #t1
crude_oil -> plasma_refining -> {refined_oil, hydrogen}; // #raw #t1 #t2
{hydrogen, refined_oil} -> xray_cracking -> {hydrogen, energetic_graphite}; #t1 #t2
fire_ice -> ice_collect -> {hydrogen, graphene}; // #rare #t1 #t3
critical_photon -> {hydrogen, antimatter}; // #t1
hydrogen -> deuterium; // #t1
// Make components in tier 2
iron_ore -> iron_ingot; // #raw #t2
copper_ore -> copper_ingot; // #raw #t2
stone -> stone_brick; // #raw #t2
coal -> energetic_graphite; // #raw #t2
silicon_ore -> high_purity_silicon; // #raw #t2
titanium_ore -> titanium_ingot; // #raw #t2
{refined_oil, stone, water} -> sulfuric_acid; // #raw #t2
{titanium_ingot, hydrogen} -> hydrogen_fuel_rod; // #t2
{titanium_alloy, deuterium, super_magnetic_ring} -> deuteron_fuel_rod; // #t2
{antimatter, hydrogen, annihilation_constraint_crystal, titanium_alloy} -> antimatter_fuel_rod; // #t2
// Make components in tier 3
iron_ore -> magnet; // #raw #t3
{magnet, copper_ingot} -> magnetic_coil; // #t3
stone -> glass; // #raw #t3
energetic_graphite -> make_d1 -> diamond; // #t3
kimberlite_ore -> make_d2 -> diamond; // #rare #t3
high_purity_silicon -> make_cs_1 -> crystal_silicon; // #t3
fractal_silicon -> make_cs_2 -> crystal_silicon; // #rare #t3
{steel, titanium_ingot, sulfuric_acid} -> titanium_alloy; // #t3
{refined_oil, energetic_graphite} -> plastic; // #t3
{log, plant_fuel, water} -> make_oc_2 -> organic_crystal; // #junk #t3
{water, refined_oil, plastic} -> make_oc_1 -> organic_crystal; // #t3
{energetic_graphite, sulfuric_acid} -> make_g1 -> graphene; // #t3
{steel, copper_ingot} -> thruster; // #logistics #t3
// Make components in tier 4
iron_ingot -> steel; // #t4
{iron_ingot, copper_ingot} -> circuit_board; // #t4
glass -> prism; // #t4
{iron_ingot, gear, magnetic_coil} -> electric_motor; // #t4
{high_purity_silicon, copper_ingot} -> microcrystalline_component; // #t4
coal -> proliferator_mk1; // #raw #t4
{titanium_crystal, graphene, hydrogen} -> make_cc1 -> casimir_crystal; // #t4
{optical_grating_crystal, graphene, hydrogen} -> make_cc2 -> casimir_crystal; // #rare #t4
{particle_container, iron_ingot, deuterium} -> strange_matter; // #t4
{titanium_ingot, organic_crystal} -> titanium_crystal; // #t4
{titanium_ingot, graphene} -> make_cn_1 -> carbon_nanotube; // #t4
spiniform_stalagmite_crystale -> make_cn_2 -> carbon_nanotube; // #rare #t4
{titanium_alloy, electromagnetic_turbine} -> reinforced_thruster; // #logistics #t4
// Make components in tier 5
iron_ingot -> gear; // #t5
{magnetic_coil, prism} -> plasma_exciter; // #t5
{prism, circuit_board} -> make_photoncombiner_1 -> photon_combiner; // #t5
{optical_grating_crystal, circuit_board} -> make_photoncombiner_2 -> photon_combiner; // #t5
{magnetic_coil, electric_motor} -> electromagnetic_turbine; // #t5
{circuit_board, microcrystalline_component} -> processor; // #t5
{proliferator_mk1, diamond} -> proliferator_mk2; // #t5
{particle_container, processor} -> annihilation_constraint_crystal; // #t5
{glass, titanium_ingot, water} -> titanium_glass; // #t5
{carbon_nanotube, crystal_silicon, plastic} -> particle_broadband; // #t5
{iron_ingot, processor, thruster} -> logistics_drone; // #logistics #t5
// Make components in tier 6
{stone_brick, steel} -> foundation; // #t6
{copper_ingot, graphene, electromagnetic_turbine} -> make_pc_1 -> particle_container; // #t6
{copper_ingot, unipolar_magnet} -> make_pc_2 -> particle_container; // #rare #t6
{magnet, energetic_graphite, electromagnetic_turbine} -> super_magnetic_ring; // #t6
{diamond, strange_matter} -> graviton_lens; // #t6
{proliferator_mk2, carbon_nanotube} -> proliferator_mk3; // #t6
graviton_lens -> make_sw1 -> space_warper; // #t6
green_cube -> make_sw2 -> space_warper; // #t6
{casimir_crystal, titanium_glass} -> plane_filter; // #t6
{processor, plane_filter} -> quantum_chip; // #t6
{titanium_alloy, processor, reinforced_thruster} -> logistics_vessel; // #logistics #t6
// Make components in tier 7
{magnetic_coil, circuit_board} -> blue_cube; // #t7
{energetic_graphite, hydrogen} -> red_cube; // #t7
{titanium_crystal, diamond} -> yellow_cube; // #t7
{processor, particle_broadband} -> purple_cube; // #t7
{graviton_lens, quantum_chip} -> green_cube; // #t7
{blue_cube, red_cube, yellow_cube, purple_cube, green_cube, antimatter} -> white_cube; // #t7
{graphene, photon_combiner} -> solar_sail; // #dyson #t7
{carbon_nanotube, titanium_alloy, high_purity_silicon} -> frame_material; // #dyson #t7
{frame_material, solar_sail, processor} -> dyson_sphere_component; // #dyson #t7
{dyson_sphere_component, deuteron_fuel_rod, quantum_chip} -> small_carrier_rocket; // #dyson #t7
// Rare
unipolar_magnet, make_pc_2 [color = purple]; // #rare
kimberlite_ore, make_d2 [color = purple]; // #rare
spiniform_stalagmite_crystale, make_cn_2 [color = purple]; // #rare
optical_grating_crystal, make_photoncombiner_2, make_cc2 [color = purple]; // #rare
fractal_silicon, make_cs_2 [color = purple]; // #rare
fire_ice, ice_collect [color = purple]; // #rare
// Raw, non-rare
iron_ore, copper_ore, stone, coal, silicon_ore, titanium_ore, water, crude_oil [color = green]; // #raw
log, plant_fuel [color = green]; // #raw, #junk
// Make buildings in t1
{iron_ingot, magnetic_coil} -> tesla_tower; // #building #bt1
{tesla_tower, plasma_exciter} -> wireless_power_tower; // #building #bt1
{wireless_power_tower, super_magnetic_ring, frame_material} -> satellite_substation; // #building #bt1
{iron_ingot, gear, magnetic_coil} -> wind_turbine; // #building #bt1
{iron_ingot, stone_brick, gear, magnetic_coil} -> thermal_power_plant; // #building #bt1
{copper_ingot, high_purity_silicon, circuit_board} -> solar_panel; // #building #bt1
{steel, copper_ingot, photon_combiner, super_magnetic_ring} -> geothermal_power_station; // #building #bt1
{titanium_alloy, steel, processor, particle_container} -> energy_exchanger; // #building #bt1
{steel, high_purity_silicon, photon_combiner, processor, super_magnetic_ring} -> ray_receiver; // #building #bt1
{titanium_alloy, frame_material, annihilation_constraint_sphere, quantum_chip} -> artificial_star; // #building #bt1
tesla_tower, wireless_power_tower, satellite_substation, wind_turbine, thermal_power_plant, solar_panel, geothermal_power_station, energy_exchanger, ray_receiver, artificial_star [color = blue]; // #building #bt1
// Make buildings in t2
{iron_ingot, gear} -> conveyor_belt_mk1; // #building #bt2
{conveyor_belt_mk1, electromagnetic_turbine} -> conveyor_belt_mk2; // #building #bt2
{conveyor_belt_mk2, super_magnetic_ring, graphene} -> conveyor_belt_mk3; // #building #bt2
{iron_ingot, gear, circuit_board} -> splitter; // #building #bt2
{steel, gear, super_magnetic_coil, processor} -> automatic_piler; // #building #bt2
{iron_ingot, gear, glass, circuit_board} -> traffic_monitor; // #building #bt2
{iron_ingot, stone_brick} -> storage_mk1; // #building #bt2
{steel, stone_brick} -> storage_mk2; // #building #bt2
{iron_ingot, stone_brick, glass} -> storage_tank; // #building #bt2
{steel, titanium_ingot, processor, particle_container} -> planetary_logistics_station; // #building #bt2
{planetary_logistics_station, titanium_alloy, particle_container} -> interstellar_logistics_station; // #building #bt2
{interstellar_logistics_station, super_magnetic_coil, reinforced_thruster, accumulator} -> orbital_collector; // #building #bt2
conveyor_belt_mk1, conveyor_belt_mk2, conveyor_belt_mk3, splitter, automatic_piler, traffic_monitor, storage_mk1, storage_mk2, storage_tank, planetary_logistics_station, interstellar_logistics_station, orbital_collector [color = blue]; // #building #bt2
// Make buildings in t3
{iron_ingot, circuit_board} -> sorter_mk1; // #building #bt3
{sorter_mk1, electric_motor} -> sorter_mk2; // #building #bt3
{sorter_mk2, electromagnetic_turbine} -> sorter_mk3; // #building #bt3
{iron_ingot, circuit_board, magnetic_coil, gear} -> mining_machine; // #building #bt3
{titanium_alloy, frame_material, super_magnetic_ring, quantum_chip, optical_grating_crystal} -> advanced_mining_machine; // #building #bt3
{iron_ingot, stone_brick, electric_motor, circuit_board} -> water_pump; // #building #bt3
{steel, stone_brick, circuit_board, plasma_exciter} -> oil_extractor; // #building #bt3
{steel, stone_brick, circuit_board, plasma_exciter} -> oil_refinery; // #building #bt3
{titanium_alloy, frame_material, super_magnetic_ring, graphene, processor} -> miniature_particle_collider; // #building #bt3
{steel, gear, processor, super_magnetic_ring} -> em_rail_ejector; // #building #bt3
{titanium_alloy, frame_material, graviton_lens, quantum_chip} -> vertical_launching_silo; // #building #bt3
sorter_mk1, sorter_mk2, sorter_mk3, mining_machine, advanced_mining_machine, water_pump, oil_extractor, oil_refinery, miniature_particle_collider, em_rail_ejector, vertical_launching_silo [color = blue]; // #building #bt3
// Make buildings in t4
{iron_ingot, gear, circuit_board} -> assembler_mk1; // #building #bt4
{assembler_mk1, graphene, processor} -> assembler_mk2; // #building #bt4
{assembler_mk2, particle_broadband, quantum_chip} -> assembler_mk3; // #building #bt4
{iron_ingot, stone_brick, circuit_board, magnetic_coil} -> arc_smelter; // #building #bt4
{arc_smelter, frame_material, plane_filter, unipolar_magnet} -> plane_smelter; // #building #bt4
{steel, plasma_exciter, circuit_board, microcrystalline_component} -> spray_coater; // #building #bt4
{steel, stone_brick, glass, processor} -> fractionator; // #building #bt4
{steel, stone_brick, glass, circuit_board} -> chemical_plant; // #buiding #bt4
{iron_ingot, glass, circuit_board, magnetic_coil} -> matrix_lab; // #building #bt4
{iron_ingot, super_magnetic_coil, crystal_silicon} -> accumulator; // #building #bt4
assembler_mk1, assembler_mk2, assembler_mk3, arc_smelter, plane_smelter, spray_coater, fractionator, chemical_plant, matrix_lab, accumulator [color = blue]; // #building #bt4
</script>
<script src="viz.js"></script>
<script src="full.render.js"></script>
<script src="svg-pan-zoom.min.js"></script>
<script src="index.js"></script>
</body>
</html>