Postado Janeiro 28, 2015 10 anos Olá galera, hoje eu criei um tópico sobre como trocar de distro, e o nosso amigo olokomeu me passou um link do TFS 0.4, só que sempre que inicia esse distro aparece o seguinte erro logo de cara: Checando a versão do software...failed - could not parse remote file (are you connected to any network?) O próprio olokomeu disse que não é nada, que não afetará o jogo em nada, eu apenas queria saber o que é isso, e se tem como tirar este erro, obrigado. Obs.: Eu estou conectado em wifi, se não eu não estaria postando aqui haha
Postado Fevereiro 2, 2015 10 anos Serve para checar a versão do distro e ver se tem alguma atualização, não funciona faz muito tempo. otserv.cpp, é algo parecido com isso (pode remover se quiser): std::clog << ">> Checking software version..."; if(VERSION_BUILD) { if(xmlDocPtr doc = xmlParseFile(VERSION_CHECK)) { xmlNodePtr p, root = xmlDocGetRootElement(doc); if(!xmlStrcmp(root->name, (const xmlChar*)"versions")) { p = root->children->next; if(!xmlStrcmp(p->name, (const xmlChar*)"entry")) { std::string version; int32_t patch, build, timestamp; bool tmp = false; if(readXMLString(p, "version", version) && version != SOFTWARE_VERSION) tmp = true; if(readXMLInteger(p, "patch", patch) && patch > VERSION_PATCH) tmp = true; if(readXMLInteger(p, "build", build) && build > VERSION_BUILD) tmp = true; if(readXMLInteger(p, "timestamp", timestamp) && timestamp > VERSION_TIMESTAMP) tmp = true; if(tmp) { std::clog << " "; if(version.find("_SVN") == std::string::npos) std::clog << "running sub version, please mind it's unstable and only for testing purposes!"; else std::clog << "outdated, please consider upgrading!"; std::clog << std::endl << "> Current version information - version: " << SOFTWARE_VERSION << ", patch: " << VERSION_PATCH << ", build: " << VERSION_BUILD << ", timestamp: " << VERSION_TIMESTAMP << "." << std::endl << "> Latest version information - version: " << version << ", patch: " << patch << ", build: " << build << ", timestamp: " << timestamp << "." << std::endl; if(g_config.getBool(ConfigManager::CONFIRM_OUTDATED_VERSION) && asLowerCaseString(version).find("_svn") == std::string::npos) { std::clog << "Continue? (y/N)" << std::endl; char buffer = getch(); if(buffer != 121 && buffer != 89) startupErrorMessage("Aborted."); } } else std::clog << "up to date!" << std::endl; } else std::clog << "failed checking - malformed entry." << std::endl; } else std::clog << "failed checking - malformed file." << std::endl; xmlFreeDoc(doc); } else std::clog << "failed - could not parse remote file (are you connected to any network?)" << std::endl; } else std::clog << std::endl << "> Ignoring version check, using SVN" << std::endl; Editado Fevereiro 2, 2015 10 anos por fireelement (veja o histórico de edições)
Postado Fevereiro 2, 2015 10 anos Autor Serve para checar a versão do distro e ver se tem alguma atualização, não funciona faz muito tempo. otserv.cpp, é algo parecido com isso (pode remover se quiser): std::clog << ">> Checking software version..."; if(VERSION_BUILD) { if(xmlDocPtr doc = xmlParseFile(VERSION_CHECK)) { xmlNodePtr p, root = xmlDocGetRootElement(doc); if(!xmlStrcmp(root->name, (const xmlChar*)"versions")) { p = root->children->next; if(!xmlStrcmp(p->name, (const xmlChar*)"entry")) { std::string version; int32_t patch, build, timestamp; bool tmp = false; if(readXMLString(p, "version", version) && version != SOFTWARE_VERSION) tmp = true; if(readXMLInteger(p, "patch", patch) && patch > VERSION_PATCH) tmp = true; if(readXMLInteger(p, "build", build) && build > VERSION_BUILD) tmp = true; if(readXMLInteger(p, "timestamp", timestamp) && timestamp > VERSION_TIMESTAMP) tmp = true; if(tmp) { std::clog << " "; if(version.find("_SVN") == std::string::npos) std::clog << "running sub version, please mind it's unstable and only for testing purposes!"; else std::clog << "outdated, please consider upgrading!"; std::clog << std::endl << "> Current version information - version: " << SOFTWARE_VERSION << ", patch: " << VERSION_PATCH << ", build: " << VERSION_BUILD << ", timestamp: " << VERSION_TIMESTAMP << "." << std::endl << "> Latest version information - version: " << version << ", patch: " << patch << ", build: " << build << ", timestamp: " << timestamp << "." << std::endl; if(g_config.getBool(ConfigManager::CONFIRM_OUTDATED_VERSION) && asLowerCaseString(version).find("_svn") == std::string::npos) { std::clog << "Continue? (y/N)" << std::endl; char buffer = getch(); if(buffer != 121 && buffer != 89) startupErrorMessage("Aborted."); } } else std::clog << "up to date!" << std::endl; } else std::clog << "failed checking - malformed entry." << std::endl; } else std::clog << "failed checking - malformed file." << std::endl; xmlFreeDoc(doc); } else std::clog << "failed - could not parse remote file (are you connected to any network?)" << std::endl; } else std::clog << std::endl << "> Ignoring version check, using SVN" << std::endl; Obrigado pela ajuda e por responder RS.
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.