Call of Duty 4: Modern Warfare
Menú
Gamersmafia es ahora un archivo de solo lectura.

Promod 431 Error

Que tal escribo esto y no se si va aqui, disculpen de antemano si no va aqui, bueno al grano eh montado un server en mi pc para mi clan {DMG} (cod4), el server es para practicar y scrims, lo pusimos en promod 431 pero al entarar al server me da este error: “Server violationg #0200: Iwd check failed. Only stock and promod iwd files allowed” no he manipulado o editado ningun archivo .iwd, espero que alguien le pase lo mismo por que busco en google y no encuentro mucho acerca de este error, vi que se soluciona anulando algo del promod con un scritp que va en “promod_script/servercheck.gsc”, pero el problema esque no se donde esta esa ruta o como se crea ese script, muchas gracias para todos aquellos que se tomen la molestia de leer mi problema y ayudarme (en caso que sepan sobre esto).Gracias

Hola Serdmg te contesto tarde pero bueno al menos te contesto
Si no has cambiado al promodlive que esto ya no ocurre lo puedes arreglar muy facilmente.
En el promodlive han comentando las llamadas a “checkIWDfiles()” y “violationSystem()” que estan en “main()” del script “promod_script/servercheck.gsc” dejando “main()” sin nada que ejecutar.
Tu puedes hacer lo mismo, si quieres o dejarlo y quitar solo las que te molesten, el puede querer dejarlo, a saber.

En el #de https://cod4.gamersmafia.com/foros/topic/29546 hablo de esto.

Te paso los script sin modificar del 4.31 por si sigues empeñao en seguir con el 4.31 y el del promodlive.

promod431:
//promod_script/servercheck.gsc
main()
{
checkIWDfiles();
violationSystem();

}

checkIWDfiles()
{
//linux servers
if (!isDefined(level.iwdcheck_pass))
{ if (getDvar(“sv_iwdnames”) == “z_custom_ruleset promod431 z_custom_ruleset promod431 iw_13 iw_12 iw_11 iw_10 iw_09 iw_08 iw_07 iw_06 iw_05 iw_04 iw_03 iw_02 iw_01 iw_00 iw_13 iw_12 iw_11 iw_10 iw_09 iw_08 iw_07 iw_06 iw_05 iw_04 iw_03 iw_02 iw_01 iw_00”)
{
level.iwdcheck_pass = true;
}
}

wait level.frame;

//windows servers
if (!isDefined(level.iwdcheck_pass))
{	if (getDvar("sv_iwdnames") == "z_custom_ruleset promod431 iw_13 iw_12 iw_11 iw_10 iw_09 iw_08 iw_07 iw_06 iw_05 iw_04 iw_03 iw_02 iw_01 iw_00")
	{
		level.iwdcheck_pass = true;
	}
}

wait level.frame;

//linux servers alternative
if (!isDefined(level.iwdcheck_pass))
{	if (getDvar("sv_iwdnames") == "promod431 promod431 iw_13 iw_12 iw_11 iw_10 iw_09 iw_08 iw_07 iw_06 iw_05 iw_04 iw_03 iw_02 iw_01 iw_00 iw_13 iw_12 iw_11 iw_10 iw_09 iw_08 iw_07 iw_06 iw_05 iw_04 iw_03 iw_02 iw_01 iw_00")
	{
		level.iwdcheck_pass = true;
	}
}

wait level.frame;

//windows servers alternative
if (!isDefined(level.iwdcheck_pass))
{	if (getDvar("sv_iwdnames") == "promod431 iw_13 iw_12 iw_11 iw_10 iw_09 iw_08 iw_07 iw_06 iw_05 iw_04 iw_03 iw_02 iw_01 iw_00")
	{
		level.iwdcheck_pass = true;
	}
}

wait level.frame;

if (isDefined(level.iwdcheck_pass))
{
	splitIWDsum();
} }

splitIWDsum()
{
checksum = getDvar(“sv_iwds”);
reconstruct = “”;
for (i=0;i<checksum.size ; i++)
{
if(checksum* != “ “)
{
reconstruct += checksum*;
}
else
{
checkIWDsum(reconstruct);
reconstruct = “”;
}
}
}

checkIWDsum(iwdname)
{
if(isSubStr(iwdname, “-1160127128”))
{
level.iwdsum_pass = true;
}
}

