• 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.

MSFS20 Texture and Material Names

rhumbaflappy

Administrator
Staff member
Resource contributor
Messages
6,571
Country
us-wisconsin
I've read some about the idea that texture or material names have a strict size limit or cannot contain spaces. Attached is a project that contains an absurdly long set of material and texture characters for their names (and spaces).

XML:
    "materials" : [
        {
            "doubleSided" : true,
            "name" : "MyVeryLongMaterialName which is probably NOT allowed In MSFS and includes spaces between the words",
            "pbrMetallicRoughness" : {
                "baseColorTexture" : {
                    "index" : 0
                },
                "metallicFactor" : 0,
                "roughnessFactor" : 0.5
            }
        }
    ]

and later...

XML:
    "textures" : [
        {
            "sampler" : 0,
            "source" : 0
        }
    ],
    "images" : [
        {
            "mimeType" : "image/png",
            "name" : "american-flag-large and includes spaces as well and is probably not allowed in MSFS",
            "uri" : "american-flag-large and includes spaces as well and is probably not allowed in MSFS.png"
        }
    ]

It compiles and shows fine in MSFS.
 

Attachments

I've read some about the idea that texture or material names have a strict size limit or cannot contain spaces.
Well just yesterday I downloaded Alpha India Groups AI software and first time starting, it raised a popup that informed long file names had not been enabled on my machine and interrogated would I like it to edit the registry to allow them. I clicked yes and just now Googled it, apparently it's a thing:
 
Hi Dick:

Considering the dilemma MSFS 2020 users may encounter with input strings for file names etc: :scratchch

https://www.fsdeveloper.com/forum/t...he-object-list-please-help.452948/post-886683


...use of double quote (") escape characters in Windows 10 long paths may (also ?) be a work-around without RegEdit or GpEdit: :)





Interestingly, this may also prove useful in scenarios where UNC paths are involved:


"There is an alternative for accessing very long filenames: for file I/O, the "\\?\" prefix to a path string tells the Windows APIs to disable all string parsing and to send the string that follows it straight to the file system.

dir "\\?\UNC\Server64\Teams\Personnel\some - very - long - file - name.txt"

Because it turns off automatic expansion of the path string, the "\\?\" prefix also allows the use of ".." and "." in the path names, which can be useful if you are attempting to perform operations on a file with these otherwise reserved relative path specifiers as part of the fully qualified path. This syntax can be used in both CMD and PowerShell."


Some related query results:

https://www.google.com/search?q=Win...hUKEwjsy9fWx7byAhWBbs0KHVIvANIQ4dUDCA0&uact=5

GaryGB
 
Last edited:
Back
Top