ss<<"Error caught while initializing VR device: "<<XrResultString(res)<<std::endl;
ss<<"Device: "<<runtimeName<<std::endl;
ss<<"Version: "<<runtimeVersion<<std::endl;
if(res==XR_ERROR_FORM_FACTOR_UNAVAILABLE)
{
ss<<"Cause: Unable to open VR device. Make sure your device is plugged in and the VR driver is running."<<std::endl;
ss<<std::endl;
if(runtimeName=="Oculus"||runtimeName=="Quest")
{
ss<<"Your device has been identified as an Oculus device."<<std::endl;
ss<<"The most common cause for this error when using an oculus device, is quest users attempting to run the game via Virtual Desktop."<<std::endl;
ss<<"Unfortunately this is currently broken, and quest users will need to play via a link cable."<<std::endl;
}
}
elseif(res==XR_ERROR_LIMIT_REACHED)
{
ss<<"Cause: Device resources exhausted. Close other VR applications if you have any open. If you have none, you may need to reboot to reset the driver."<<std::endl;
}
else
{
ss<<"Cause: Unknown. Make sure your device is plugged in and ready."<<std::endl;