Hello.
I was thinking of starting my own mod.
I do know how to script, but I just can't get it running at first.
I have my own gametype in maps\mp\gametypes, which I just copied from tdm and renamed the file.
When I start a game under that gametype, it just switches to ffa ( I'm assuming it doesn't aknowledge the gametype ).
So is there anything else I need to have done before being able to play my gametype?
			
			
									
									
						How 2 make a gametype?
Moderator: Core Staff
- 
				IzNoGoD
 - CJ Worshipper

 - Posts: 343
 - Joined: January 6th, 2009, 8:39 pm
 - Location: Netherlands/Holland
 
Re: How 2 make a gametype?
If you copy the tdm gametype, you need tdm spawns.
I think your map only has ffa spawns.
			
			
									
									
						I think your map only has ffa spawns.
- 
				Opel
														 - CJ Fan

 - Posts: 188
 - Joined: September 15th, 2008, 12:28 pm
 - Location: Scotland
 
Re: How 2 make a gametype?
Also make sure you have a gametypes.txt and a .txt file for your gametype, eg war.txt
			
			
									
									
						- 
				Nekoneko
 - CJ Fan

 - Posts: 170
 - Joined: April 18th, 2011, 3:48 pm
 
Re: How 2 make a gametype?
i have the _gametypes.txt and the other one too, but I just noticed, when I try to decompile it, i dont see the _gametypes.txt
			
			
									
									
						- 
				Opel
														 - CJ Fan

 - Posts: 188
 - Joined: September 15th, 2008, 12:28 pm
 - Location: Scotland
 
Re: How 2 make a gametype?
Add them to your mod.csv 
			
			
									
									
						Code: Select all
rawfile,maps/mp/gametypes/_gametypes.txt
rawfile,maps/mp/gametypes/gt_name.txt
- 
				Nekoneko
 - CJ Fan

 - Posts: 170
 - Joined: April 18th, 2011, 3:48 pm
 
Re: How 2 make a gametype?
I have
rawfile,maps\mp\gametypes\_gametypes.txt
rawfile,maps\mp\gametypes\portal.txt
			
			
									
									
						rawfile,maps\mp\gametypes\_gametypes.txt
rawfile,maps\mp\gametypes\portal.txt