• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

ADE-gp 0.41

tgibson

Resource contributor
Messages
11,817
Country
us-california
Hi again,

OK, here are the results. We're getting closer!

1. Reset button works as expected. Yea!

2. The entry of too-large numbers in the Texture Definition box does not result in a crash.

3. However, the addition of one new texture does not update your count of the current number of textures. My Texture_Def file has 21 textures. I am offered to add the first new one at position 21 (should really be 22, but it works OK) but then the Editor suggests position 21 for any further additions, rather than updating the number by one for each previous addition. After adding several new textures, the Editor reports that they are all at position 21. They have all been properly added to the Texture_Def file, though.

If I close and open the GP Texture Editor they are now numbered properly, but that problem can recur while adding/deleting line styles, for some reason.

4. Moving the Lines Styles around in the position list seems to work fine now.

5. Adding a line definition by:

a. Typing a new name in the drop down box
b. Changing the Start number

results in an error box popping up saying I have exceeded the texture height, if the number I enter is greater than 254 (the texture size is 512). If the Width/Height box contains a number larger than 1, then the allowed start number is smaller. Once I have used numbers small enough to be accepted and press the Update Definition Files button, *then* I can enter a number up to 511, no problem.

6. The line definitions are being entered as 512 - good! I'll test other texture sizes later.

7. The delete the last Line Style error seems to be fixed. Also good.

8. When switching textures, the current line style remains displayed, even though it is invalid for the new texture.

That's all I see at this point - we are definitely getting there! Have to go to a concert...
 
the addition of one new texture does not update your count of the current number of textures.
The code to update it is there. Perhpas it needs to be in more than one place.
EDIT: It was only operative for deletes. Fixed

results in an error box popping up saying I have exceeded the texture height, if the number I enter is greater than 254 (the texture size is 512)
Probably an aspect of the 256/512 issue that needed to be changed but wasn't.
EDIT: Initialization problem. Fixed

When switching textures, the current line style remains displayed, even though it is invalid for the new texture.
????
EDIT: Still need clarification

Compared to most days this week, today is going to be a "breeze".

Don
 
Last edited:
Boy are we close! Just a few more things.

First, here is my Texture_Def file:

gp_PatternedLines_TRG|40F|80F|False
gp_PatternedLines_40F|0F|40F|False
gp_ParkingDes|0|0|false
gp_Patterns|0|0|false
gp_LineBase|20F|20F|true
gp_Asphalt-dark|20F|20F|true
gp_Asphalt-light|20F|20F|false
gp_Asphalt-medium|20F|20F|true
gp_Concrete|20F|20F|true
gp_Dirt|20F|20F|false
gp_Gravel|20F|20F|false
gp_Red_20F|20F|20F|true
gp_White_20F|20F|20F|true
gp_Yellow_20F|20F|20F|true
gp_CrossHatch_Red|20F|20F|false
gp_CrossHatch_White|20F|20F|false
gp_CrossHatch_Yellow|20F|20F|false
gp_Signs_Red|0|0|false
gp_Signs_White|0|0|false
gp_PatternedLines_Copy|80F|40F|False
gp_CC_daggett|400F|100F|False
gp_Signs_Yellow|0|0|false
gp_CC_oakland|400F|100F|False

Note that it contains 23 textures, so the next one to be added should be 24.

1. When I open the GP Texture Editor and display each texture in the drop down box, this is what I get displayed as a position number:

gp_PatternedLines_TRG 1 (correct)
through
gp_Signs_White 19 (correct)

gp_PatternedLines_Copy 20 (correct)
gp_CC_daggett 21 (correct)
gp_Signs_Yellow 21 (incorrect)
gp_CC_oakland 21 (incorrect)

Note the last two are incorrectly numbered.

2. When I display a new texture (gp_CC_J_line_white), it also offers position 21. If I add it, it is inserted at position 20, the other textures appearing below it in the listing, all listed as position 21.

3. To see the problem I am not getting across to you:

a. Load a Line texture into the Texture Definition drop down box.
b. Load one of those texture's line styles into the Line Style Definition drop down box.
c. Load a different Line texture into the Texture Definition drop down box.

You should end up with a new texture name in the top section, but the line style definition for the old texture still visible in the bottom section. They don't match! I would assume that the Line Style Definition section should be cleared out when you load a new texture into the upper section? It should say None when the new texture is loaded.

Both textures must be line textures, with line styles defined.

Hope this helps,
 
Note the last two are incorrectly numbered
Have you told me the whole story? Are the last three textures actually in the textures and Texture_Dpy folder.

The slot number is the position in the Main Texture list on the GP editor, not the position in the .txt file. If both copies of the texture are not available, then the texture name will not appear in the Main texture list, even though the texture might be defined in the Texture_Def.txt.

Generally, you should not put a texture definition in Texture_Def unless the texture is actually available.

You should end up with a new texture name in the top section, but the line style definition for the old texture still visible in the bottom section. They don't match! I would assume that the Line Style Definition section should be cleared out when you load a new texture into the upper section? It should say None when the new texture is loaded.
Yes, and now that you've pointed out the situation, it will work as you suggest.

