Sign in to follow this  
stonelance

Flight Toolkit 1.1.11 (beta)

Recommended Posts

A few small changes in this one:

 

- Fix problems where golf courses, farmland and some other land classes didn't have any autogen.

- Add a Copy Lat\Lon and a Paste Lat\Lon button to the SimDataEditor to make it easier to enter values

 

www.flighttoolkit.com/Downloads/FlightToolkit_1_1_11.zip

 

Please let me know if you see any other regressions or broken stuff with FSX scenery conversion.

Share this post


Link to post
Share on other sites
Help AVSIM continue to serve you!
Please donate today!

Hey stonelance, I made a clandestine flight this morning from Weed airport (O46) and at takeoff I noticed that the autogen was missing. I downloaded the 1_1_11 zip , and started a flight from there, and still no autogen. Lat.41.476 Lon. -122.453 :mellow:

Share this post


Link to post
Share on other sites

It also looks like the autogen is still missing at parks and golf courses.

This is Golden Gate Park in San Francisco. Lon. 37.768 Lon. -122.483

And this is one of the Golf Courses at Monterey Lat. 36.611 Lon. -121.941

Hope this helps. :smile:

Share this post


Link to post
Share on other sites
Hey Jack - thanks for testing the build. 

If its possible, could you post the ContentErrors log found in "C:\Users\<Admin>\AppData\Roaming\Microsoft\Flight"... it would be useful for Steve to find out where the fault lies.

 

Thanks, ^_^

Share this post


Link to post
Share on other sites

I do have autogen at Monterey and Golden Gate Park with the new build.

 

QuqVUEs.png?1

 

This is build 1.1.11

 

I uninstalled my old FSX World with the Addon Manager, installed the new build, made a complete rebuild of FSX World, and installed that with Addon manager.

 

Dick

Share this post


Link to post
Share on other sites

Hi Steve.

 

I still get the mild winter tree textures with snow... you probably didn't get to them yet.

 

Also, we have an old issue with messed-up Airport backgrounds. 42.7953448903171, -88.3729906754233, 591.119442249964 (lat,long,alt)

 

ducz9S5.png

 

Dick

Share this post


Link to post
Share on other sites

Ran the new build; autogen issues that I reported are now fixed. Don't know about other areas.

Share this post


Link to post
Share on other sites

J.R. Make sure you rerun the scenery conversion, and run the Addon Manager after and re-enable it.

 

Dick: Yeah, haven't got to the tropical winter trees, the airport background, or the missing taxiway signs yet.  My guess is the fix for the winter trees will require a manual rework of the autogen groups, and not something I can automate.  It sounded like you might be doing some work taking a look at the autogen, so I was waiting to hear back.  Haven't had a chance to investigate the airport background issue so far, but it is next on the list.

Share this post


Link to post
Share on other sites

I uninstalled the preceding Toolkit, and installed the new one. I did a test flight and saw no change. That's when I made the two posts. I then read rhumbaflappy post and ran the ContentConverter and this time it came out like KavindaJD did with (last line) "Missing or error converting model '1ad6551a-4868-055d-bb00-079c96a88c9d', and this is the very last line"Error: FSX conversion failed: The process cannot access the file 'C:\TEST\Temp\d0d8639e-dd09-4cb0-b828-35e8d80581fd' because it is being used by another process." I'm now going to uninstall the 1_!_11 zip  and download a fresh copy and run the ContentConverter again. :unsure:

Share this post


Link to post
Share on other sites

I uninstalled  the toolkit, but when I look in "C:/User/J. R's/AppData/Local" there are two folders one "Flight Tools" and two "Flight_Tools" should I delete these before I install the fresh copy of the Toolkit? Will wait for reply before doing so.

Thanks, J.R. :huh:

Share this post


Link to post
Share on other sites

You shouldn't need to delete anything in AppData\Local, those are settings files and not what is installed by the toolkit.

You can ignore the "Missing or error converting model " warnings.

 

