skadistats / clarity-examples

Example code for clarity
BSD 3-Clause "New" or "Revised" License
113 stars 37 forks source link

Exception in thread "main" skadistats.clarity.ClarityException: cannot determine last tick before engine type is known #60

Closed egyptianmessi closed 6 months ago

egyptianmessi commented 6 months ago

I'm trying to run the matchend example using gradlew.bat matchendRun --args "my-replay.dem" and I'm getting the following error:

Exception in thread "main" skadistats.clarity.ClarityException: cannot determine last tick before engine type is known
        at skadistats.clarity.source.Source.determineLastTick(Source.java:178)
        at skadistats.clarity.source.Source.getLastTick(Source.java:194)
        at skadistats.clarity.processor.runner.ControllableRunner.getLastTick(ControllableRunner.java:347)
        at skadistats.clarity.examples.matchend.Main.<init>(Main.java:35)
        at skadistats.clarity.examples.matchend.Main.main(Main.java:24)
<=========----> 75% EXECUTING [3s]

I have not changed any code from the example. Other examples are working for me, such as the "info" example.

Any help would be much appreciated!

spheenik commented 6 months ago

You found a bug! Thank you for reporting. I released clarity 3.0.3 which fixes this. Just pull clarity-examples, it should then reference 3.0.3 and the code should work.