violationSystem()
{
wait 3;

if (getDvarInt("sv_fps") != 20)
{
	iPrintLNBold("^1Server Violation ^3#0100 ^7: Illegal sv_fps");
}

if (getDvarInt("sv_maxrate") != 25000)
{
	iPrintLNBold("^1Server Violation ^3#0101 ^7: Illegal sv_maxrate");
}

if (getDvarInt("sv_punkbuster") != 1 && game["LAN_MODE"] != 1)
{
	iPrintLNBold("^1Server Violation ^3#0102 ^7: Punkbuster Disabled");
}

if (getDvarInt("scr_player_maxhealth") != 100)
{
	iPrintLNBold("^1Server Violation ^3#0103 ^7: Modified Player");
}

if (getDvarInt("g_speed") != 0 && getDvarInt("g_speed") != 190)
{
	iPrintLNBold("^1Server Violation ^3#0104 ^7: Modified Environment");
}

if (getDvarInt("g_gravity") != 800)
{
	iPrintLNBold("^1Server Violation ^3#0105 ^7: Modified Environment");
}

if (getDvarInt("sv_disableClientConsole") != 0)
{
	iPrintLNBold("^1Server Violation ^3#0106 ^7: Modified Client");
}

if (getDvarInt("g_antilag") != 1 && game["LAN_MODE"] != 1)
{
	iPrintLNBold("^1Server Violation ^3#0107 ^7: Modified Connection");
}

if (getDvarInt("sv_pure") != 1)
{
	iPrintLNBold("^1Server Violation ^3#0108 ^7: Impure Server");
}

if (getDvar("fs_game") != ("mods/promod431"))
{
iPrintLNBold("^1Server Violation ^3#0109 ^7: Bad Server Path (fs_game)");
iPrintLNBold("^3Read the release notes!");
}

if (!isDefined(level.iwdcheck_pass))
{
	iPrintLNBold("^1Server Violation ^3#0200 ^7: IWD Check Failed");
	iPrintLNBold("^3Only stock and Promod IWD files allowed");
}

if (isDefined(level.iwdcheck_pass))
{	if (!isDefined(level.iwdsum_pass))
	{
		iPrintLNBold("^1Server Violation ^3#0201 ^7: Promod Checksum Failed");
		iPrintLNBold("^3You are using the wrong IWD file for this Promod Release");
	}
} }

promodlive:
//promod_script/servercheck.gsc
main()
{
checkIWDfiles();
violationSystem();

}

checkIWDfiles()
{
cacheIWDname = toLower(getDvar(“sv_iwdnames”));
//linux servers
if (!isDefined(level.iwdcheck_pass))
{ if ( !isSubStr( cacheIWDname, “svr” ) )
{
level.iwdcheck_pass = true;
}
}

wait level.frame;

if (isDefined(level.iwdcheck_pass))
{
	splitIWDsum();
} }

splitIWDsum()
{
checksum = getDvar(“sv_iwds”);
reconstruct = “”;
for (i=0;i<checksum.size ; i++)
{
if(checksum* != “ “)
{
reconstruct += checksum*;
}
else
{
checkIWDsum(reconstruct);
reconstruct = “”;
}
}
}

checkIWDsum(iwdname)
{
if(isSubStr(iwdname, “131326175”))
{
level.iwdsum_pass = true;
}
}

violationSystem()
{
wait 3;

.*cierro itálica

edit: ps no se cierra

Veo que no entra todo, sry, si sigues interesado, dime donde por donde te lo paso, xfire, email, megaupload, etc…

*

si se cierra

Editado: lol no

Comentario #3 por robalo:
Veo que no entra todo, sry, si sigues interesado, dime donde por donde te lo paso, xfire, email, megaupload, etc…

Y aun asi no entra todo omg * no se quita

*Se cierra?

Editado: joer

Perdon, pero no se como editar si es que puedo para quitar todo el chorizo.
La italica se ha genarao sola despues de “if(checksum…” a saber.
Si podeis editarlo vosotros borrando desde “Te paso los script sin modificar del 4.31…..” hasta el final os lo agradeceria.
Supongo que desaparecerá la italica.

Gracias y lo siento, lo tenia q a ver metio con “CODE”

por que escribis de lado?? igualmente por que no lo subes un ftp o algo asi?

ey gracias por el script lo voy a guardar ya cambie a la version 4.42 del promod me gusto mucho pero ahora lo que quiero es cambiar el nombre de la carpeta del promod442 a otro nombre sin que salte el error #voy a probar con este script dejo mi xfire por si algo sergioalmen

Y gracias por responder

Los más activos en General