Not sure why you would get "The process cannot access the file 'C:\TEST\Temp\d0d8639e-dd09-4cb0-b828-35e8d80581fd'" unless you had a stray conversion running.  I've seen weird things happen sometimes where windows will hold a reference to a fiel if an app crashes or is closed suddenly.  Try rebooting, deleting the files in C:\Test\Temp first, and rerunning the conversion

Share this post


Link to post
Share on other sites

Good morning to all.

 

I just finished a fresh install of the Toolkit and a run of the ContentConverter and it completed. This is a short copy of how it ended the time before.

 

Missing or error converting model '400b037c-458e-7873-d6ae-6f84e7bbd142'

Missing or error converting model '6166809a-48f6-f02d-9a44-b6a7a083d5a4'

Missing or error converting model '30583bc7-0cf1-44d0-9303-75266ebee993'

Missing or error converting model '1ad6551a-4868-055d-bb00-079c96a88c9d'

Generating addon files

 

Uninstalling existing addon

Writing addon files to the DLC folder

 

Error: FSX conversion failed: The process cannot access the file 'C:\TEST\Temp\d0d8639e-dd09-4cb0-b828-35e8d80581fd' because it is being used by another process.

 

And this how it ended this time.

 

Converting models in 'C:\Program Files (x86)\Steam\steamapps\common\FSX\Scenery\Cities\Edwards_AFB\scenery'...

  Loading BGL file index: 'C:\Program Files (x86)\Steam\steamapps\common\FSX\Scenery\Cities\Edwards_AFB\scenery\kedw_photo.bgl'

Converting models in 'C:\Program Files (x86)\Steam\steamapps\common\FSX\Addon Scenery\scenery'...

Missing or error converting model '025a9b09-44ee-410d-8bf3-f27661854378'

Missing or error converting model '93615c8e-9789-49a9-b7b0-ec3d2a2625e6'

Missing or error converting model '0037bda7-48f6-039a-8faa-b19f321cc93e'

Missing or error converting model '14edc857-451c-ea9f-0cf1-0980e4306720'

Missing or error converting model '4153e98f-4204-8d6f-3026-fb9c2fdd32f8'

Missing or error converting model '09e0df83-4a6e-2393-5e5e-35bb4acc07df'

Missing or error converting model '488add71-46ea-2666-3a73-48bd48a4ac8e'

Missing or error converting model '1d522c05-4dce-d12f-d743-6e8997739b62'

Missing or error converting model 'b5dd30ce-4335-f2cc-5268-a19a3a8d7541'

Missing or error converting model 'a632f8e1-45df-f679-1e8e-1093306f9365'

Missing or error converting model '2e1446c0-4466-ab2b-cd2e-738e3a177ab5'

Missing or error converting model '22e0b6db-4fd1-5596-bed4-b0a32812e3da'

Missing or error converting model 'cf23d65d-44a3-de3e-d535-4da07f6cdeba'

Missing or error converting model '0fba6d4e-424f-b84c-dd4a-56891d65216f'

Missing or error converting model '3b5a0225-4fd2-23d8-72db-3eb310e56e00'

Missing or error converting model 'b46c5fbe-4963-52ea-78b8-548c4a4ebfda'

Missing or error converting model 'b29d9367-431f-7614-ad30-92819d20b0e9'

Missing or error converting model 'eb06f497-4ec0-0265-f9f7-43abfa4a38c4'

Missing or error converting model 'eb4ae517-4cb6-06a4-239d-62876d28bf28'

Missing or error converting model '84804323-4a7e-a0fe-5b43-938e048b760f'

Missing or error converting model 'e1ffc778-4af0-ca33-ff39-2d953bed18d2'

Missing or error converting model 'c1344b63-347b-4e15-9a91-fee81ebe8c7a'

Missing or error converting model '165d00e5-466c-2b95-d159-04b15e500c18'

Missing or error converting model '2fbb67f0-40ff-a820-7fd7-64a215529a7e'

Missing or error converting model '52f00753-44f7-07c6-518f-aa927e713672'

Missing or error converting model 'e85ed228-4e55-2a34-f0ae-7e88a0c89872'

Missing or error converting model 'afd518a6-4e75-cb82-527f-4780aaa7b16f'

