Author Topic: Problem with GSX.cfg Editor  (Read 6008 times)

DrumsArt

  • Jr. Member
  • **
  • Posts: 77
Problem with GSX.cfg Editor
« on: March 30, 2012, 06:04:13 pm »
Hello,

This is the original CFG file for the Simcheck A300 when I open the editor :

[aircraft]
nosegear = 17.2
refueling = 1

[exit1]
pos = -2.6 17.95 4.75 5.0
code = 0

[exit2]
remove = 1

[exit3]
remove = 1

[exit4]
pos = -2.4 -17.15 4.6 -5.0
code = 1
name = exit 1

[service1]
flip = 1
code = 0

[service2]
flip = 4
code = 0

[cargo1]
pos = 1.3 15.45 2.5 0.0
code = 0
uldcode = AUTO

[cargo2]
pos = 0.95 -8.85 2.1 0.0
code = 0
uldcode = AUTO

Now I change the following section with code = 0

[exit4]
pos = -2.4 -17.15 4.6 -5.0
code = 0
name = exit 1

I save it then if I running the cfg editor again this is the result :

[aircraft]
nosegear = 17.2
refueling = 1

[exit1]
pos = -2.6 17.95 4.75 5.0
code = 0

[exit2]
remove = 1

[exit3]
remove = 1

[exit4]
pos = -2.4 -17.15 4.6 -5.0
code = 0

[service1]
flip = 1
code = 3
name = exit 3

[service2]
flip = 4
code = 3
name = exit 3

[cargo1]
pos = 1.3 15.45 2.5 0.0
code = 0
uldcode = AUTO

[cargo2]
pos = 0.95 -8.85 2.1 0.0
code = 0
uldcode = AUTO

You can notice that the editor added code = 3 and name = exit 3 in the 2 service section !??

The most curious is if I open the same GSX.cfg in the Virtuali/Airplanes folder at this time with notepad I find my initial changes :

[aircraft]
nosegear = 17.2
refueling = 1

[exit1]
pos = -2.6 17.95 4.75 5.0
code = 0

[exit2]
remove = 1

[exit3]
remove = 1

[exit4]
pos = -2.4 -17.15 4.6 -5.0
code = 0
name = exit 1

[service1]
flip = 1
code = 0

[service2]
flip = 4
code = 0

[cargo1]
pos = 1.3 15.45 2.5 0.0
code = 0
uldcode = AUTO

[cargo2]
pos = 0.95 -8.85 2.1 0.0
code = 0
uldcode = AUTO

BTW this is happens with the Simcheck A300 AND the Maddog

Have you an idea what is wrong ?

Thank you in advance.

Richard Portier

« Last Edit: March 30, 2012, 06:10:38 pm by DrumsArt »
Richard Portier
MAXIMUS VI FORMULA|Intel® Core™ i7-4770K CPU Oc @ 4.5GHz x8|NVIDIA GeForce GTX 1080ti|M16GB|Windows10 PRO 64|Fsx Accel|P3Dv4.1|TrackIr5|Saitek ProFlight Yoke + Quadrant + Rudder Pedal|Thrustmaster Warthog A10|GSX|ORBX

virtuali

  • Administrator
  • Hero Member
  • *****
  • Posts: 51237
    • VIRTUALI Sagl
Re: Problem with GSX.cfg Editor
« Reply #1 on: March 30, 2012, 10:08:42 pm »
Do you have two copies of the GSX.CFG file ? If yes, try to remove the one in the FSX\Simobject\Airplanes folder, the one in the %APPDATA%\Virtuali it's supposed to take precedence, but maybe this is the problem.

alpha117

  • Full Member
  • ***
  • Posts: 105
Re: Problem with GSX.cfg Editor
« Reply #2 on: March 30, 2012, 10:54:16 pm »
where is the editor located ???


virtuali

  • Administrator
  • Hero Member
  • *****
  • Posts: 51237
    • VIRTUALI Sagl
Re: Problem with GSX.cfg Editor
« Reply #3 on: March 31, 2012, 12:32:13 am »
If you the latest Live Update installed, there's a new menu option under the main Couatl menu.

DrumsArt

  • Jr. Member
  • **
  • Posts: 77
Re: Problem with GSX.cfg Editor
« Reply #4 on: March 31, 2012, 12:36:17 am »
Do you have two copies of the GSX.CFG file ? If yes, try to remove the one in the FSX\Simobject\Airplanes folder, the one in the %APPDATA%\Virtuali it's supposed to take precedence, but maybe this is the problem.

I tried your suggest but no way...

However I found the how but not the why  ;) after many tests.

1-This is an original GSX.cfg for the Simcheck A300 file just created when the editor is launched for the first time (no GSX.cfg anywhere on the HD) :

[aircraft]
nosegear = 17.2
refueling = 1

[exit1]
pos = -2.6 17.95 4.75 5.0
code = 1

[exit2]
remove = 1

[exit3]
remove = 1

[exit4]
pos = -2.4 -17.15 4.6 -5.0
code = 1
name = exit 1

[service1]
flip = 1
code = 3
name = exit 3

[service2]
flip = 4
code = 3
name = exit 3

[cargo1]
pos = 1.3 15.45 2.5 0.0
code = 0
uldcode = AUTO

