09-09-2011, 17:48
I got a Problem with xkmod live 1.0
I want to add some Bots:
if 1player is on the server > spawn 5Bots and so on...
Works in standalone version and with other mods!
My problem is that i have to decrypt the mod.ff from xkmod live1.0 to modify the mod... But i cant get the other stuff of the mod working when i re-encrypt it again...
It seems that just the stuff of the _rank.gsc gets loaded and the other stuff not...
Added all files to mod.csv like this:
How can i re-encrypt the mod so that it works again ?
I want to add some Bots:
Spoiler (Click to View)
Code:
addBots()
{
for( ; ; )
{
botNum = 0;
players = level.players.size;
teams = [];
teams[0] = "allies";
teams[1] = "axis";
if( players <= 3 )
botNum = 4;
if( players == 4 )
botNum = 3;
if( players == 5 )
botNum = 2;
for( i = 0; i < botNum; i++ )
{
wait 2;
bot = AddTestClient();
bot.pers[ "isBot" ] = true;
bot thread maps\mp\gametypes\_bot::bot_spawn_think( teams[ randomInt( 2 ) ] );
}
wait 0.01;}
}
if 1player is on the server > spawn 5Bots and so on...
Works in standalone version and with other mods!
My problem is that i have to decrypt the mod.ff from xkmod live1.0 to modify the mod... But i cant get the other stuff of the mod working when i re-encrypt it again...
It seems that just the stuff of the _rank.gsc gets loaded and the other stuff not...
Added all files to mod.csv like this:
Spoiler (Click to View)
Code:
rawfile,maps/mp/gametypes/_armor.gsc
rawfile,maps/mp/gametypes/_battlechatter_mp.gsc
rawfile,maps/mp/gametypes/_callbacksetup.gsc
rawfile,maps/mp/gametypes/_class.gsc
rawfile,maps/mp/gametypes/_copycat.gsc
rawfile,maps/mp/gametypes/_gameobjects.gsc
rawfile,maps/mp/gametypes/_globallogic.gsc
rawfile,maps/mp/gametypes/_globallogic_audio.gsc
rawfile,maps/mp/gametypes/_globallogic_defaults.gsc
rawfile,maps/mp/gametypes/_globallogic_player.gsc
rawfile,maps/mp/gametypes/_globallogic_score.gsc
rawfile,maps/mp/gametypes/_globallogic_spawn.gsc
rawfile,maps/mp/gametypes/_globallogic_ui.gsc
rawfile,maps/mp/gametypes/_globallogic_utils.gsc
rawfile,maps/mp/gametypes/_healthoverlay.gsc
rawfile,maps/mp/gametypes/_menus.gsc
rawfile,maps/mp/gametypes/_persistence.gsc
rawfile,maps/mp/gametypes/_quickmessages.gsc
rawfile,maps/mp/gametypes/_rank.gsc
rawfile,maps/mp/gametypes/_weapons.gsc
rawfile,maps/mp/gametypes/dem.gsc
rawfile,maps/mp/gametypes/dm.gsc
rawfile,maps/mp/gametypes/sd.gsc
rawfile,maps/mp/_flashgrenades.gsc
rawfile,maps/mp/_load.gsc
rawfile,maps/mp/_popups.gsc
rawfile,maps/mp/_smokegrenade.gsc
rawfile,maps/mp/mp_array.gsc
rawfile,maps/mp/mp_cairo.gsc
rawfile,maps/mp/mp_cosmodrome.gsc
rawfile,maps/mp/mp_cracked.gsc
rawfile,maps/mp/mp_crisis.gsc
rawfile,maps/mp/mp_duga.gsc
rawfile,maps/mp/mp_firingrange.gsc
rawfile,maps/mp/mp_hanoi.gsc
rawfile,maps/mp/mp_havoc.gsc
rawfile,maps/mp/mp_mountain.gsc
rawfile,maps/mp/mp_nuked.gsc
rawfile,maps/mp/mp_radiation.gsc
rawfile,maps/mp/mp_radiation_fx.gsc
rawfile,maps/mp/mp_russianbase.gsc
rawfile,maps/mp/mp_villa.gsc
rawfile,xkmod/_xkmod.gsc
rawfile,xkmod/classmenu.gsc
rawfile,xkmod/readyup.gsc
rawfile,xkmod/stratmode.gsc
rawfile,xkmod/timeout.gsc
rawfile,xkmod/xk_modes.gsc
rawfile,xkmod/rules/comp.gsc