User Tag List

Results 1 to 5 of 5

Thread: parsing text file delimited by semicolons?

  1. #1
    Clicker Fusion 2.5 (Steam)

    Join Date
    Jun 2014
    Posts
    21
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    parsing text file delimited by semicolons?

    hi,

    so i've run into another programmatic kinda problem that is pretty basic in more standard programming environments but i have no idea how to solve in ctf 2.5...

    so i'm trying to make a digital version of a deck of cards that have text on them that will randomly deal out a card...

    pretty simple mechanics.

    fyi - the text is a bunch of writing prompts. anyway, i have all the text on the cards transferred into a text file and the text on each card is delimited by a semicolon. i can change the delimiter to any symbol (or a carriage return) if ctf has a different symbol it prefers but is there any way, using the objects that ctf 2.5 to populate an array with all the entries in the text file?

    for the life of me, i've gone through the likely objects ini file, array, etc and i can't figure out how to do it.

    thanks.

    jin

  2. #2
    Forum Moderator Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export ModuleXNA Export Module
    ProdigyX's Avatar
    Join Date
    Jan 2011
    Posts
    1,197
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    You could use the String Parser object, using the semicolon as the delimiter, and then loop through each element in the String Parser's delimited list.

  3. #3
    Clicker Fusion 2.5 (Steam)

    Join Date
    Jun 2014
    Posts
    21
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    oh crap, that sounds like exactly what i need. is that a default, included object? (not currently at my ctf installed computer)

    if so, i'm a dope. if not, where might i find that object?

    thanks much.

    jin

  4. #4
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module
    happygreenfrog's Avatar
    Join Date
    May 2011
    Location
    I.L.T.D.O.I.R (I.L.T.D.O.I.R's Location: The Dimension Of Infinite Recursion)
    Posts
    4,307
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    It's not defaultly installed, but I think you can find it in the extension manager.

  5. #5
    Clicker Fusion 2.5 (Steam)

    Join Date
    Jun 2014
    Posts
    21
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    awesome! that's totally it.

    thank you guys!

    jin

Similar Threads

  1. Help with parsing a file
    By macca02 in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 30th October 2013, 09:52 AM
  2. Parsing text by whole words onto lines with character limits?
    By ratty in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 14th May 2013, 03:36 AM
  3. RPG Dialog: Parsing Text through Subapp Issue.
    By JimmyT in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 22nd January 2012, 06:16 PM
  4. File Parsing
    By Nickydude in forum Multimedia Fusion 2 - Technical Support
    Replies: 12
    Last Post: 20th September 2008, 02:42 AM
  5. Parsing text in TGF2?
    By Blizna in forum The Games Factory 2 - Technical Support
    Replies: 1
    Last Post: 11th September 2007, 04:56 PM

Posting Permissions

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