import violet
import img_dump
import constants
import os, sys

vdata = violet.violet_open()

ow_base = 0xC80000
ow_pals = 0x3A501C
out = "D:/temp/ow/"

anims ={
    0x083A322C : "OW_ANIM_STANDARD_NPC",
    0x083A3280 : "OW_ANIM_HO_OH ",
    0x083A3334 : "OW_ANIM_HIRO",
    0x83A3448 : "OW_ANIM_HIRO_SIT",
    0x83A34FC : "OW_ANIM_HIRO_CALL",
    0x83A352C : "OW_ANIM_HIRO_ROD",
    0x83A3500 : "OW_ANIM_HIRO_CALL2",
    0x83A3504 : "OW_ANIM_HIRO_CALL_BIKE",
    0x83A31D8 : "Ow_ANIM_NONE",
}

formations = {

    0x083A3660 : "OW_FORMATION_16_32",
    0x083A3914 : "OW_FORMATION_128_64",
    0x083A36B4 : "OW_FORMATION_32_32",
    0x083A3794 : "OW_FORMATION_64_64",
    0x83A360C : "OW_FORMATION_16_16",
}
import violet
import img_dump
import constants
import os, sys

vdata = violet.violet_open()

#Male
img_dump.dump_png("D:/temp/introhiromal.png",
                  vdata,
                  violet.pointer(vdata, 0x13127C),
                  64,
                  96,
                  violet.pointer(vdata, 0x131278),
                  32,
                  img_lz77=True,
                  pal_lz77=False,
                  depth=8,
                  pal_start_color=0x40)

#Female
img_dump.dump_png("D:/temp/introhirofem.png",
                  vdata,
                  violet.pointer(vdata, 0x131294),
                  64,
                  96,
                  violet.pointer(vdata, 0x131290),
                  32,
                  img_lz77=True,
                  pal_lz77=False,
                  depth=8,