QUESTION Export top 3 to text file?

Discussion in 'Apps' started by rageman002, Nov 23, 2021.

  1. rageman002

    rageman002 New Member

    Joined:
    Oct 28, 2021
    Messages:
    6
    Likes Received:
    1
    I'm trying to figure this out, I feel like it should be easy, but I can't wrap my head around it.

    I'm looking to make a tool that can export the names of the top 3 finishers to a text file.

    Content manager creates a .json file with all the information on the race in it, in there it lists all the drivers in their starting order, and then there's a field that shows the results based on their starting position, it looks like this:

    "raceResult":[1,7,3,5,2,8,10,4,6,9,16,11,18,15,24,20,13,19,28,12,17,14,21,23,25,26,30,29,22,27,0]}

    I'm trying to figure out how to export names 1, 7, and 3 to a text file.

    Can anyone point me in the right direction to doing this? I'm still very new at this stuff.

    I know content manager shows you the results, but I really need them in a text file that I can copy and paste.
     
  2. fughettaboutit

    fughettaboutit aka leBluem

    Joined:
    Jul 21, 2014
    Messages:
    608
    Likes Received:
    220
    total time does not work, but i stop here, used SimHub's app as base :)
    upload_2021-11-23_19-0-34.png
    upload_2021-11-23_18-52-21.png
     

    Attached Files:

    Last edited: Nov 23, 2021
  3. fughettaboutit

    fughettaboutit aka leBluem

    Joined:
    Jul 21, 2014
    Messages:
    608
    Likes Received:
    220
    now only first three and total time also working
    Edit: the app is a bit overblown, you dont need need to use the shared mem thing, but i was lazy and just used what i already had laying around
    upload_2021-11-23_19-21-14.png
     

    Attached Files:

    Last edited: Nov 23, 2021
  4. rageman002

    rageman002 New Member

    Joined:
    Oct 28, 2021
    Messages:
    6
    Likes Received:
    1
    Oh my god this is so close to exactly what I need! Haha thanks for that! I'll mess around with it and see what I can do, thank you!
     
    fughettaboutit likes this.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice