-
Notifications
You must be signed in to change notification settings - Fork 7
/
help.html
101 lines (98 loc) · 3.86 KB
/
help.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
<!DOCTYPE html>
<html>
<head>
<title>CELESTE Classic TAS Database</title>
<link rel="stylesheet" href="styles.css">
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
</head>
<body>
<div class="bootup">
<img src="p8logo.png"> <img src="maddy.png" style="height:1.5em"><br><br>
pico-8 0.2.0<br>
(c) 2014-20 lexaloffle games llp<br>
<br>
</div>
<div class="content">
> help.p8<br>
<hr>
Updating the database<br />
If you wish to contribute to this database feel free to follow the steps bellow.<br /><br />
Updating a level
<ol>
<li>Make sure you cleaned up your file. To do so press U when using the <a
href="https://github.com/gonengazit/UniversalClassicTas">UneversalClassicTas</a> tool.</li>
<li>For minimum inputs make sure to not have more frames of an action than you need. The database will count
those as seperate inputs.</li>
<li>Replace your file in the correct folder. Folder structure is always <em>game/category</em></li>
<li><em>Optionally</em> you might have to add a value to the <em>file</em> field, which should only include
the name of the file, example <em>TAS22.tas</em></il>
</ol><br />
Adding a new level to the Database<br />
<ol>
<li>Add a new file to the correct folder. The folder structure is always <em>game/category</em></li>
<li>Add to <a href="database.json">database.json</a> under game under category a new object. It should look
like:
<br />
<em>
{<br />
 "name": "100m",<br />
 "file": "TAS1.tas"<br />
 "frames": "69"<br />
},<br />
</em>
</li>
<li>Add a <em>"dashes":0</em> field for minDashes categories</li>
</ol><br />
Adding a new category to the database<br />
<ol>
<li>Under the game folder add a new folder with the name of your category <em>without spaces or special
categories</em></li>
<li>Add to <a href="database.json">database.json</a> a new array under your game's object. The name of the
array <em>has to be the same as the folder</em> It should look like:<br />
<em>
"any": [<br />
 {<br />
  "name": "100m",<br />
  "file": "TAS1.tas"<br />
 },<br />
{<br />
 "name": "200m",<br />
 "file": "TAS2.tas"<br />
}<br />
]<br />
</em>
</li>
<li>Make a new <em>index.html</em> file in the new folder and copy paste (for example) <a
href="classic/any/">Celeste classic's any% page</a> then change it to fit the game/category.</li>
<li>Add a link to the new category in the <em>index.html</em> of the game, just one folder above the
category.</li>
<li>Add all tas files in the category's folder</li>
</ol><br />
Adding a new game to the database<br />
<ol>
<li>At the top of this website make a new folder with the name of the game/mod <em>without spaces or special
categories</em>, then a folder inside with the name of the category <em>following the same naming
rules as the game</em>.</li>
<li>Add to <a href="database.json">database.json</a> a new object with the name of the game. The name of the
object <em>has to be the same as the folder</em>, and so does the category inside it. An example
is:<br />
<em>
"classic":{<br />
 "any":[<br />
  {<br />
   "name": "100m",<br />
   "file": "TAS1.tas"<br />
  }<br />
 ]<br />
}
</em>
</li>
<li>Add an <em>index.html</em> file in both the game's folder and the categories. You can use <a
href="classic/">Celeste classic's page</a> as a template for the game and <a
href="celeste/any/">it's any% page</a> as a template for the category.</li>
<li>Add all the neccesarry tas files in the category's page</li>
<li>Add the game to <a href="./">the home page index.html</a> just like all the other games.</li>
</ol>
</div>
</body>
</html>