Description
Describe the project you are working on
Games exported to steam, itch.io etc that need to handle licensing.
Describe the problem or limitation you are having in your project
I was using steamdb to browse games built with Godot (note it's heuristics based so some of these are wrong). I noticed that some games don't include any sort licensing file so, or any sort of credits screen.
Take this game on steam (also on itch.io) for example which only includes an executable and a .pck
file with no credits screen.
Most of the licenses used by Godot have some form of clause eg:
Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
Also, doing a search on Github for uses of Godot's API for copyright info shows sparing use at best: only 11 results of get_copyright_info()
being used.
Describe the feature / enhancement and how it helps to overcome the problem or limitation
It's easy to forget to give appropriate attribution when exporting a Godot project, so I think it would be a good idea for the Godot to generate some sort of godot_license.txt
when exporting projects.
Documentation/tutorials for exporting should probably encourage including a license file too: https://gramps.github.io/GodotSteam/tutorials-exporting-shipping.html#shipping (although I think this one for steam is not maintained by Godot devs themselves), and provide examples on how to attribute correctly with Godot's API.
The plugin/module system should also provide licensing information in functions like get_license_info
so that it's easier to give correct attribution to plugins made by the community. (It might already work like this, but I haven't checked)
Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams
There should be a tab in Project Settings
or Export
menu for licensing so you can control the generation of a godot_license.txt
and the license for your project as a whole. So when you export a project the license will be generated along side the exe
and pck
files.
Also the documentation for complying with licenses should provide a code snippet that generates license text that can easily be used to give correct attribution on a credits screen. Ie how to use Engine.get_copyright_info() and friends to provide similar information as provide by COPYRIGHT.txt.
If this enhancement will not be used often, can it be worked around with a few lines of script?
This is a feature that everybody who exports Godot projects should use.
Is there a reason why this should be core and not an add-on in the asset library?
Giving correct attribution to the work done by open source projects is important, so it should be in core.