Gametype int, what am I doing wrong?

  • 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.

SoSilencer

Harry Goz (1932 - 2003)
Nov 27, 2000
834
0
0
42
unrealdev.net
I'm trying to figure out how to get my gametype to appear in the list. I'm obviously missing somebody very simple and in the open but I can't seem to put my finger on it.

I've got a new gametype (subclass of DeathMatchPlus, same as the rest of the gametypes) in a package called MyGameType. I put the following in MyGameType.int and load the game and it has an extra listing, but instead of being my game it simply shows 2 "LastManStanding" gametypes (both of which indeed are LastManStanding, not simply an incorrect naming of my version).

[Public]
Object=(Name=MyGameType.MyLastManStanding,Class=Class,MetaClass=Botpack.TournamentGameInfo)
Preferences=(Caption="MyLastManStanding",Parent="Game Types",Class=MyGameType.MyLastManStanding,Immediate=True)

My gametype is simply the entire LastManStanding code with one simple adjustment (I broadcast how many players are still alive every time somebody is killed, just to test). Everything else is the same which made me think that maybe there was some reference to the original gametype that was overriding my version but upon looking through the code and default properties I couldn't find any references to LastManStanding.

I also tried making my gametypea subclass of LastManStanding and only replacing the one function I changed but when I did that my gametype DID appear in-game but it appeared as a gametype category, and the only listed gametype for that category was LastManStanding (not my gametype). I don't have that int file anymore though so I'm not sure what happened.

Anyone have any ideas? My int file looks just like the gametype listings in botpack.int and my gametype class is setup exactly like the stock gametypes but it just doesn't want to show up.
 

mr.s-d

CHiMERiC Moderator
Aug 30, 2001
65
0
0
UK
www.unrealscript.com
The actual in-game name of a GameInfo class isn't controlled by the .int file. The string GameName does, put it in your defaultproperties like so:

defaultproperties
{
GameName="Spank the Monkey"
}