You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the project you are working on:
irrelevant.
Describe the problem or limitation you are having in your project:
I'd like to implement automatic reporting so I can know better about the userbase of my game. he actual state of the OS class allows to know if the system is "Linux" or "Windows" but I'd like to have specific information of the system version/distro.
Describe how this feature / enhancement will help you overcome this problem or limitation:
I'd implement 3 new methods in the OS singleton:
get_system_name(), get_build_number() and get_system_version().
Note: the following examples of every method show the output of a Fedora 31 and W10 education system.
get_system_name:
returns the specific name of the system (or distro).
i.e. Fedora, Microsoft Windows 10 Education, etc.
get_build_number:
returns the build number of the system.
i.e. 5.3.15-300.fc31.x86_64, 17134, etc.
get_system_version:
returns the system version of the system.
i.e. 31 (KDE Plasma), 10.0.17134, etc.
Show a mock up screenshots/video or a flow diagram explaining how your proposal will work:
irrelevant.
Describe implementation detail for your proposal (in code), if possible:
Linux:
get_system_name: field NAME in /etc/os-release
get_build_number: uname -r
get_system_version: field VERSION in /etc/os-release
Windows:
get_system_name, get_build_number and get_system_version:
You can use wmic to obtain that information:
This command requires admin in windows XP but this isn't a problem as Godot targets Windows 7+
If this enhancement will not be used often, can it be worked around with a few lines of script?:
I don't think this can be implemented in a few lines for every supported platform.
Is there a reason why this should be core and not an add-on in the asset library?:
It could be an asset but I think this should be a well maintained feature in the engine and most important multiplatform engines have methods to obtain system version info.
The text was updated successfully, but these errors were encountered:
What's the use case for get_build_number() once you have get_system_name() and get_system_version()? It does bring some extra information, but I'm not sure how useful it is to have.
My concern is that the concept of "build number" might be difficult to translate to Linux/macOS and other platforms.
Describe the project you are working on:
irrelevant.
Describe the problem or limitation you are having in your project:
I'd like to implement automatic reporting so I can know better about the userbase of my game. he actual state of the OS class allows to know if the system is "Linux" or "Windows" but I'd like to have specific information of the system version/distro.
It would be useful for godotengine/godot#24780 if it gets implemented.
Describe how this feature / enhancement will help you overcome this problem or limitation:
I'd implement 3 new methods in the OS singleton:
get_system_name(), get_build_number() and get_system_version().
Note: the following examples of every method show the output of a Fedora 31 and W10 education system.
get_system_name:
returns the specific name of the system (or distro).
i.e. Fedora, Microsoft Windows 10 Education, etc.
get_build_number:
returns the build number of the system.
i.e. 5.3.15-300.fc31.x86_64, 17134, etc.
get_system_version:
returns the system version of the system.
i.e. 31 (KDE Plasma), 10.0.17134, etc.
Show a mock up screenshots/video or a flow diagram explaining how your proposal will work:
irrelevant.
Describe implementation detail for your proposal (in code), if possible:
Linux:
uname -r
Windows:
You can use
wmic
to obtain that information:This command requires admin in windows XP but this isn't a problem as Godot targets Windows 7+
If this enhancement will not be used often, can it be worked around with a few lines of script?:
I don't think this can be implemented in a few lines for every supported platform.
Is there a reason why this should be core and not an add-on in the asset library?:
It could be an asset but I think this should be a well maintained feature in the engine and most important multiplatform engines have methods to obtain system version info.
The text was updated successfully, but these errors were encountered: