OK, thanks.
I am currently experimenting with challenges right now. I also stumpled upon the “prizes” attribute in the XML file and I noticed that it does not work as expected.
According to the comment, the prizes attibute is supposed to limit the possible rewards you can get (gold, silver and bronze, gold and silver or only gold).
It turns out that it does not work. Currently, no challenge uses this function yet, so I wrote two test challenges.
Insert this code into challenges.xml to try to reproduce it:
- {l Code}: {l Select All Code}
<challenge name="Prizes Test 1" ver="1" difficulty="1" type="7"
descr="Test the prizes element (gold only).">
<car names="S8" />
<pass avgPoints="10" prizes="0" />
<tracks>
<t name="TestC4-ow" laps="1" passPoints="5"/>
</tracks>
</challenge>
<challenge name="Prizes Test 2" ver="1" difficulty="1" type="7"
descr="Test the prizes element (gold and silver).">
<car names="S8" />
<pass avgPoints="10" prizes="1" />
<tracks>
<t name="TestC4-ow" laps="1" passPoints="5"/>
</tracks>
</challenge>
This tests the non-default cases: Gold and silver, gold only. I set the passing score for both challenges to 10.
After testing this, I had the following results:
Prizes Test 1:
I finished with over 10 points, but I only got bronze. Also, the passing score shown on the final dialog was 8.0, not 10 as specified in the XML! At least the color was right, lol.
I expect to win gold and that the passing score for the whole thing is of course 10.
Prizes Test 2:
I finished with over 10 points, but I only got silver. The passing scores were 9.0 for gold and 8.0 for silver.
I should have won gold and the passing scores should have been 10 for gold and 9 for silver.
EDIT:
When playing a replay, the shown damage percentage does not update correctly. I have made simple trip into an acid lake, recorded it, replayed it. The replay showed 0% damage all the time.
EDIT 2:
The challenge definition of the challenge “Stunt Sway” has a typo: There is a car “FM” in the definition, but this car does not exist. I bet you meant FN.