-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
328 lines (283 loc) · 11.6 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
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
<!doctype html>
<html class="no-js" lang="en">
<head>
<meta charset="utf-8" />
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Metal Gear Solid V guns</title>
<link rel="stylesheet" href="css/foundation.css" />
<link rel="stylesheet" href="css/app.css" />
</head>
<body>
<div class="row">
<div class="large-12 columns">
<h3><center>MGSV weapons table</center></h3>
</div>
</div>
<div class='row' style='max-width: 100em'>
<div class="large-12 columns">
<h4>Contents</h4>
<ul>
<li><a href='#notes'>Notes</a></li>
<li><a href='#t4'>Development flow</a></li>
<li><a href='#t3'>All parts</a></li>
<li><a href='#t2'>Open slots</a></li>
<li><a href='#t1'>Default gun parts</a></li>
</ul>
</div>
</div>
<div class='row' style='max-width: 100em'>
<div class="large-12 columns">
These tables contain vital information about MGSV guns. Please read README for basic info here - <a href="https://github.com/unknown321/mgsmonsterguns">https://github.com/unknown321/mgsmonsterguns</a>.
<br>
Most of info was ripped from <span class="secondary label">\master\0\00\Assets\tpp\level_asset\weapon\ParameterTables\parts\EquipParameters.lua</span> and <span class="secondary label">\master\0\00\Assets\tpp\motherbase\script\WeaponPartsCombinationSettings.lua</span> using <a href='https://www.dropbox.com/s/0rtpumx2mxsjaby/MGSV_QAR_Tool.rar?dl=0'>MGSV QAR Tool v1.3 by Sergeanur</a>, <a href='https://github.com/Atvaark/FoxEngine.TranslationTool'>FoxEngine.TranslationTool</a> and some Python magic.
<br>
All parts table is sorted by part type and used when you need it.
<br>
Open slots table is sorted by type (frame->barrel) and amount of slots (from less to more). You should use it when you need to find a frame with many slots for example.
<br>
Default gun parts table has all parts for every single default gun. Not sure when you'll need to use this, nonetheless it is here.
<br>
All data is parsed from json files from <a href="https://github.com/unknown321/mgsmonsterguns/tree/gh-pages/js">/js/</a> directory.
<br>
Weapons with West, Com, DEMO and other prefixes are used by enemies such as TppEquip.WP_West_ar_040; you cannot develop them.
<br>
<br>
<h4>How to identify your gun (using SERVAL grade 7 as example)</h4>
<ul>
<li>Load guns in Development flow table below</li>
<li>Ctrl+F <span class="secondary label">SERVAL AMR-7, ★8</span></li>
<li>Look for <span class="secondary label">"weapon":"TppEquip.WP_60417"</span></li>
<li>Open <span class="secondary label">EquipParameters.lua</span> (for closed slots) / <span class="secondary label">WeaponPartsCombinationSettings.lua</span> (open slots)</li>
<li>Ctrl+F - <span class="secondary label">TppEquip.WP_60417</span> </li>
<li>You did it.</li>
<li><img src='img/serval.png' width="30%"></li>
</ul>
</div>
</div>
<div class='row' id='also'>
<div class='large-12 columns'>
<h4>See also</h4>
<p><a href="https://github.com/unknown321/mgsvdump">https://github.com/unknown321/mgsvdump</a></p>
<p><a href="https://github.com/unknown321/mgsmwaifus">https://github.com/unknown321/mgsmwaifus</a></p>
</div>
</div>
<div class="row">
<div class="large-12 columns">
<table id='t4' class='stack hover'>
<caption>Development flow <a href="#!" class='tiny hollow button' onClick='load_devflow()'>load</a></caption>
<thead>
<td>Section 1</td>
<td>Section 2</td>
<td>Section 3</td>
<td>Section 4</td>
<td>Section 5</td>
<td>Section 6</td>
<td>Section 7</td>
</thead>
<tbody id='devflow'>
</tbody>
</table>
</div>
</div>
<hr>
<div class="row">
<div class="large-12 columns">
<table id='t3' class='stack hover'>
<caption>All parts <a href="#!" class='tiny hollow button' onClick='load_parts()'>load</a></caption>
<thead>
<td>Type</td>
<td>Name</td>
<td>Img</td>
<td>partsID</td>
<td>Description</td>
</thead>
<tbody id='parts'>
</tbody>
</table>
</div>
</div>
<hr>
<div class="row">
<div class="large-12 columns">
<table id='t2' class='stack hover' style='width:50%'>
<caption>Open slots on barrels and frames <a href="#!" class='tiny hollow button' onClick='load_slots()'>load</a></caption>
<thead>
<td>partsID</td>
<td>Name</td>
<td>Slots</td>
</thead>
<tbody id='open_slots'>
</tbody>
</table>
</div>
</div>
<hr>
<div class="row">
<div class="large-12 columns">
<table id='t1' class='stack hover'>
<caption>Default gun parts <a href="#!" class='tiny hollow button' onClick='load_default()'>load</a></caption>
<thead>
<td>Frame</td>
<td>Barrel</td>
<td>Magazine</td>
<td>Stock</td>
<td>Muzzle</td>
<td>Muzzle option</td>
<td>Flashlight</td>
<td>Sight</td>
<td>Laser sight</td>
<td>Foregrip</td>
</thead>
<tbody id='default_gun_parts'>
</tbody>
</table>
</div>
</div>
<script src="js/vendor/jquery.min.js"></script>
<script src="js/vendor/what-input.min.js"></script>
<script src="js/foundation.min.js"></script>
<script src="js/app.js"></script>
<script src="js/jquery.lazyload.js"></script>
<script src="js/jquery.floatThead.min.js"></script>
<script type="text/javascript">
function load_parts(){
//javascript is gross
$.getJSON('js/parts.json').done(function (data){
$.each(data, function (i,f)
{
var desc = ""
f.abilities.forEach(function(s){
desc = desc + s + ', '
})
desc = desc.slice(0,-2)
if (f.icon != null)
icon = f.icon.substr(f.icon.lastIndexOf('/'))
row = "\
<tr>\
<td>" + f.type + "</td>" +
"<td>" + f.name + "</td>" +
"<td>"
if (icon)
row = row + "<img id=" + f.partID + " style='background-color:#3d6c81;' src='img/parts/" + icon + ".png'>"
row = row + "</td>" +
"<td>" + f.partID + "</td>" +
"<td>" + desc + "</td>" +
"</tr>"
$('#parts').append(row)
})
table3 = $('[id=t3]');
table3.floatThead();
})
}
function load_slots(){
$.getJSON('js/open_slots.json').done(function (data){
$.each(data, function (i,f)
{
$('#open_slots').append("\
<tr>\
<td>" + f.receiver + "</td><td>" + f.names.part + "</td><td>" + f.names.slots +"</td>\
</tr>")
})
table2 = $('[id=t2]');
table2.floatThead();
})
}
function load_default(){
$.getJSON('js/default_gun_components.json').done(function (data){
keys = ["frame","barrel","magazine","stock","muzzle","muzzle_option","flashlight","sight","laser_sight","foregrip"]
$.each(data, function (i,f)
{
keys.forEach(function(key) {
if (!(f['names'].hasOwnProperty(key))) {
f['names'][key] = ""
}
})
$('#default_gun_parts').append("\
<tr>\
<td>" + f.names.frame + "</td><td>" + f.names.barrel + "</td><td>" + f.names.magazine +
"</td><td>" + f.names.stock + "</td><td>" + f.names.muzzle + "</td><td>" + f.names.muzzle_option +
"</td><td>" + f.names.flashlight + "</td><td>" + f.names.sight + "</td><td>" + f.names.laser_sight + "</td><td>" + f.names.foregrip + "</td>\
</tr>")
})
table1 = $('[id=t1]');
table1.floatThead();
})
}
function load_devflow(){
//very inefficent
$.getJSON('js/relations.json').done(function (data){
$.each(data, function (i,f)
{
fakerow = "<tr><td>--------------</td></tr>"
$('#devflow').append(fakerow)
row = "<tr id='" + f.item_id + "_" + f.grade + "'>\
<td>"
if (f.item_id > 0)
row = row + "<a onClick=show_info(this," + f.item_id + ")>▼</a>"
else
row = row + "<span data-tooltip aria-haspopup='true' class='has-tip right' data-disable-hover='false' tabindex='1' title='Parts info for this gun can be found in default_gun_components.json'>▼</span>"
row = row + f.name + ', ★' + f.grade +
"</td>\
</tr>"
$('#devflow').append(row)
if ('children' in f)
parse_children(f,1)
})
table4 = $('[id=t4]');
table4.floatThead();
})
}
function parse_children(parent, depth){
parent['children'].forEach(function (item){
row = '<tr>'
amount = 1
while (amount != depth){
row = row + '<td></td>'
amount = amount + 1
}
row = row + '<td style="text-align:right">└─────></td>'
row = row + "<td><a onClick=show_info(this," + item.item_id + ")>▼</a>" + item.name + ', ★' + item.grade + "</td>"
row = row + "</tr>"
$('#devflow').append(row)
if ('children' in item)
parse_children(item, depth+1)
})
}
function show_info(cell,item_id) {
$.getJSON('js/default_gun_components.json').done(
function (data){
item = $(data).filter(
function (i,n){
return n['item_id']==item_id
})
item = item[0]
icon = item.icon.substr(item.icon.lastIndexOf('/'))
type = item.type.replace('TppMbDev.','')
moretext = "<a onClick='hide_info(this," +"\"" + item.names.name + ", ★" + item.parts.grade +"\"," + item.item_id + ")'>▶</a>" +
item.names.name + ', ★' + item.parts.grade +
"<br><img style='background-color:#3d6c81;' src='img/weapons/" + icon + ".png'>" +
"<br>name: " + item.names.name +
"<br>grade: " + item.names.grade +
"<br>weapon: " + item.names.weapon +
"<br>item id: " + item.item_id +
"<br>parent id: " + item.parent_id +
"<br>type: " + type +
"<br>item id: " + item.item_id +
"<br>Parts: <textarea cols='40' rows='1'>" + JSON.stringify(item.parts) + "</textarea>" +
"<br>Part names: <textarea cols='40' rows='1'>" + JSON.stringify(item.names) + "</textarea>"
$(cell).parent().html(moretext)
table4 = $('[id=t4]');
table4.floatThead();
})
}
function hide_info(cell,text,item_id){
text = "<a onClick=show_info(this," + item_id + ")>▼</a>" + text
$(cell).parent().html(text)
}
function clear(){
$('tbody > tr').remove()
}
</script>
</body>
</html>