GT6 Random Combo Generator

Discussion in 'Gran Turismo 6' started by msgt-sd, Sep 15, 2015.

  1. msgt-sd

    msgt-sd

    Messages:
    429
    Hey guys, I've made a tool that generates random car and track combinations. See it here. It's something I thought might be useful for some of the leagues and series around here, especially those that I'm apart of like the SNAIL Racing League and the GTP WRS.

    I've had the idea to make something like this for quite awhile, and I finally learned enough to do it. Let me know what you think. By the way, it may not appear correctly on some mobile devices, I'm not sure.

    I might add some more car and track filters in the future. Also, once I verify some more data I'll eventually enable the option to filter cars by their pre-oil PP and HP numbers.

    Here's a screenshot:
    fireshot_gtgen2.jpg
     
    Last edited: Sep 30, 2015
    bjl23, Rotorist, The87Dodge and 87 others like this.
  2. Turbo

    Turbo (Banned)

    Messages:
    3,824
    Location:
    United States
    Really cool idea man
     
    Dragonwhisky, STEAMER62 and msgt-sd like this.
  3. cjr3559

    cjr3559 Premium

    Messages:
    2,198
    Location:
    United States
    Nicely done. Very good!
     
    Dragonwhisky, STEAMER62 and msgt-sd like this.
  4. GT5 Level 41

    GT5 Level 41

    Messages:
    810
    Location:
    United States
  5. Mires

    Mires

    Messages:
    1,398
    Location:
    Slovakia
    This is a great little helper. Thumbs up for lots of work this must have cost you. :cheers::bowdown:
     
    Dragonwhisky, STEAMER62 and msgt-sd like this.
  6. jobyone

    jobyone Premium

    Messages:
    3,532
    Location:
    United States
    This is really good. It would be cool to see the dealership PP (and oil change PP) of the car along with the stock tires. Of course that take more work. I have most of the oil change PP data you are welcome to (see signature)
     
    STEAMER62 and msgt-sd like this.
  7. chzsln485

    chzsln485

    Messages:
    1,229
    I can see myself getting a lot of use out of this. I can also see Polyphony Digital using this for seasonal events. :D
     
    Dragonwhisky and msgt-sd like this.
  8. Ricky Wilson

    Ricky Wilson

    Messages:
    40
    Location:
    United States
    Seriously such a great idea msgt! It will definitely help guys that are indecisive lol. seriously spent an hour straight just messing with it!
     
    Dragonwhisky, msgt-sd and STEAMER62 like this.
  9. Thomas2012

    Thomas2012

    Messages:
    1,981
    Location:
    Australia
    Instantly bookmarked and added to the home screen of my iPad. I don't compete in any of these but I'll certainly try it out with the few remaining friends who still play GT :tup:
     
    Dragonwhisky and msgt-sd like this.
  10. kolio

    kolio Premium

    Messages:
    2,412
    Location:
    United States
    One word.

    Sticky
     
  11. GTP_Dutchy

    GTP_Dutchy Premium

    Messages:
    2,256
    Location:
    Netherlands
    Nice work man!
     
    Dragonwhisky, msgt-sd and STEAMER62 like this.
  12. STEAMER62

    STEAMER62

    Messages:
    830
    Location:
    Austria
    Dragonwhisky and msgt-sd like this.
  13. MadMax

    MadMax Moderator

    Messages:
    4,081
    Location:
    Finland
    I know someone that has collected that data for a different project. :mischievous:
     
    mcsqueegy and STEAMER62 like this.
  14. STEAMER62

    STEAMER62

    Messages:
    830
    Location:
    Austria
    thank you for your input @MadMax :tup: , would be great for GTPlanet to consolidate this knowledge of both letting everybody profit of this tool :gtpflag:
    greets to Finland from Vienna :cheers:
     
  15. Gravitron

    Gravitron Moderator

    Messages:
    17,153
    Location:
    United States
    @msgt-sd can I ask where you got the car pics? Hopefully you didn't have to make them all yourself via the Community Fav cars feature. :eek: That's how we've been making the images for the WRS leaderboard and that's manageable at 1 car a week.

    Also curious what languages you used for the code, and how long this project took? If you're willing to share that info.
     
    Dragonwhisky, msgt-sd and STEAMER62 like this.
  16. sirjim73

    sirjim73

    Messages:
    1,318
    Location:
    England
    @msgt-sd I have been hoping for something like this to appear ever since I realised there weren't enough career or seasonal events to play around with in GT6.
    Fantastic job - well done :tup::bowdown:

    (Well, as long as I don't get the Subaru 360 at Nordschleife on my first spin of the wheel :lol:)
     
    Dragonwhisky, msgt-sd and STEAMER62 like this.
  17. STEAMER62

    STEAMER62

    Messages:
    830
    Location:
    Austria
    dear Moderators, Sirs, TBH I think this contribution to GTP is worth a 1 year free "Premium" membership for 1 year to @msgt-sd
    :O :cheers:
     
  18. Dragonwhisky

    Dragonwhisky Premium

    Messages:
    5,823
    Location:
    United States
    Thanks for reminding me about this little oversight Steamer. GTPlanet can get in line for next year if they want to show their appreciation to msgt for this project in this fashion.
     
    Ricky Wilson, Pete05, msgt-sd and 2 others like this.
  19. msgt-sd

    msgt-sd

    Messages:
    429
    Haha, no, I didn't make them myself. But, it appears someone else did, thankfully. :bowdown: fsopolonez actually uploaded every car image to kudosprime.com. That's where I got them. I just put a link to his kudosprime page in the footer of the website.


    It's all just javascript running in the browser. I'm not using any typical sort of back end. When someone visits the page, I use Google's API Loader to load Google's Visualization API module. With the Visualization API I grab all the necessary data from a google spreadsheet. Then it's just about manipulating the data with javascript. There's probably a better way of doing things, but this was the easiest (and cheapest) route for me.

    I started building this webpage about a month ago. However, I had been gradually collecting and verifying data off and on for many months before that. And I must say, thank god for stackoverflow. You can find the answer to almost any coding question you have there.
     
  20. STEAMER62

    STEAMER62

    Messages:
    830
    Location:
    Austria
    anyway @msgt-sd , sure it's worth that GTP awards you with a 1 year Premium membership for your idea as result and you see the feedback not only of SNAILers, Dragon and others ;)
    just my 2ct buddy :cheers:
     
    ukmalb, HKS racer and msgt-sd like this.
  21. eran0004

    eran0004

    Messages:
    8,572
    Nice! I've been working on something similar, but offline and targeted towards shuffle racing:

    ss2.png

    Perhaps your application could be made to generate a grid as well?

    The way I did it was:

    1. The script generates a list of all the cars that matches the filters.

    2. I have a counter that represents the desired size of the grid (if you want 16 cars it will start at 16 and count down to 0). While the counter is greater than 0 a car is randomly picked from the list. To avoid duplicates the script checks if the car is already in the grid, and if it's not, or if the length of the grid is already equal or greater than the length of the list of cars, it's being added and -1 is being added to the counter.

    3. Finally, the randomized grid is being printed on the screen.

    I suppose something similar could be done with the tracks, to generate a full season of events.

    Also, there is a lot of checkboxes. Perhaps you could add a checkbox for each filter that selects/deselects all options?
     
    sirjim73, msgt-sd and Mires like this.
  22. msgt-sd

    msgt-sd

    Messages:
    429
    Very cool! I loved the shuffle racing in GT5. Your app/idea could be useful to a number of groups around here. @watermelon punch's Makeshift Shuffle club immediately comes to mind. Also, it's not uncommon to see shuffle-type rooms online, hosted by guys like DestinKeys.

    Yes, I think it could be made to generate a grid and/or a full season of tracks. PM me if you would like to talk more about that.

    And thanks for the suggestion about the checkboxes. I debated about which filters to add a select all / deselect all option to. Right now, it's only the Country and Manufacturer filters that have that option. A select all / deselect all button pops up when you "uncollapse" those filters. I may add that button to the DT, Aspir, and Track Category filters now.
     
  23. HKS racer

    HKS racer (Banned)

    Messages:
    4,802
    Someone please tweet this little gem to Kaz.
    PD definitely need help for the seasonals.

    Randoms ideas are much better than bad repetitive ideas.
     
  24. Cowboy

    Cowboy Premium

    Messages:
    5,305
    Location:
    United States
    I'll definitely be using this. Very nice tool :tup:
     
  25. Wardez

    Wardez Staff Emeritus

    Messages:
    9,695
    Location:
    United States
    This is awesome. Now go make a Twitter bot that generates combos of the day for people to hotlap to (nothing strict, mostly just for bragging rights, ask first place to provide video or a replay) for promotion. Keep track of times on a thread here and link to it. After your site crashes under load think about making it into a downloadable executable.
     
    msgt-sd and Gravitron like this.
  26. Gravitron

    Gravitron Moderator

    Messages:
    17,153
    Location:
    United States
    Paging @WRSFetchBot :p

    Yer at the mercy of the bot, good one. :lol:
     
    msgt-sd and Wardez like this.
  27. Wardez

    Wardez Staff Emeritus

    Messages:
    9,695
    Location:
    United States
    [​IMG]
     
    msgt-sd and Gravitron like this.
  28. xZAMGMarmite

    xZAMGMarmite

    Messages:
    795
    Location:
    United Kingdom
    @msgt-sd great work with this tool :tup:

    And found one problem, wrong car picture is displayed:
    Screenshot_2015-09-17-23-00-33.jpg
     
  29. smeisinger

    smeisinger

    Messages:
    12
    Great work! Being a web developer myself I gotta ask: did you use any framework for that or did you code it all by yourself?
     
    msgt-sd likes this.
  30. Dragonwhisky

    Dragonwhisky Premium

    Messages:
    5,823
    Location:
    United States
    He may have went all old school and wrote the html in notepad. :mischievous::D:lol::lol:
     
    STEAMER62 and msgt-sd like this.