Critical: Superclass DeathMatch of class myGameType not found

  • Two Factor Authentication is now available on BeyondUnreal Forums. To configure it, visit your Profile and look for the "Two Step Verification" option on the left side. We can send codes via email (may be slower) or you can set up any TOTP Authenticator app on your phone (Authy, Google Authenticator, etc) to deliver codes. It is highly recommended that you configure this to keep your account safe.

TGP|:Mi5zt:|

New Member
Oct 20, 2004
6
0
0
Hi Everyone, i am just starting Uscript, and i am stuck straight away, I am trying to make the mod for spawning bots that i found in a tutorial, but i keep getting this error...

Critical: Superclass DeathMatch of class myGameType not found

I have installed the scripts, and the DeathMatch.uc is definitly there, but when i try to compile i get this error :( I am sure there is somthing very simple i am missing, can someone point it out to me? :D ...the code is below... (this is UT2004)

class myGameType extends DeathMatch;

function Bot SpawnBot(optional string botName)
{
local Bot NewBot;
local RosterEntry Chosen;
local UnrealTeamInfo BotTeam;

BotTeam = GetBotTeam();
Chosen = BotTeam.ChooseBotClass(botName);

//set the pawn class name and pawnclass to our own pawn class
Chosen.PawnClassName = "MutSpawningBot.NewPawn";
Chosen.PawnClass = class'MutSpawningBot.NewPawn';

//comment out these because the because we just set the pawnclass
/* if (Chosen.PawnClass == None)
Chosen.Init(); //amb
// log("Chose pawn class "$Chosen.PawnClass);
*/

NewBot = Bot(Spawn(Chosen.PawnClass.default.ControllerClass));

if ( NewBot != None )
InitializeBot(NewBot,BotTeam,Chosen);
return NewBot;
}


defaultproperties
{
MapPrefix="DM"
Acronym="DM"
GameName="myGameType"
Description="myGameType"
}