View Full Version : Hello World
Sharad
11-07-2009, 11:48 PM
Hey guys,
I'm brand new to Unreal Script and creating a project so I was wondering if someone could show me how to create a Hello World program from start to finish including things like new project creation, editing and compilation, I would be able to get started myself.
Thank You
eh_gm
11-09-2009, 09:10 AM
Is there any one to respond this request?
Udn is full of modding information, but there isn't any documentation or tutorial about a new project configuration.
wildicv
11-09-2009, 09:25 AM
From around the forums and reading the udn I have gotten this far. It isn't exactly a full new game but its close enough for now. Remember to close the unreal frontend and unreal editor before doing these changes.
Open your Development/Src directory and make a new directory whatever your game/mod is to be called. Then in that directory create a Classes folder.
Now create a new file called main.uc . Open this file inside a text editor and put the following in.
class main extends GameInfo;
DefaultProperties
{
}
Now Open UTGame.ini which is inside the UTGame/Config directory.
At the top of the file there are two lines we need to change.
DefaultGame=MyMod.main
DefaultServerGame=MyMod.main
Change MyMod to your game name.
Next open UTEngine which is inside the UTGame/Config directory.
Scroll down till you find
;ModEditPackages=
We need to change this to our game/mod name so remove the ";" in front of ModEditPackages you should now have.
ModEditPackages=MyMod
Finally Open the Unreal Frontend and click "Make" if you did everything right you should see it compile your new game/mod..
Crozz
11-09-2009, 10:46 AM
Thanks, wildicv! It's a starting point :)
SpartanDonut
11-09-2009, 12:51 PM
Here was the "Hello World" app I did. Basically, I took the link gun and extended it to make it fire rockets! Sort of a combination of the SuperFunGame tutorial provided by epic, and the tutorial at the following URL for UT3.
http://www.jadeskaggs.com/2009/03/26/creating-your-first-unreal-tournament-3-mutator-the-superstinger/
First I created my New Weapon -
class UTWeap_SuperLinkGun extends UTWeap_LinkGun;
DefaultProperties
{
WeaponProjectiles(0)=class'UTProj_Rocket'
}
Then I modified my SuperFunGame to have the player begin with said weapon by adding the following function:
event InitGame( string Options, out string ErrorMessage )
{
Super.InitGame(Options, ErrorMessage);
UTGame(WorldInfo.Game).DefaultInventory[0] = class'UTWeap_SuperLinkGun';
}
If you then follow what was said about changing the .ini file for the SuperFunGame you should be able to see the results. Another option would be to run the command line below and it should load it as well.
c:\YOURUDKPATH\binaries\udk dm-deck?game=mymod.superfungame
Be sure to replace YOURUDKPATH with the appropriate one (I run multiple paths so I forget what the default is... sorry!)
I stripped this code out of the mod I am working on, so if you run into any bumps, let me know and I will try to fix it. I hope this helps!
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.