Missing or error converting model 'b9c683e5-4d64-d59c-2ac9-518cb51da61f'

Missing or error converting model '98a02d29-475c-a09f-0d33-b28636822121'

Missing or error converting model 'bc74bc9b-4fba-a89b-369e-6ba391ca6d5c'

Missing or error converting model '55724785-41cc-1244-9114-0a8a01625cfd'

Missing or error converting model 'c0fbb25b-4e06-d4dc-9bb4-9e884c01d5f7'

Missing or error converting model '66d81030-42ef-59fe-977d-da9e6c30c270'

Missing or error converting model 'bb819418-4b0d-57e0-3674-89950b5e2883'

Missing or error converting model '7af89112-4447-afdb-6f95-699a3254e7a2'

Missing or error converting model '51b10556-4930-bd37-888f-ab9603e02ea2'

Missing or error converting model 'a28ed430-4e8b-520a-0fb6-f5af5babc5b2'

Missing or error converting model '7077aed7-4b2b-c20e-812e-dd9938ebc194'

Missing or error converting model '36912c72-459b-7488-b1ab-91afe2b39700'

Missing or error converting model '450e3946-44ec-6111-95e1-56baa89b3d82'

Missing or error converting model '2a2281a9-4d49-c558-6ca8-2297ad034d9e'

Missing or error converting model '82b3dda9-4572-b942-b2c7-41b062eb87f7'

Missing or error converting model '6a8f9244-406b-1825-f789-ebbe4416ecf0'

Missing or error converting model 'f172dcc2-4ca8-da3e-b57d-68996321b7b2'

Missing or error converting model '2d73ec95-41b6-6b53-ac76-b19355550ae7'

Missing or error converting model 'e5c15dce-46fd-fff9-de68-0fbebdfea66c'

Missing or error converting model '43ab4842-4e50-6191-63df-63aaedc6c0f7'

Missing or error converting model 'db400f10-41d4-0d6a-774c-b88a08e18db0'

Missing or error converting model '105a1663-46e4-e168-f63f-b8b33adca11f'

Missing or error converting model 'ab2868a8-45db-02d6-896b-2393ab573531'

Missing or error converting model '24e7722e-4341-fa99-3d92-ccb82166c139'

Missing or error converting model 'b0cc8684-4e4b-2cfc-a395-3b892531d3a3'

Missing or error converting model '47d63f58-43ae-7906-42bb-2f9be3d8fbe5'

Missing or error converting model 'bbadc158-47f3-71a9-00b4-a4a48cfb6449'

Missing or error converting model '6cb3da38-414c-6bed-799c-4fb4d77a8c6d'

Missing or error converting model '22bac8b5-4128-198d-248b-f696e9a4bc6c'

Missing or error converting model 'a8fd351f-42b2-7936-1070-09baa9102e80'

Missing or error converting model 'cf965161-4035-eb0e-ed4c-76b760ef7690'

Missing or error converting model '61516a50-4e6e-5d5e-daac-3f81cda85954'

Missing or error converting model '0017a263-464f-14fd-f77f-2996fed44864'

Missing or error converting model 'da018eab-4682-75ef-a38b-2f82496d2ec7'

Missing or error converting model '41505118-4152-b04e-2ce6-1796ad33007b'

Missing or error converting model '400b037c-458e-7873-d6ae-6f84e7bbd142'

Missing or error converting model '6166809a-48f6-f02d-9a44-b6a7a083d5a4'

Missing or error converting model '30583bc7-0cf1-44d0-9303-75266ebee993'

Missing or error converting model '1ad6551a-4868-055d-bb00-079c96a88c9d'

Generating addon files

Writing addon files to the DLC folder

Complete!

 

This is a copy of the error log.

 

ContentErrors

(41.486500, -122.457166): Terrain texture not found: 139B2SP3DL.DDS (dir=88)

(41.486500, -122.457166): Terrain texture not found: 068B2SP5DL.DDS (dir=88)

 

Everything seems to be good now.

 

Thanks again to all for your help!   :excl:  :smile:

Share this post


Link to post
Share on other sites

Hi Steve.

 

The airport backgrounds are defined in the core's lclookup. So they should behave the same in the FSX conversion... but they don't. I think this might be a winding problem. The Alaska airport backgrounds are clockwise, and the FSX conversion is counterclockwise. So we're getting inside-out airport backgrounds?

 

Dick

Share this post


Link to post
Share on other sites

Hi Steve.

 

Airport backgrounds are not a winding issue, as you suspected. It must be the remapping, or a characteristic of the game.

 

Dick

Share this post


Link to post
Share on other sites

I think I see what is wrong.  My conversion code is treating the vector remapping values form FSX as texture set id, but I think it should be interpreted as a new LC, which then looks in the normal LC table to get the texture set id.  For Flight I think this level of indirection was removed, and vector remaps just took the region, remap type and original LC and remapped to a texture set.

 

Edit: Nope, looks like my code is doing the right thing, I just misread it.  I'll need to keep searching.  I have no idea what it could be at this point.

Share this post


Link to post
Share on other sites

Hi Steve.

 

One problem example of the Airport Backgrounds is when an AB poly is over landclass 55 Cool Fields and Woods.

 

    <LandClassToTextureSet RemappingType="Airport" Region="255" Class="55">
      <TextureSetId>280</TextureSetId>
    </LandClassToTextureSet> (core)
      
    <LandClassToTextureSet RemappingType="Airport" Region="255" Class="55">
      <TextureSetId>274</TextureSetId>
    </LandClassToTextureSet> (lclookup-Cold_Climate_Wilderness_LC)

 

But no definition in the FSX lclookup.

 

  117 Small City Suburban Grid Wet
 
    <LandClassToTextureSet RemappingType="Airport" Region="255" Class="117">
      <TextureSetId>280</TextureSetId>
    </LandClassToTextureSet> (Core)
    
    <LandClassToTextureSet RemappingType="Airport" Region="255" Class="117">
      <TextureSetId>274</TextureSetId>
    </LandClassToTextureSet> (lclookup-Alaska_Shared)
    
    <LandClassToTextureSet RemappingType="Airport" Region="255" Class="117">
      <TextureSetId>168</TextureSetId>
    </LandClassToTextureSet> (lclookup_FSX)

 

Here the Small City Suburban Grid Wet properly displays with the AB poly over.

 

42.7971644326867, -88.3726170379668, 871.72802734375

 

Dick

Share this post


Link to post
Share on other sites

What region are you in for LC 55?  There are several airport remappings for LC 55 in the FSX lclookup, just not one for all regions.

 

I was looking at LC 117 from the scenery errors thread on fsdev

Share this post


Link to post
Share on other sites

This is region 1 (B Northern North America). The landclass is fine, but the remapping of the Airport Background is not.

 

Remaps for airports in LC 55 in the FSX conversion are for regions 5, 13, 14. ( And I can find no examples in the games of airports used in these landclasses in these areas!)

 

The worst region is probably region 10, in Ireland. (52.6906127930145, -8.9235076904302, 400m). It looks as though the remapping is it's own landclass (55).

 

 

Dick

Share this post


Link to post
Share on other sites

Hi Steve.

 

I think I found the problem with Airport Backgrounds, and this may have larger consequences.

 

In the converted FSX lclookup.bgl, we have the default Texture Id defined for Region 1:

    <LandClassToTextureSet RemappingType="Default" Region="1" Class="55">
      <TextureSetId>131</TextureSetId>      
    </LandClassToTextureSet>

... but there is no airport Texture Id defined for Region 1. I added this definition to supply the missing Region 1 Airport Background:

    <LandClassToTextureSet RemappingType="Airport" Region="1" Class="55">
      <TextureSetId>168</TextureSetId>
    </LandClassToTextureSet>

...and recompiled the lclookup and replaced it in the FSX World.

 

The result is no more missing airport background for my East Troy Municipal airport.

 

gnhOMDx.png

 

The consequences seem to be this:

 

