Page 1 of 1

Replacer for TACTICAL MOD

PostPosted: Sun Feb 04, 07 4:13 am
by KillerZ
I have this script that won't load in my server

Code: Select all
//===============================================================
// Replacer for Tactical MOD  ATLANTIS YAY
//===============================================================
class replacer extends Actor;



function PreBeginPlay() 
{
local DeusExWeapon w; 
foreach allActors(class'DeusExWeapon',w)

{


if (w.isA('WeaponPistol'))



Spawn(class'Tactical.WeaponVector',,,w.location,w.rotation);


else if (w.isA('WeaponRifle')) 


Spawn(class'Tactical.WeaponFamas',,,w.location,w.rotation);


else if (w.isA('WeaponStealthPistol'))



Spawn(class'Tactical.WeaponLaserPistol',,,w.location,w.rotation);

else if (w.isA('WeaponAssaultshotgun'))



Spawn(class'Tactical.WeaponMp5',,,w.location,w.rotation);

else if (w.isA('WeaponAssaultGun'))



Spawn(class'Tactical.WeaponOICW',,,w.location,w.rotation);


w.Destroy();

}
}


And in the Server this turns up

Code: Select all
Warning: Failed to load 'NULL': Can't resolve package name
Warning: Failed to load 'Class None.Replacer': Can't resolve package name
Warning: Can't resolve package name


How do I fix this?


Mu package is Replacer.u

PostPosted: Sun Feb 04, 07 9:15 am
by Gishank
Add the two following lines in the ini....


Code: Select all
ServerActors=replacer.replacer
ServerPackages=replacer



Also, from my knowledge you need to get rid of all those else commands and just put if commands.

PostPosted: Sun Feb 04, 07 9:28 am
by MainMan
If you already have it in serveractors klop, then there is no need of having it in serverpackages. Phool. Otherwise, it will sometimes get loaded twice (I've had this problem) and it will cause trouble.

PostPosted: Sun Feb 04, 07 12:05 pm
by Gishank
Yeah, but when i've tried to just use ServerActors= instead of the actuall package included it crashes =P

PostPosted: Sun Feb 04, 07 4:36 pm
by ~ô¿ô~Nobody~
You need to have Tactical in serverpackages: YES
You need to have the replacer in serverpackages: NO