Up to date

This page is up to date for Godot 4.2. If you still find outdated information, please open an issue.

Submitting to the Asset Library

Введение

Этот учебник призван служить руководством о том, как вы можете опубликовать свои ресурсы в Библиотеку Ресурсов Godot и поделиться ими с сообществом Godot.

Как уже было отмечено в документе Использование библиотеки ресурсов, чтобы получить доступ к отправке ресурсов в AssetLib, Вам необходимо зарегистрироваться или войти в систему.

Submission guidelines

Before submitting your asset, please ensure it follows all of the requirements, and also consider following the recommendations.

Требования

Generally speaking, most assets people submit to the asset library are accepted. However, in order for your asset to be accepted, there are a few requirements your asset needs to meet to be approved.

  • The asset must work. If the asset doesn't run or otherwise doesn't work in the specified Godot version, then it will be rejected.

  • The asset must have a proper .gitignore file. It's important to keep redundant data out of the repository. Here's a template.

  • No submodules, or any submodules must be non-essential. GitHub does not include submodules in the downloaded ZIP file, so if the asset needs the contents of the submodule, your asset won't work.

  • The license needs to be correct. The license listed on the asset library must match the license in the repository. The repo MUST have a license file, called either "LICENSE" or "LICENSE.md". This file must contain the license text itself and a copyright statement that includes the year(s) and copyright holder.

  • Use proper English for the name and description of your asset. This includes using correct capitalization, and using full sentences in the description. You can also include other languages, but there should at least be an English version.

  • Иконка должна являться прямой ссылкой. Для иконок, размещенных на GitHub, ссылка должна начинаться с "raw.githubusercontent.com", а не с "github.com".

Рекомендации

Это необязательные шаги, чтобы Ваши ресурсы приняли, но если Вы выполните следующие рекомендации, Вы поможете сделать библиотеку ресурсов лучше.

  • When creating non-project assets, it is common practice to place your files inside of an addons/asset_name/ folder. Do this to avoid having your files clash with other assets, or with the files of users installing your asset. This folder will not be automatically generated when a user installs your asset.

  • Устраните или скройте все предупреждения скрипта. Система предупреждений помогает выявить проблемы в Вашем коде, но людям, пользующимся Вашими ресурсами, не нужно их видеть.

  • Make your code conform to the official style guides. Having a consistent style helps other people read your code, and it also helps if other people wish to contribute to your asset. See: the Руководство по стилю GDScript or the Руководство по стилю C#.

  • Если у Вас в архиве есть скриншоты, поместите их в собственную подпапку и добавьте пустой файл .gdignore в ту же самую папку (примечание: gd, а не git). Это предотвратит Godot от импорта ваших скриншотов. На Windows откройте командную строку в папке проекта и запустите type nul > .gdignore, чтобы создать файл, название которого начинается с точки.

  • If your asset is a library for working with other files, consider including example files in the asset.

  • Consider adding a .gitattributes file to your repo. This file allows giving extra instructions to Git, such as specifying line endings and listing files not required for your asset to function with the export-ignore directive. This directive removes such files from the resulting ZIP file, preventing them from being downloaded by the asset library users. These are common examples of .gitattributes:

    # Normalize line endings for all files that Git considers text files.
    * text=auto eol=lf
    
  • If you are submitting a plugin, add a copy of your license and readme to the plugin folder itself. This is the folder that users are guaranteed to keep with their project, so a copy ensures they always have those files handy (and helps them fulfill your licensing terms).

  • While the asset library allows more than just GitHub, consider hosting your asset's source code on GitHub. Other services may not work reliably, and a lack of familiarity can be a barrier to contributors.

Предоставление

Once you are logged in, you will be able to head over to the "Submit Assets" page of the AssetLib, which will look like this:

image0

