Results 1 to 9 of 9
  1. #1
    MSgt. Shooter Person
    Join Date
    Sep 2011
    Posts
    187

    Default Converting Int into String

    Hey everyone.

    How can I (constantly) convert an Int variable into a String variable?
    Consider yourself as a problem in the world...

  2. #2
    Iron Guard
    Join Date
    Aug 2010
    Location
    stoke.u.k
    Posts
    617
    Gamer IDs

    Gamertag: gaz661

    Default

    this sequence is from the arcade mode of my game,and gives the player one point for every second that he is carrying the flag and removes one point for every second he is not,then displays it on screen using the kismet nodes from here.http://forums.epicgames.com/threads/...et-UI-solution



    i am away next week,but when i get back i intend to start a thread showing beginners how to create a single player game through kismet.im no expert but have created what i think is a hugely enjoyable single player game with many features.i havent posted any videos of my work for a while and the ones on my site dont show much of what is currently there.i will post a new video before i go on sunday,showing all the features so people can see what to expect.

  3. #3
    MSgt. Shooter Person
    Join Date
    Sep 2011
    Posts
    187

    Default

    I tried that 'convert to int' sequence, but then I got spammed with error messages.
    Consider yourself as a problem in the world...

  4. #4
    MSgt. Shooter Person
    Join Date
    Sep 2011
    Posts
    187

    Default

    hey. Could you explain me the necessity of the 'animate number' sequence?

    What I now have is:

    Level loaded event -> Convert to string (input: Player's score <INT>, output: Empty string) -> Render text box (Text: the Empty String from the 'convert to string' sequence). Now, because this score neets to be frequently updates as it changes a lot, i have set a 0.5 second timer to re-check the Player's Score, then convert it into the string again, and let that result display on the screen.

    Yet, this does NOT work. For some reason, kismet refuses to convert my Int into a string. Help please?
    Consider yourself as a problem in the world...

  5. #5
    Boomshot

    Join Date
    Feb 2010
    Location
    Portugal
    Posts
    2,162

    Default

    I never created a Kismet node, but you'd want it to accept 2 variables, then on the Activated event you would need to take Var1 (an integer) and assign Var2 (a string) to that integer converted into a string, something like this:

    Code:
    event Activated()
    {
        Var2 = string(Var1);
        
        ActivateOutput(0); // Something like this.
    }
    Might I remind you this is pseudo-code and the function call may not be ActivateOutput.

    Sorry I didn't give you full working code, I would have but I have to go to school now.
    Good luck!

  6. #6
    MSgt. Shooter Person
    Join Date
    Sep 2011
    Posts
    187

    Default

    Oh please no unreal script o_o
    Consider yourself as a problem in the world...

  7. #7
    Boomshot

    Join Date
    Feb 2010
    Location
    Portugal
    Posts
    2,162

    Default

    Quote Originally Posted by Anhrak View Post
    Oh please no unreal script o_o
    I can go and try to make the node for you. I would give it compiled, so you would only need to add the package to the .ini (or load it into the editor in the classes browser).
    Then you'd only need to go to kismet and add the node.

    I've never created Kismet nodes tough, so it may take more than an hour.

  8. #8
    Iron Guard
    Join Date
    Aug 2010
    Location
    stoke.u.k
    Posts
    617
    Gamer IDs

    Gamertag: gaz661

    Default

    the animate number was just to move the final score up the screen at the end of the game.i should have removed the unnessacary bits before posting the pic.did you get it working?what errors are you getting?

  9. #9
    MSgt. Shooter Person
    Join Date
    Sep 2011
    Posts
    187

    Default

    gaz, I'm getting nothing, that's the entire point. Somehow the game refuses to convert the Int into the string. I can't go on my UDK computer this weekend, yet I'm still checking the forums on my Ipad. So I can't directly check if a suspision works, ok?
    Consider yourself as a problem in the world...


 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Copyright ©2009-2011 Epic Games, Inc. All Rights Reserved.
Digital Point modules: Sphinx-based search vBulletin skin by CompletevB.com.