Guía: Fix RenderExperience Source 5.2 BASE - Source Mu - Mu Server Files
 

Guía: Fix RenderExperience Source 5.2 BASE

Publicado por Dakosmu, Mar 19, 2026, 02:37 AM

Tema anterior - Siguiente tema

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

Dakosmu

Guía: Fix RenderExperience



Paso 1: Buscar el código original

En tu archivo fuente, localiza el siguiente bloque de código que maneja el renderizado de la barra de experiencia:

if (iExpBarNum <= iPreExpBarNum) { float fGapProgress = 0.f;

fGapProgress = fProgress - fPreProgress;

Exp_width = (fPreProgress * width);
RenderBitmap(textureExp, x, y, Exp_width, height, 0.0, 0.0, 0.75, 1.0, 1, 1, 0.0);

x_Next = x;
Exp_width += fGapProgress * width;
RenderBitmap(textureExp, x_Next, y, Exp_width, height, 0.0, 0.0, 0.75, 1.0, 1, 1, 0.0);

glColor4f(1.0, 1.0, 1.0, 0.40000001);
RenderColor(x_Next, y, Exp_width, height, 0.0, 0);
EndRenderColor();
}

Paso 2: Aplicar la corrección (Reemplazar)

Sustituye el bloque anterior por este nuevo código optimizado para corregir el cálculo del ancho y la posición:

if (iExpBarNum <= iPreExpBarNum) { float fGapProgress = fProgress - fPreProgress;

float oldWidth = fPreProgress * width;
RenderBitmap(textureExp, x, y, oldWidth, height, 0.0, 0.0, 0.75, 1.0, true, true, 0.0);

float newWidth = fGapProgress * width;
float newX = x + oldWidth;

RenderBitmap(textureExp, newX, y, newWidth, height, 0.0, 0.0, 0.75, 1.0, true, true, 0.0);

glColor4f(1.f, 1.f, 1.f, 0.4f);
RenderColor(newX, y, newWidth, height, 0.0, 0);
EndRenderColor();
}

Paso 3: Limpieza de código

  • Asegúrate de eliminar la siguiente línea duplicada o innecesaria para evitar errores visuales:

Eliminar:
RenderBitmap(textureExp, x, y, width, height, 0.0, 0.0, 0.75, 1.0, true, true, 0.0);
Bon Dia

🡱 🡳
Real Time Web Analytics