Backward-compatible battle ID parsing