-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
362 lines (359 loc) · 13.6 KB
/
index.php
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
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
<?php //File fetcher
function get_dir($d, $c){
$dir = $d."/*".$c.".*"; // Example: download/gci/filename.us.gci or rel/filname.GZ2E01.gct
$f = glob($dir);
$f = array_combine($f, array_map('filectime', $f));
arsort($f);
echo key($f);
};
?>
<!DOCTYPE html>
<html>
<head>
<link rel="icon" target="_blank" href="favicon.png">
<title>TP Randomizer</title>
<meta property="og:title" content="Twilight Princess Randomizer" />
<meta property="og:url" content="https://rando.tpspeed.run/" />
<meta property="og:image" content="https://rando.tpspeed.run/img/logo.png" />
<meta property="og:description" content="The official Twilight Princess Randomizer website! From download to setup and even tools!" />
<link rel="stylesheet" target="_blank" href="css/style.css">
</head>
<body>
<img src="img/logo.png"/>
<div id="IsIE">
<b>Your web browser is obsolete.</b>
<br />
Update your browser for more security, and in order to see this website.
<br />
There are plenty of other browsers far more secure and modern, for example
<a target="_blank" href="https://www.google.com/chrome/" style="color: red;">Chrome</a>
or
<a target="_blank" href="https://www.mozilla.org/en-US/firefox/new/" style="color: red;">Firefox.</a>
</div>
<div id="IsNotIE">
<div class="blackbg">
<h1>Quick download</h1>
<a target="_blank" href="<?php get_dir('download/gci','us'); ?>" download><img class="blackbor flag" src="img/usa.jpg" /></a>
<a target="_blank" href="<?php get_dir('download/gci','eu'); ?>" download><img class="blackbor flag" src="img/eur.jpg" /></a>
<a target="_blank" href="<?php get_dir('download/gci','jp'); ?>" download><img class="blackbor flag" src="img/jpn.jpg" /></a>
</div>
<div class="blackbg">
<h1>Set up guide</h1>
<hr />
<p>
Which version of the game are you using?
</p>
<label>
<input type="radio" name="reg" value="1">
<div class="btn btn-1 btn-1a" type="button" onclick="GameVer('usa')">
USA
<br />
GZ2E01
</div>
</label>
<label>
<input type="radio" name="reg" value="2">
<div class="btn btn-1 btn-1a" type="button" onclick="GameVer('eur')">
Europe
<br />
GZ2P01
</div>
</label>
<label>
<input type="radio" name="reg" value="3">
<div class="btn btn-1 btn-1a" type="button" onclick="GameVer('jap')">
Japanese
<br />
GZ2J01
</div>
</label>
<p>
Please click on the tutorial you want to follow.
</p>
<div class="dropdown-container">
<header class="clearfix">
<hr class="hr2" />
<h2>Playing on Wii</h2>
<hr class="hr2" />
</header>
<article>
<div class="article-inner">
<p>
<b>Setting up your SD Card</b>
<br />
Download these three files:
</p>
<table>
<tr>
<td class="rBor">
<a target="_blank" href="https://takarikka.github.io/files/nintendont.zip"><img src="img/nintendont.png" /></a>
</td>
<td class="rBor">
<a target="_blank" href="https://takarikka.github.io/files/gcmm.zip"><img src="img/github.png" /></a>
</td>
<td>
<a target="_blank" href="https://mirror.tpspeed.run/Software/Homebrew/Wii/NeoGamma%20Twilight%20Princess.zip"><img src="img/neogamma.png" /></a>
</td>
</tr>
<tr>
<td class="rBor">
<a target="_blank" href="https://takarikka.github.io/files/nintendont.zip">Nintendont<br />Package</a>
</td>
<td class="rBor">
<a target="_blank" href="https://takarikka.github.io/files/gcmm.zip">GCMM 1.4f</a>
</td>
<td>
<a target="_blank" href="https://mirror.tpspeed.run/Software/Homebrew/Wii/NeoGamma%20Twilight%20Princess.zip">Neogamma</a>
</td>
</tr>
</table>
<p>
Install Neogamma using your Homebrew Channel.
</p>
<p>
Create an "apps" folder on your SD card then extract the files you downloaded earlier in it.
<br />
Create two new folders at the root of your SD card, they will be called "codes" and "MCBACKUP".
<br />
Download the REL Loader cheat for to your region:
</p>
<a class="usa" target="_blank" href="<?php get_dir('download/gct','GZ2E01'); ?>" download><img class="usa blackbor flag"src="img/usa.jpg" /></a>
<a class="eur" target="_blank" href="<?php get_dir('download/gct','GZ2P01'); ?>" download><img class="eur blackbor flag" src="img/eur.jpg" /></a>
<a class="jap" target="_blank" href="<?php get_dir('download/gct','GZ2J01'); ?>" download><img class="jap blackbor flag"src="img/jpn.jpg" /></a>
<p>
Place REL Loader cheat in the "codes" folder.
<br />
Download the lastest version of the download/gci for your game region:
</p>
<a class="usa" target="_blank" href="<?php get_dir('download/gci','us'); ?>" download><img class="usa blackbor flag" src="img/usa.jpg" /></a>
<a class="eur" target="_blank" href="<?php get_dir('download/gci','eu'); ?>" download><img class="eur blackbor flag" src="img/eur.jpg" /></a>
<a class="jap" target="_blank" href="<?php get_dir('download/gci','jp'); ?>" download><img class="jap blackbor flag" src="img/jpn.jpg" /></a>
<p>
Create a "MCBACKUP" folder.
<br />
Place the .gci file in the "MCBACKUP" folder.
<br />
If you followed each step correctly, you should have something like this:
</p>
<div class="tree blackbg">
<ul>
<li>
SD
<ul>
<li>
apps
<ul>
<li>gcmm</li>
<ul>
<li>boot.dol</li>
<li>icon.png</li>
<li>meta.xml</li>
</ul>
<li>nintendont</li>
<ul>
<li>boot.dol</li>
<li>icon.png</li>
<li>meta.xml</li>
</ul>
</ul>
</li>
<li>
codes
<ul>
<li>GZ2X01.gct</li>
</ul>
</li>
<li>
MCBACKUP
<ul>
<li>download/gci.gci</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<!--
<p>
Here is a picture of each folder:
</p>
<img src="img/sd.jpg" />
-->
<p>
<b>Setting up your Wii</b>
<br />
Launch GCMM on your Wii and restore the .gci file to your memory card
<br />
<img class="blackbor" src="img/wii_1.jpg" />
<img class="blackbor" src="img/wii_2.jpg" />
Launch Nintendont or another Loader and turn cheats "on" in the options
<br />
<img class="blackbor" src="img/wii_3.jpg" />
If you're using NeogammaTP, turn off Custom TP Cheats
<br />
<img class="blackbor" src="img/wii_4.jpg" />
<img class="blackbor" src="img/wii_5.jpg" />
<p>
Launch game!
</p>
<p class="red">
If when you load Nintendont and load up the game the screen turns green:<br />
Turn off cheats.<br />
Return to the Homebrew Channel by pressing R+Z+B+D-Pad Down.<br />
Enable cheats and load it again.
</p>
<hr />
</div>
</article>
</div>
<div class="dropdown-container">
<header class="clearfix">
<hr class="hr2" />
<h2>Playing on Dolphin</h2>
<hr class="hr2" />
</header>
<article>
<div class="article-inner">
<p>
Download Dolphin:
</p>
<table>
<tr>
<td>
<a target="_blank" href="https://en.dolphin-emu.org/download/"><img src="img/dolphin.png" /></a>
</td>
</tr>
<tr>
<td>
<a target="_blank" href="https://en.dolphin-emu.org/download/">Dolphin Emulator</a>
</td>
</tr>
</table>
<p>
Which version of Dolphin are you using?
</p>
<p class="red">
Disclaimer: This is sometimes innacurate, if you don't see the same thing than on the screenshots and cannot follow the tutorial, please click on the other button.
</p>
<label>
<input type="radio" name="ver" value="1">
<div class="btn btn-1 btn-1a" type="button" onclick="DolVer('low5')">
Lower than 5.0-7
</div>
</label>
<label>
<input type="radio" name="ver" value="2" checked>
<div class="btn btn-1 btn-1a" type="button" onclick="DolVer('high5')">
5.0-7 or higher
</div>
</label>
<p>
Open Dolphin, right click on TP and open properties
</p>
<img class="blackbor" src="img/dol_1.png" />
<p>
Go to the "Gecko Codes" tab and click on
<span class="spanLow5">"Edit Config"</span>
<span class="spanHigh5">"Add New Code"</span>
</p>
<img class="high5 blackbor" src="img/dol_2.png" />
<img class="low5 blackbor" src="img/dol_2_oldv.png" />
<p>
Copy this REL Loader code for to your game region:
</p>
<a class="usa" target="_blank" href="https://github.com/zsrtp/GC-DevTools/blob/master/relloader/Code/RELLoaderGecko_US.txt" download><img class="usa blackbor flag" src="img/usa.jpg" /></a>
<a class="eur" target="_blank" target="_blank" href="https://github.com/zsrtp/GC-DevTools/blob/master/relloader/Code/RELLoaderGecko_EU.txt" download><img class="eur blackbor flag" src="img/eur.jpg" /></a>
<a class="jap" target="_blank" href="https://github.com/zsrtp/GC-DevTools/blob/master/relloader/Code/RELLoaderGecko_JP.txt" download><img class="jap blackbor flag" src="img/jpn.jpg" /></a>
<p>
<span class="spanLow5">Make a new line with "[Gecko]" and paste the REL Loader code under it</span>
<span class="spanHigh5">Paste the code in the "Code:" black space and click on "Save"</span>
</p>
<img class="high5 blackbor" src="img/dol_3.png" />
<img class="low5 blackbor" src="img/dol_3_oldv.png" />
<p>
Save and close config. Make sure code is enabled
</p>
<img class="high5 blackbor" src="img/dol_4.png" />
<img class="low5 blackbor" src="img/dol_4_oldv.png" />
<p>
Download the lastest version of the download/gci for your game region:
</p>
<a class="usa" target="_blank" href="<?php get_dir('download/gci','us'); ?>" download><img class="usa blackbor flag" src="img/usa.jpg" /></a>
<a class="eur" target="_blank" href="<?php get_dir('download/gci','eu'); ?>" download><img class="eur blackbor flag" src="img/eur.jpg" /></a>
<a class="jap" target="_blank" href="<?php get_dir('download/gci','jp'); ?>" download><img class="jap blackbor flag" src="img/jpn.jpg" /></a>
<p>
In Dolphin, go to tools, and open the Memory Card Manager
</p>
<img class="blackbor" src="img/dol_5.png" />
<p>
Import the 'download/gci'.gci to your memory card
</p>
<img class="blackbor" src="img/dol_6.png" />
<p>
Launch game!
</p>
</div>
</article>
</div>
</div>
<div class="blackbg">
<h1>Tools and resources</h1>
<hr />
<br />
<table>
<tr>
<td class="rBor">
<a target="_blank" href="https://takarikka.github.io/TP-Tracker/"><img src="img/github.png" /></a>
</td>
<td class="rBor">
<a target="_blank" href="https://docs.google.com/spreadsheets/d/1quJjkAGV7asF1CNRtJEDNsy9Oga7hmzGLe09u2zxdJI/edit#gid=1131787935"><img src="img/sheets.png" /></a>
</td>
<td class="rBor">
<a target="_blank" href="http://tp.docs.aecx.cc/Yet+Another+GameCube+Documentation/index.html"><img src="img/yagcd.png" /></a>
</td>
<td class="rBor">
<a target="_blank" href="https://github.com/zsrtp"><img src="img/tp.png" /></a>
</td>
<td class="rBor">
<a target="_blank" href="https://wiki.tpspeed.run/Main_Page"><img src="img/wiki.png" /></a>
</td>
<td>
<a target="_blank" href="https://discord.tpspeed.run/"><img src="img/discord.png" /></a>
</td>
</tr>
<tr>
<td class="rBor">
<a target="_blank" href="https://takarikka.github.io/TP-Tracker/">Taka's Item Tracker</a>
</td>
<td class="rBor">
<a target="_blank" href="https://docs.google.com/spreadsheets/d/1quJjkAGV7asF1CNRtJEDNsy9Oga7hmzGLe09u2zxdJI/edit#gid=1131787935">Rando Dev Sheet</a>
</td>
<td class="rBor">
<a target="_blank" href="http://tp.docs.aecx.cc/Yet+Another+GameCube+Documentation/index.html">YAGCD</a>
</td>
<td class="rBor">
<a target="_blank" href="https://github.com/zsrtp">TP Devs</a>
</td>
<td class="rBor">
<a target="_blank" href="https://wiki.tpspeed.run/Main_Page">TP Speedrun Wiki</a>
</td>
<td>
<a target="_blank" href="https://discord.tpspeed.run/">Discord</a>
</td>
</tr>
</table>
</div>
<div class="blackbg" style="padding: 0px; margin-bottom: 0px;">
<p>
v1.09 - Made with
<img style="display: inline; margin: 0px 0px -10px;" src="img/heart.png" />
by
<a target="_blank" href="https://github.com/zsrtp/Randomizer-Frontend" target="_blank" style="color: #d62013;">Luneyes</a>!<br/>
Logo and background image are property of Nintendo. No infringement intended. We love you guys!<br/>
Logo edited by <a target="_blank" href="https://twitter.com/MelonSpeedruns" target="_blank" style="color: #d62013;">MelonSpeedruns</a>!
</p>
</div>
</div>
</body>
<script src="script.js"></script>
</html>