Page 1 of 1

How 2 make a gametype?

Posted: June 30th, 2011, 6:47 pm
by Nekoneko
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?

Re: How 2 make a gametype?

Posted: June 30th, 2011, 6:50 pm
by IzNoGoD
If you copy the tdm gametype, you need tdm spawns.
I think your map only has ffa spawns.

Re: How 2 make a gametype?

Posted: June 30th, 2011, 7:04 pm
by Opel
Also make sure you have a gametypes.txt and a .txt file for your gametype, eg war.txt

Re: How 2 make a gametype?

Posted: June 30th, 2011, 7:23 pm
by Nekoneko
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

Re: How 2 make a gametype?

Posted: June 30th, 2011, 7:26 pm
by Opel
Add them to your mod.csv

Code: Select all



rawfile,maps/mp/gametypes/_gametypes.txt
rawfile,maps/mp/gametypes/gt_name.txt


Re: How 2 make a gametype?

Posted: June 30th, 2011, 7:30 pm
by Nekoneko
I have

rawfile,maps\mp\gametypes\_gametypes.txt
rawfile,maps\mp\gametypes\portal.txt