Closed alee closed 10 months ago
For tournament round 11 this error comes up in 3167f20452251bfb4ee5a1055f91d7d545023c8b but strangely 96b86cb799edd9331e3c1ba3840ead9791357655 works
For tournament round 13, 96b86cb799edd9331e3c1ba3840ead9791357655 also fails
as a stopgap will be running data export from the last known good configuration at 8c4027d367f5999e30b4cd6fab1ff94fe8863c0e
appears to be fixable by refactoring GameState's currentEvent
getter to return the last Event in marsEvents
instead of going out of index and returning undefined
needs further data testing / validation though
current data export now fails in the R code with an error message Error in -x : invalid argument to unary operator Calls: run_pipeline ... <Anonymous> -> vars_select_eval -> map_if -> map -> .f -> -
More context:
Parsed with column specification:
cols(
id = col_double(),
gameId = col_double(),
type = col_character(),
payload = col_character(),
dateCreated = col_character(),
timeRemaining = col_double(),
game = col_character(),
phaseInitialTimeRemaining = col_double(),
systemHealthInitial = col_double(),
roundInitial = col_double(),
phaseInitial = col_character(),
phaseFinalTimeRemaining = col_double(),
systemHealthFinal = col_double(),
roundFinal = col_double(),
phaseFinal = col_character(),
role = col_character()
)
Parsed with column specification:
cols(
id = col_double(),
gameId = col_double(),
role = col_character(),
investment = col_character(),
name = col_character(),
availableTimeBlocks = col_double(),
value = col_double(),
initialTimeRemaining = col_double(),
phaseFinalTimeRemaining = col_double(),
systemHealthFinal = col_double(),
roundFinal = col_double(),
phaseFinal = col_character()
)
Error in -x : invalid argument to unary operator
Calls: run_pipeline ... <Anonymous> -> vars_select_eval -> map_if -> map -> .f -> -
Execution halted
a6ffb23631cdfca2ac375e9355c6a1d0ade141c1 resolves the above issue with the initial export script by handling games without chat messages. Need to investigate if/how this cascades down to the analysis
closing for now, re-open if we encounter other issues
For tournament round id 11 (first round of the 2022-02 tournament) data export is failing due to an uninitialized
gameState.currentEvent
https://github.com/virtualcommons/port-of-mars/blob/34cc5223353c7966a348ad638cac1e3fedb224bc/server/src/rooms/game/events/index.ts#L366
need to see if any changes were made to replay handling / initialization that may have caused this regression
Logs: