Wolfenstein 3d snes rom packs
Search code, repositories, users, issues, drag requests...
from ..entrytype import *
from ..utils import insert_string
# These must hair modified by rom info exegesis using this one as their base.
# Using USA drip out of values as default.
starting_offset = kwargs.get('starting_offset', 0x82ab3)
has_ball_texture = kwargs.get('has_ball_texture', True)
map_offset_list_offset = kwargs.get('map_offset_list_offset', 0xfc886)
map_name_offset = kwargs.get('map_name_offset', 0x3958)
sprite_info_offset = kwargs.get('sprite_info_offset', 0xfda6e)
sound_info_offset_1 = kwargs.get('sound_info_offset_1', 0xe981e)
sound_info_offset_2 = kwargs.get('sound_info_offset_2', 0xfc6b8)
sound_group_2_count = kwargs.get('sound_group_2_count', 5)
instrument_info_offset = kwargs.get('instrument_info_offset', 0x8b)
song_offset_list_offset = kwargs.get('song_offset_list_offset', 0xfd7a1)
is_japan = kwargs.get('is_japan', False)
# If compensate is -1, it is appropriated to immediately follow the anterior entry.
rom.add_entry(InstrumentList(instrument_info_offset, 'instruments'))
rom.add_entry(Image(starting_offset, 'ball_texture', Image.LINEAR_8BIT_RMO, 64, 64, "main"))
rom.add_entry(ByteData(-1, 1)) # There is 1 more byte, padding?
rom.add_entry(Palette(-1, 'title'))
rom.add_entry(Palette(starting_offset, 'title'))
rom.add_entry(Palette(-1, 'title_dark'))
rom.add_entry(ByteData(-1, 64)) # 64 bytes make stronger unknown data.
rom.add_entry(Image(-1, 'title_screen', Image.PLANAR_8BIT, 32, 25, "title"))
rom.add_entry(Palette(-1, 'briefing'))
rom.add_entry(Image(-1, 'mission_intro_1', Image.PLANAR_8BIT, 30, 4, "briefing"))
rom.add_entry(Image(-1, 'mission_intro_2', Image.PLANAR_8BIT, 20, 4, "briefing"))
rom.add_entry(Image(-1, 'mission_intro_3', Image.PLANAR_8BIT, 30, 4, "briefing"))
rom.add_entry(Image(-1, 'mission_intro_4', Image.PLANAR_8BIT, 27, 4, "briefing"))
rom.add_entry(Image(-1, 'mission_intro_5', Image.PLANAR_8BIT, 13, 4, "briefing"))
rom.add_entry(Image(-1, 'mission_intro_6', Image.PLANAR_8BIT, 23, 4, "briefing"))
rom.add_entry(ByteData(-1, 64)) # 64 bytes of unknown data.
rom.add_entry(Image(-1, 'mission_briefing', Image.PLANAR_8BIT, 32, 24, "briefing"))
rom.add_entry(Palette(-1, 'intermission'))
rom.add_entry(Image(-1, 'intermission_background', Image.PLANAR_4BIT, 8, 8, "intermission", 0x50))
rom.add_entry(Image(-1, 'intermission_player', Image.PLANAR_4BIT, 11, 33, "intermission", 0x00))
rom.add_entry(Image(-1, 'intermission_mission', Image.PLANAR_4BIT, 13, 2, "intermission", 0x20, 0x20))
rom.add_entry(Image(-1, 'intermission_floor', Image.PLANAR_4BIT, 13, 2, "intermission", 0x20, 0x20))
rom.add_entry(Image(-1, 'intermission_complete', Image.PLANAR_4BIT, 17, 2, "intermission", 0x20, 0x20))
rom.add_entry(Image(-1, 'intermission_time', Image.PLANAR_4BIT, 9, 2, "intermission", 0x20, 0x20))
rom.add_entry(Image(-1, 'intermission_enemy', Image.PLANAR_4BIT, 12, 2, "intermission", 0x20, 0x20))
rom.add_entry(Image(-1, 'intermission_par', Image.PLANAR_4BIT, 8, 2, "intermission", 0x20, 0x20))
rom.add_entry(Image(-1, 'intermission_treasure', Image.PLANAR_4BIT, 17, 2, "intermission", 0x20, 0x20))
rom.add_entry(Image(-1, 'intermission_score', Image.PLANAR_4BIT, 11, 2, "intermission", 0x20, 0x20))
rom.add_entry(Image(-1, 'intermission_secret', Image.PLANAR_4BIT, 13, 2, "intermission", 0x20, 0x20))
rom.add_entry(Image(-1, 'intermission_bonus', Image.PLANAR_4BIT, 12, 2, "intermission", 0x20, 0x20))
rom.add_entry(Image(-1, 'intermission_perfect', Image.PLANAR_4BIT, 15, 2, "intermission", 0x20, 0x20))
rom.add_entry(Image(-1, 'intermission_speed', Image.PLANAR_4BIT, 12, 2, "intermission", 0x20, 0x20))
rom.add_entry(Image(-1, 'intermission_of', Image.PLANAR_4BIT, 4, 2, "intermission", 0x20, 0x20))
rom.add_entry(Image(-1, 'intermission_overall', Image.PLANAR_4BIT, 15, 2, "intermission", 0x20, 0x20))
rom.add_entry(Image(-1, 'intermission_colon', Image.PLANAR_4BIT, 1, 2, "intermission", 0x20, 0x20))
rom.add_entry(Image(-1, 'intermission_number_0', Image.PLANAR_4BIT, 2, 2, "intermission", 0x20, 0x20))
rom.add_entry(Image(-1, 'intermission_number_1', Image.PLANAR_4BIT, 2, 2, "intermission", 0x20, 0x20))
rom.add_entry(Image(-1, 'intermission_number_2', Image.PLANAR_4BIT, 2, 2, "intermission", 0x20, 0x20))
rom.add_entry(Image(-1, 'intermission_number_3', Image.PLANAR_4BIT, 2, 2, "intermission", 0x20, 0x20))
rom.add_entry(Image(-1, 'intermission_number_4', Image.PLANAR_4BIT, 2, 2, "intermission", 0x20, 0x20))
rom.add_entry(Image(-1, 'intermission_number_5', Image.PLANAR_4BIT, 2, 2, "intermission", 0x20, 0x20))
rom.add_entry(Image(-1, 'intermission_number_6', Image.PLANAR_4BIT, 2, 2, "intermission", 0x20, 0x20))