For all LandClassToTextureSet definitions used, we need a corresponding compliment of Default, Natural, Cultural, and Airport definitions for that Region, or we run the risk of missing textures. (A Region 1 Default definition will need a Region 1 Airport Definition, and possibly Utility, Railroad, Natural and Cultural as well... they seem not to use Region 255).

 

I made sure the TextureSetId was defined already in the lclookup for the Airport, as I don't know if the FallbackId will supply this, and 168 was used for other definitions.

 

I also changed something else...

    <TextureSet id="168">
      <DrawPriority>20</DrawPriority>
      <Texture Region="1" Variation="5" Vulcn="139" />
      <Mask Region="1" Variation="7" Vulcn="900" />
      <LightMap Region="1" Variation="1" Vulcn="0" />
      <Autogen Region="1" Variation="5" Vulcn="139" />

I changed the Variation to 5 in TextureSet id 168, as that's all the number of textures we have for Vulcan 139.

 

Here's a list of Class 55 in the FSX lclookup:

 

RemappingType="Default" Region="0" Class="55"
RemappingType="Default" Region="1" Class="55"
RemappingType="Default" Region="15" Class="55"
RemappingType="Default" Region="10" Class="55"
RemappingType="Default" Region="11" Class="55"
RemappingType="Default" Region="12" Class="55"
RemappingType="Default" Region="13" Class="55"
RemappingType="Default" Region="14" Class="55"

RemappingType="Airport" Region="13" Class="55"
RemappingType="Airport" Region="6" Class="55"
RemappingType="Airport" Region="14" Class="55"

RemappingType="Natural" Region="14" Class="55"

 

Ireland is in Region 10, so that explains the loss of Airport Background textures there.

 

Dick

Share this post


Link to post
Share on other sites

Hi Steve.

As another experiment, in the FSX lclookup, I deleted the Region 10 Airport defintion and added this:

    <LandClassToTextureSet RemappingType="Default" Region="255" Class="55">
      <TextureSetId>131</TextureSetId>
    </LandClassToTextureSet>    
    <LandClassToTextureSet RemappingType="Airport" Region="255" Class="55">
      <TextureSetId>168</TextureSetId>
    </LandClassToTextureSet> 

This re-defines the Region 255 definitions for airport and landclass texturing. It completely solves the Region 10 problems in Ireland, as the Seasons.bgl now controls the textures correctly. And I'm guessing it would work for Region 1 as well. The lclookup-Cold_Climate_Wilderness_LC messes up the definition of the textures by specifying the seasons as:

    <TextureSet id="57">
      <DrawPriority>40</DrawPriority>
      <Texture Region="1" Variation="10" Vulcn="25" />
      <Mask Region="1" Variation="1" Vulcn="25" />
      <LightMap Region="1" Variation="1" Vulcn="137" />
      <Autogen Region="1" Variation="10" Vulcn="25" />
      <Season>1</Season>
      <Season>1</Season>
      <Season>2</Season>
      <Season>3</Season>
      <Season>4</Season>
      <MaskTextureVariation>0</MaskTextureVariation>
      <MaskTextureVariation>1</MaskTextureVariation>
      <MaskTextureVariation>2</MaskTextureVariation>
      <MaskTextureVariation>3</MaskTextureVariation>
      <MaskTextureVariation>4</MaskTextureVariation>
      <MaskTextureVariation>5</MaskTextureVariation>
      <MaskTextureVariation>6</MaskTextureVariation>
      <MaskTextureVariation>7</MaskTextureVariation>
      <MaskTextureVariation>8</MaskTextureVariation>
      <MaskTextureVariation>9</MaskTextureVariation>
      <MaskTextureVariation>10</MaskTextureVariation>
      <MaskTextureVariation>11</MaskTextureVariation>
      <MaskTextureVariation>12</MaskTextureVariation>
      <MaskTextureVariation>13</MaskTextureVariation>
      <MaskTextureVariation>14</MaskTextureVariation>
      <MaskTextureVariation>15</MaskTextureVariation>
    </TextureSet>

It overrides the MildWinter textures, when the Seasons.bgl would have taken care of that.

 

Dick

Share this post


Link to post
Share on other sites