While it may look like a lot (and there is more as you scroll down), each field is described in terms of what you should put in. We will nonetheless go over what is required in the submission form here as well.

  • Asset Name:

    The name of your asset. Should be a unique, descriptive title of what your asset is.

  • Категория:

    The category that your asset belongs to, and will be shown in search results. The category is split into Addons and Projects. In-editor, assets of the Project type (Templates, Demos, Projects) only show up when viewing the AssetLib from the Project Manager, while assets of the Addon type will only be visible from inside a project.

  • **Версия Godot*:

    The version of the engine that the asset works with. Currently, it's not possible to have a single asset entry contain downloads for multiple engine versions, so you may need to re-submit the asset multiple times, with an entry for each Godot version it supports. This is particularly important when dealing with major versions of the engine, such as Godot 2.x and Godot 3.x.

  • Version:

    The version number of the asset. While you are free to choose and use any versioning scheme that you like, you may want to look into something such as SemVer if you want your asset's versioning scheme to be clear and consistent. Note that there is also an internal version number, incremented every time the asset download URL is changed or updated.

  • Repository host:

    Ассеты, загруженные в AssetLib, не хранятся непосредственно там. Вместо этого, они лишь указывают на репозитории, размещённые на посторонних хостингах проектов Git, таких как GitHub, GitLab и Bitbucker. Именно здесь и нужно выбрать, какого провайдера использует ассет, чтобы сайт мог подготовить окончательную ссылку для загрузки.

  • URL репозитория:

    The URL to your asset's files/webpage. This will vary based on your choice of provider, but it should look similar to https://github.com/<user>/<project>.

  • URL тикет-системы:

    The URL to your asset's issue tracker. Again, this will differ from repository host to repository host, but will likely look similar to https://github.com/<user>/<project>/issues. You may leave this field empty if you use your provider's issue tracker, and it's part of the same repository.

  • Download Commit:

    The commit of the asset. For example, b1d3172f89b86e52465a74f63a74ac84c491d3e1. The site computes the actual download URL from this.

  • URL значка:

    URL-адрес значка вашего ресурса (который будет использоваться в качестве миниатюры в результатах поиска AssetLib и на странице ресурса). Должно быть изображение в формате PNG или JPG.

    The icon must be square (1:1 aspect ratio). It should have a minimum resolution of 128×128 pixels.

  • Licеnse:

    Лицензия, по которой вы распространяете ассет. Список включает в себя различные лицензии на бесплатное программное обеспечение и программное обеспечение с открытым исходным кодом, такие как GPL (v2 и v3), MIT, BSD и Boost Software License. Вы можете посетить OpenSource.org для подробного описания каждой из перечисленных лицензий.

  • Description:

    Наконец, вы можете использовать поле описания для текстового обзора вашего ресурса, его функций и поведения, списка изменений и так далее. В будущем будет поддерживаться форматирование с помощью Markdown, но в настоящее время ваш единственный вариант - обычный текст.

Вы также можете включить до трех предварительных просмотров видео и/или изображений, которые будут показаны внизу страницы ресурсов. Установите флажок "Включить" в каждом из полей отправки предварительного просмотра, чтобы включить их.

  • Type:

    Либо изображение, либо видео.

  • URL изображения/YouTube:

    Либо ссылка на изображение, либо видео, размещенное на YouTube.

  • Thumbnail URL:

    URL-адрес изображения, которое будет использоваться в качестве миниатюры для предварительного просмотра. Со временем эта опция будет удалена, и вместо нее будут автоматически вычисляться миниатюры.

Как только вы закончите, нажмите "Отправить". Ваш актив будет занесен в очередь проверки. Вы можете проверить все активы, ожидающие проверки в данный момент, здесь <https://godotengine.org/asset-library/asset/edit?&asset=-1>`_ . Процесс утверждения осуществляется вручную и может занять до нескольких дней, прежде чем ваш актив будет принят (или отклонен), поэтому, пожалуйста, наберитесь терпения!

Примечание

Возможно, вам повезет ускорить процесс утверждения, отправив сообщение модераторам и рецензентам AssetLib в "Чате участников Godot <https://chat.godotengine.org/>"_ или на официальном сервере Discord.

Вы будете проинформированы, когда ваш актив будет проверен. Если он был отклонен, вам сообщат, почему это могло произойти, и вы сможете отправить его снова с соответствующими изменениями.