General.ErrorLogger.Add(ErrorType.Error,"Error in "+parser.Source+" at line "+parser.GetCurrentLineNumber()+": expected path to model, but got '"+token+"'");
General.ErrorLogger.Add(ErrorType.Error,"Error in "+parser.Source+" at line "+parser.GetCurrentLineNumber()+": expected model index, but got '"+token+"'");
General.ErrorLogger.Add(ErrorType.Error,"Error in "+parser.Source+" at line "+parser.GetCurrentLineNumber()+": GZDoom doesn't allow more than "+MAX_MODELS+" per MODELDEF entry!");
General.ErrorLogger.Add(ErrorType.Error,"Error in "+parser.Source+" at line "+parser.GetCurrentLineNumber()+": expected model name, but got '"+token+"'");
General.ErrorLogger.Add(ErrorType.Error,"Error in "+parser.Source+" at line "+parser.GetCurrentLineNumber()+": model '"+token+"' won't be loaded. Models without extension are not supported by GZDoom.");
General.ErrorLogger.Add(ErrorType.Error,"Error in "+parser.Source+" at line "+parser.GetCurrentLineNumber()+": model '"+token+"' won't be loaded. Only MD2 and MD3 models are supported.");
gotErrors=true;
break;
}
//GZDoom allows models with identical modelIndex, it uses the last one encountered
General.ErrorLogger.Add(ErrorType.Error,"Error in "+parser.Source+" at line "+parser.GetCurrentLineNumber()+": expected skin index, but got '"+token+"'");
gotErrors=true;
break;
}
if(skinIndex>=MAX_MODELS){
General.ErrorLogger.Add(ErrorType.Error,"Error in "+parser.Source+" at line "+parser.GetCurrentLineNumber()+": GZDoom doesn't allow more than "+MAX_MODELS+" per MODELDEF entry!");
General.ErrorLogger.Add(ErrorType.Error,"Error in "+parser.Source+" at line "+parser.GetCurrentLineNumber()+": expected skin name, but got '"+token+"'");
General.ErrorLogger.Add(ErrorType.Error,"Error in "+parser.Source+" at line "+parser.GetCurrentLineNumber()+": image format '"+ext+"' is not supported!");
General.ErrorLogger.Add(ErrorType.Error,"Error in "+parser.Source+" at line "+parser.GetCurrentLineNumber()+": expected scale X value, but got '"+token+"'");
General.ErrorLogger.Add(ErrorType.Error,"Error in "+parser.Source+" at line "+parser.GetCurrentLineNumber()+": expected scale Y value, but got '"+token+"'");
General.ErrorLogger.Add(ErrorType.Error,"Error in "+parser.Source+" at line "+parser.GetCurrentLineNumber()+": expected scale Z value, but got '"+token+"'");
General.ErrorLogger.Add(ErrorType.Error,"Error in "+parser.Source+" at line "+parser.GetCurrentLineNumber()+": expected ZOffset value, but got '"+token+"'");
General.ErrorLogger.Add(ErrorType.Error,"Error in "+parser.Source+" at line "+parser.GetCurrentLineNumber()+": expected AngleOffset value, but got '"+token+"'");
General.ErrorLogger.Add(ErrorType.Error,"Error in "+parser.Source+" at line "+parser.GetCurrentLineNumber()+": expected PitchOffset value, but got '"+token+"'");
General.ErrorLogger.Add(ErrorType.Error,"Error in "+parser.Source+" at line "+parser.GetCurrentLineNumber()+": expected RollOffset value, but got '"+token+"'");
General.ErrorLogger.Add(ErrorType.Error,"Error in "+parser.Source+" at line "+parser.GetCurrentLineNumber()+": expected model index, but got '"+token+"'");
gotErrors=true;
break;
}
if(modelIndex>=MAX_MODELS){
General.ErrorLogger.Add(ErrorType.Error,"Error in "+parser.Source+" at line "+parser.GetCurrentLineNumber()+": GZDoom doesn't allow more than "+MAX_MODELS+" per MODELDEF entry!");
gotErrors=true;
break;
}
if(modelNames[modelIndex]==null){
General.ErrorLogger.Add(ErrorType.Error,"Error in "+parser.Source+" at line "+parser.GetCurrentLineNumber()+": got model index, which doesn't correspond to any defined model!");
gotErrors=true;
break;
}
modelsUsed[modelIndex]=true;
parser.SkipWhitespace(true);
//should be frame name or index. Currently I have no use for it
General.ErrorLogger.Add(ErrorType.Error,"Error in "+parser.Source+" at line "+parser.GetCurrentLineNumber()+": expected model frame, but got '"+token+"'");