View Full Version : Hello World
11-07-2009, 11:48 PM
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.
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.
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;
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.
Change MyMod to your game name.
Next open UTEngine which is inside the UTGame/Config directory.
Scroll down till you find
We need to change this to our game/mod name so remove the ";" in front of ModEditPackages you should now have.
Finally Open the Unreal Frontend and click "Make" if you did everything right you should see it compile your new game/mod..
11-09-2009, 10:46 AM
Thanks, wildicv! It's a starting point :)
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.
First I created my New Weapon -
class UTWeap_SuperLinkGun extends UTWeap_LinkGun;
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 )
UTGame(WorldInfo.Game).DefaultInventory = 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.
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.