Don
 
Here is my Texture_Def file again, for reference:

gp_PatternedLines_TRG|40F|80F|False
gp_PatternedLines_40F|0F|40F|False
gp_ParkingDes|0|0|false
gp_Patterns|0|0|false
gp_LineBase|20F|20F|true
gp_Asphalt-dark|20F|20F|true
gp_Asphalt-light|20F|20F|false
gp_Asphalt-medium|20F|20F|true
gp_Concrete|20F|20F|true
gp_Dirt|20F|20F|false
gp_Gravel|20F|20F|false
gp_Red_20F|20F|20F|true
gp_White_20F|20F|20F|true
gp_Yellow_20F|20F|20F|true
gp_CrossHatch_Red|20F|20F|false
gp_CrossHatch_White|20F|20F|false
gp_CrossHatch_Yellow|20F|20F|false
gp_Signs_Red|0|0|false
gp_Signs_White|0|0|false
gp_CC_J_Line_white|40F|10F|False
gp_PatternedLines_Copy|80F|40F|False
gp_CC_daggett|400F|100F|False
gp_Signs_Yellow|0|0|false
gp_CC_oakland|400F|100F|False

24 entries, after I added the last new one I had in the listing last time.

Here is my Textures folder:

attachment.php


25 entries (the LM texture is not listed in the Texture_Def file)

Here is my Textures_dpy folder:

attachment.php


24 entries, just the same as the Texture_Def file.

Hope this helps,
 
Once I have no new textures waiting to be added and I open ADE and the GP Texture Editor, the textures are correctly numbered. If I have new textures in the list waiting to be added, the suggested position number is too low and they end up getting added to the middle of the file. If I try to make the number larger, the Editor complains that it is invalid.

It appears that if I have 1 new file waiting, the suggested position number is one too low, if I have 2 new files waiting to be added the suggested position number is 2 too low, etc., but I haven't done complete testing on that one.

If you can't find this, I can deal with this since I can reorder them by hand in the Texture_Def file. No biggie.

Hope this helps,
 
If you can't find this, I can deal with this since I can reorder them by hand in the Texture_Def file. No biggie.
I'll find it!!!

How many entries do you have in Lines_Def.txt. It appears I may have been using that for positioning instead of the number of entries in the useable texture list.

don
 
Hi,

Here is my Lines_Def file:

Dotted Yellow | gp_PatternedLines_TRG | V=407 | 15 | 512
Dotted Red | gp_PatternedLines_TRG | V=3 | 19 | 512
Dotted White | gp_PatternedLines_TRG | V=19 | 15 | 512
Apron Limit | gp_PatternedLines_40F | U=17 | 22 | 512
Single (Yellow) | gp_PatternedLines_40F | U=17 | 8 | 512
Double (Yellow) | gp_PatternedLines_40F | U=64 | 20 | 512
Single (White) | gp_PatternedLines_40F | U=275 | 8 | 512
Dashed - Short (Red) | gp_PatternedLines_40F | U=497 | 8 | 512
Dashed - Short (Yellow) | gp_PatternedLines_40F | U=92 | 8 | 512
Hold-Short | gp_PatternedLines_40F | U=3 | 50 | 512
Single (Red) | gp_PatternedLines_40F | U=432 | 8 | 512
Dashed - Short (White) | gp_PatternedLines_40F | U=340 | 8 | 512
Double (White) | gp_PatternedLines_40F | U=308 | 20 | 512
Double (Red) | gp_PatternedLines_40F | U=465 | 20 | 512
Dashed - Long (Yellow) | gp_PatternedLines_40F | U=45 | 8 | 512
Dashed - Long (White) | gp_PatternedLines_40F | U=289 | 8 | 512
Dashed - Long (Red) | gp_PatternedLines_40F | U=446 | 8 | 512

17 entries.

Hope this helps,
 
Doesn't help. (I was hoping for a line count of 20).

I will shortly post version 0.0.43 which contains a couple of updates to the Texture Editor - including a re-work of the code surrounding this issue. Please check to see whether or not the problem still exists.

Don
 
Much better, but not quite there yet. It now gives me the correct position numbers for all of the existing textures, but the suggested position number for new textures increases by one for each new texture. For example, If I have 21 entries in the current Texture_Def file and want to add 3 new textures, the Editor suggests position number 22 for the first new texture (correct), but then suggests positions 23 and 24 for the next two new textures (it should suggest position 22 for all of them, since that's the next available position in the Texture_Def file). Trying to add them gives me the ADE crash with index out of range. So I have to be careful to add only the first new texture in the list (or manually edit the position number), or get a crash.

Hope this helps,
 
I agree, the suggested number should be 22 in all cases - until you use that slot, in which case it should advance to 23 and so on.

The Texture Editor is now doing precisely what I programmed it to do yesterday. (Before, I was uncertain what data it was acting on.) The reason for the current operation is that these are the slots those three textures occupy in the Main Texture list. As you say, the editor should be suggesting the next available slot in the Textures_Def file instead - and it will.

Don
 
I will when I get home from work - I cannot run ADE here since it requires FS to be installed.
 
Back
Top