Announcement

Collapse
No announcement yet.

Hello World

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Hello World

    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

    #2
    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.

    Comment


      #3
      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.
      Code:
      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.
      Code:
      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
      Code:
      ;ModEditPackages=
      We need to change this to our game/mod name so remove the ";" in front of ModEditPackages you should now have.
      Code:
      ModEditPackages=MyMod
      Finally Open the Unreal Frontend and click "Make" if you did everything right you should see it compile your new game/mod..

      Comment


        #4
        Thanks, wildicv! It's a starting point

        Comment


          #5
          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...-superstinger/


          First I created my New Weapon -

          Code:
          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:

          Code:
          	
          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.

          Code:
          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!

          Comment

          Working...
          X