-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Customize "emerald_version.png" - Is there a tile file? #2058
Comments
The version, press-start and copyright banners are implemented with sprites rather than tilemap information, so there's no "tile file" as you put it. This is the relevant data to understand; the version banner is created in |
Thanks for your quick response! So, let me reformulate the question. Is there any way of editing it in an easier way than having to split the title and some trial and error to make it fit perfectly? If not, I will try to create some python script to get the title in the required format from a normal png. Again thanks for the support. |
I made this simple script that turns the first image (128px x 32px) into the second (64px x 64px, required by the game): The import sys
from PIL import Image
def convert_image_to_pokeemerald_format(input_path, output_path='output.png'):
original_img = Image.open(input_path)
if original_img.size != (128, 32):
raise ValueError("The input image must be 128px wide by 32px tall.")
if original_img.mode != 'P':
raise ValueError("The input image must be in indexed color mode ('P' mode).")
new_img = Image.new('P', (64, 64))
new_img.putpalette(original_img.getpalette())
left_half = original_img.crop((0, 0, 64, 32))
new_img.paste(left_half, (0, 0))
right_half = original_img.crop((64, 0, 128, 32))
new_img.paste(right_half, (0, 32))
new_img.save(output_path)
print(f"Image saved as {output_path}")
if __name__ == "__main__":
if len(sys.argv) < 2:
print("Usage: python convertEmeraldVersionImage.py <input_image> [output_image]")
sys.exit(1)
input_path = sys.argv[1]
output_path = sys.argv[2] if len(sys.argv) > 2 else 'output.png'
try:
convert_image_to_pokeemerald_format(input_path, output_path)
except Exception as e:
print(f"Error: {e}") Don't forget to install the Pillow library to handle images |
Huh. I wonder if it would be possible to use |
|
Hey there! I'm just starting with this rom hacking and I was trying to modify the title screen images.
Is there any easy way to design those two?
Thanks in advance!
The text was updated successfully, but these errors were encountered: