Dismiss Notice
Hey Guest,
If you are interested in ghosting, the Ghosting Awards for January 2025 has just been announced:

Click here to check it out!

Automatically Generated Track (Distance Challenge)

Discussion in 'Have an idea? Post it here!' started by pssst, Nov 11, 2014.

  1. rhmster

    rhmster Active Member Official Author

    what language are you guys coding in? - i'm gonna give it a blast in VS C# - see if I can get my head around base 32!!

    OK - there seem to be a lot of base32 systems, Can someone confirm that it is base32 Hex I should be encoding into?
     
    Last edited: Nov 15, 2014
  2. rhmster

    rhmster Active Member Official Author

    OK, so I have answered my own question, it is Base 32 Hex !!

    Here is my first auto generated track using a simple loop with offsets for X and Y position. Track Code as follows:

    If anyone wants any C# code for this I will gladly post - (i'll tidy it up first!!!!)

    -18 1i 18 1i,1i 1s 4m 1s,50 26 84 26,8e 2g bi 2g,bs 2q f0 2q,fa 34 ie 34,io 3e ls 3e,m6 3o pa 3o,pk 42 so 42##
     
    ThePurpleBuccaneer and Illicit like this.
  3. rhmster

    rhmster Active Member Official Author

    hmmm... i sniff a bitmap converter coming on - ha ha
     
    Dakoziol-2nd and Sono like this.
  4. FREEZ

    FREEZ Well-Known Member Official Author

    which version of free rider? This would be fun
     
  5. Sono

    Sono Well-Known Member Official Author

    I am SO getting into this.
     
  6. Char

    Char Free Rider HD Developer Official Author

    Yeah, wonder if you could find where this was?
     
  7. Char

    Char Free Rider HD Developer Official Author

    It would be cool to create some sort of 'minecraft like' auto generated track based on a 'seed'. Definitely possible to do. It would create endless gameplay.
     
  8. weem

    weem FREE RIDER LEGEND Elite Author Team Blob Official Author

    Awarded Medals
    It's on BHR, so we cant post a link here since it's a bad illegal website
     
    Skeeny and ookami_san like this.
  9. Sono

    Sono Well-Known Member Official Author

    You seem really interested in the community's involvement with creating code that interacts with FRHD.. Ever thought of releasing an API? ;D
    Note: dove into developing some sort of track code manipulation program but for some reason Java is giving me a hard time when splitting strings. It's late so I will finish up tomorrow. (I have a whole day to do absolutely nothing.. Totally going to waste away my day working on this. :D).
     
  10. Char

    Char Free Rider HD Developer Official Author

    Ah yeah. I saw what it was. Kind of cool. Definitely like the mini game ideas.
     
  11. Char

    Char Free Rider HD Developer Official Author

    I would love to release some sort of mini game api that people could create different games. It would probably be a year or two before that came out tho. Im not sure.
     
    Dakoziol-2nd, Cryogenic and goofyinc like this.
  12. Sono

    Sono Well-Known Member Official Author

    OH MY GOODNESS I CANT WAIT
     
  13. Char

    Char Free Rider HD Developer Official Author

    lol just saying 'I would like to'
     
    Cryogenic and goofyinc like this.
  14. Sono

    Sono Well-Known Member Official Author

    Well you should :3
     
  15. Sono

    Sono Well-Known Member Official Author

    Just realized something interesting. How come a zero degree angle in the game is referred to as a 90 degree angle in the code?
    And a bomb is referred to by the letter O? Obstacle, maybe?
    And why is a goal referred to by the letter T? Twinkle twinkle little star?
     
  16. FREEZ

    FREEZ Well-Known Member Official Author

    1) The code is stupid.
    2) No. When ever you hit a bomb you make an :O face
    3) YOU ARE RIGHT!
     
  17. Char

    Char Free Rider HD Developer Official Author

    Who knows what it is that way, had to keep it that way for compatibility.
    The letters in the track code are arbitrary.
    Goals were actual referred to as "Targets" , thus the T .
     
    Dakoziol-2nd, Cryogenic and Sono like this.
  18. Sono

    Sono Well-Known Member Official Author

    I refuse to accept this. I motion that we re-evaluate the meaning of the T due to FRHD being the new and improved version of Free Rider.
    For all in favor of the T representing "Twinkle Twinkle Little Star", say I.
     
  19. Char

    Char Free Rider HD Developer Official Author

    Motion granted
     
    Illicit, Sono and Cryogenic like this.
  20. rhmster

    rhmster Active Member Official Author

    PROGRESS REPORT
    I have a bit of code that generates the start line (boring, but somewhat necessary)
    I also have some code that generates a circular path that currently allows the setting of XY coords, Radius and inclusion angle - handy for building up auto-ramps :D
    I also make sure that each piece of code that generates coordinates always returns the last coordinates that it generated so that these can be used for the start coordinates for the next path segment - handy for blending different generated segments together.

    I'm gonna blend a few path segments together next and see if I can come up with a small auto generated track. i'll randomize it later

    EDIT: Oh, yeah, i'll do a sine wave track for ya Jacob ;)
     
    Dakoziol-2nd, Skeeny, Char and 2 others like this.

Share This Page