Mutator not showing up in-game and ucc gets an error.

  • Please make sure you are familiar with the forum rules. You can find them here: https://forums.tripwireinteractive.com/index.php?threads/forum-rules.2334636/

tha MediC

FNG / Fresh Meat
May 18, 2009
105
2
0
ucc shows me this and i'm struggleing how to understand the problem.

-----------------------KF-StalkerMut - Release------------------------
Analyzing...
Parsing KF-StalkerMut
C:\Program Files\Steam\steamapps\common\killingfloor\KF-StalkerMut\Classes\KF-StalkerMut.uc(4) : Error, Class must be named KF-StalkerMut, not KF
Compile aborted due to errors.
Failure - 1 error(s), 0 warning(s)

here is the .uc file (the mutator is just suppose to make Stalkers spawn i took the siren only mut and changed where it said siren to stalker lol)

Code:
//-----------------------------------------------------------
//
//-----------------------------------------------------------
class KF-StalkerMut extends Mutator;

function PostBeginPlay()
{
	SetTimer(0.1,False);
}
function Timer()
{
	local KFGameType KF;
	local byte i;
	local class<KFMonster> MC;

	KF = KFGameType(Level.Game);
	MC = Class<KFMonster>(DynamicLoadObject("KFChar.ZombieStalker",Class'Class'));
	if ( KF!=None && MC!=None )
	{
		// groups of monsters that will be spawned
		KF.InitSquads.Length = 1;
		KF.InitSquads[0].MSquad.Length = 8;
		for( i=0; i<8; i++ )
			KF.InitSquads[0].MSquad[i] = MC;
	}
	Destroy();
}

DefaultProperties
{
	GroupName="KF-StalkerMut"
	bAddToServerPackages=True
	FriendlyName="Hunter"
	Description="Stalkers only. Looks like its undead-tart season!"
}

Any help with this would be greatly appreciated guys :)
 

FooToo

FNG / Fresh Meat
May 18, 2009
1
0
0
Im Pretty Sure the error is caused by the "-" in line 4.
I dont belive you should use those type of characters.
If im not mistaken that why you are getting the error.
 

tha MediC

FNG / Fresh Meat
May 18, 2009
105
2
0
Thanks red frog, ill try that out now :p

Edit, Ran into another problem but i fixed it, and now the mutator shows in game and works :D woot.

But occasionally on a wave you'll get a screamer, FP, scrake, crawler or bloat. Normal-long, wave 2 gave me 2 crawlers, wave 6 gave me 2 FP's, wave 7, 2 FP's and a scrake, wave 8 three FP's two scrakes 4 screamers and 3 bloats and i wiped xD

I just have no idea if my perks have been able to get progress with it on or not due to steam servers going offline every 20 seconds.
 
Last edited: