KyonkoYuuki / YaBACOrganizer

2 stars 2 forks source link

Projectile SKILL_TYPE changes the wrong value #3

Closed halloweenpandas closed 5 years ago

halloweenpandas commented 5 years ago

When changing Skill type in the Projectile BAC SubEntry and saving, it changes the value from U_2C instead of SKILL_TYPE in the BAC

KyonkoYuuki commented 5 years ago
        <Projectile>
            <START_TIME value="0" />
            <DURATION value="1" />
            <U_04 value="0x0" />
            <FLAGS value="0x0" />
            <SKILL_ID value="1608" />
            <!--0x0: Yes; 0xffff: No-->
            <CAN_USE_CMN_BSA value="0x0" />
            <PROJECTILE_ID value="0" />
            <BONE_TO_SPAWN_FROM value="0x4" />
            <SPAWN_SOURCE value="0x4" />
            <POSITION value="0.0, 0.0, 0.0" />
            <SKILL_TYPE value="0x6" />
            <U_24 value="0x0" />
            <F_28 value="0.0" />
            <U_2C value="0x6" />
            <U_2E value="0x0" />
            <PROJECTILE_HEALTH value="65535" />
            <U_34 value="0x0, 0x0, 0x0" />
        </Projectile>
BACProjectile = recordclass('BACProjectile', [
    'start_time',
    'duration',
    'u_04',
    'character_type',
    'skill_id',
    'can_use_cmn_bsa',
    'projectile_id',
    'bone_to_spawn_from',
    'spawn_source',
    'position_x',
    'position_y',
    'position_z',
    'rotation_x',
    'rotation_y',
    'rotation_z',
    'skill_type',
    'spawn_properties',
    'projectile_health',
    'u_34',
    'u_38',
    'u_3c'
])

Well, I have no idea where I found how to parse projectiles, but its completely wrong. Unless theres a difference in how its represented somewhere that I missed.

KyonkoYuuki commented 5 years ago

Fixed