Page 1 of 2 12 LastLast
Results 1 to 10 of 15
  1. #1
    Join Date
    Apr 2005
    Location
    Somewhere in UTAH
    Posts
    137

    "HelloWorld" It didn't work?...What the @$#&...

    yep that right... I'm that new to U-script... LOL

    Here the deal:

    Make the package: "C:\ut2004\HelloWorld\Classes\HelloWorld.uc"

    just as instructed in the book. Ok I think I'm good so far.

    I Write my Code: (Heres a cope direct from notpad of what I've got)

    Code:
    class HelloWorld extends Commandlet;
    
    function int Main(string Args)
    {
       log("=============");
       log("Hello World!");
       log("=============");
    
       return 0;
    {
    ok I'm so new I don't know if this is right or not. It looks right and the book says it right and should have compiled error free yep I am getting an error. anyways moving on.

    I go into system make a back up of the UT2004.ini and then edit file and added a new line (another copy directly from Notepad)

    Code:
    EditPackages=StreamlineFX
    EditPackages=UTV2004c
    EditPackages=UTV2004s
    EditPackages=HelloWorld    <---- I added this!...
    CutdownPackages=Core
    CutdownPackages=Editor
    CutdownPackages=Engine
    Saved and Exited...

    I then Ran "ucc make" and got this...

    Code:
    C:\UT2004\System>ucc make
    ----------------------------Core - Release----------------------------
    ---------------------------Engine - Release---------------------------
    ----------------------------Fire - Release----------------------------
    ---------------------------Editor - Release---------------------------
    --------------------------UnrealEd - Release--------------------------
    ---------------------------IpDrv - Release----------------------------
    ----------------------------UWeb - Release----------------------------
    --------------------------GamePlay - Release--------------------------
    -------------------------UnrealGame - Release-------------------------
    --------------------------XGame_rc - Release--------------------------
    --------------------------XEffects - Release--------------------------
    ------------------------XWeapons_rc - Release-------------------------
    ------------------------XPickups_rc - Release-------------------------
    --------------------------XPickups - Release--------------------------
    ---------------------------XGame - Release----------------------------
    --------------------------XWeapons - Release--------------------------
    -------------------------XInterface - Release-------------------------
    ---------------------------XAdmin - Release---------------------------
    -------------------------XWebAdmin - Release--------------------------
    --------------------------Vehicles - Release--------------------------
    -------------------------BonusPack - Release--------------------------
    -----------------------SkaarjPack_rc - Release------------------------
    -------------------------SkaarjPack - Release-------------------------
    -------------------------UTClassic - Release--------------------------
    ------------------------UT2k4Assault - Release------------------------
    -------------------------Onslaught - Release--------------------------
    ---------------------------GUI2K4 - Release---------------------------
    ----------------------UT2k4AssaultFull - Release----------------------
    -----------------------OnslaughtFull - Release------------------------
    --------------------------xVoting - Release---------------------------
    ------------------------StreamlineFX - Release------------------------
    --------------------------UTV2004c - Release--------------------------
    --------------------------UTV2004s - Release--------------------------
    -------------------------HelloWorld - Release-------------------------
    Analyzing...
    Parsing HelloWorld
    C:\UT2004\HelloWorld\Classes\HelloWorld.uc(11) : Error, Unexpected end of file a
    t end of Class
    Compile aborted due to errors.
    Failure - 1 error(s), 0 warning(s)
    
    C:\UT2004\System>
    The book said it should have compiled with out error and then just continues as if there was no errors and what not. I reading like Hay wait a second. this is not right. I understand it if it just part of the tutorial to show errors but it going on about heres where the Completed HelloWorld.u file is and then tells me how to Run the newly created first code... How? I created nothing according to the UCC Make Command read out.

    Did I do something wrong here? or is this book errored some how?
    -----------------------------------------------------------------------
    Games I play most | UT-2004 | RoboBlitz | Gears of War | Half-Life 2 |
    -----------------------------------------------------------------------
    Got Zombie?. . .

  2. #2
    Join Date
    Mar 2007
    Posts
    3
    Quote Originally Posted by Ninja Krow
    Code:
    class HelloWorld extends Commandlet;
    
    function int Main(string Args)
    {
       log("=============");
       log("Hello World!");
       log("=============");
    
       return 0;
    {
    I believe your last bracket should be turned around, to }.

    If that was your problem, could happen to anyone.
    Last edited by Nisshoku; 04-04-2007 at 09:22 AM.

  3. #3
    Join Date
    Apr 2005
    Location
    Somewhere in UTAH
    Posts
    137
    LOL... yeah I cought that like 10 minutes ago. and was comming to tell everyone that I messed up with the Bracket at the end. looks like you beat me to it. Lession one. Make sure you have everything exactly right even the smallest little detail will mess me up.

    Thanks for the help. I feel really really dumb now... LOL...
    -----------------------------------------------------------------------
    Games I play most | UT-2004 | RoboBlitz | Gears of War | Half-Life 2 |
    -----------------------------------------------------------------------
    Got Zombie?. . .

  4. #4
    Join Date
    Apr 2006
    Location
    Roll Tide Roll
    Posts
    736
    For further notice, just go ahead and bracket your function ahead of time.

  5. #5
    Join Date
    Apr 2005
    Location
    Somewhere in UTAH
    Posts
    137
    yeah that what i figured... lol save me a lot of painfull back traking if I do it first then write all the stuff between...
    -----------------------------------------------------------------------
    Games I play most | UT-2004 | RoboBlitz | Gears of War | Half-Life 2 |
    -----------------------------------------------------------------------
    Got Zombie?. . .

  6. #6
    Join Date
    Jun 2003
    Location
    Scotland
    Posts
    247
    Quote Originally Posted by Ninja Krow
    yeah that what i figured... lol save me a lot of painfull back traking if I do it first then write all the stuff between...
    It is probably a good idea to get a good programming editor that does syntax highlighting and bracket matching. There are lots of them out there like Ultraedit-32 (not expensive) or SourceEdit (free). Buzz recommends a particular editor in the UT VTMs - does anyone remember which?

    It could save you from many head-scratching moments.

    BTW: Which book are you working from?

    Dave

  7. #7
    Join Date
    Mar 2007
    Posts
    3
    In the VTMs they use ConTEXT.

    http://www.context.cx/

  8. #8
    Join Date
    Apr 2005
    Location
    Somewhere in UTAH
    Posts
    137
    conTEXT is what the book told me to get too. after it told me to make the goofy "HELLO WORLD!" script. still the brackets are not highlighted but that is remidied buy remembering to just type the brakes in first then fill in the rest of that area after. Personally I dontated to www.ConTEXT.cx if they give this away free of charge they might as well get a little return on it...
    -----------------------------------------------------------------------
    Games I play most | UT-2004 | RoboBlitz | Gears of War | Half-Life 2 |
    -----------------------------------------------------------------------
    Got Zombie?. . .

  9. #9
    Join Date
    Jun 2003
    Location
    Scotland
    Posts
    247
    Quote Originally Posted by Ninja Krow
    conTEXT is what the book told me to get too.
    Which book are you using? I don't remember the Buzz "brick" (Mastering Unreal) having scripting in it. Is it one of the books by John Flynt or one I haven't heard of? I'd be interested to know what you you think of it.
    Cheers,
    Dave

    My ADP Website
    My ADP Blog
    __________________

  10. #10
    Join Date
    Apr 2005
    Location
    Somewhere in UTAH
    Posts
    137
    Quote Originally Posted by Murmeltier
    Which book are you using? I don't remember the Buzz "brick" (Mastering Unreal) having scripting in it. Is it one of the books by John Flynt or one I haven't heard of? I'd be interested to know what you you think of it.
    John Flynt, and Actully it going well now that i've gotten past my own stupidity... LOL...

    It a bit wordy though and some time it runs over detail a bit to long or redundently. other tehn that it a good start for some one like me who has little or no Exseriance in UnrealScript or Programming at all.

    Still past the wordy nature of the book, its fairly easy to understand and follow along. coupled with the Buzz VTMs and a few other project based self tought methods I'm getting a good hadle on code. it not so scary now with a base of thinking.

    Wow, too many beers to type... all of teh above is serious and my actyual thoughts of the book. then again I might be the only one who actully likes this book.

    Still if 3DBuzz writes a UScript book, I'll buy that even if it's a brick.
    -----------------------------------------------------------------------
    Games I play most | UT-2004 | RoboBlitz | Gears of War | Half-Life 2 |
    -----------------------------------------------------------------------
    Got Zombie?. . .

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •