1
0
Fork 0
mayvaneday/tutorials/tiles.html

40 lines
2.0 KiB
HTML
Raw Normal View History

2021-11-13 02:02:11 +00:00
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>How to dump tiles from a GameBoy ROM on Linux - Archive - MayVaneDay Studios</title>
<link href="../style.css" rel="stylesheet" type="text/css" media="all">
<meta name="author" content="Vane Vander">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body class="mayvaneday">
<article>
<div class="box">
<p><h1>How to dump tiles from a GameBoy ROM on Linux</h1></p>
<p>published: 2020-04-08</p>
</div>
<hr>
<div class="box">
<ol type="1">
<li>Download <a href="https://www.romhacking.net/utilities/119/">the yy-chr tool</a>. Extract it to a directory of your choice.</li>
</ol>
<p>Please note that it comes as a Windows binary; from my personal tests, it runs quite well in WINE.</p>
<ol start="2" type="1">
<li>Open/run <code>yychr.exe</code>. Go to <code>File &gt; Open</code> and open the ROM you want to dump tiles from.</li>
<li>Scroll to the place in the ROM you want to dump files from.</li>
<li>Go to <code>File &gt; Save snapshot</code>. It will ask you to save a file named <code>chrXXX.bmp</code>, where XXX is a number. Save it wherever you please.</li>
<li>Repeat steps 3 and 4 until you have saved screenshots of all the places in the ROM that have tiles you want to dump.</li>
<li>Once you are done, open a terminal and <code>cd</code> to the directory you saved the BMP files as.</li>
<li>Run the following command, replacing XXX with the actual numbers in the file name:</li>
</ol>
<p><code>convert chrXXX.bmp -crop 16x16@ +repage +adjoin tile-%d.bmp</code></p>
<p>This will dump each individual 8x8 tile into its own separate BMP file. Please be warned: this may generate more than a hundred files in that folder! Best to keep each separate chrXXX.bmp file in its own folder to keep everything organized.</p>
</div>
<hr>
<div class="box">
<p align=right>CC BY-NC-SA 4.0 &copy; Vane Vander</p>
</div>
</article>
</body>
</html>