Fix Compilação Pegasus Season 5.2 - Remover verificações de DLL - Source Mu - Mu Server Files
 

Fix Compilação Pegasus Season 5.2 - Remover verificações de DLL

Publicado por Dakosmu, Nov 17, 2025, 06:23 PM

Tema anterior - Siguiente tema

0 Miembros y 1 Visitante están viendo este tema.

Dakosmu

Fix Compilação Pegasus Season 5.2 - Remover verificações de DLL e corrigir resource.rc

Este fix remove as verificações de DLL que impediam o cliente de iniciar e corrige o erro de compilação no resource.rc.

---

1. Editando ZzzAI.cpp

Procurar:
extern "C" __declspec(dllexport) void ExternalCalcFPS(double currentTime, double lastTime, int frameCount)
{

    if (!hFPSDLL)
    {
        MessageBoxA(0, "Cannot Load SystemFPS.dll", "DLL Error", MB_OK | MB_ICONERROR);
        ExitProcess(0);

    }

    if (!ExternalCalcFPS)
    {
        MessageBoxA(0, "Cannot find function ExternalCalcFPS", "DLL Error", MB_OK | MB_ICONERROR);
        ExitProcess(0);

    }
}

Substituir por:
extern "C" __declspec(dllexport) void ExternalCalcFPS(double currentTime, double lastTime, int frameCount)
{
    // DLL checks removed - no longer needed
    // Client will work without SystemFPS.dll
}

---

2. Editando MainLoad.cpp

Procurar:
    if (gProtect.ReadDllFile("SystemFPS.dll") == 0)
    {
        MessageBoxA(0, "Failed to load FPS ! www.VuongTieuYen.com", "DLL Error", MB_OK | MB_ICONERROR);
        ExitProcess(0);
        return 0;
    }

Substituir por:
    // SystemFPS.dll is optional - continue without it
    // if (gProtect.ReadDllFile("SystemFPS.dll") == 0)
    // {
    //      MessageBoxA(0, "Failed to load FPS ! www.VuongTieuYen.com", "DLL Error", MB_OK | MB_ICONERROR);
    //      ExitProcess(0);
    //      return 0;
    // }

---

3. Editando resource.rc

Procurar:
#define APSTUDIO_READONLY_SYMBOLS
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 2 resource.
//
#include "afxres.h"

Substituir por:
#define APSTUDIO_READONLY_SYMBOLS
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 2 resource.
//
#include "windows.h"

---

4. Observações

  • Este fix remove as dependências de SystemFPS.dll que impediam o cliente de iniciar.
  • Corrige o erro RC1015 (cannot open include file 'afxres.h') durante a compilação.
  • O cliente agora compila sem erros e inicia normalmente sem mensagens de DLL Error.
  • Testado com Visual Studio 2022 Community.
  • Compatível com Pegasus Season 5.2 e versões similares.
  • O arquivo resource.rc foi corrigido para não depender de MFC (afxres.h).

Creditos
dohko1
Bon Dia

🡱 🡳
Real Time Web Analytics