BlueRaja / Starbank

A Starcraft 2 bank file editor
32 stars 20 forks source link

BUG Key with many sub-Keys triggers an error and the program closes #20

Open cristian-dan-f opened 2 months ago

cristian-dan-f commented 2 months ago

This can't be signed, triggers an error and the program closes. My guess is because <Key name="FootmanA"> has no Value inside. It is a Key with many sub-Keys, but no Value.

<?xml version="1.0" encoding="utf-8"?>
<Bank version="1">
    <Section name="Hero">
        <Key name="FootmanA">
            <XPName0 string="AHer"/>
            <ItemCount int="2"/>
            <Type string="Hpal"/>
            <Shields fixed="0"/>
            <XP fixed="18396.0175"/>
            <LearnAbil3 string="War3_LearnHero,3,2"/>
            <LearnAbilCount int="4"/>
            <LearnAbil2 string="War3_LearnHero,2,9"/>
            <Item1 string="ckng,1,64"/>
            <Life fixed="250.9362"/>
            <XPValue0 fixed="18396.0175"/>
            <LearnAbil0 string="War3_LearnHero,0,1"/>
            <Energy fixed="150"/>
            <LearnAbil1 string="War3_LearnHero,1,6"/>
            <Item0 string="ckng,0,64"/>
            <XPCount int="1"/>
        </Key>
    </Section>
    <Section name="Evolutions">
        <Key name="FootmanEvo">
            <Value int="7"/>
        </Key>
    </Section>
    <Section name="Statistics">
        <Key name="HighestWave">
            <Value int="154"/>
        </Key>
        <Key name="FootmanXP">
            <Value fixed="18396.0175"/>
        </Key>
        <Key name="TotalKills">
            <Value int="671"/>
        </Key>
    </Section>
    <Signature value="imposible_to_sign"/>
</Bank>

Can you fix it?