Solo usuarios registrados pueden comentar y agradecer, Logueate o Registrate

Autor Topic: al ejecutar el main me sale un cuadro de Error MAIN.EXE CRC ERROR  (Visto 1147 veces)

0 Miembros and 1 Guest are viewing this topic.

Offline TioMostaza Posteado: January 28, 2021, 07:36:07 PM

  • 0 puntos por ventas
  • *
  • Rank: Destacado
  • Posts: 80
  • Gracias recibida: 37
  • pe
Hola amigos de tuservermu como estan miren lo que pasa es que estoy compilando la source  Games files full base emu up13 v2 Source   link: https://tuservermu.com.ve/index.php?topic=39200.0   al compilar el main.dll todo ok sin error alguno  lo copio al cliente al ejecutar el main me sale el MAIN.EXE CRC ERROR  Ahora lo siguiente es esto en el codigo del main.dll  hay esta funcion la cual es para descargar el launcher de dicho mu dicha web
y al quitarla compilar y ejecutar el main me sale el error si alguien me podria ayudar

Spoiler for Hiden:
bool DoesFileExist (const std::string& name) {
    if (FILE *file = fopen(name.c_str(), "r")) {
        fclose(file);
        return true;
    } else {
        return false;
    }   
}


HRESULT DownloadFile(string fileName) {
   string url = "http://beta.muphoenix.it/updates/" + fileName;

    //Convert the string to a LPCSTR type so we can use it in the URLDownloadToFile() function
    LPCSTR lpcURL = url.c_str();
   
   char result[ MAX_PATH ];
     string baseBase = std::string( result, GetModuleFileName( NULL, result, MAX_PATH ) );

    string destination = baseBase + "\\" + fileName;
   destination = destination.replace(destination.find("\\main.exe"), sizeof("\\main.exe") - 1, "");
   //destination = destination.replace(destination.find("\\MuPhoenix.exe"), sizeof("\\MuPhoenix.exe") - 1, "");

    //Convert the string to a LPCSTR type so we can use it in the URLDownloadToFile() function
    LPCSTR lpcDestination = destination.c_str();

    HRESULT hr = URLDownloadToFile( NULL, lpcURL, lpcDestination, 0, NULL );

   return hr;
}


int DownloadLauncherOneOff() {
   if (DoesFileExist("launcher-v.txt") == 1) {
      // File is there ;)
      return 1;
   }

   HRESULT file2 = DownloadFile("mu.ini");

   if (file2 != S_OK) {
      MessageBox(0, "Cant download launcher info","Error",MB_OK | MB_ICONERROR);
      ExitProcess(0);
      return 0;
   }

   MessageBox(NULL, "Update Available for the Launcher! \n\n Press OK and wait few seconds...","Updating",MB_OK | MB_ICONINFORMATION);

   Sleep(6000);

   HRESULT file3 = DownloadFile("MuPhoenix.exe");

   if (file3 != S_OK) {
      MessageBox(0, "Cant download new Launcher please download it manually from the website","Error",MB_OK | MB_ICONERROR);
      ExitProcess(0);
      return 0;
   }

   HRESULT file1 = DownloadFile("launcher-v.txt");

   if (file1 != S_OK) {
      MessageBox(0, "Cant download launcher lock file, try later or contact us in Discord","Error",MB_OK | MB_ICONERROR);
      ExitProcess(0);
      return 0;
   }

   MessageBox(0, "Launcher Updated!! \n\n Please launch the Game Again!","Info",MB_OK | MB_ICONINFORMATION);

    return 0;
}


Online ZabiinoOo #1 Posteado: January 28, 2021, 11:55:59 PM

  • MAESTRO

  • US. DE HONOR

  • LEYENDA

  • Administrador
  • 0 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 7.302
  • Gracias recibida: 125839
  • pe
Eso es porque algunos archivos que estas usando en tu cliente no corresponden a los que tienes dentro de tu carpeta "Tools/MAIN_INFO" lo que debes hacer es incluir los archivos: main.exe, main.dll, mhpclient.dll, mhpverify.dll, camera.dll, etc cualquier dll enlazada en tu cliente al main debes incluirla para que al generar main te tome los codigos de validacion de cada archivo




Prohibido pedir soporte via MP
Leer las reglas de cada seccion
we trust god

Solo usuarios registrados pueden comentar y agradecer, Logueate o Registrate


 

Related Topics

  Subject / Started by Replies Last post
20 Replies
3212 Views
Last post June 06, 2018, 09:39:23 PM
by nelson
0 Replies
444 Views
Last post September 14, 2018, 10:12:51 AM
by cobyzero
0 Replies
558 Views
Last post December 24, 2018, 05:39:43 AM
by IvanZeta
0 Replies
397 Views
Last post March 31, 2020, 08:41:47 PM
by matiman08
2 Replies
1199 Views
Last post April 16, 2020, 02:56:15 PM
by MiRoKu