PDA

View Full Version : [Help] My First Mutator Tutorial



Azzedinistan
11-11-2009, 05:38 AM
Hello everyone !
im trying to achieve the "My First Mutator" tutorial here:
http://www.moddb.com/engines/unreal-engine-3/tutorials/unreal-learning-1-my-first-unreal-tournament-3-mutator

But my mutator doesn't even appear in the game and i don't really understand this part of the tutorial :
This is where that configuration ini file comes in. Use windows search to find the configuration file (hint, look for FirstMutator). Open it, and find the section [FirstMutator UIDataProvider_Mutator] - under that you should add (or alter if it is already there);

In my Config file UTMFM (UT My First Mod) , i have added this :

[UTMutator_VeryLowGrav UIDataProvider_Mutator]
ClassName=UTGame.UTMutator_VeryLowGrav
GroupNames=JUMPING
bRemoveOn360=False
bRemoveOnPC=False
bRemoveOnPS3=False

and it's my UTMutator_VeryLowGrav.uc

// Copyright 1998-2009 Epic Games, Inc. All Rights Reserved.
class UTMutator_VeryLowGrav extends UTMutator;

/** Gravity along Z axis applied to objects in physics volumes which had default gravity. */
var() float GravityZVery;

function InitMutator(string Options, out string ErrorMessage)
{
WorldInfo.WorldGravityZ = GravityZVery;
Super.InitMutator(Options, ErrorMessage);
}

defaultproperties
{
GroupNames[0]="JUMPING"
GravityZVery=-50000.0
}


I really don't understand why it doesn't work , it looks to be an easy tutorial and i can't even achieve it :mad:

To make my Project Folder , i have followed this tutorial :
http://www.moddb.com/engines/unreal-engine-3/tutorials/first-mod-unreal-scipt-unreal-development-kit

Azzedinistan
11-12-2009, 11:11 AM
I'm sure that someone can help me ... But nobody replies :'(

Malachor
11-13-2009, 03:18 AM
Change this line:
ClassName=UTGame.UTMutator_VeryLowGrav
You shouldn't be using UTGame.

Azzedinistan
11-13-2009, 12:49 PM
I thank you so much for replying but it hasn't worked better ... I still can't see my mutator in the list ! It remembers me of Operation Flashpoint , when i began to mod , it took me 1 week to make the config of a weapon , I was 12 and now it takes me only 5 minutes ... I hope it will be the same on UE3