Just wondering if this is a common glitch with the program or am I doing something wrong. GCP asks me to setup each time I use it and the program places the FOLDERS: "Flights" & "Logs" as well as FILES: "gcp.INI", "AIRCRAFT.TXT" and "PILOTFLIGHTS.TXT" on my desktop. Any help would be much appreciated.
Best Regards,
Have to perform "SETUP" everytime I use GCP
Moderators: Staff, HR, Flight Ops
Re: Have to perform "SETUP" everytime I use GCP
Working on it. It should be a simple fix. The function MICROSOFT provides in the .NET framework is supposed to place files/folders at a location beginning where the exe is located. Clearly that function doesn't work as advertised. I'll change that code back to the old way. It will be done on Wednesday.canadagoose wrote:Just wondering if this is a common glitch with the program or am I doing something wrong. GCP asks me to setup each time I use it and the program places the FOLDERS: "Flights" & "Logs" as well as FILES: "gcp.INI", "AIRCRAFT.TXT" and "PILOTFLIGHTS.TXT" on my desktop. Any help would be much appreciated.
Best Regards,
Justin
Justin Erickson, Captain #1040
Chief Executive Officer
Globe Cargo PIREP (GCP) Developer
ceo-at-globecargova.org
Vatsim ID: 871725
Chief Executive Officer
Globe Cargo PIREP (GCP) Developer
ceo-at-globecargova.org
Vatsim ID: 871725
The problem has been fixed. The problem was not in the function provided by MS but in the program used to create the installer. Because for GCP2.2.2 I switched to a more customizable installer program I had to write the code for the installer vs using a graphical wizard to create the installation file.
There was a line of code I needed to add to the portion of the program that handles the desktop and start menu shortcuts. Because that line was missing, when the desktop shortcut was used to start the program, GCP was looking for all of its files on the desktop, not in the GCP folder. When launching GCP for the first time from the installer at the end of the installation GCP was run from the GCP folder. You may have had to configure GCP in that case. Then when you went to start it from the desktop icon it was looking for GCP.ini on the desktop which of course it couldn't find so it had to configure GCP again. Then it placed all the files on the desktop. This same fix also fixed the problem of running GCP from the start menu.
However, I did find another issue I need to fix before sending out the new installer. You may notice that on the Enroute tab in the autosave section, "- Inhibited" will flash off and on when the aircraft is off the ground. For some reason the autosave is being told to inhibit the autosave then not to inhibit....repeatedly. I flew an entire flight before noticing this and the autosaves were not actually inhibited.
I'm on a trip right now and will be back tomorrow evening. I'll do my best to troubleshoot this little issue and get the new installer uploaded. I have another 3 day trip starting before sunrise the next morning so it will be tight.
Thanks for your patience everyone!
Justin
There was a line of code I needed to add to the portion of the program that handles the desktop and start menu shortcuts. Because that line was missing, when the desktop shortcut was used to start the program, GCP was looking for all of its files on the desktop, not in the GCP folder. When launching GCP for the first time from the installer at the end of the installation GCP was run from the GCP folder. You may have had to configure GCP in that case. Then when you went to start it from the desktop icon it was looking for GCP.ini on the desktop which of course it couldn't find so it had to configure GCP again. Then it placed all the files on the desktop. This same fix also fixed the problem of running GCP from the start menu.
However, I did find another issue I need to fix before sending out the new installer. You may notice that on the Enroute tab in the autosave section, "- Inhibited" will flash off and on when the aircraft is off the ground. For some reason the autosave is being told to inhibit the autosave then not to inhibit....repeatedly. I flew an entire flight before noticing this and the autosaves were not actually inhibited.
I'm on a trip right now and will be back tomorrow evening. I'll do my best to troubleshoot this little issue and get the new installer uploaded. I have another 3 day trip starting before sunrise the next morning so it will be tight.
Thanks for your patience everyone!
Justin
Justin Erickson, Captain #1040
Chief Executive Officer
Globe Cargo PIREP (GCP) Developer
ceo-at-globecargova.org
Vatsim ID: 871725
Chief Executive Officer
Globe Cargo PIREP (GCP) Developer
ceo-at-globecargova.org
Vatsim ID: 871725