Skip to content

Instantly share code, notes, and snippets.

@pleonex
Created July 8, 2014 15:01
Show Gist options
  • Save pleonex/1e8a71873e9d02511987 to your computer and use it in GitHub Desktop.
Save pleonex/1e8a71873e9d02511987 to your computer and use it in GitHub Desktop.
Plugin for Tahaxan program. My first work in the RomHacking world.
<?xml version="1.0" encoding="UTF-8" ?>
<game>
<info>
<title>LAYTON 1</title>
</info>
<formats>
<format pattern="gardenman_n\.bin$">
<file_type>Imagen</file_type>
<type>Bitmap</type>
<compressed>False</compressed>
<data>
<format>Lua</format>
<loader><![CDATA[
cmdDisp = 8;
palOffset = 0x218;
palSize = 16;
--palNum = 8;
picSize = 512;
--picNum = 256;
picOffset = 0x34;
--srcOffset = 0x15;
--srcSize = 56;
--srcNum = srcSize / 2;
imgWidth = 64;
imgHeight = 16;
palType = PALETTE_4Bits;
]]>
</loader>
<saver>
</saver>
</data>
</format>
<format pattern="gardenman_n\.bin$">
<file_type>Imagen</file_type>
<type>Bitmap</type>
<compressed>False</compressed>
<data>
<format>Lua</format>
<loader><![CDATA[
cmdDisp = 8;
palOffset = 0x218;
palSize = 16;
--palNum = 8;
picSize = 512;
--picNum = 256;
picOffset = 0x34;
--srcOffset = 0x15;
--srcSize = 56;
--srcNum = srcSize / 2;
imgWidth = 64;
imgHeight = 16;
palType = PALETTE_4Bits;
]]>
</loader>
<saver>
</saver>
</data>
</format>
<format pattern="title_logo\.bin$">
<file_type>Imagen</file_type>
<type>Bitmap</type>
<compressed>False</compressed>
<data>
<format>Lua</format>
<loader><![CDATA[
cmdDisp = 8;
palOffset = 0x648C;
palSize = 16;
--palNum = 8;
picSize = 0;
--picNum = 256;
picOffset = 0x1C;
--srcOffset = 0x15;
--srcSize = 56;
--srcNum = srcSize / 2;
imgWidth = 64;
imgHeight = 16;
palType = PALETTE_4Bits;
]]>
</loader>
<saver>
</saver>
</data>
</format>
<format pattern="\.bin$">
<file_type>Imagen!!</file_type>
<type>Bitmap</type>
<compressed>False</compressed>
<data>
<format>Lua</format>
<loader><![CDATA[
cmdDisp = 8;
palOffset = 0x4;
Heades = toUInt16(buffer:sub(0x01)) * 2;
palSize = 512;
palTotal = 0x8 + Heades;
Total = palTotal + 1536;
picSize = buffer:len() - Total;
--picSize = 49152;
--picSize = toUInt32(buffer:sub(0x194, 0x197));
picOffset = Heades + 0x8;
srcOffset = picOffset + picSize;
srcSize = 1536;
imgWidth = 256;
imgHeight = 192;
palType = PALETTE_8Bits;
]]>
</loader>
<saver>
</saver>
</data>
</format>
<format pattern="\.bgx$">
<file_type>Imagen</file_type>
<type>Bitmap</type>
<compressed>False</compressed>
<data>
<format>Lua</format>
<loader>
<![CDATA[
--Creo que por defecto o hasta que lo sepa bien es 8 bits
cmdDisp = 8;
palOffset = 0x4;
palSize = 512;
palType = PALETTE_8Bits;
Heades = toUInt16(buffer:sub(0x01)) * 2;
palSize = 512;
palTotal = 0x8 + Heades;
Total = palTotal + 1536;
picSize = buffer:len() - Total;
picOffset = Heades + 0x8;
srcOffset = picOffset + picSize;
srcSize = 1536;
imgWidth = 256;
imgHeight = 192;
]]>
</loader>
<saver></saver>
</data>
</format>
</formats>
</game>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment