News UnrealEd Files Mods FragBU Liandri Archives
BeyondUnreal Forums

Go Back   BeyondUnreal Forums > Unreal Development > Coding

Reply
 
Thread Tools Display Modes
Old 8th Nov 2001, 04:56 AM   #1
SoSilencer
Harry Goz (1932 - 2003)
 
SoSilencer's Avatar
 
Join Date: Nov. 27th, 2000
Posts: 834
Gametype int, what am I doing wrong?

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.
__________________
German Guy: Is there an indicator to see where the blue flag is?
Mark Rein: Yeah it's a blue flag
SoSilencer is offline   Reply With Quote
Old 8th Nov 2001, 06:42 AM   #2
mr.s-d
CHiMERiC Moderator
 
Join Date: Aug. 30th, 2001
Location: UK
Posts: 65
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"
}
mr.s-d is offline   Reply With Quote
Old 8th Nov 2001, 10:59 AM   #3
SoSilencer
Harry Goz (1932 - 2003)
 
SoSilencer's Avatar
 
Join Date: Nov. 27th, 2000
Posts: 834
Aha! Thanks a lot
__________________
German Guy: Is there an indicator to see where the blue flag is?
Mark Rein: Yeah it's a blue flag
SoSilencer is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 11:25 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.

Copyright ©1998 - 2012, BeyondUnreal, Inc.
Privacy Policy | Terms of Use
Bandwidth provided by AtomicGamer