Jump to content
The simFlight Network Forums

amif2000

Members
  • Posts

    22
  • Joined

  • Last visited

Posts posted by amif2000

  1. @bingus I love your idea of adding some graphic information. I modified my code slightly to do just that (in ASCII😄)

    replace the bottom part of the code with the following snippet.

    for hour in 0..24 {
        let total = arrivals[hour] + departures[hour];
        print!("  {:02}  | {:03} | {:03} | {:03} |",
                 hour, departures[hour], arrivals[hour], total);
        println!("{}", "#".repeat((total as usize + 4) / 5));
    }

    The results look like this:

     Hour | Dep | Arr |Total|
    -------------------------
      00  | 005 | 005 | 010 |##
      01  | 003 | 001 | 004 |#
      02  | 001 | 000 | 001 |#
      03  | 002 | 001 | 003 |#
      04  | 000 | 007 | 007 |##
      05  | 003 | 014 | 017 |####
      06  | 018 | 030 | 048 |##########
      07  | 037 | 071 | 108 |######################
      08  | 081 | 096 | 177 |####################################
      09  | 083 | 084 | 167 |##################################
      10  | 100 | 049 | 149 |##############################

  2. This is a short rust program to count the number of departing and arriving flights per hour in a specific airport.

    Use it by entering the airport code (KATL, LEBL etc.) as a parameter to the exe you created with cargo build

    Note that you may need to change the path variable to match your Tower3D install folder

    Also, some airports use a different name for the schedule file and the actual airport name inside that file. The code handles EDDM and LEBL (which I own). You may need to add others.

    use std::{env, process, fs};
    
    fn main() {
        let args: Vec<String> = env::args().collect();
        if args.len() < 2 {
            eprintln!("error: missing airport name");
            process::exit(1);
        }
        let airport_name = &args[1].to_uppercase();
        let path = "D:\\Program Files (x86)\\FeelThere\\Tower!3D Pro\\Extensions\\Airfields";
        let filename = format!("{}\\{}\\{}_schedule.txt", path, airport_name, airport_name.to_lowercase());
        let airport = if airport_name == "EDDM" {
            "MUC"
        } else if airport_name == "LEBL" {
            "BCN"
        } else {
            &airport_name[1..]
        };
        let contents = fs::read_to_string(filename)
            .expect("error: failed to open file");
        let mut departures: [u32; 24] = [0; 24];
        let mut arrivals: [u32; 24] = [0; 24];
        for line in contents.lines() {
            if line.len() == 0 {
                continue;
            }
            if line.len() >= 2 && &line[0..2] == "//" {
                continue;
            }
            let tokens: Vec<&str> = line.split(",").collect();
            let origin_ap = tokens[0].trim();
            if origin_ap == airport {
                let token6 = tokens[6].trim();
                let hour: usize = token6[0..2].parse()
                    .expect("illegal number in dep.hour");
                departures[hour] += 1;
            } else {
                let token5 = tokens[5].trim();
                let hour: usize = token5[0..2].parse()
                    .expect("illegal number in arr.hour");
                arrivals[hour] += 1;
            }
        }
        println!(" Hour | Dep | Arr |Total|");
        println!("-------------------------");
        for hour in 0..24 {
            println!("  {:02}  | {:03} | {:03} | {:03} |",
                     hour, departures[hour], arrivals[hour], arrivals[hour] + departures[hour]);
        }
    }
    
    • Like 1
  3. So I tried all of the above and still get poor SR performance (I have a mile middle-eastern/Israeli accent).

    I managed to get a much better recognition by changing the airline name in the airlines.txt file to VOOLING instead of VIEWLING.

  4. I find this airport too buggy for my liking so I'll lay off it until it is more stable.

    Some A/C either do not push back or go crazy after they do. Yesterday I had a plane pushing back, back, back, until it reached the southern runway :(

    On average I have to delete one departing A/C in ten as they are stuck doing something strange.

    Such a shame as I really like the airlines and it's nice playing an airfield closer to home.

  5. I'm no 3D graphics expert, but my understanding is that zooming in would cull most of the polygons out of view and would actually result in improved performance, Perhaps the problem is that the level of details on the models is too low and would result in poor image if zoomed in further. Anyway, for those of us with a powerful gaming rig, a higher zoom setting or some form of slewing the camera would be nice. I'm a simpleton - I want eye candy in my games :)

    Amit

  6. Hi Kev,

     

    I probably wasn't clear enough. I've got 26 turned on but also have 17 and 27R on. Still traffic that should go to the other RWYs ends up going to 26. It's not really a minus - it makes the sim more interesting but I doubt that in real life ARRIVAL will assign the wrong RWY to an aircraft.

     

    Amit

  7. When I enable runway 26 at KPHL, I often get traffic that cannot actually land on that short runway and I need to vector it to another RWY. Is this a bug? The AC are turbo props that are "just" too big for the RWY.

    Amit

  8. I have a lot of features I'd love to see in Tower, but one that is really easy to implement and could really help me is the ability to re-size the flight strip fonts. This feature is available in Tracon 2012, so please migrate it to Tower 2011 as well.

     

    Amit

  9. The only thing I note in your files is that the airlines.txt file contains many blank lines.  I don't think this should interfere with the reading but you might try removing them.  Other than that, they look all right to me.  Assuming all of the input files are correct, the main thing that affects arrivals and departures is the number of free gates at the airports.  Flights will not arrive unless they have a free gate.  Try looking at the log file and see if the program is loading departures.  I would look into this a little further but this weekend is a national holiday in the US and I am busy with other activities.

     

    Another note:  2880 is a lot of flights and will lead to many flights being dropped.  Try making a schedule with about 1200 flights and see how that works.

     

    I ran the tool again with 1200 flights. I believe it actually works well. Here are my observations:

    1. The attached log shows some flights with "Out from app:". Are these dropped flights?

    2. The TT: section for UTC 15:00 shows almost all the expected traffic. It does seem to start slow and then pick up the pace. So I simply wasn't patient enough.

     

    All in all, a very enjoyable experience. Thanks a lot!

     

    schedule.txt

    tower.zip

  10. Any mods you make must be to the "airports" and "airlines" files, not to the "schedule" file.  I assume you have "Real Traffic" installed, also.  You can upload files by using the "full editor" option when posting a message.  At the bottom is a section for uploading files.  I will be glad to take a look.

     

    I am attaching all the files except the afx one where I added the Cargo terminal

     

    Los_Angeles_Airport_terminal.txt

    airlines.txt

    airports.txt

    schedule.txt

     

    Amit

  11. Hi Dick,

     

    I just installed your excellent tool. It really adds to Tower's immersion.

    One small problem though - I created a schedule for KLAX with 2880 flights and then followed your file modding instructions to the latter (or so I believe). I expect that at 15:00 UTC I would get about one departure per minute (my departures are set all the way to the right), however I only get one departure every three minutes or so. Could you take a look at my modified file for a quick sanity check? I don't know how to upload them here but I would gladly send you a link to them.

     

    Thanks,

    Amit

  12. Bug Report

    ---------------

    OS: Windoes 7 Home Premium SP1 64bit

    Memory: 8GB

    Video: nVIDIA GTX460 1GB

    OpenAL: installed

    Speech: pre-installed (win7). trained

     

    Problem: Tower 2011!. After a period of gameplay time (from just a few minutes to about 20 minutes), the voice recognition system will beep twice in quick succession (as if the PTT was pressed and immediately depressed). On the next attempt to access voice, both the voice recognition system and the game will hang, requiring a forced exit to both. This happens when I use a USB headphone (more than one type/item used). Does not happen with a cheap Audio jack type mike.

     

    Tower.zip attached.

    tower.zip

  13. System updates on W7 are frequent and unavoidable if you wish to keep your computer secure. If we wish to crack this problem we need to get more productive - are there logs collected by the software that I can send you? Are there specific modes / system configs that you wish me to test? Any suggestions other than the cookie cutter ones are welcome. I apologize if I come out strong. I know from my 20+ years of software and hardware development how difficult it can be to solve such bugs, but this is a serious problem that requires some serious attention.

  14. I'm playing LAS sector in Tracon! 2012. The manual says that a handoff is possible only when the aircraft is 3000 feet or less from the controller's altitude. Now as the the boundary is at 13,000 feet, I would expect to fail a handoff when the aircraft is below 10,000 feet. But the sim will let me handoff even at 4000 feet. What am I missing?

  15. I starting getting the same problem in the last few days (it did not happen before, not sure what changed except that I installed the KSEA add-on)

    * Tower2011

    * After a few minutes of play, the speech recognition window hangs in 'Listening'. Tower hangs immediately afterwards. Only a kill of Tower and Speech will revive the system

    * I believe it happens after a command is rejected by the pilot. I'm not 100% sure about that

     

    How do I re-install SAPI on Win7 64bit?

     

    Any other idea to try?

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.