Hi Steve.

 

In 2006, Holger Sandmann developed a spreadsheet for all of the landclasses of FSX, including slopes and regions. http://www.fsdeveloper.com/forum/resources/fsx-land-class-catalog-and-visual-reference.81/

 

It might be better to reorganize much of the lclookup for FSX by using this as a reference.

 

Just taking the landclass 55, there would be problems with future addons to some non-defined regions, and it would also impact airports, railroads, etc...

 

There are over 130 different landclasses used by FSX Up to number 148 i think, but not all numbers used). FSX always assumes region 1 is the "255" region... so we could skip Region 1, make all of them as region 255, and add in the other needed regional variations as listed in Holger's work. Defining the default, airport, cultural, natural, etc, as needed.

 

This would expand the FSX lclookup a lot, but it would help with future addons.

 

Just reorganizing the lclookup's LandClassToTextureSet by Class would make it much more readable.

 

Dick

Share this post


Link to post
Share on other sites

First of all, thank you so much for digging into this.  I think you have found a couple things that I now realize I may have done incorrectly.

 

1) The FSX lclookup doesn't have the concept as far as I could tell of "Default" region like Flight does.  I was trying to optimize the number of entries in the lclookup by combining together multiple regions into one in order to form the default.  However, I didn't realized that FSX treated region 1 as the default.  It may be irrelevant since the FSX lclookup has a complete mapping of every region, but I will look into it.

 

2) Also, as part of the optimizing, I also incorrectly thought that if a entry didn't exist for a remapping type that it would fallback to the default remapping type, but did not realize that will only occur if there is no region="255" entry for that remapping type.  I think I have an error in my logic here, and should always include every remapping type.

 

To test my suspicions I modified the conversion code to not do any optimizations and just output the full set of data.  I then looked at the data and found this mapping:

<LandClassToTextureSet RemappingType="Airport" Region="1" Class="55">

 

<TextureSetId>168</TextureSetId>

 

</LandClassToTextureSet>

 

Which looks correct according to your above post, so it looks like my optimizations are removing a little too much :)


As far as the TextureSet variation, I think 11 is correct.  This number is not a count, but a value from a pattern enumeration.  Here are the values (5 and 11 happen to both have 5 textures):

        Single = 1,                 // 1,Single,1,Only one variation
        ThreeRandom = 3,            // 1,Random 3,3,Three random variations
        FiveRandom = 5,             // 1,Random 5,5,Five random variations
        SevenRandom = 7,            // 1,Random 7,7,Seven random variations
        EightWang = 8,              // 1,Wang 8,8,Eight Wang tile variations
        FifteenUber = 9,            // 1,uber tile 1,15,uber tile
        SixteenUber = 10,           // 1,uber 2,16,uber tile
        FiveParks = 11,             // 1,parks,5,parks
        FiveByTwo = 12,             // 1,golf course,10,5 x 2 layout
        FifteenUrbanUber = 13,      // 1,urban uber,15,urban uber and extras
        FifteenDesertSpread = 14,   // 1,semi desert spread,15,semi desert variation
        SixteenFourKByFourK = 15,   // 1,4 X 4,16,4k X 4k 16 textures
        SixteenFourKByFourK2 = 16,  // 1,4 X 4 no 2,16,4k X 4k 16 textures
        SixteenFourKByFourK3 = 17,  // 1,4X4 number3,16,4k X 4k 16 textures
        ThreeByThree = 18,          // 1,3X3,9,3 x 3 texture

Share this post


Link to post
Share on other sites

Investigating more, it looks like this is the order Flight will search for textures (this is deja-vu as I'm pretty sure I figured this out once before):

 

The order that Flight appears to look for textures is:

1) Region, RemappingType, Class

2) Region, Default RemappingType, Class

3) Default Region, RemappingType, Class

4) Default Region, Default RemappingType, Class

 

So, it looks like I was correct in my original implementation, that if a remapping type is the same as the default remapping type, then I shouldn't need to include an entry in the lclookup for it.  I believe I probably screwed up the implementation though.  Going back and checking through it.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this