This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!--?xml version="1.0"?--> | |
<!DOCTYPE fontconfig SYSTEM "fonts.dtd"> | |
<!-- /etc/fonts/fonts.conf file to configure system font access --> | |
<fontconfig> | |
<!-- workaround for wrong style and weight in NanumTTF 2.020 --> | |
<match target="scan"> | |
<test name="fullname" qual="any" compare="eq"> | |
<string>NanumMyeongjoBold</string><string>나눔명조 Bold</string> | |
<string>NanumGothicBold</string><string>나눔고딕 Bold</string> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Maplestory AD Killer | |
* | |
* Copyright (C) 2012 heisvoid | |
* | |
* This program is free software: you can redistribute it and/or modify | |
* it under the terms of the GNU General Public License as published by | |
* the Free Software Foundation, either version 2 of the License, or (at | |
* your option) any later version. | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
file_len=`stat -c %s "$1"` | |
pal_ofs=$(($file_len - 768)) | |
dd if="$1" skip=$pal_ofs ibs=1 bs=1 count=768 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0 string New TWG Sprite |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
offset length description | |
0 0x42 header string | |
0x42 2 number of sprites <N> | |
0x44 60 zero padding bytes | |
0x80 x N * (each sprite) | |
each sprite | |
offset length description | |
0 4 total length of compressed data <L> | |
4 2 width. 320 >= width |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
# Extract sprites | |
import argparse | |
import struct | |
import os | |
# mode 13h resolution | |
MONITOR_WIDTH = 320 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
import argparse | |
import struct | |
import os | |
parser = argparse.ArgumentParser(description='Check sprite file.') | |
parser.add_argument('-f', required=True, help='sprite file', dest='spr') | |
args = parser.parse_args() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
# .nc2, .bcr, .wcr, .mar, .rcr | |
import argparse | |
import struct | |
import os | |
parser = argparse.ArgumentParser(description='Verify sprite file.') | |
parser.add_argument('-f', required=True, help='sprite file', dest='spr') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
import argparse | |
import struct | |
import os | |
parser = argparse.ArgumentParser(description='Verify sprite file.') | |
parser.add_argument('-f', required=True, help='sprite file', dest='spr') | |
args = parser.parse_args() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
import argparse | |
import struct | |
import os | |
parser = argparse.ArgumentParser(description='Verify sprite file.') | |
parser.add_argument('-f', required=True, help='sprite file', dest='spr') | |
args = parser.parse_args() |
OlderNewer