Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Linux and file/folder naming case

A topic by eumario created Oct 24, 2023 Views: 109 Replies: 2
Viewing posts 1 to 3
(+1)

Love the tool, works beautifully.  Great work on the development of it.  I would like to point out, that you should probably pick a file name casing style for folders and files to ensure that it works on platforms that have strict file case sensitivity, such as Linux, and Possibly Mac OS (As Mac can do both Insensitive, and Sensitive).

When first loading the plugin up, ran into issues of files not found, and found the naming convention not properly lining up.  I went through, and ensured all folders and Scenes, Shaders and Script Files were properly named in the PascalCase, to ensure that it would be able to load on Linux.

Just a suggestion from a Fellow Godot Tool developer. ;-)

Developer

Hey, thanks for the suggestion. I guess this is mainly about the folders being in camelCase, right? It's the convention established by Godot, whereas the C# files convention is in PascalCase. Did you actually have to fix some file path strings in  the code?

It's not so much about the camelCase, or PascalCase.  Either method is fine, it's just the naming conventions need to be properly set, and everything properly adjusted.

What I did was switch all naming Conventions to Pascal Case, and went through everything.  But starting from a fresh project, installing the addon, building, and then initial enabling get's the following errors in the console, and then will spam cause of a NRE when it can't find the scenes it needs in a 3D Scene for the custom gizmos.


I went through, renamed all folders to CamelCase designation, and then scanned all CS files for any res:// loading, and ensured they were properly capitalized, and then everything works just fine.  I can send you a zip copy of the folder structure I did, if you want to look at the zip and see.