-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
125 lines (125 loc) · 8.93 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
<!DOCTYPE html>
<html>
<head>
<title>Astral Extractor</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta charset="UTF-8">
</head>
<body>
<link href="https://fonts.googleapis.com/icon?family=Material+Icons"rel="stylesheet">
<link rel="stylesheet" href="styles.css">
<div id="topBar">
<ul style="list-style: none; display: flex; flex-direction: row; align-items: center; padding-left:0">
<li class="heading" id="title" style="padding: 1em">
<a style="color: #ffffff; text-decoration: none; background-color: #0063db; padding: 1em" href="https://cabalex.github.io"><b>cabalex.github.io</b></a>
</li>
<li id="gameLogo">
<a href="https://astralchain.nintendo.com/introduction/"><image src="https://www.nintendo.co.jp/switch/ab48a/assets/images/common/logo/software_flat.png" height="40px"></image></a>
</li>
<a href="https://github.com/cabalex/astral-extractor/" id="homepage"><li class="heading" style="padding: 1em">
<b id='name'>astral extractor <span id="version">loading...</span></b>
</li></a>
<a title="Help and About" id="help" onclick='$(".modal").css("display", "block")'><li><img src="assets/help.png" height="50px"></li></a>
<a title="Report Issue" onclick="window.open('https://github.com/cabalex/astral-extractor/issues')" id="issue"><li><img src="assets/issue.png" height="50px"></li></a>
<a title="Quest Editor" href="quest-editor/index.html" style="color: white" id="editor"><li><img src="assets/neuron.png" height="50px"> QUEST EDITOR</li></a>
</ul>
</div>
<div class="sideBar" style="width: 180px; left: 0; overflow-y: hidden;">
<div class="newHeading">
<a href="https://cabalex.github.io"><b>cabalex.github.io</b></a>
</div>
<ul id="sideBarContents" style="list-style: none; padding-left:5px; overflow-y: auto; overflow-x: hidden; margin-top: 0; max-height: calc(100% - 120px)">
<li style="padding-top: 5px"></li>
<li style="background-color: #3C3744"><a href="#content"><img src="assets/marker-1.png" height="30px">Top</a></li>
</ul>
<div class="newFooter">
<a ondrop="dropHandler(event);" onclick="$('#upload').trigger('click');" ondragover="dragOverHandler(event);" href="#initial"><b><span class="material-icons">add</span>add more</b></a>
</div>
</div>
<div style="margin-top: 50px"></div>
<div id="workspace">
<div id="content">
<div style="margin-top: 25px"></div>
</div>
<div id="initial" style="margin-top: 70px">
<input type="file" id="upload" onchange="clickFiles(this)" multiple style="display:none"/>
<div id="drop_zone" ondrop="dropHandler(event);" onclick="$('#upload').trigger('click');" ondragover="dragOverHandler(event);">
<div id="drop_zone_headings">
<h1>Astral Extractor</h1>
<h4>A web based, client-side extractor for Astral Chain</h4>
<h3>Astral Extractor is still in dev! Report any issues you find by clicking<img src="assets/issue.png" width="40px">.</h3>
</div>
<p id="dropMessage">Drag and drop or click to upload...</p>
<br>
<p>Supported files: <p id="supportedFiles" style="font-family: Consolas, sans-serif">loading...</p></p>
<p>Planned files: <p style="font-family: Consolas, sans-serif">.wta, .wtp, .wtb, .uvd, .uid</p></p>
</div>
<br>
</div>
</div>
<div id="infoModal" class="modal">
<div class="modal-content">
<span class="close" onclick='$(".modal").css("display", "none")'><img src="assets/delete.png" height="30px"></span>
<h2>Help</h2>
<p>Upload your file by clicking the upload box, or drag n' drop. <b>You can hover over many things to see what they do</b>, but the main interface is like so:</p>
<p>
<a><span class="material-icons">expand_less</span><span class="material-icons">expand_more</span></a> Show/hide a file. Useful for managing multiple files.<br>
<img src="assets/legatus.png" height="30px"> Hover over the Legatus and click <span class="material-icons">close</span> to close. You can also click <img src="assets/marker-3.png" height="30px"> and <img src="assets/marker-2.png" height="30px"> in the sidebar as well.<br>
<a><span class="material-icons">menu</span></a> Open a context menu, containing actions you may find useful!
</p>
<p><a><span class="material-icons">download</span></a> Download a file to your device.<br>
<a><span class="material-icons">open_in_new</span></a> Open the file in a new editor tab, if applicable.<br>
<a><span class="material-icons">file_upload</span></a> Replace the file. A <img style="filter: invert(1)" src="assets/replaced-black.png" height="30px"> will appear next to the file, indicating its replacement.<br>
<a><span class="material-icons">close</span></a> Remove a file from the package. Irreversable!<br>
<a>OPEN ALL</a> Opens (<span class="material-icons">open_in_new</span>) every file it can in the menu. <i>Careful!</i> Loading every file in a PKZ or DAT/DTT may cause your tab to crash.
</p>
<h2>Credits</h2>
<p>JS Libraries used: JQuery, <a href="https://developers.google.com/fonts/">Google's Material Icons</a>, <a href="https://gildas-lormeau.github.io/zip.js/index.html">ZIPJS</a>, <a href="https://github.com/eligrey/FileSaver.js/">FileSaver.js</a>, <a href="https://github.com/donmccurdy/zstddec">zstddec</a>, <a href="https://github.com/yoshihitoh/zstd-codec">zstd-codec</a>, <a href="https://modelviewer.dev/">model-viewer</a>, <a href="https://git.io/float16">float16</a><br>
Special thanks to the NieR modding community and r/AstralChain, especially <a href="https://github.com/Kerilk">Kerilk</a><br>
<a href="https://astralchain.nintendo.com/introduction/">ASTRAL CHAIN</a> and its files are property of Platinum Games and Nintendo</p>
<p>Astral Extractor created by Cabalex - Try my other modding tools! <a href="https://github.com/cabalex/AstralChain2Blender">AstralChain2Blender</a> - <a href="https://github.com/cabalex/Blender2AstralChain">Blender2AstralChain</a> - <a href="https://docs.google.com/spreadsheets/d/1qTOnFUdTfPtXfizpqoj2IbcLhTCJWRiF9MI3N8wiP3U/edit?usp=sharing">RomFS Documentation</a> - <a href="https://gist.github.com/cabalex/167bb168ccbe72a7ce829a2351db49e0">PKZ Repacker</a></p>
</div>
</div>
<!-- external libraries -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<script src="scripts/zstd.js" type="text/javascript"></script>
<script src="scripts/encoding.min.js" type="text/javascript"></script>
<script src="scripts/zip.min.js" type="text/javascript"></script>
<script src="scripts/filesaver.min.js" type="text/javascript"></script>
<script src="https://unpkg.com/@google/model-viewer/dist/model-viewer.min.js" type="module"></script>
<script src="scripts/float16.js" type="text/javascript"></script>
<script src="scripts/ww2ogg-decoder.js" type="text/javascript"></script>
<!-- ZSTD-codec would be here but it's too big to load on page load, check loader.js -->
<!-- fresh homemade scripts -->
<script src="scripts/lookupTable.js" type="text/javascript"></script>
<script src="scripts/filetypes/dat.js" type="text/javascript"></script>
<script src="scripts/filetypes/pkz.js" type="text/javascript"></script>
<script src="scripts/tegrax1swizzle.js" type="text/javascript"></script>
<script src="scripts/filetypes/wta.js" type="text/javascript"></script>
<script src="scripts/filetypes/mcd.js" type="text/javascript"></script>
<script src="scripts/filetypes/csv.js" type="text/javascript"></script>
<script src="scripts/filetypes/bxm.js" type="text/javascript"></script>
<script src="scripts/filetypes/wtb.js" type="text/javascript"></script>
<script src="scripts/filetypes/wmb.js" type="text/javascript"></script>
<script src="scripts/filetypes/mot.js" type="text/javascript"></script>
<script src="scripts/filetypes/bnk.js" type="text/javascript"></script>
<script src="scripts/filetypes/lay.js" type="text/javascript"></script>
<script src="scripts/filetypes/ptd.js" type="text/javascript"></script>
<script src="scripts/filetypes/save.js" type="text/javascript"></script>
<script src="scripts/filetypes/quest.js" type="text/javascript"></script>
<script src="scripts/filetypes/event.js" type="text/javascript"></script>
<script src="scripts/loader.js" type="text/javascript"></script>
<!-- init -->
<script type="text/javascript">
if (window.document.documentMode) {
// Check for IE and shame the user for using it
$("#drop_zone").attr('onclick', '');
$("#drop_zone").css('background-color', 'white !important') // Improve readability (Text color doesn't change on IE)
$("#drop_zone_headings").replaceWith("<h1>Holy chimera...</h1>")
$("#dropMessage").replaceWith("This extractor was <b>NOT</b> built with IE in mind. Please use a browser that was last updated after 2013.<br>Download the latest <a href='https://www.google.com/chrome/'>CHROME</a>, <a href='https://www.microsoft.com/en-us/edge'>EDGE</a>, or <a href='https://www.mozilla.org/en-US/firefox/new/'>FIREFOX</a> to get things extracted.")
$("#supportedFiles").text("Browser Nemesis - CX")
}
</script>
<script src="version.js" type="text/javascript"></script>
</body>
</html>