[cargo2]
pos = 0.95 -8.85 2.1 0.0
code = 0
uldcode = AUTO

2-So, now I change to code = 0 the exit1, exit4, service1 and service2 sections then (important) I delete the two "flip" command lines.

If I read again the GSX.cfg file with the editor, I have this :

[aircraft]
nosegear = 17.2
refueling = 1

[exit1]
pos = -2.6 17.95 4.75 5.0
code = 0

[exit2]
remove = 1

[exit3]
remove = 1

[exit4]
pos = -2.4 -17.15 4.6 -5.0
code = 0

[service1]
flip = 1
code = 0

[service2]
flip = 4
code = 0

[cargo1]
pos = 1.3 15.45 2.5 0.0
code = 0
uldcode = AUTO

[cargo2]
pos = 0.95 -8.85 2.1 0.0
code = 0
uldcode = AUTO

The "flip" lines commands are come back BUT not the "name" commands line AND last but not least, finally the code = 0 stayed in zero !

For info if I save again the file in the editor without delete "flip" commands I have again the problem reported in my previous post.

My OS is Windows XP Pro SP3 (that it could be the issue ?)

Thank you for reading,

Regards,

Richard Portier

Richard Portier
MAXIMUS VI FORMULA|Intel® Core™ i7-4770K CPU Oc @ 4.5GHz x8|NVIDIA GeForce GTX 1080ti|M16GB|Windows10 PRO 64|Fsx Accel|P3Dv4.1|TrackIr5|Saitek ProFlight Yoke + Quadrant + Rudder Pedal|Thrustmaster Warthog A10|GSX|ORBX

virtuali

  • Administrator
  • Hero Member
  • *****
  • Posts: 51237
    • VIRTUALI Sagl
Re: Problem with GSX.cfg Editor
« Reply #5 on: March 31, 2012, 12:42:17 am »
Ok, it seems there might be a problem if the Flip command is used. However, you can obtain the same result of a flip command, by setting the coordinates and flip them manually, like this:

[service1]
flip = 1
code = 0

Since service1 is a flip of the exit 1, you can do the same with:

[service1]
pos = 2.6 17.95 4.75 -5.0
code = 0

I've copied the coordinates from exit1, flipping the X and the Angle, the Y and Z will stay the same.

DrumsArt

  • Jr. Member
  • **
  • Posts: 77
Re: Problem with GSX.cfg Editor
« Reply #6 on: March 31, 2012, 01:09:19 am »
Thank you for the tip but in fact the editor currently does this by putting again the "flip" command. So, it's ok now until this is resolved.

As I wrote in my first post, what is curious is the fact that if the same GSX.cfg file is read with notepad it's correct but read with the editor it's wrong and interpreted in the wrong way, as if the main program did not read the file properly. Hope my explanations are clear ;-)

Kind Regards,

Richard Portier
Richard Portier
MAXIMUS VI FORMULA|Intel® Core™ i7-4770K CPU Oc @ 4.5GHz x8|NVIDIA GeForce GTX 1080ti|M16GB|Windows10 PRO 64|Fsx Accel|P3Dv4.1|TrackIr5|Saitek ProFlight Yoke + Quadrant + Rudder Pedal|Thrustmaster Warthog A10|GSX|ORBX

Gary

  • Newbie
  • *
  • Posts: 24
Re: Problem with GSX.cfg Editor
« Reply #7 on: March 31, 2012, 08:38:25 am »
Richard,
Same exact problem here editing the Lear 45. will edit GSX.cfg, close the editor, then immediately open the editor and the original is back. I tried save and save as to ..//app.data with same result. It's like it is reading from the database instead of from the newly created gsx.cfg just saved. No other gsx.cfg on my hardrive.
Lets hope this is a quick fix.
Gary
BTW: Nice patch "Virtuali" & gang. (V1.3)
Gary
Retired ATC, corporate pilot, & all around good guy.

DrumsArt

  • Jr. Member
  • **
  • Posts: 77
Re: Problem with GSX.cfg Editor
« Reply #8 on: March 31, 2012, 01:54:55 pm »
Richard,
Same exact problem here editing the Lear 45. will edit GSX.cfg, close the editor, then immediately open the editor and the original is back. I tried save and save as to ..//app.data with same result. It's like it is reading from the database instead of from the newly created gsx.cfg just saved. No other gsx.cfg on my hardrive.
Lets hope this is a quick fix.
Gary
BTW: Nice patch "Virtuali" & gang. (V1.3)

Hi Gary,

While waiting for the patch, just delete the "flip" commands lines before to save or replace them with the command "pos" like explained by the post from Umberto above, it will work as expected.

Regards,

Richard Portier
« Last Edit: March 31, 2012, 02:03:20 pm by DrumsArt »
Richard Portier
MAXIMUS VI FORMULA|Intel® Core™ i7-4770K CPU Oc @ 4.5GHz x8|NVIDIA GeForce GTX 1080ti|M16GB|Windows10 PRO 64|Fsx Accel|P3Dv4.1|TrackIr5|Saitek ProFlight Yoke + Quadrant + Rudder Pedal|Thrustmaster Warthog A10|GSX|ORBX