How to create a new game type

Sambuca
10-18-2004, 02:19 AM
1. Start tved.exe
2. View->Show Class Browser
3. (In Class Browser) View->Unplaceable - make sure it is checked
4. File->Open Package... find GameClasses.pkg
5. Click on "All" so that it is deselected and you will be viewing the GameClasses
(Break down ModeDefault to see the existing game modes - ModeCTF, ModeArena, ModeBall, etc)
6. Right click on "ModeDefault" - select "New"
7. Give it a name, prefix with Mode, i.e. ModeMyGame
8. [Important]Give it a unique package name (this is what clients will download) i.e GameMyGame - click ok
9. Now you can select your package "GameMyGame" from the drop down list, and you should see your ModeMyGame - double click it.
10. You can now set the properties of your game. What you should do for a start is open up a game mode that you want to base your game off and copy the properties. Ie. double click ModeCTF and use that as a guide for setting the properties for your game.
11. When you are done, go back to the class browser and save your new package (save it in the default folder with the rest of the packages .pkg files).

That's pretty much as far as I got. I ran a server and when people connected they auto-downloaded the new game type (GameMyGame).

Also, to run your game, start a server and type this in the console:
open mymap?listen?game=gamemyg ame.modemygame

I haven't done this yet, but you can add your game to a map by opening the map. Go to View->Level Properties
In the window that comes up, "Level Summary" there's an edit field in there that contains the game modes.
[Edit] This works. Doing this, allows you to select your gametype and map from the host game list. You will have to use a new map name if you are using an existing map, otherwise clients will get a map mismatch error when they attempt to connect to your server.

Hopefull that's everything, it's kinda late and I'm sleepy :p

Random150
10-18-2004, 05:41 PM
It works!

Major-Lee-High
10-18-2004, 07:12 PM
That way will work but your better off using the code to make a new one, unless you just wnat to change a few things in a gametype, which may be better with mutators so they work in all maps.

Also, if you want to use alot of stuff from another gametype extend of of it instead of modedefault, like click ctfmode and extend it to make a similar game.

Should use the source and compile a package to make a new gametype though, you cant do anything but change default properties with the way you described, which works great for alot of other stuff, like make a new invstationloadout and then save it to your myLevel package (puts it in the map) and change some properties. For making new stuff though, no.

Random150
10-18-2004, 10:31 PM
Here is how you make a new gametype in code.

1. Make your package folder in Source/Game/YourMod
2. Make a Classes and Int folder
3. Make a file, YourMod.uc and put

class YourMod extends Engine.GameInfo;

defaultproperties
{
GameName="Your Mod"
}


4. Add your package name to the UCC.ini in the package list.
5. Run TV and type this into teh console
open MP-arid.tvm?game=YourMod

Random150
10-18-2004, 10:32 PM
That will get you a new game type. It wont be much at all. You will be a observer and nothing will happen but its a start. For somereason the devs didnt include the gametypes that came with the game.