Ticket #33 (closed task: fixed)

Opened 6 years ago

Last modified 6 years ago

Support these variables in input file

Reported by: sritter Owned by: tempjc
Priority: major Milestone: TestHarness
Component: GameController Keywords:
Cc: avuong, traible, apople


In addition to the question contents, we should support the following elements in the input XML file. For now, we'll preserve the HURIX naming for these (as much as possible), just so the format doesn't change too much. We'll be redefining the format later.

  • MEDAL - These define the medal cutoffs, in terms of score (time plus penalty time, both of which are measured in milliseconds).
  • SpeedImpact_Up and SpeedImpact_Down - This is the amount that an arrow push affects the speed. These are expressed in meters/second
  • MaxTPQ - Maximum time per question. This is the slowest speed supported. This should be interpreted as meters/second. 0 is a possible value.
  • MinTPQ - Minimum time per question. This is the fastest speed supported. This should be interpreted as meters/second. This time is both the fastest that a player can go by pushing the uparrow key and the speed obtained by turboboost (we can ignore the turboboost parameter)

Note that, in the Hurix implementation, it seems like MaxTPQ is greater than MinTPQ, which doesn't make sense. Let's reuse the variables but in a way that does make sense - MaxTPQ expresses a speed (and a lower speed indicates a larger maximum).

  • DTPQ - Default time per question. This is the starting speed for the game. It is expressed in meters/second.
  • DEFAULT_PENALTY - this is the penalty applied for an incorrect answer (in milliseconds). I'm not sure why this is called "default" - there is no way to change it.

Change History

comment:1 Changed 6 years ago by tempjc

  • Status changed from new to closed
  • Resolution set to fixed

The old Hurix format is almost fully supported and converted by the parser. The only part of Hurix's format that is not currently supported is using images as delimiters.

  • MaxTPQ, MinTPQ, DTPQ (milliseconds) are converted into appropriate speeds (meters/second)based on question spacing.
  • DEFAULT_PENALTY (milliseconds) is applied correctly on incorrect answers (overriding the default value of 8000).
  • SpeedImpact_Up and SpeedImpact_Down (Unknown unit) are magically converted to a meaningful value (meters/second2). 10,000 equates to the default acceleration.
  • MEDAL is unchanged, the new format and Hurix are the same.

I will be writing a wiki page explaining the new format soon, but regardless of the new format, Hurix's format will continued to be supported by the parser.

Note: See TracTickets for help on using tickets.