dibartcj Posted April 6, 2021 Report Share Posted April 6, 2021 I tried to build a schedule for LAX but it will not load past 72%. It was suggested to change the plane type 20N and 21N so I did to 320 and 321 but still will not load. Any suggestions would be awesome. Thanks New Compressed (zipped) Folder (2).zip Link to comment Share on other sites More sharing options...
EliGrim Posted April 6, 2021 Report Share Posted April 6, 2021 4 hours ago, dibartcj said: Any suggestions Run the game, try to load your schedule, close the game and provide your log file or have a look at it yourself to identify the problem. You will find a output_log.txt in your tower3d_Data folder. Link to comment Share on other sites More sharing options...
crbascott Posted April 6, 2021 Report Share Posted April 6, 2021 @dibartcjYou have multiple formatting errors as follows: DEN,LAX,738,DL,1586,14:25:12:00,1,DL <-- colon instead of a comma between the arrival and departure time LAS,LAX,E75,QX2573,19:33,12:00,1,QX <-- no comma between the airline IATA code and flight number LAX,SYD,789,UA,2821,12:00M23:35,1,UA <-- the letter M instead of a comma between the arrival and departure time Assuming your Real Traffic is fairly current, using 20N and 21N shouldn't be a problem. If you still are having loading issues, posting a log file will help pinpoint the problem. Link to comment Share on other sites More sharing options...
dibartcj Posted April 6, 2021 Author Report Share Posted April 6, 2021 After going through the code with someone we were able to get it to launch. Thanks for the help https://www.dropbox.com/sh/uf6i7jkrr06fr9h/AAA3k_Q-pvzdAIVd1pD_J681a?dl=0 Link to comment Share on other sites More sharing options...
dibartcj Posted April 6, 2021 Author Report Share Posted April 6, 2021 So now the schedule is allowing the program to start but the airport is empty and when I try to start at 0600 it loads at 1100 and doesn't show departures except for the ga and local. The arrivals just to 1200. Link to comment Share on other sites More sharing options...
dibartcj Posted April 6, 2021 Author Report Share Posted April 6, 2021 (edited) after making the above edits, it now stops at 52%. @EliGrimhere is the outputlog https://www.dropbox.com/sh/d3zn0r15v3gf4jc/AAACNTOi1h9_kFYIcpY4jTmia?dl=0 Edited April 7, 2021 by dibartcj Link to comment Share on other sites More sharing options...
dibartcj Posted April 7, 2021 Author Report Share Posted April 7, 2021 @crbascottfixed those lines now it stops at 54% posted the output log above. thanks Link to comment Share on other sites More sharing options...
Braf123456 Posted April 7, 2021 Report Share Posted April 7, 2021 2 hours ago, crbascott said: @dibartcjYou have multiple formatting errors as follows: DEN,LAX,738,DL,1586,14:25:12:00,1,DL <-- colon instead of a comma between the arrival and departure time LAS,LAX,E75,QX2573,19:33,12:00,1,QX <-- no comma between the airline IATA code and flight number LAX,SYD,789,UA,2821,12:00M23:35,1,UA <-- the letter M instead of a comma between the arrival and departure time Assuming your Real Traffic is fairly current, using 20N and 21N shouldn't be a problem. If you still are having loading issues, posting a log file will help pinpoint the problem. What does it mean array index out of range Link to comment Share on other sites More sharing options...
EliGrim Posted April 7, 2021 Report Share Posted April 7, 2021 20 hours ago, Braf123456 said: What does it mean array index out of range This means that a script tries to access an array element whose index is not valid. I suspect a negative value. 20 hours ago, dibartcj said: now it stops at 54% Your array index out of range error, I could not reproduce. But other errors were displayed. For example, you used an aircraft type 75L that does not exist, typo in terminal file, typos in airports, like LAZ instead of LAS, etc. Since every time I fixed an error, I was shown a new one, I finally decided to use the Schedule Creator and reproduce your schedule. Thereby I removed all letters from flight numbers, because there will be problems with the voice recognition. Here is the corrected schedule from the Schedule Creator. Check if you are satisfied with it by comparing your schedule with the new one. [link removed, author has received schedule] A few flights in the GA and Local File I find strange and of course I have not checked every single flight to see if the correct, aircraft model, origin, destination, etc. was always used. I was not tired yet and can sleep a few hours longer today. However, I will not do it again!!! Link to comment Share on other sites More sharing options...
crbascott Posted April 7, 2021 Report Share Posted April 7, 2021 44 minutes ago, dibartcj said: @crbascottfixed those lines now it stops at 54% posted the output log above. thanks The loading stopped at 54% because of another bad schedule entry: RNO,LAX,E75,OO,5844,17:16,12:0,1,OO <-- 12:0 needs to be corrected to 12:00 As Eligrim suggested you probably want to review your schedule for additional errors. Invalid airports like LAZ won't keep the schedule from loading, but the game will drop those flights. Invalid airplane types like 75L will cause the game loading to freeze. Link to comment Share on other sites More sharing options...
crbascott Posted April 7, 2021 Report Share Posted April 7, 2021 33 minutes ago, Braf123456 said: What does it mean array index out of range Per Microsoft: An IndexOutOfRangeException exception is thrown when an invalid index is used to access a member of an array or a collection, or to read or write from a particular location in a buffer. This exception inherits from the Exception class but adds no unique members. Typically, an IndexOutOfRangeException exception is thrown as a result of developer error. Instead of handling the exception, you should diagnose the cause of the error and correct your code. In other words, the devs should have handled this error by possibly displaying an error message (in this case maybe something like "Invalid departure date/time") instead of just locking up the game. 1 Link to comment Share on other sites More sharing options...
Braf123456 Posted April 7, 2021 Report Share Posted April 7, 2021 Just now, crbascott said: Per Microsoft: An IndexOutOfRangeException exception is thrown when an invalid index is used to access a member of an array or a collection, or to read or write from a particular location in a buffer. This exception inherits from the Exception class but adds no unique members. Typically, an IndexOutOfRangeException exception is thrown as a result of developer error. Instead of handling the exception, you should diagnose the cause of the error and correct your code. In other words, the devs should have handled this error by possibly displaying an error message (in this case maybe something like "Invalid departure date/time") instead of just locking up the game. Ok I wasn't for sure thanks Link to comment Share on other sites More sharing options...
EliGrim Posted April 7, 2021 Report Share Posted April 7, 2021 (edited) @crbascott definitely provided a fancier explanation than I did. 😉 I assume that Unity throws this error message because a loop with descending index values does not stop at 0. Probably the value for the loop is fetched from somewhere else and not matched with the length of the handled array. At least this is a common mistake when coding without a reasonable error management. (Happens to me from time to time as well, if I am too lazy to do it right!) 🙄 EDIT: For me coding is a hobby now, I'm allowed to have messy code. In a paid product, such errors should no longer occur in the beta at the latest. At least I think so. Edited April 7, 2021 by EliGrim Link to comment Share on other sites More sharing options...
707FAN Posted April 7, 2021 Report Share Posted April 7, 2021 As I have said before, when making a schedule that doesn't load properly, I always load it into Excel as a comma deliniated file. Any mistakes in typing, etc. will show up there as the entries in the columns that are wrong will easly show up as they will seem different to the rest of the entries. It is a good practice to run filters on each column & scan down the entries. Any odd ones will whow up there as well. Kev 1 Link to comment Share on other sites More sharing options...
dibartcj Posted April 7, 2021 Author Report Share Posted April 7, 2021 Thanks a ton for all the feedback. Will go through it line by line.... First time doing this so clearly there is a learning curve. Again, THANKS!! Link to comment Share on other sites More sharing options...
dibartcj Posted April 7, 2021 Author Report Share Posted April 7, 2021 @EliGrimTHANKS SO MUCH.....I am putting your schedule and mine side by side so that I can go through and find my errors. Is there a difference between my schedule having the "1" after the times and yours having the "0" after times. 1 Link to comment Share on other sites More sharing options...
crbascott Posted April 7, 2021 Report Share Posted April 7, 2021 44 minutes ago, dibartcj said: @EliGrimTHANKS SO MUCH.....I am putting your schedule and mine side by side so that I can go through and find my errors. Is there a difference between my schedule having the "1" after the times and yours having the "0" after times. That column is the flight duration which is not used, so it really doesn’t matter what you put in there (as long as it is numeric I assume). 1 1 Link to comment Share on other sites More sharing options...
EliGrim Posted April 7, 2021 Report Share Posted April 7, 2021 8 hours ago, dibartcj said: having the "1" after the times and yours having the "0" after times @crbascott already answered it. I just want to take a moment to thank you for bringing it to my attention. Another one for the bug list. I'll change this to "1" in the Schedule Creator to avoid confusing players. Thanks a lot. 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now