zachanassian / tu_optimize

Tyrant Unleashed Optimizer
http://zachanassian.github.io/tu_optimize/
Other
8 stars 14 forks source link

optimize deck from cards upgrades commander #10

Closed technophile77 closed 10 years ago

technophile77 commented 10 years ago

When optimizing my deck with owned cards, the optimizer swaps out Halcyon-1 for Halcyon, even though I don't have it.

F:\goog\alex\tyrant\sim\tu_optimize>tu_optimize.exe "Halcyon-1, Nimbus-4, Havoc, Vigil, Pantheon Progeny-5, Shining Sanctuary, Blitz Guard, Blitz Plate, Dutiful Veteran" pvp75k1 -o=data\rallyraider.txt climb 100000 Your Deck: [QEAdA6CdKeiC-HA-HE-Hc] Halcyon, Nimbus-4, Havoc, Vigil, Pantheon Pro geny-5, Shining Sanctuary, Blitz Guard, Blitz Plate, Dutiful Veteran Enemy's Deck: [QEAfIPJOLKgT+i-BQ-MJ-Ml] Halcyon, Tartarus Scion, Nimbus, Masterw ork Aegis, Xeno Suzerain, Sanctuary, Sanctuary, Primus, Crushing Anvil, Windreav er 5.101 (5101 / 100000) 5.101: Halcyon, Nimbus-4, Havoc, Vigil, Pantheon Progeny-5, Shining Sanctuary, B litz Guard, Blitz Plate, Dutiful Veteran Evaluated 149 decks (180817 + 18696 simulations). Optimized Deck: 5.101: Halcyon, Nimbus-4, Havoc, Vigil, Pantheon Progeny-5, Shin ing Sanctuary, Blitz Guard, Blitz Plate, Dutiful Veteran

contents of rallyraider.txt: F:\goog\alex\tyrant\sim\tu_optimize>type data\rallyraider.txt //Commanders Ascaris Cyrus Malika Maion Terrogor Brood Mother-1 Octane-1 Empress-4 Vyander-1 Dracorex-1 //Halcyon-1 Typhon Vex-1 Alaric-1 Krellus-1 Yurich-4 //Deck Carbine (2) Assembly Plant Blitz Guard Blitz Plate Dutiful Veteran //Indebted Veteran // Honor-Bound Veteran Havoc Vigil Shining Sanctuary //Unleveled cards Brood Walker (4) //Terminator Mech Terminator Draconian Queen-1 Nexusisite-1 //Stinger Barrage Stinger-1 (2) Iron Maiden-1 Missile Silo-5 Rampage-1 (2) //Rampage Rumbler Reaver-1 (2) //Destruction Reaver Pantheon Progeny-5 Dreadship-1 Mongore-1 Nimbus-4 Tiamat-1

zachanassian commented 10 years ago

Confirmed bug with tu_optimize.exe "Halcyon-1, Nimbus-4" "Halcyon, Nimbus-4" sim 1000 it is related to this entry in cards.xml

    <unit>
        <id>1997</id>
        <name>Halcyon</name>
        <picture>younghalcyon.jpg</picture>
        <attack>0</attack>
        <health>1</health>
        <rarity>3</rarity>
        <type>1</type>
    </unit>

Short term workaround remove this entry from cards.xml

zachanassian commented 10 years ago

Fixed with version 1.0.2

technophile77 commented 10 years ago

Wow, thanks for the quick fix!