tgibson
Resource contributor
- Messages
- 11,794
- Country

Hi Don,
I have tested the horizontal part of the GP Texture Editor and I can't get past a certain point. I created a horizontal texture using your gp_PatternedLines_40F texture, turned 90 degrees to the right.
First a general comment. In every other program I've seen that handles texture bitmaps, the top is pixel 0 and the bottom is the largest pixel number. It seems to be the opposite here - the 0 pixel is at the bottom. This makes it hard to obtain the proper pixel numbers from a typical paint program - I have to subtract the height of the bitmap from all numbers I get from it. Starting at the top would be much easier.
1. Added this horizontal stripe texture to the Texture Editor. The entry in the Texture_Def file looks fine - it appears you have fixed the U vs V problem, and most of the button activation issue (see below).
It entered this into the Line_Def file:
Dotted Red | gp_PatternedLines_TRG | V=3 | 15 | 256
This looks fine, except for the 256. The same entry for the default 40F texture says:
Dashed - Short (Red) | gp_PatternedLines_40F | U=497 | 8 | 512
Note it says 512, the correct size of the bitmap. It appears that the Texture Editor is not picking up the correct dimension of the bitmap - it is still using the width of the bitmap (used for vertical stripes) instead of the height of the bitmap for these horizontal stripes.
When I added a GP line in ADE, went to the GP Editor, and assigned it to my TRG horizontal stripe copy, it mapped it correctly to the red dotted line. Nice! Then I went back to ADE.
However, when I then tried to edit the line, I got this error message:
When I clicked OK I got a blank GP Editor with nothing I could do, other than close it with Cancel.
I tried manually editing the 256 to 512, but it didn't fix this error. However, I assume it would cause a problem for any line entry with a start value larger than 256.
I then tried editing my line texture. I selected my texture from the drop down box in the Texture Editor, and chose the only line style I had created (Dotted Red) from that drop down box. Then for fun I entered the value 2 in the position box (remember I only have one line style). I got this box:
ADE then closed after asking if I wanted to save my airport if I had made changes to the ADE airport part of the file.
So it doesn't appear to test for the maximum allowed value for the position index.
Then I added another line style - Dotted Yellow. I had to double click the Dotted Yellow name I created in the drop down box to activate the Update Definition Files button (entering the name and data in the text boxes didn't do it), but it did activate. But then I had to enter my numbers again.... Perhaps the number entry boxes should not activate until the Update button activates?
However, after clicking the Update button it did add my line:
Dotted Yellow | gp_PatternedLines_TRG | V=407 | 15 | 256
Still adding it as a 256 pixel bitmap, of course, so I changed that manually to 512. It also changed my Dotted Red entry back to 256. Changed that one too. Otherwise it looks fine.
I did ask to place it in Position #2 in the listing, but it displayed as Position #1 in the drop down box. Huh? I looked at the Lines_Def file and found the answer - it did place it at position number 2 in the file, but in position #1 was an entry for the default 40F file, so my Dotted Yellow shows up as position #1 in the drop down box because it's the first entry *for my TRG copy*.
Here is the top of my Lines_Def file to illustrate:
Hold-Short | gp_PatternedLines_40F | U=3 | 50 | 512
Dotted Yellow | gp_PatternedLines_TRG | V=407 | 15 | 256
Dotted Red | gp_PatternedLines_TRG | V=3 | 15 | 256
Apron Limit | gp_PatternedLines_40F | U=17 | 22 | 512
Single (Yellow) | gp_PatternedLines_40F | U=17 | 8 | 512
...
The file is default below this point.
As you can see, the Editor placed my new Dotted Yellow entry into the second position of the main listing, but not #2 in the listing for my TRG file. So it ends up #1 in the drop down box. If I try to enter it as a number greater than 2, I get the error/crash above. So they are always being added as #1, essentially. While this will certainly be confusing, it's not fatal.
BTW, the Cancel button is a bit unnerving for closing the Texture Editor window - I worried that my changes might be lost. Perhaps Close would be a better label?
I then created a line and assigned it to my new Dotted Yellow line - worked well. Compiled the airport and my yellow dotted line appears in FS just fine. Back to ADE and then attempted to edit my line. I got the same error I posted first in this message.
I think that will be enough for now.
Hope this helps,
I have tested the horizontal part of the GP Texture Editor and I can't get past a certain point. I created a horizontal texture using your gp_PatternedLines_40F texture, turned 90 degrees to the right.
First a general comment. In every other program I've seen that handles texture bitmaps, the top is pixel 0 and the bottom is the largest pixel number. It seems to be the opposite here - the 0 pixel is at the bottom. This makes it hard to obtain the proper pixel numbers from a typical paint program - I have to subtract the height of the bitmap from all numbers I get from it. Starting at the top would be much easier.
1. Added this horizontal stripe texture to the Texture Editor. The entry in the Texture_Def file looks fine - it appears you have fixed the U vs V problem, and most of the button activation issue (see below).
It entered this into the Line_Def file:
Dotted Red | gp_PatternedLines_TRG | V=3 | 15 | 256
This looks fine, except for the 256. The same entry for the default 40F texture says:
Dashed - Short (Red) | gp_PatternedLines_40F | U=497 | 8 | 512
Note it says 512, the correct size of the bitmap. It appears that the Texture Editor is not picking up the correct dimension of the bitmap - it is still using the width of the bitmap (used for vertical stripes) instead of the height of the bitmap for these horizontal stripes.
When I added a GP line in ADE, went to the GP Editor, and assigned it to my TRG horizontal stripe copy, it mapped it correctly to the red dotted line. Nice! Then I went back to ADE.
However, when I then tried to edit the line, I got this error message:
When I clicked OK I got a blank GP Editor with nothing I could do, other than close it with Cancel.
I tried manually editing the 256 to 512, but it didn't fix this error. However, I assume it would cause a problem for any line entry with a start value larger than 256.
I then tried editing my line texture. I selected my texture from the drop down box in the Texture Editor, and chose the only line style I had created (Dotted Red) from that drop down box. Then for fun I entered the value 2 in the position box (remember I only have one line style). I got this box:
ADE then closed after asking if I wanted to save my airport if I had made changes to the ADE airport part of the file.
So it doesn't appear to test for the maximum allowed value for the position index.
Then I added another line style - Dotted Yellow. I had to double click the Dotted Yellow name I created in the drop down box to activate the Update Definition Files button (entering the name and data in the text boxes didn't do it), but it did activate. But then I had to enter my numbers again.... Perhaps the number entry boxes should not activate until the Update button activates?
However, after clicking the Update button it did add my line:
Dotted Yellow | gp_PatternedLines_TRG | V=407 | 15 | 256
Still adding it as a 256 pixel bitmap, of course, so I changed that manually to 512. It also changed my Dotted Red entry back to 256. Changed that one too. Otherwise it looks fine.
I did ask to place it in Position #2 in the listing, but it displayed as Position #1 in the drop down box. Huh? I looked at the Lines_Def file and found the answer - it did place it at position number 2 in the file, but in position #1 was an entry for the default 40F file, so my Dotted Yellow shows up as position #1 in the drop down box because it's the first entry *for my TRG copy*.
Here is the top of my Lines_Def file to illustrate:
Hold-Short | gp_PatternedLines_40F | U=3 | 50 | 512
Dotted Yellow | gp_PatternedLines_TRG | V=407 | 15 | 256
Dotted Red | gp_PatternedLines_TRG | V=3 | 15 | 256
Apron Limit | gp_PatternedLines_40F | U=17 | 22 | 512
Single (Yellow) | gp_PatternedLines_40F | U=17 | 8 | 512
...
The file is default below this point.
As you can see, the Editor placed my new Dotted Yellow entry into the second position of the main listing, but not #2 in the listing for my TRG file. So it ends up #1 in the drop down box. If I try to enter it as a number greater than 2, I get the error/crash above. So they are always being added as #1, essentially. While this will certainly be confusing, it's not fatal.
BTW, the Cancel button is a bit unnerving for closing the Texture Editor window - I worried that my changes might be lost. Perhaps Close would be a better label?
I then created a line and assigned it to my new Dotted Yellow line - worked well. Compiled the airport and my yellow dotted line appears in FS just fine. Back to ADE and then attempted to edit my line. I got the same error I posted first in this message.
I think that will be enough for now.
Hope this helps,

