oyachai / HearthSim

Generic Hearthstone game simulator
MIT License
314 stars 59 forks source link

gradlew runSim is broken #104

Closed MrHen closed 9 years ago

MrHen commented 9 years ago

For instance:

gradlew runSim -Phsparam="examples/example2/masterParams.hsparam"

Generates this output:

C:\Users\MrHen\Source\Repos\HearthSim>gradlew runSim -Phsparam="examples/example2/masterParams.hsparam"
Parallel execution is an incubating feature.
:compileJava UP-TO-DATE
:compileGroovy UP-TO-DATE
:processResources UP-TO-DATE
:classes UP-TO-DATE
:runSim
18:39:01,954 |-INFO in ch.qos.logback.classic.gaffer.ConfigurationDelegate@57a3af25 - Added status listener of type [ch.qos.logback.core.status.OnConsoleStatusListener]
18:39:01,987 |-INFO in ch.qos.logback.classic.gaffer.ConfigurationDelegate@57a3af25 - Setting ReconfigureOnChangeFilter scanning period to 10 seconds
18:39:01,987 |-INFO in ReconfigureOnChangeFilter{invocationCounter=0} - Will scan for changes in [[C:\Users\MrHen\Source\Repos\HearthSim\build\resources\main\logback.groovy]] every 10 seconds.
18:39:01,987 |-INFO in ch.qos.logback.classic.gaffer.ConfigurationDelegate@57a3af25 - Adding ReconfigureOnChangeFilter as a turbo filter
18:39:01,993 |-INFO in ch.qos.logback.classic.gaffer.ConfigurationDelegate@57a3af25 - Using current interpretation time, i.e. now, as time reference.
18:39:02,006 |-INFO in ch.qos.logback.classic.gaffer.ConfigurationDelegate@57a3af25 - About to instantiate appender of type [ch.qos.logback.core.FileAppender]
18:39:02,008 |-INFO in ch.qos.logback.classic.gaffer.ConfigurationDelegate@57a3af25 - Naming appender as [logfile]
18:39:02,103 |-INFO in ch.qos.logback.core.FileAppender[logfile] - File property is set to [log/debug.2015-04-20.log]
18:39:02,107 |-INFO in ch.qos.logback.classic.gaffer.ConfigurationDelegate@57a3af25 - About to instantiate appender of type [ch.qos.logback.core.FileAppender]
18:39:02,107 |-INFO in ch.qos.logback.classic.gaffer.ConfigurationDelegate@57a3af25 - Naming appender as [dangerLog]
18:39:02,113 |-INFO in ch.qos.logback.core.FileAppender[dangerLog] - File property is set to [log/danger_zone.2015-04-20.log]
18:39:02,119 |-INFO in ch.qos.logback.classic.gaffer.ConfigurationDelegate@57a3af25 - About to instantiate appender of type [ch.qos.logback.core.ConsoleAppender]
18:39:02,121 |-INFO in ch.qos.logback.classic.gaffer.ConfigurationDelegate@57a3af25 - Naming appender as [systemOut]
18:39:02,131 |-INFO in ch.qos.logback.classic.gaffer.ConfigurationDelegate@57a3af25 - Setting level of logger [ROOT] to ALL
18:39:02,137 |-INFO in ch.qos.logback.classic.gaffer.ConfigurationDelegate@57a3af25 - Attaching appender named [logfile] to Logger[ROOT]
18:39:02,139 |-INFO in ch.qos.logback.classic.gaffer.ConfigurationDelegate@57a3af25 - Attaching appender named [systemOut] to Logger[ROOT]
18:39:02,140 |-INFO in ch.qos.logback.classic.gaffer.ConfigurationDelegate@57a3af25 - Attaching appender named [dangerLog] to Logger[ROOT]
18:39:02.147 INFO  HearthSimMain [main]: starting sim from file: examples/example2/masterParams.hsparam
18:39:02.217 ERROR HearthSimConstructed [Thread-1]: Error! com.hearthsim.exception.HSInvalidCardException: Unknown card: GoldshireFootman
18:39:02.220 ERROR HearthSimConstructed [Thread-1]: Error! com.hearthsim.exception.HSInvalidCardException: Unknown card: GoldshireFootman
18:39:02.221 ERROR HearthSimConstructed [Thread-1]: Error! com.hearthsim.exception.HSInvalidCardException: Unknown card: GoldshireFootman
18:39:02.223 ERROR HearthSimConstructed [Thread-1]: Error! com.hearthsim.exception.HSInvalidCardException: Unknown card: GoldshireFootman
18:39:02.225 ERROR HearthSimConstructed [Thread-1]: Error! com.hearthsim.exception.HSInvalidCardException: Unknown card: GoldshireFootman
18:39:02.225 ERROR HearthSimConstructed [Thread-1]: Error! com.hearthsim.exception.HSInvalidCardException: Unknown card: GoldshireFootman
18:39:02.226 ERROR HearthSimConstructed [Thread-1]: Error! com.hearthsim.exception.HSInvalidCardException: Unknown card: GoldshireFootman
18:39:02.231 ERROR HearthSimConstructed [Thread-1]: Error! com.hearthsim.exception.HSInvalidCardException: Unknown card: GoldshireFootman
18:39:02.232 ERROR HearthSimConstructed [Thread-1]: Error! com.hearthsim.exception.HSInvalidCardException: Unknown card: GoldshireFootman
18:39:02.233 ERROR HearthSimConstructed [Thread-1]: Error! com.hearthsim.exception.HSInvalidCardException: Unknown card: GoldshireFootman
18:39:02.237 INFO  HearthSimConstructed [main]: completed simulation of 10 games in 0.07 seconds on 1 thread(s)
18:39:02.238 INFO  HearthSimConstructed [main]: average time per game: 0.01 seconds
18:39:02.238 INFO  HearthSimConstructed [main]: games won by player 1: 0

BUILD SUCCESSFUL

Total time: 2.184 secs
C:\Users\MrHen\Source\Repos\HearthSim>
oyachai commented 9 years ago

yep, this is due to the card reorganization. Working on a fix.

oyachai commented 9 years ago

fixed