Home | Blog | Software | Reviews and Features | Forum | Help | Donate | About us
topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • October 17, 2017, 03:52 PM
  • Proudly celebrating 10 years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: Q: Best Prog Lang for Building a Text-Based Flight Simulator?  (Read 286 times)

CodeTRUCKER

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,064
    • View Profile
    • Donate to Member
Hi,

Been awhile since I have been in the coding environment.  Due to my vision getting worse I am interested in taking my hobby of flight simulation from the GUI to the Command Line.

The program will involve physics, time and an internal 3D "space."  Essentially, the screen would present a list of information, the "pilot" would make a selection then process the choices and present the new information back on the screen.  While this would probably not serve inexperienced sim flyers, it would be usable for experienced pilots both real and simulated.  With the addition of text-to-speech and speech-to-text, I can see someone who knows aviation might enjoy "flying" while driving over a long distance.  I know I would.  Obviously, this might allow sight-challenged people to enjoy some aspects of flight simulation.

Frankly, this is going to be lots of work to start with and will only become more involved as more realism, features and (hopefully) interactive Air Traffic Control.  This is why I would be very appreciative of any comments for the coding language.  Questions are most welcome.

Thanks,
Calvin

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 37,485
    • View Profile
    • Donate to Member
Re: Q: Best Prog Lang for Building a Text-Based Flight Simulator?
« Reply #1 on: October 12, 2017, 09:49 PM »
I think no matter what it will be an interesting and challenging project.  One of the nice things about doing a "text-based" simulation is that it will really force you to focus on the core simulation and structures rather than getting caught up in graphics, etc.

As for the best programming language -- one of the other nice things about doing text-based coding is that you can use almost any programming language.. speed won't be an issue and neither will library support, etc.

So I would fall back on my default language suggestion these days to use Python (sounds strange coming from a C++ lifetimer).

But mainly I would suggest you do most of your coding virtually in the form of planning, before you ever start coding.

CodeTRUCKER

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,064
    • View Profile
    • Donate to Member
Re: Q: Best Prog Lang for Building a Text-Based Flight Simulator?
« Reply #2 on: October 12, 2017, 10:10 PM »
Hey Mouser!

Long time no talk to! I thought I got lost or something because I tried to login two or three times and was "blocked."  I almost didn't try tonight.  I'm glad I did. :) 

I think no matter what it will be an interesting and challenging project. 
Thanks for the input.  One of the best things about this project is I can focus on my strengths of over 2000 hours of simulated flying in all kinds of aircraft and several hours in a number of real aircraft large and small.

Quote
As for the best programming language -- one of the other nice things about doing text-based coding is that you can use almost any programming language.. speed won't be an issue and neither will library support, etc.
I was hoping someone would say this.

Quote
So I would fall back on my default language suggestion these days to use Python
Thanks.  Python never crossed my mind, although I played with it some years ago.

Quote
But mainly I would suggest you do most of your coding virtually in the form of planning before you ever start coding.
When I was coding COBOL, DB2, and (my favorite) CICS back in the '90s it was normal to spend weeks/months in planning and prototype before committing hours to coding.  Today, a programmer can get instant results and debug.  Back then we condsidered getting our printouts (there were no screen views) in under four hours as something short of a miracle.  But, that was a good thing as we really thought through the whole process and not just take a guess and see how it worked out.  LOL

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 37,485
    • View Profile
    • Donate to Member
Re: Q: Best Prog Lang for Building a Text-Based Flight Simulator?
« Reply #3 on: October 12, 2017, 10:15 PM »
I'm an OOP (object-oriented programming) fanatic.  I believe that object-oriented programming helps organize the way you think about a project.  So for this idea (as for most things non-trivial), I think the only strong recommendation I would make is to use an OOP language.

CodeTRUCKER

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,064
    • View Profile
    • Donate to Member
Re: Q: Best Prog Lang for Building a Text-Based Flight Simulator?
« Reply #4 on: October 12, 2017, 10:54 PM »
...
I think the only strong recommendation I would make is to use an OOP language.
Python fills this bill, does it not?  Ha!  Funny thing is I have always wanted a project that would be a good one for Python. :)

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 37,485
    • View Profile
    • Donate to Member
Re: Q: Best Prog Lang for Building a Text-Based Flight Simulator?
« Reply #5 on: October 12, 2017, 11:11 PM »
Yes, Python is OOP and is very good playpen for coding, once you get used to it.
Just be prepared for a struggle whenever you start to learn a new language.

CodeTRUCKER

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,064
    • View Profile
    • Donate to Member
Re: Q: Best Prog Lang for Building a Text-Based Flight Simulator?
« Reply #6 on: October 16, 2017, 03:07 PM »
...
Just be prepared for a struggle whenever you start to learn a new language.
Roger that.  Thanks.