RakaNishoo
11-10-2009, 03:22 PM
Hello,
I'm new to Unreal Engine and I'm trying to figure out how to handle UDK.
After some readings I tried to make my first Mutator (as it seems to be the easiest thing possible).
I took UTMutator_LowGrav.uc from Development/src/UTGame/Classes and copied it into my own file. I changed class name to MyMutator.
My file MyMutator.uc lies in Development/src/MyMod/Classes folder and I uncommented the line in UTGame/Config/UTEngine.ini file:
ModEditPackages=MyMod
UDK after launching, compiled "my" code without errors and created MyMod.u in UTGame/Script/ folder.
I created UTGame/Config/UTMyMod.ini file and putted following lines:
[MyMutator UTUIDataProvider_Mutator]
FriendlyName=My Mutator
Description=First Mutator by Me.
When I launch UDK.exe and choose Mutators i can see 'My Mutator' on list, I can select it and start the game.
The problem is that id does nothing. LowGrav mutator is influencing gravity. I suspected that my Mutator will do same thing. But that's not true.
Did I forget something? What I did wrong? Is it possible to write Mutator for UDK? Or only for UT3?
Please help... How can I debug what's wrong?
*EDIT*
Ok, I figured it out....
I was lacking one line in configuration file:
ClassName=MyMod.MyMutator
Nothing in documentation about it...
I'm new to Unreal Engine and I'm trying to figure out how to handle UDK.
After some readings I tried to make my first Mutator (as it seems to be the easiest thing possible).
I took UTMutator_LowGrav.uc from Development/src/UTGame/Classes and copied it into my own file. I changed class name to MyMutator.
My file MyMutator.uc lies in Development/src/MyMod/Classes folder and I uncommented the line in UTGame/Config/UTEngine.ini file:
ModEditPackages=MyMod
UDK after launching, compiled "my" code without errors and created MyMod.u in UTGame/Script/ folder.
I created UTGame/Config/UTMyMod.ini file and putted following lines:
[MyMutator UTUIDataProvider_Mutator]
FriendlyName=My Mutator
Description=First Mutator by Me.
When I launch UDK.exe and choose Mutators i can see 'My Mutator' on list, I can select it and start the game.
The problem is that id does nothing. LowGrav mutator is influencing gravity. I suspected that my Mutator will do same thing. But that's not true.
Did I forget something? What I did wrong? Is it possible to write Mutator for UDK? Or only for UT3?
Please help... How can I debug what's wrong?
*EDIT*
Ok, I figured it out....
I was lacking one line in configuration file:
ClassName=MyMod.MyMutator
Nothing in documentation about it...